summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
authorWojciech Polak <polak@gnu.org>2004-01-03 15:53:40 +0000
committerWojciech Polak <polak@gnu.org>2004-01-03 15:53:40 +0000
commit7959c6693b091a59854c10ca28edb4d20eb1e3c2 (patch)
treec01f5cfb3a762ba9e7cce256a53febc1b34b80f0 /auth
parentaafb4c8e2162d400dca852693da4ef8deae654fb (diff)
downloadmailutils-7959c6693b091a59854c10ca28edb4d20eb1e3c2.tar.gz
mailutils-7959c6693b091a59854c10ca28edb4d20eb1e3c2.tar.bz2
(generate_dh_params): Adapt to GnuTLS >= 1.0.0.
Diffstat (limited to 'auth')
-rw-r--r--auth/tls.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/auth/tls.c b/auth/tls.c
index 0a87f6dc7..a166e1c4f 100644
--- a/auth/tls.c
+++ b/auth/tls.c
@@ -1,5 +1,5 @@
/* GNU Mailutils -- a suite of utilities for electronic mail
- Copyright (C) 2003 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2004 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -215,14 +215,8 @@ mu_deinit_tls_libs (void)
static void
generate_dh_params (void)
{
- gnutls_datum prime, generator;
-
gnutls_dh_params_init (&dh_params);
- gnutls_dh_params_generate (&prime, &generator, DH_BITS);
- gnutls_dh_params_set (dh_params, prime, generator, DH_BITS);
-
- free (prime.data);
- free (generator.data);
+ gnutls_dh_params_generate2 (dh_params, DH_BITS);
}
static gnutls_session
@@ -612,7 +606,7 @@ tls_stream_create_client_from_tcp (stream_t *stream, stream_t tcp_str,
return rc;
}
-
#endif /* WITH_TLS */
/* EOF */
+

Return to:

Send suggestions and report system problems to the System administrator.