Skip to content

Commit

Permalink
- Fix for #997: Print details for SSL certificate failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
wcawijngaards committed Jan 22, 2024
1 parent 585d73b commit 1f46d59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
22 January 2024: Wouter
- Fix for #997: Print details for SSL certificate failure.

17 January 2024: Wouter
- Update workflow for ports to use newer openssl on windows compile.
- Fix warning for windres on resource files due to redefinition.
Expand Down
5 changes: 5 additions & 0 deletions util/netevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -1672,8 +1672,13 @@ ssl_handshake(struct comm_point* c)
} else {
unsigned long err = ERR_get_error();
if(!squelch_err_ssl_handshake(err)) {
long vr;
log_crypto_err_io_code("ssl handshake failed",
want, err);
if((vr=SSL_get_verify_result(c->ssl)) != 0)
log_err("ssl handshake cert error: %s",
X509_verify_cert_error_string(
vr));
log_addr(VERB_OPS, "ssl handshake failed",
&c->repinfo.remote_addr,
c->repinfo.remote_addrlen);
Expand Down

0 comments on commit 1f46d59

Please sign in to comment.