From: John Keeping Date: Tue, 24 Nov 2015 23:31:40 +0000 (+0000) Subject: send-email: die if CA path doesn't exist X-Git-Tag: v2.7.0-rc0~20^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/c55d65f3c524ab2cb40e2293343eb28a0ee0fe46?hp=--cc send-email: die if CA path doesn't exist If the CA path isn't found it's most likely to indicate a misconfiguration, in which case accepting any certificate is unlikely to be the correct thing to do. Signed-off-by: John Keeping Signed-off-by: Jeff King --- c55d65f3c524ab2cb40e2293343eb28a0ee0fe46 diff --git a/git-send-email.perl b/git-send-email.perl index e907e0eacf..0eb7a28c37 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -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"; } }