summaryrefslogtreecommitdiff
path: root/tests-clar/diff/diffiter.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2012-08-28 14:15:32 +0200
committerCarlos Martín Nieto <cmn@elego.de>2012-08-28 15:39:06 +0200
commit0d5dce268d47c4ecfb3f8cdda3379cd606630105 (patch)
tree7b6d2c451b13a386056eac726e44bf4e25060288 /tests-clar/diff/diffiter.c
parent62eafd0620eff3d7ca3659a3f4a4808488f0b2c3 (diff)
downloadlibgit2-0d5dce268d47c4ecfb3f8cdda3379cd606630105.tar.gz
ssl: make cert check ignore work for invalid certs, not just CNs
Passing SSL_VERIFY_PEER makes OpenSSL shut down the connection if the certificate is invalid, without giving us a chance to ignore that error. Pass SSL_VERIFY_NONE and call SSL_get_verify_result if the user wanted us to check. When no CNs match, we used to jump to on_error which gave a bogus error as that's for OpenSSL errors. Jump to cert_fail so we tell the user that the error came from checking the certificate.
Diffstat (limited to 'tests-clar/diff/diffiter.c')
0 files changed, 0 insertions, 0 deletions