Skip to content

Commit de20e44

Browse files
committed
Merge branch 'rk/send-email-ssl-cert'
The "if /etc/ssl/certs/ directory exists, explicitly telling the library to use it as SSL_ca_path" blind-defaulting in "git send-email" broke platforms where /etc/ssl/certs/ directory exists, but it cannot used as SSL_ca_path (e.g. Fedora rawhide). Fix it by not specifying any SSL_ca_path/SSL_ca_file but still asking for peer verification in such a case. * rk/send-email-ssl-cert: send-email: /etc/ssl/certs/ directory may not be usable as ca_path
2 parents a0f4525 + 01645b7 commit de20e44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

git-send-email.perl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,8 @@ sub ssl_verify_params {
10951095
}
10961096

10971097
if (!defined $smtp_ssl_cert_path) {
1098-
$smtp_ssl_cert_path = "/etc/ssl/certs";
1098+
# use the OpenSSL defaults
1099+
return (SSL_verify_mode => SSL_VERIFY_PEER());
10991100
}
11001101

11011102
if ($smtp_ssl_cert_path eq "") {

0 commit comments

Comments
 (0)