diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2001-02-12 23:28:45 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2001-02-12 23:28:45 +0000 |
commit | 46a58ab94657ea8018ffb2fddc9cf11ef5210341 (patch) | |
tree | d4a10bdd2048783b0a19c6269d482957de258bc6 /apps/ocsp.c | |
parent | 94fcd013499aaf1fc677476716d4db4fb99cf0e2 (diff) | |
download | openssl-46a58ab94657ea8018ffb2fddc9cf11ef5210341.zip openssl-46a58ab94657ea8018ffb2fddc9cf11ef5210341.tar.gz openssl-46a58ab94657ea8018ffb2fddc9cf11ef5210341.tar.bz2 |
Modify OCSP nonce behaviour.
Diffstat (limited to 'apps/ocsp.c')
-rw-r--r-- | apps/ocsp.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/apps/ocsp.c b/apps/ocsp.c index 32506a3..9a04dd7 100644 --- a/apps/ocsp.c +++ b/apps/ocsp.c @@ -515,10 +515,15 @@ int MAIN(int argc, char **argv) if (!noverify) { - if (req && (OCSP_check_nonce(req, bs) <= 0)) + if (req && ((i = OCSP_check_nonce(req, bs)) <= 0)) { - BIO_printf(bio_err, "Nonce Verify error\n"); - goto end; + if (i == -1) + BIO_printf(bio_err, "WARNING: no nonce in response\n"); + else + { + BIO_printf(bio_err, "Nonce Verify error\n"); + goto end; + } } i = OCSP_basic_verify(bs, verify_other, store, verify_flags); |