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>

John Keeping committed Nov 24, 2015 at 23:31 UTC c55d65f3c524ab2cb40e2293343eb28a0ee0fe46
1 file changed +1 -2
git-send-email.perl
+1 -2
@@ -1196,8 +1196,7 @@ sub ssl_verify_params {
1196 return (SSL_verify_mode => SSL_VERIFY_PEER(),
1197 SSL_ca_file => $smtp_ssl_cert_path);
1198 } else {
1199 - print STDERR "Not using SSL_VERIFY_PEER because the CA path does not exist.\n";
1200 - return (SSL_verify_mode => SSL_VERIFY_NONE());
1199 + die "CA path \"$smtp_ssl_cert_path\" does not exist";
1200 }
1201 }
1202