Skip to content

Commit

Permalink
Merge branch 'jk/send-email-ca-path'
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Jeff King committed Dec 1, 2015
2 parents e2187fe + c55d65f commit 43ed382
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions git-send-email.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}

Expand Down

0 comments on commit 43ed382

Please sign in to comment.