summaryrefslogtreecommitdiff
path: root/doc/examples/ex-client-srp.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-12-28 10:49:56 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-12-28 16:08:55 +0200
commit87ed97f3046dcc7f80d4ae70b40045f3a82112ed (patch)
treee76c1b95c806f62894049937cc6bdf7aa1deafb2 /doc/examples/ex-client-srp.c
parentc279f32d5ffc41ab41a1441687dcb9daea5e6475 (diff)
downloadgnutls-87ed97f3046dcc7f80d4ae70b40045f3a82112ed.tar.gz
updated examples and added new "handling alerts" section.
Diffstat (limited to 'doc/examples/ex-client-srp.c')
-rw-r--r--doc/examples/ex-client-srp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/examples/ex-client-srp.c b/doc/examples/ex-client-srp.c
index b8ecc2b5a8..5a753abff3 100644
--- a/doc/examples/ex-client-srp.c
+++ b/doc/examples/ex-client-srp.c
@@ -62,7 +62,11 @@ main (void)
/* Perform the TLS handshake
*/
- ret = gnutls_handshake (session);
+ do
+ {
+ ret = gnutls_handshake (session);
+ }
+ while (gnutls_error_is_fatal (ret) == 0);
if (ret < 0)
{