summaryrefslogtreecommitdiff
path: root/lib/system
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-08-08 16:30:10 +0200
committerGitLab <gitlab@gitlab.com>2016-08-08 15:55:57 +0000
commit9401d05cddd5b35d1298823bfd5851d4eb033cf7 (patch)
tree5de8ef02ecac80068fffa1ff260d686ba084eccf /lib/system
parent52b485ae7199defa3ecafe9af0f20d4535edf6d8 (diff)
downloadgnutls-9401d05cddd5b35d1298823bfd5851d4eb033cf7.tar.gz
gnutls_transport_set_fastopen: added flags optionstcp-fast-open
This will allow minor modifications to the semantics of the function in the future, without introducing a new API.
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/fastopen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/system/fastopen.c b/lib/system/fastopen.c
index c8655958d4..6a9978006e 100644
--- a/lib/system/fastopen.c
+++ b/lib/system/fastopen.c
@@ -152,6 +152,7 @@ tfo_read(gnutls_transport_ptr_t ptr, void *data, size_t data_size)
* @fd: is the session's socket descriptor
* @connect_addr: is the address we want to connect to
* @connect_addrlen: is the length of @connect_addr
+ * @flags: must be zero
*
* Enables TCP Fast Open (TFO) for the specified TLS client session.
* That means that TCP connection establishment and the transmission
@@ -179,7 +180,8 @@ tfo_read(gnutls_transport_ptr_t ptr, void *data, size_t data_size)
**/
void
gnutls_transport_set_fastopen(gnutls_session_t session,
- int fd, struct sockaddr *connect_addr, socklen_t connect_addrlen)
+ int fd, struct sockaddr *connect_addr, socklen_t connect_addrlen,
+ unsigned int flags)
{
if (connect_addrlen > (socklen_t)sizeof(session->internals.tfo.connect_addr)) {
gnutls_assert();