Commit 783555d8e11516fdc01b66da0f873f5854b9bff6

Carlos Martín Nieto 2014-04-26T14:36:32

netops: catch the server not sending a certificate 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.