gtlsconnection-gnutls: Only finish implicit handshake if handshake is implicit
authorOlivier Crête <olivier.crete@collabora.com>
Wed, 10 Apr 2013 18:50:34 +0000 (14:50 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Wed, 10 Apr 2013 22:15:02 +0000 (18:15 -0400)
commitb2b006a81ece97c2331e46668cc33b56e63c97b1
tree6e64516fd5cfe875db905144445a9c25eeaa4193
parent6be4711c22053a0be84c19b0ad1e7020dc2793d4
gtlsconnection-gnutls: Only finish implicit handshake if handshake is implicit

Also add a test to prevent regressions, this test tries to do a async handshake,
and waits for the actual handshake to finish, but before allowing the callback to happen
it tries to do a write.

https://bugzilla.gnome.org/show_bug.cgi?id=697754
tls/gnutls/gtlsconnection-gnutls.c
tls/tests/connection.c