diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-04-26 14:36:32 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-04-26 17:27:43 +0200 |
commit | 783555d8e11516fdc01b66da0f873f5854b9bff6 (patch) | |
tree | 50d21403fb27f9d3f74199f974a149c4f2dc5a04 /tests/diff/binary.c | |
parent | 51d3f6f5f2f9dc6c9f9dd64d3ccbd0afdcf6fb6e (diff) | |
download | libgit2-783555d8e11516fdc01b66da0f873f5854b9bff6.tar.gz |
netops: catch the server not sending a certificatecmn/match-host-tests
It's possible for an encrypted connection not have a certificate. In
this case, SSL_get_verify_result() will return OK because no error
happened (as it never even tried to validate anything).
SSL_get_peer_certificate() will return NULL in this case so we need to
catch that. On the upside, the current code would segfault in this
situation instead of letting it through as a valid cert.
Diffstat (limited to 'tests/diff/binary.c')
0 files changed, 0 insertions, 0 deletions