Skip to content

Commit 48c4247

Browse files
committed
Show the proper error if we get an unknowkn protocol
1 parent b50c6f3 commit 48c4247

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tls/openssl/gtlsconnection-openssl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ end_openssl_io (GTlsConnectionOpenssl *openssl,
126126
reason == SSL_R_UNKNOWN_ALERT_TYPE ||
127127
reason == SSL_R_DECRYPTION_FAILED ||
128128
reason == SSL_R_BAD_PROTOCOL_VERSION_NUMBER ||
129-
reason == SSL_R_SSLV3_ALERT_HANDSHAKE_FAILURE)
129+
reason == SSL_R_SSLV3_ALERT_HANDSHAKE_FAILURE ||
130+
reason == SSL_R_UNKNOWN_PROTOCOL)
130131
{
131132
g_clear_error (&my_error);
132133
g_set_error_literal (error, G_TLS_ERROR, G_TLS_ERROR_NOT_TLS,

0 commit comments

Comments
 (0)