forked from wolfSSL/wolfssl
fixes SendCertificateStatus() loading the CA in the server side to build the OCSP request properly.
This commit is contained in:
@ -726,7 +726,10 @@ THREAD_RETURN CYASSL_THREAD server_test(void* args)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAVE_CERTIFICATE_STATUS_REQUEST)
|
#if defined(HAVE_CERTIFICATE_STATUS_REQUEST)
|
||||||
wolfSSL_CTX_EnableOCSPStapling(ctx);
|
if (wolfSSL_CTX_EnableOCSPStapling(ctx) != SSL_SUCCESS)
|
||||||
|
err_sys("can't enable OCSP Stapling Certificate Manager");
|
||||||
|
if (SSL_CTX_load_verify_locations(ctx, caCert, 0) != SSL_SUCCESS)
|
||||||
|
err_sys("can't load ca file, Please run from wolfSSL home dir");
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_PK_CALLBACKS
|
#ifdef HAVE_PK_CALLBACKS
|
||||||
if (pkCallbacks)
|
if (pkCallbacks)
|
||||||
|
Reference in New Issue
Block a user