Store more certs in PKCS7 struct

This commit is contained in:
Juliusz Sosinowicz
2020-09-21 13:48:53 +02:00
parent acf3156fac
commit 911d5968b4
2 changed files with 7 additions and 2 deletions

View File

@@ -25188,7 +25188,12 @@ int wolfSSL_X509_verify_cert(WOLFSSL_X509_STORE_CTX* ctx)
ctx->store->verify_cb(0, ctx); ctx->store->verify_cb(0, ctx);
#endif #endif
} }
return ret;
/* OpenSSL returns 0 when a chain can't be built */
if (ret == ASN_NO_SIGNER_E)
return WOLFSSL_FAILURE;
else
return ret;
} }
return WOLFSSL_FATAL_ERROR; return WOLFSSL_FATAL_ERROR;
} }

View File

@@ -48,7 +48,7 @@
/* Max number of certificates that PKCS7 structure can parse */ /* Max number of certificates that PKCS7 structure can parse */
#ifndef MAX_PKCS7_CERTS #ifndef MAX_PKCS7_CERTS
#define MAX_PKCS7_CERTS 4 #define MAX_PKCS7_CERTS 15
#endif #endif
#ifndef MAX_ORI_TYPE_SZ #ifndef MAX_ORI_TYPE_SZ