Skip to content

Commit

Permalink
Merge pull request #84 from ssahani/dev
Browse files Browse the repository at this point in the history
TLS: Abort connection if failed to validate certificate
  • Loading branch information
ssahani authored May 13, 2024
2 parents 1e538e8 + 00f4721 commit cb336c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/netlog/netlog-tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ int ssl_verify_certificate_validity(int s, X509_STORE_CTX *store) {
}}
break;
default:
log_debug("Succesffuly validated certificated: %s", X509_verify_cert_error_string(r));
log_error("Failed to validate remote certificate: %s. Aborting connection ...", X509_verify_cert_error_string(r));
return 0;
}
}

Expand Down

0 comments on commit cb336c0

Please sign in to comment.