Skip to content

Commit

Permalink
add extra OCSP_check_nonce check
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel40791765 committed Jul 30, 2024
1 parent a1bd36c commit cd660a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crypto/ocsp/ocsp_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1390,6 +1390,8 @@ TEST_P(OCSPNonceTest, OCSPNonce) {
if (t.nonce_check_status == OCSP_NONCE_RESPONSE_ONLY ||
t.nonce_check_status == OCSP_NONCE_BOTH_ABSENT) {
EXPECT_EQ(OCSP_copy_nonce(basicResponse.get(), ocspRequest.get()), 2);
EXPECT_EQ(OCSP_check_nonce(ocspRequest.get(), basicResponse.get()),
t.nonce_check_status);
} else {
EXPECT_EQ(OCSP_copy_nonce(basicResponse.get(), ocspRequest.get()), 1);
EXPECT_EQ(OCSP_check_nonce(ocspRequest.get(), basicResponse.get()),
Expand Down

0 comments on commit cd660a2

Please sign in to comment.