From c60b60c50c26f588096ad5b84cfc1f64228c8a3a Mon Sep 17 00:00:00 2001 From: Takashi Kojo Date: Sat, 26 May 2018 16:02:51 +0900 Subject: [PATCH] #if condition to refer wc_PKCS12_new, wc_d2i_PKCS12 --- src/ssl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ssl.c b/src/ssl.c index fb292e4e4..92538116c 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -18028,12 +18028,14 @@ static void *wolfSSL_d2i_X509_fp_ex(XFILE file, void **x509, int type) else if(type == CRL_TYPE) newx509 = (void *)wolfSSL_d2i_X509_CRL(NULL, fileBuffer, (int)sz); #endif + #if !defined(NO_ASN) && !defined(NO_PWDBASED) else if(type == PKCS12_TYPE){ if((newx509 = wc_PKCS12_new()) == NULL) goto err_exit; if(wc_d2i_PKCS12(fileBuffer, (int)sz, (WC_PKCS12*)newx509) < 0) goto err_exit; } + #endif else goto err_exit; if(newx509 == NULL) {