[glib-networking] 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] gnutls: Add another G_TLS_ERROR_NOT_TLS case
- Date: Tue, 18 Oct 2011 17:53:53 +0000 (UTC)
commit e7580c1d15c12bb8bae81d5cadaa9e0c3713ab60
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 90afe07..c27aee7 100644
--- a/tls/gnutls/gtlsconnection-gnutls.c
+++ b/tls/gnutls/gtlsconnection-gnutls.c
@@ -520,6 +520,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]