summaryrefslogtreecommitdiff
path: root/doc/examples/ex-client-anon.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-08-06 17:54:50 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-08-06 18:04:16 +0200
commit5cd6ecd192636509a4dd66bdd295ebe19fc67b6c (patch)
tree4c4ed190be38827028e41a2f6668932437382d51 /doc/examples/ex-client-anon.c
parentafab4ff9bdf459f02d73ec6ffabb1b15a633c84b (diff)
downloadgnutls-5cd6ecd192636509a4dd66bdd295ebe19fc67b6c.tar.gz
Added gnutls_handshake_timeout().
Diffstat (limited to 'doc/examples/ex-client-anon.c')
-rw-r--r--doc/examples/ex-client-anon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/ex-client-anon.c b/doc/examples/ex-client-anon.c
index ba56934461..b4befa88e0 100644
--- a/doc/examples/ex-client-anon.c
+++ b/doc/examples/ex-client-anon.c
@@ -57,7 +57,7 @@ main (void)
*/
do
{
- ret = gnutls_handshake (session);
+ ret = gnutls_handshake_timeout (session, GNUTLS_DEFAULT_HANDSHAKE_TIMEOUT);
}
while (ret < 0 && gnutls_error_is_fatal (ret) == 0);