diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-12-28 10:49:56 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-12-28 16:08:55 +0200 |
commit | 87ed97f3046dcc7f80d4ae70b40045f3a82112ed (patch) | |
tree | e76c1b95c806f62894049937cc6bdf7aa1deafb2 /doc/examples/ex-client-srp.c | |
parent | c279f32d5ffc41ab41a1441687dcb9daea5e6475 (diff) | |
download | gnutls-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.c | 6 |
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) { |