diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-10-13 13:10:52 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-10-13 13:10:52 +0200 |
commit | b885f3fac1c15d7a58b60cb71fb3276fc004ac88 (patch) | |
tree | 51af48ffc24ef7f426f35f3fd4ffb4c45c308e3d /doc | |
parent | 48ffff23e5dba74e2d504553c4c5579cee53ed7b (diff) | |
download | gnutls-b885f3fac1c15d7a58b60cb71fb3276fc004ac88.tar.gz |
doc: set a default handshake timeout on example server
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/ex-serv-x509.c | 2 |
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); |