aboutsummaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorRamkumar Ramachandra <artagnon@gmail.com>2013-07-18 09:53:11 -0700
committerJunio C Hamano <gitster@pobox.com>2013-07-18 16:01:30 -0700
commit35035bbf074d1a4c59cd5f99282c12197105da08 (patch)
tree8cd36b1fccfd9414cb6d71de1793016d4c77deb9 /http.c
parent531c8dd4fb18e653d6170d367e4b23c3164d5ce0 (diff)
downloadgit-35035bbf074d1a4c59cd5f99282c12197105da08.tar.gz
git-35035bbf074d1a4c59cd5f99282c12197105da08.tar.xz
send-email: be explicit with SSL certificate verification
When initiating an SSL connection without explicitly specifying the SSL certificate verification mode, Net::SMTP::SSL defaults to no verification, but recent versions of the module gives a warning against this use of the default. Enable certificate verification by default, using /etc/ssl/certs as the default path for certificates of certificate authorities. This path can be overriden by the --smtp-ssl-cert-path command line option and the sendemail.smtpSSLCertPath configuration variable. Passing an empty string as the path for CA certificates path disables the SSL certificate verification explicitly, which does not trigger the warning from recent versions of Net::SMTP::SSL. Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> Helped-by: Brian M. Carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http.c')
0 files changed, 0 insertions, 0 deletions