Skip to content

Commit

Permalink
Merge pull request #6627 from jpbland1/ocsp-nonce-usage-fix
Browse files Browse the repository at this point in the history
fix bad & statement that was setting ocspSendNonce
  • Loading branch information
dgarske authored Jul 27, 2023
2 parents d0abfd7 + a9c9662 commit c529b2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ssl_certman.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c529b2f

Please sign in to comment.