diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-09-25 12:00:39 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-09-25 12:24:33 +0200 |
commit | ad648344bbd3f7e542b7039e9968147219b5487b (patch) | |
tree | 2769a509c947ea3f2ec8a28996a43c90434d4806 /lib/gnutls_int.h | |
parent | aec896fb89b821c0410ff7501145dd6a88f3d2af (diff) | |
download | gnutls-ad648344bbd3f7e542b7039e9968147219b5487b.tar.gz |
protect DTLS clients that don't handle GNUTLS_E_LARGE_PACKET from an infinite loop on handshake
Diffstat (limited to 'lib/gnutls_int.h')
-rw-r--r-- | lib/gnutls_int.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h index 58ffdf1533..deca5fe772 100644 --- a/lib/gnutls_int.h +++ b/lib/gnutls_int.h @@ -961,6 +961,9 @@ typedef struct { /* DTLS session state */ dtls_st dtls; + /* In case of clients that don't handle GNUTLS_E_LARGE_PACKET, don't + * force them into an infinite loop */ + unsigned handshake_large_loops; /* if set it means that the master key was set using * gnutls_session_set_master() rather than being negotiated. */ |