From a9c9662124080a2c69c271adf847480d1790b13f Mon Sep 17 00:00:00 2001 From: John Bland Date: Mon, 17 Jul 2023 12:50:59 -0400 Subject: [PATCH] fix bad & statement that was setting ocspSendNonce to 1 when WOLFSSL_OCSP_NO_NONCE was selected related to but doesn't solve zd 16377 --- src/ssl_certman.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ssl_certman.c b/src/ssl_certman.c index 9b421caae..137825a3a 100644 --- a/src/ssl_certman.c +++ b/src/ssl_certman.c @@ -1974,7 +1974,8 @@ int wolfSSL_CertManagerEnableOCSP(WOLFSSL_CERT_MANAGER* cm, int options) cm->ocspUseOverrideURL = 1; } /* Set nonce option for creating OCSP requests. */ - cm->ocspSendNonce = (options & WOLFSSL_OCSP_NO_NONCE) != 0; + cm->ocspSendNonce = (options & WOLFSSL_OCSP_NO_NONCE) != + WOLFSSL_OCSP_NO_NONCE; /* Set all OCSP checks on if requested. */ if (options & WOLFSSL_OCSP_CHECKALL) { cm->ocspCheckAll = 1;