[glib-networking: 11/129] openssl/gtlsconnection: remove usage of SSL_R_NO_CERTIFICATE_RETURNED



commit b79ccf30e09ced38ae5f9e0c3dc5ef036e9215f3
Author: Igor Gnatenko <ignatenko src gnome org>
Date:   Fri Oct 21 16:44:53 2016 +0200

    openssl/gtlsconnection: remove usage of SSL_R_NO_CERTIFICATE_RETURNED
    
    * It's not used internally in OpenSSL (since the beginning), it has been
      used only in one function accidentally (in ssl3_get_client_certificate())
    * It was removed in OpenSSL 1.1.0
    
    Signed-off-by: Igor Gnatenko <ignatenko src gnome org>

 tls/openssl/gtlsconnection-openssl.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/tls/openssl/gtlsconnection-openssl.c b/tls/openssl/gtlsconnection-openssl.c
index 7c97fc9..0835bee 100644
--- a/tls/openssl/gtlsconnection-openssl.c
+++ b/tls/openssl/gtlsconnection-openssl.c
@@ -151,8 +151,7 @@ end_openssl_io (GTlsConnectionOpenssl  *openssl,
         }
     }
 
-  if (reason == SSL_R_PEER_DID_NOT_RETURN_A_CERTIFICATE ||
-      reason == SSL_R_NO_CERTIFICATE_RETURNED)
+  if (reason == SSL_R_PEER_DID_NOT_RETURN_A_CERTIFICATE)
     {
       g_set_error_literal (error, G_TLS_ERROR, G_TLS_ERROR_CERTIFICATE_REQUIRED,
                            _("TLS connection peer did not send a certificate"));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]