@@ -2215,7 +2215,7 @@ WOLFSSL_LOCAL void FreeKeyExchange(WOLFSSL* ssl);
22152215WOLFSSL_LOCAL void FreeSuites (WOLFSSL * ssl );
22162216WOLFSSL_LOCAL int ProcessPeerCerts (WOLFSSL * ssl , byte * input , word32 * inOutIdx , word32 totalSz );
22172217WOLFSSL_LOCAL int MatchDomainName (const char * pattern , int len , const char * str , word32 strLen );
2218- #ifndef NO_CERTS
2218+ #if !defined( NO_CERTS ) && !defined( NO_ASN )
22192219WOLFSSL_LOCAL int CheckForAltNames (DecodedCert * dCert , const char * domain , word32 domainLen , int * checkCN );
22202220WOLFSSL_LOCAL int CheckIPAddr (DecodedCert * dCert , const char * ipasc );
22212221WOLFSSL_LOCAL void CopyDecodedName (WOLFSSL_X509_NAME * name , DecodedCert * dCert , int nameType );
@@ -2675,7 +2675,9 @@ typedef struct ProcPeerCertArgs {
26752675#ifdef WOLFSSL_TLS13
26762676 buffer * exts ; /* extensions */
26772677#endif
2678+ #ifndef NO_ASN
26782679 DecodedCert * dCert ;
2680+ #endif
26792681 word32 idx ;
26802682 word32 begin ;
26812683 int totalCerts ; /* number of certs in certs buffer */
@@ -6201,8 +6203,10 @@ WOLFSSL_API void SSL_ResourceFree(WOLFSSL* ssl); /* Micrium uses */
62016203 int type , WOLFSSL * ssl , int userChain ,
62026204 WOLFSSL_CRL * crl , int verify );
62036205
6206+ #ifndef NO_ASN
62046207 WOLFSSL_LOCAL int CheckHostName (DecodedCert * dCert , const char * domainName ,
62056208 size_t domainNameLen );
6209+ #endif
62066210#endif
62076211
62086212
@@ -6614,8 +6618,10 @@ WOLFSSL_LOCAL enum wc_HashType HashAlgoToType(int hashAlgo);
66146618 WOLFSSL_LOCAL void InitX509 (WOLFSSL_X509 * x509 , int dynamicFlag ,
66156619 void * heap );
66166620 WOLFSSL_LOCAL void FreeX509 (WOLFSSL_X509 * x509 );
6621+ #ifndef NO_ASN
66176622 WOLFSSL_LOCAL int CopyDecodedToX509 (WOLFSSL_X509 * x509 ,
66186623 DecodedCert * dCert );
6624+ #endif
66196625#endif
66206626
66216627#if defined(WOLFSSL_ACERT )
0 commit comments