[glib-networking/wip/openssl: 26/41] Show the proper error if we get an unknowkn protocol



commit 45fabb4fc0090994d31d5b8642875020c7e9cca4
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]