[glib-networking/wip/openssl: 19/20] Show the proper error if we get an unknowkn protocol
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/wip/openssl: 19/20] Show the proper error if we get an unknowkn protocol
- Date: Tue, 13 Oct 2015 09:55:17 +0000 (UTC)
commit 48c4247adb9bdd21884cfb477b4ee0e49a3a466d
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Fri Sep 25 12:29:08 2015 +0200
Show the proper error if we get an unknowkn protocol
tls/openssl/gtlsconnection-openssl.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/tls/openssl/gtlsconnection-openssl.c b/tls/openssl/gtlsconnection-openssl.c
index 75d82c0..b3c634a 100644
--- a/tls/openssl/gtlsconnection-openssl.c
+++ b/tls/openssl/gtlsconnection-openssl.c
@@ -126,7 +126,8 @@ end_openssl_io (GTlsConnectionOpenssl *openssl,
reason == SSL_R_UNKNOWN_ALERT_TYPE ||
reason == SSL_R_DECRYPTION_FAILED ||
reason == SSL_R_BAD_PROTOCOL_VERSION_NUMBER ||
- reason == SSL_R_SSLV3_ALERT_HANDSHAKE_FAILURE)
+ reason == SSL_R_SSLV3_ALERT_HANDSHAKE_FAILURE ||
+ reason == SSL_R_UNKNOWN_PROTOCOL)
{
g_clear_error (&my_error);
g_set_error_literal (error, G_TLS_ERROR, G_TLS_ERROR_NOT_TLS,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]