@@ -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 */
@@ -6178,8 +6180,10 @@ WOLFSSL_API void SSL_ResourceFree(WOLFSSL* ssl); /* Micrium uses */
61786180 int type , WOLFSSL * ssl , int userChain ,
61796181 WOLFSSL_CRL * crl , int verify );
61806182
6183+ #ifndef NO_ASN
61816184 WOLFSSL_LOCAL int CheckHostName (DecodedCert * dCert , const char * domainName ,
61826185 size_t domainNameLen );
6186+ #endif
61836187#endif
61846188
61856189
@@ -6591,8 +6595,10 @@ WOLFSSL_LOCAL enum wc_HashType HashAlgoToType(int hashAlgo);
65916595 WOLFSSL_LOCAL void InitX509 (WOLFSSL_X509 * x509 , int dynamicFlag ,
65926596 void * heap );
65936597 WOLFSSL_LOCAL void FreeX509 (WOLFSSL_X509 * x509 );
6598+ #ifndef NO_ASN
65946599 WOLFSSL_LOCAL int CopyDecodedToX509 (WOLFSSL_X509 * x509 ,
65956600 DecodedCert * dCert );
6601+ #endif
65966602#endif
65976603
65986604#ifndef MAX_CIPHER_NAME
0 commit comments