[glib-networking/wip/openssl: 22/31] 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: 22/31] Show the proper error if we get an unknowkn protocol
- Date: Mon, 9 Nov 2015 08:05:53 +0000 (UTC)
commit 99c719aea50fc08199673565467fc36dc96d75fd
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]