diff options
author | Tim Ruehsen <tim.ruehsen@gmx.de> | 2016-07-25 13:00:12 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-07-26 14:23:51 +0200 |
commit | 0f67ccecddbe6533b51e74c955a4629654e79ae3 (patch) | |
tree | a5a33b5478f294f13f23f261ba4ec26c00960aa7 /lib/gnutls_int.h | |
parent | e340e7a65d9a255121de2190d194af20e8e7779e (diff) | |
download | gnutls-0f67ccecddbe6533b51e74c955a4629654e79ae3.tar.gz |
Support TCP Fast Open
This introduces a new function gnutls_transport_set_fastopen().
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Signed-off-by: Tim Ruehsen <tim.ruehsen@gmx.de>
Diffstat (limited to 'lib/gnutls_int.h')
-rw-r--r-- | lib/gnutls_int.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h index bb3739c04e..f7739aedab 100644 --- a/lib/gnutls_int.h +++ b/lib/gnutls_int.h @@ -92,6 +92,7 @@ typedef struct { #include <gnutls/gnutls.h> #include <gnutls/dtls.h> #include <gnutls/abstract.h> +#include <gnutls/socket.h> #include <system.h> /* in case we compile with system headers taking priority, we @@ -751,6 +752,14 @@ typedef struct { unsigned int packets_dropped; } dtls_st; +typedef struct tfo_st { + int fd; + int flags; + bool connect_only; /* a previous sendmsg() failed, attempting connect() */ + struct sockaddr_storage connect_addr; + socklen_t connect_addrlen; +} tfo_st; + typedef struct { /* holds all the parsed data received by the record layer */ mbuffer_head_st record_buffer; @@ -1022,6 +1031,9 @@ typedef struct { bool false_start_used; /* non-zero if false start was used for appdata */ + /* Needed for TCP Fast Open (TFO), set by gnutls_transport_set_fastopen() */ + tfo_st tfo; + /* If you add anything here, check _gnutls_handshake_internal_state_clear(). */ } internals_st; |