• Show log

    Commit

  • Hash : 783555d8
    Author : Carlos Martín Nieto
    Date : 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.