[glib-networking/wip/nacho/openssl-fix: 6/7] openssl: fix client-auth-failure test with new a new openssl
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/wip/nacho/openssl-fix: 6/7] openssl: fix client-auth-failure test with new a new openssl
- Date: Sun, 3 Feb 2019 11:16:08 +0000 (UTC)
commit 379a760b37f15767f4878344c2f6f6713bc04f14
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]