summaryrefslogtreecommitdiff
path: root/tests/dhepskself.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2007-02-05 12:50:56 +0000
committerSimon Josefsson <simon@josefsson.org>2007-02-05 12:50:56 +0000
commit3ecb8ef3b501b96bb8f7983b9ac96c0747497a35 (patch)
treeb810ff6be3fce8de81723fa3f94dbd12f1362463 /tests/dhepskself.c
parent8b79faaa445c04396f0779f420ee35a720022630 (diff)
downloadgnutls-3ecb8ef3b501b96bb8f7983b9ac96c0747497a35.tar.gz
Use static DH.
Diffstat (limited to 'tests/dhepskself.c')
-rw-r--r--tests/dhepskself.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/dhepskself.c b/tests/dhepskself.c
index 29cfddf1eb..5c0c4edfd2 100644
--- a/tests/dhepskself.c
+++ b/tests/dhepskself.c
@@ -215,16 +215,14 @@ static gnutls_dh_params_t dh_params;
static int
generate_dh_params (void)
{
-
+ const gnutls_datum_t p3 = { pkcs3, strlen (pkcs3) };
/* 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;
+ return gnutls_dh_params_import_pkcs3 (dh_params, &p3, GNUTLS_X509_FMT_PEM);
}
static int