Skip to content

Commit

Permalink
Merge branch 'rk/send-email-ssl-cert'
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gitster committed Jan 27, 2014
2 parents a0f4525 + 01645b7 commit de20e44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git-send-email.perl
Expand Up @@ -1095,7 +1095,8 @@ sub ssl_verify_params {
}

if (!defined $smtp_ssl_cert_path) {
$smtp_ssl_cert_path = "/etc/ssl/certs";
# use the OpenSSL defaults
return (SSL_verify_mode => SSL_VERIFY_PEER());
}

if ($smtp_ssl_cert_path eq "") {
Expand Down

0 comments on commit de20e44

Please sign in to comment.