diff options
Diffstat (limited to 'src/lib/libcrypto/ocsp/ocsp_vfy.c')
-rw-r--r-- | src/lib/libcrypto/ocsp/ocsp_vfy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ocsp/ocsp_vfy.c b/src/lib/libcrypto/ocsp/ocsp_vfy.c index 276718304d..0b181d5abe 100644 --- a/src/lib/libcrypto/ocsp/ocsp_vfy.c +++ b/src/lib/libcrypto/ocsp/ocsp_vfy.c | |||
@@ -122,9 +122,9 @@ int OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs, | |||
122 | X509_STORE_CTX_cleanup(&ctx); | 122 | X509_STORE_CTX_cleanup(&ctx); |
123 | if (ret <= 0) | 123 | if (ret <= 0) |
124 | { | 124 | { |
125 | i = X509_STORE_CTX_get_error(&ctx); | 125 | i = X509_STORE_CTX_get_error(&ctx); |
126 | OCSPerr(OCSP_F_OCSP_BASIC_VERIFY,OCSP_R_CERTIFICATE_VERIFY_ERROR); | 126 | OCSPerr(OCSP_F_OCSP_BASIC_VERIFY,OCSP_R_CERTIFICATE_VERIFY_ERROR); |
127 | ERR_add_error_data(2, "Verify error:", | 127 | ERR_asprintf_error_data("Verify error:%s", |
128 | X509_verify_cert_error_string(i)); | 128 | X509_verify_cert_error_string(i)); |
129 | goto end; | 129 | goto end; |
130 | } | 130 | } |
@@ -421,7 +421,7 @@ int OCSP_request_verify(OCSP_REQUEST *req, STACK_OF(X509) *certs, X509_STORE *st | |||
421 | { | 421 | { |
422 | ret = X509_STORE_CTX_get_error(&ctx); | 422 | ret = X509_STORE_CTX_get_error(&ctx); |
423 | OCSPerr(OCSP_F_OCSP_REQUEST_VERIFY,OCSP_R_CERTIFICATE_VERIFY_ERROR); | 423 | OCSPerr(OCSP_F_OCSP_REQUEST_VERIFY,OCSP_R_CERTIFICATE_VERIFY_ERROR); |
424 | ERR_add_error_data(2, "Verify error:", | 424 | ERR_asprintf_error_data("Verify error:%s", |
425 | X509_verify_cert_error_string(ret)); | 425 | X509_verify_cert_error_string(ret)); |
426 | return 0; | 426 | return 0; |
427 | } | 427 | } |