mirror of
https://github.com/git/git
synced 2024-08-25 10:45:59 +00:00
Merge branch 'jk/send-email-ca-path'
Use a safer behavior when we hit errors verifying remote certificates. * jk/send-email-ca-path: send-email: die if CA path doesn't exist
This commit is contained in:
commit
43ed3827ed
|
@ -1196,8 +1196,7 @@ sub ssl_verify_params {
|
|||
return (SSL_verify_mode => SSL_VERIFY_PEER(),
|
||||
SSL_ca_file => $smtp_ssl_cert_path);
|
||||
} else {
|
||||
print STDERR "Not using SSL_VERIFY_PEER because the CA path does not exist.\n";
|
||||
return (SSL_verify_mode => SSL_VERIFY_NONE());
|
||||
die "CA path \"$smtp_ssl_cert_path\" does not exist";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue