diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-08-07 21:38:05 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-08-07 21:50:32 +0200 |
commit | 65b14abc24f27840efedb75a6213287a9b53a467 (patch) | |
tree | 3d0c678ae820241e5199e7e9c6ee3a7d9605057b /doc/examples/ex-client-dtls.c | |
parent | 5cd6ecd192636509a4dd66bdd295ebe19fc67b6c (diff) | |
download | gnutls-65b14abc24f27840efedb75a6213287a9b53a467.tar.gz |
gnutls_handshake_timeout() -> gnutls_handshake_set_timeout()
Diffstat (limited to 'doc/examples/ex-client-dtls.c')
-rw-r--r-- | doc/examples/ex-client-dtls.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/examples/ex-client-dtls.c b/doc/examples/ex-client-dtls.c index 6b97ba619b..412e149be1 100644 --- a/doc/examples/ex-client-dtls.c +++ b/doc/examples/ex-client-dtls.c @@ -69,11 +69,12 @@ main (void) /* set the connection MTU */ gnutls_dtls_set_mtu (session, 1000); + gnutls_handshake_set_timeout (session, GNUTLS_DEFAULT_HANDSHAKE_TIMEOUT); /* Perform the TLS handshake */ do { - ret = gnutls_handshake_timeout (session, GNUTLS_DEFAULT_HANDSHAKE_TIMEOUT); + ret = gnutls_handshake (session); } while (ret < 0 && gnutls_error_is_fatal (ret) == 0); |