summaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2015-11-24 23:31:40 (GMT)
committerJeff King <peff@peff.net>2015-11-24 23:35:55 (GMT)
commitc55d65f3c524ab2cb40e2293343eb28a0ee0fe46 (patch)
tree29504de6ab55db911b51cb410c409f20577c325a /git-send-email.perl
parent0c83680e9c047170614fb08ef222ea4f460e514d (diff)
downloadgit-c55d65f3c524ab2cb40e2293343eb28a0ee0fe46.zip
git-c55d65f3c524ab2cb40e2293343eb28a0ee0fe46.tar.gz
git-c55d65f3c524ab2cb40e2293343eb28a0ee0fe46.tar.bz2
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 <john@keeping.me.uk> Signed-off-by: Jeff King <peff@peff.net>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl3
1 files changed, 1 insertions, 2 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index e907e0e..0eb7a28 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";
}
}