summaryrefslogtreecommitdiff
path: root/tests/pskself.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2005-11-15 17:35:02 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2005-11-15 17:35:02 +0000
commit28742fa959f05142f2659f73a5ea1260175179a7 (patch)
treeb29435e31924e409e58bf034cf30092e5e39cf2e /tests/pskself.c
parentdea22989089a7c2de01a606a9e6ed60caee2742f (diff)
downloadgnutls-28742fa959f05142f2659f73a5ea1260175179a7.tar.gz
added DHE-PSK ciphersuites and some cleanups.
Diffstat (limited to 'tests/pskself.c')
-rw-r--r--tests/pskself.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/pskself.c b/tests/pskself.c
index 27d2f95a19..91bf176e44 100644
--- a/tests/pskself.c
+++ b/tests/pskself.c
@@ -194,28 +194,9 @@ initialize_tls_session (void)
gnutls_credentials_set (session, GNUTLS_CRD_PSK, server_pskcred);
- gnutls_dh_set_prime_bits (session, DH_BITS);
-
return session;
}
-static gnutls_dh_params_t dh_params;
-
-static int
-generate_dh_params (void)
-{
-
- /* Generate Diffie Hellman parameters - for use with DHE
- * kx algorithms. These should be discarded and regenerated
- * once a day, once a week or once a month. Depending on the
- * security requirements.
- */
- gnutls_dh_params_init (&dh_params);
- gnutls_dh_params_generate2 (dh_params, DH_BITS);
-
- return 0;
-}
-
static int
pskfunc (gnutls_session_t session, const char *username, gnutls_datum_t * key)
{