[glib-networking/wip/nacho/openssl] openssl: fix client-auth-failure test with new a new openssl



commit f369d896f0817da12d07ebd78b82da1b3ed0d071
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date:   Wed Sep 19 17:48:27 2018 +0200

    openssl: fix client-auth-failure test with new a new openssl
    
    It will return the error SSL_R_TLSV13_ALERT_CERTIFICATE_REQUIRED

 tls/openssl/gtlsconnection-openssl.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/tls/openssl/gtlsconnection-openssl.c b/tls/openssl/gtlsconnection-openssl.c
index d848d5e..9b4b9b4 100644
--- a/tls/openssl/gtlsconnection-openssl.c
+++ b/tls/openssl/gtlsconnection-openssl.c
@@ -164,7 +164,11 @@ end_openssl_io (GTlsConnectionOpenssl  *openssl,
     }
 #endif
 
-  if (reason == SSL_R_PEER_DID_NOT_RETURN_A_CERTIFICATE)
+  if (reason == SSL_R_PEER_DID_NOT_RETURN_A_CERTIFICATE
+#ifdef SSL_R_TLSV13_ALERT_CERTIFICATE_REQUIRED
+      || reason == SSL_R_TLSV13_ALERT_CERTIFICATE_REQUIRED
+#endif
+     )
     {
       g_clear_error (&my_error);
       g_set_error_literal (error, G_TLS_ERROR, G_TLS_ERROR_CERTIFICATE_REQUIRED,


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