wolfSSL: Fix OCSP ifdefs
Signed-off-by: Sean Parkinson <sean@wolfssl.com>
This commit is contained in:
parent
ca620a3642
commit
b7f5b0ec65
1 changed files with 2 additions and 2 deletions
|
@ -1074,7 +1074,7 @@ static int tls_verify_cb(int preverify_ok, WOLFSSL_X509_STORE_CTX *x509_ctx)
|
|||
TLS_FAIL_SERVER_CHAIN_PROBE);
|
||||
}
|
||||
|
||||
#ifdef HAVE_OCSP_OPENSSL
|
||||
#ifdef HAVE_OCSP_WOLFSSL
|
||||
if (depth == 0 && (conn->flags & TLS_CONN_REQUEST_OCSP) &&
|
||||
preverify_ok) {
|
||||
enum ocsp_result res;
|
||||
|
@ -1098,7 +1098,7 @@ static int tls_verify_cb(int preverify_ok, WOLFSSL_X509_STORE_CTX *x509_ctx)
|
|||
TLS_FAIL_UNSPECIFIED);
|
||||
}
|
||||
}
|
||||
#endif /* HAVE_OCSP */
|
||||
#endif /* HAVE_OCSP_WOLFSSL */
|
||||
if (depth == 0 && preverify_ok && context->event_cb != NULL)
|
||||
context->event_cb(context->cb_ctx,
|
||||
TLS_CERT_CHAIN_SUCCESS, NULL);
|
||||
|
|
Loading…
Reference in a new issue