summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-10-13 13:10:52 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-10-13 13:10:52 +0200
commitb885f3fac1c15d7a58b60cb71fb3276fc004ac88 (patch)
tree51af48ffc24ef7f426f35f3fd4ffb4c45c308e3d
parent48ffff23e5dba74e2d504553c4c5579cee53ed7b (diff)
downloadgnutls-b885f3fac1c15d7a58b60cb71fb3276fc004ac88.tar.gz
doc: set a default handshake timeout on example server
-rw-r--r--doc/examples/ex-serv-x509.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/examples/ex-serv-x509.c b/doc/examples/ex-serv-x509.c
index da376037b9..b850ac21e5 100644
--- a/doc/examples/ex-serv-x509.c
+++ b/doc/examples/ex-serv-x509.c
@@ -129,6 +129,8 @@ int main(void)
*/
gnutls_certificate_server_set_request(session,
GNUTLS_CERT_IGNORE);
+ gnutls_handshake_set_timeout(session,
+ GNUTLS_DEFAULT_HANDSHAKE_TIMEOUT);
sd = accept(listen_sd, (struct sockaddr *) &sa_cli,
&client_len);