Use OCSP override URL enable in both example client and server.
This commit is contained in:
parent
75e6ac534e
commit
4ffc92a4d6
@ -507,12 +507,12 @@ THREAD_RETURN CYASSL_THREAD client_test(void* args)
|
||||
if (useOcsp) {
|
||||
if (ocspUrl != NULL) {
|
||||
CyaSSL_CTX_OCSP_set_override_url(ctx, ocspUrl);
|
||||
CyaSSL_CTX_OCSP_set_options(ctx, CYASSL_OCSP_URL_OVERRIDE |
|
||||
CYASSL_OCSP_ENABLE | CYASSL_OCSP_NO_NONCE);
|
||||
CyaSSL_CTX_OCSP_set_options(ctx, CYASSL_OCSP_ENABLE |
|
||||
CYASSL_OCSP_URL_OVERRIDE | CYASSL_OCSP_NO_NONCE);
|
||||
}
|
||||
else
|
||||
CyaSSL_CTX_OCSP_set_options(ctx,
|
||||
CYASSL_OCSP_ENABLE | CYASSL_OCSP_NO_NONCE);
|
||||
CyaSSL_CTX_OCSP_set_options(ctx, CYASSL_OCSP_ENABLE |
|
||||
CYASSL_OCSP_NO_NONCE);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -459,10 +459,14 @@ THREAD_RETURN CYASSL_THREAD server_test(void* args)
|
||||
#endif
|
||||
#ifdef HAVE_OCSP
|
||||
if (useOcsp) {
|
||||
CyaSSL_CTX_OCSP_set_options(ctx,
|
||||
CYASSL_OCSP_ENABLE | CYASSL_OCSP_NO_NONCE);
|
||||
if (ocspUrl != NULL)
|
||||
if (ocspUrl != NULL) {
|
||||
CyaSSL_CTX_OCSP_set_override_url(ctx, ocspUrl);
|
||||
CyaSSL_CTX_OCSP_set_options(ctx, CYASSL_OCSP_ENABLE |
|
||||
CYASSL_OCSP_URL_OVERRIDE | CYASSL_OCSP_NO_NONCE);
|
||||
}
|
||||
else
|
||||
CyaSSL_CTX_OCSP_set_options(ctx, CYASSL_OCSP_ENABLE |
|
||||
CYASSL_OCSP_NO_NONCE);
|
||||
}
|
||||
#endif
|
||||
#ifdef HAVE_PK_CALLBACKS
|
||||
|
Loading…
Reference in New Issue
Block a user