Add link of newly created x509 store's certificate manager to self by default

This commit is contained in:
tim-weller-wolfssl
2022-10-31 10:14:21 -05:00
parent 922771bf05
commit 3bc3ec25b8
4 changed files with 120 additions and 2 deletions

View File

@@ -736,6 +736,10 @@ WOLFSSL_X509_STORE* wolfSSL_X509_STORE_new(void)
#endif
#if defined(OPENSSL_EXTRA) || defined(WOLFSSL_WPAS_SMALL)
/* Link store's new Certificate Manager to self by default */
store->cm->x509_store_p = store;
if ((store->param = (WOLFSSL_X509_VERIFY_PARAM*)XMALLOC(
sizeof(WOLFSSL_X509_VERIFY_PARAM),
NULL, DYNAMIC_TYPE_OPENSSL)) == NULL) {