[glib-networking/wip/nacho/openssl-fix: 8/9] openssl: fix client-auth-failure test with new a new openssl
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/wip/nacho/openssl-fix: 8/9] openssl: fix client-auth-failure test with new a new openssl
- Date: Sun, 3 Feb 2019 16:18:03 +0000 (UTC)
commit b1ac326d2d09c5f190b533c661f0ed779d87f86c
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]