[glib-networking/glib-2-30] gnutls: Add another G_TLS_ERROR_NOT_TLS case
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/glib-2-30] gnutls: Add another G_TLS_ERROR_NOT_TLS case
- Date: Wed, 4 Jan 2012 15:49:44 +0000 (UTC)
commit 6f5b594da98a7f636bb04b00710a6258d45ccb0b
Author: Dan Winship <danw gnome org>
Date: Tue Oct 18 13:51:59 2011 -0400
gnutls: Add another G_TLS_ERROR_NOT_TLS case
If we get a GNUTLS_E_DECRYPTION_FAILED during the handshake, assume
the peer is just dumb, and return G_TLS_ERROR_NOT_TLS so, eg, libsoup
can fall back to SSLv3.
https://bugzilla.gnome.org/show_bug.cgi?id=662104
tls/gnutls/gtlsconnection-gnutls.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tls/gnutls/gtlsconnection-gnutls.c b/tls/gnutls/gtlsconnection-gnutls.c
index f8d624a..c636f89 100644
--- a/tls/gnutls/gtlsconnection-gnutls.c
+++ b/tls/gnutls/gtlsconnection-gnutls.c
@@ -522,6 +522,7 @@ end_gnutls_io (GTlsConnectionGnutls *gnutls,
if (g_error_matches (gnutls->priv->error, G_IO_ERROR, G_IO_ERROR_FAILED) ||
status == GNUTLS_E_UNEXPECTED_PACKET_LENGTH ||
status == GNUTLS_E_FATAL_ALERT_RECEIVED ||
+ status == GNUTLS_E_DECRYPTION_FAILED ||
status == GNUTLS_E_UNSUPPORTED_VERSION_PACKET)
{
g_clear_error (&gnutls->priv->error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]