git://git.exim.org
/
users
/
heiko
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0b8f4f1
)
OpenSSL: better debug info for OCSP
author
Jeremy Harris
<jgh146exb@wizmail.org>
Sun, 7 Jan 2018 20:24:46 +0000
(20:24 +0000)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Sun, 7 Jan 2018 20:32:03 +0000
(20:32 +0000)
src/src/tls-openssl.c
patch
|
blob
|
history
diff --git
a/src/src/tls-openssl.c
b/src/src/tls-openssl.c
index 7735bd971e80b493d776d5164d2f98672a1e161f..e269854ff1f76a7d2c280ffe78a36c8710c899c3 100644
(file)
--- a/
src/src/tls-openssl.c
+++ b/
src/src/tls-openssl.c
@@
-1364,7
+1364,7
@@
if(!(bs = OCSP_response_get1_basic(rsp)))
int status, reason;
ASN1_GENERALIZEDTIME *rev, *thisupd, *nextupd;
int status, reason;
ASN1_GENERALIZEDTIME *rev, *thisupd, *nextupd;
- DEBUG(D_tls) bp = BIO_new_fp(
stderr
, BIO_NOCLOSE);
+ DEBUG(D_tls) bp = BIO_new_fp(
debug_file
, BIO_NOCLOSE);
/*OCSP_RESPONSE_print(bp, rsp, 0); extreme debug: stapling content */
/*OCSP_RESPONSE_print(bp, rsp, 0); extreme debug: stapling content */
@@
-1375,10
+1375,12
@@
if(!(bs = OCSP_response_get1_basic(rsp)))
cbinfo->u_ocsp.client.verify_store, 0)) <= 0)
{
tls_out.ocsp = OCSP_FAILED;
cbinfo->u_ocsp.client.verify_store, 0)) <= 0)
{
tls_out.ocsp = OCSP_FAILED;
- if (LOGGING(tls_cipher))
- log_write(0, LOG_MAIN, "Received TLS cert status response, itself unverifiable");
+ if (LOGGING(tls_cipher)) log_write(0, LOG_MAIN,
+ "Received TLS cert status response, itself unverifiable: %s",
+ ERR_reason_error_string(ERR_peek_error()));
BIO_printf(bp, "OCSP response verify failure\n");
ERR_print_errors(bp);
BIO_printf(bp, "OCSP response verify failure\n");
ERR_print_errors(bp);
+ OCSP_RESPONSE_print(bp, rsp, 0);
goto failed;
}
goto failed;
}
@@
-1810,7
+1812,7
@@
if (expcerts && *expcerts)
)
{
log_write(0, LOG_MAIN|LOG_PANIC,
)
{
log_write(0, LOG_MAIN|LOG_PANIC,
- "failed to load cert hain from %s", file);
+ "failed to load cert
c
hain from %s", file);
return DEFER;
}
#endif
return DEFER;
}
#endif