]> git.ipfire.org Git - thirdparty/git.git/commitdiff
send-email: die if CA path doesn't exist
authorJohn Keeping <john@keeping.me.uk>
Tue, 24 Nov 2015 23:31:40 +0000 (23:31 +0000)
committerJeff King <peff@peff.net>
Tue, 24 Nov 2015 23:35:55 +0000 (18:35 -0500)
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>
git-send-email.perl

index e907e0eacf31c21dcb75fa102eb980d6a51f96c3..0eb7a28c370b591514e1876f14254089532acee1 100755 (executable)
@@ -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";
        }
 }