summaryrefslogtreecommitdiff
path: root/doc/tex/serv1.tex
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-09-02 09:11:03 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-09-02 09:11:03 +0000
commit669eb141353f354ce302921d1b495914f08859af (patch)
tree4b703dd4f314a1b76ae05b88637352b7eccf7f1d /doc/tex/serv1.tex
parent401483165735ba64053a40c0bcc176e160cd1743 (diff)
downloadgnutls-669eb141353f354ce302921d1b495914f08859af.tar.gz
*** empty log message ***
Diffstat (limited to 'doc/tex/serv1.tex')
-rw-r--r--doc/tex/serv1.tex6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/tex/serv1.tex b/doc/tex/serv1.tex
index ec64a13285..fc06d6f53f 100644
--- a/doc/tex/serv1.tex
+++ b/doc/tex/serv1.tex
@@ -39,7 +39,7 @@ gnutls_session initialize_tls_session()
const int comp_priority[] = { GNUTLS_COMP_NULL, 0 };
const int mac_priority[] = { GNUTLS_MAC_SHA, GNUTLS_MAC_MD5, 0 };
- gnutls_session_init(&session, GNUTLS_SERVER);
+ gnutls_init(&session, GNUTLS_SERVER);
gnutls_protocol_set_priority(session, protocol_priority);
gnutls_cipher_set_priority(session, cipher_priority);
@@ -147,7 +147,7 @@ int main()
ret = gnutls_handshake( session);
if (ret < 0) {
close(sd);
- gnutls_session_deinit(session);
+ gnutls_deinit(session);
fprintf(stderr, "*** Handshake has failed (%s)\n\n",
gnutls_strerror(ret));
continue;
@@ -192,7 +192,7 @@ int main()
*/
close(sd);
- gnutls_session_deinit(session);
+ gnutls_deinit(session);
}
close(listen_sd);