gnutls: Add another G_TLS_ERROR_NOT_TLS case
authorDan Winship <danw@gnome.org>
Tue, 18 Oct 2011 17:51:59 +0000 (13:51 -0400)
committerDan Winship <danw@gnome.org>
Wed, 4 Jan 2012 15:41:15 +0000 (10:41 -0500)
commit6f5b594da98a7f636bb04b00710a6258d45ccb0b
tree8e1a8190880c6b9aef91eb60f348f44c8ab35af4
parente75c08873175c2a0fd469923ef36a854d9f09014
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