diff options
author | Richard Levitte <levitte@openssl.org> | 2016-04-17 13:48:53 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-04-17 23:22:45 +0200 |
commit | d32f5d8733df9938727710d4194e92813c421ef1 (patch) | |
tree | 4271aaa2030aa26f00cf23059c4ab66ecca48d4f /crypto/ocsp/ocsp_err.c | |
parent | 4e727a8d876086096b4922c965493f24fdf23e24 (diff) | |
download | openssl-d32f5d8733df9938727710d4194e92813c421ef1.tar.gz |
Restore OCSP_basic_verify() error return semantics
Recently, OCSP_basic_verify() was changed to always return 0 on error,
when it would previously return 0 on error and < 0 on fatal error.
This restores the previous semantics back.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/ocsp/ocsp_err.c')
-rw-r--r-- | crypto/ocsp/ocsp_err.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/ocsp/ocsp_err.c b/crypto/ocsp/ocsp_err.c index 16960a7cd3..9043dd2274 100644 --- a/crypto/ocsp/ocsp_err.c +++ b/crypto/ocsp/ocsp_err.c @@ -1,5 +1,5 @@ /* ==================================================================== - * Copyright (c) 1999-2015 The OpenSSL Project. All rights reserved. + * Copyright (c) 1999-2016 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -110,6 +110,7 @@ static ERR_STRING_DATA OCSP_str_reasons[] = { {ERR_REASON(OCSP_R_NO_PUBLIC_KEY), "no public key"}, {ERR_REASON(OCSP_R_NO_RESPONSE_DATA), "no response data"}, {ERR_REASON(OCSP_R_NO_REVOKED_TIME), "no revoked time"}, + {ERR_REASON(OCSP_R_NO_SIGNER_KEY), "no signer key"}, {ERR_REASON(OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE), "private key does not match certificate"}, {ERR_REASON(OCSP_R_REQUEST_NOT_SIGNED), "request not signed"}, |