# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
SUBDIRS = . rsa-md5-collision pkcs1-padding pkcs8-decode pkcs12-decode \
- userid pathlen key-id sha2 safe-renegotiation dsa scripts ecdsa
+ userid pathlen key-id sha2 safe-renegotiation dsa scripts ecdsa \
+ slow
if ENABLE_OPENPGP
SUBDIRS += openpgp-certs
crq_apis init_roundtrip pkcs12_s2k_pem dn2 mini-eagain \
nul-in-x509-names x509_altname pkcs12_encode mini-x509 \
mini-x509-rehandshake rng-fork mini-eagain-dtls cipher-test \
- x509cert x509cert-tl infoaccess keygen #gendh
-#gendh is out because it is too slow in valgrind
+ x509cert x509cert-tl infoaccess
if ENABLE_OPENSSL
ctests += openssl
--- /dev/null
+## Process this file with automake to produce Makefile.in
+# Copyright (C) 2010 Free Software Foundation, Inc.
+#
+# This file is part of GnuTLS.
+#
+# This file is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This file is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this file; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
+AM_CPPFLAGS = \
+ -I$(top_srcdir)/lib/includes \
+ -I$(top_builddir)/lib/includes \
+ -I$(top_srcdir)/tests/
+
+AM_LDFLAGS = -no-install
+LDADD = ../libutils.la \
+ ../../lib/libgnutls.la $(LTLIBGCRYPT) $(LIBSOCKET)
+
+ctests = gendh keygen
+
+check_PROGRAMS = $(ctests)
+TESTS = $(ctests)
+
+EXTRA_DIST = README
#include "utils.h"
+#define MAX_TRIES 2
+
+static int sec_param[MAX_TRIES] = {GNUTLS_SEC_PARAM_WEAK, GNUTLS_SEC_PARAM_NORMAL};
+
static void
tls_log_func (int level, const char *str)
{
if (debug)
gnutls_global_set_log_level (4711);
- for (i = 0; i < 2; i++)
+ for (i = 0; i < MAX_TRIES; i++)
{
for (algorithm = GNUTLS_PK_RSA; algorithm <= GNUTLS_PK_ECC;
algorithm++)
gnutls_x509_privkey_generate (pkey, algorithm,
gnutls_sec_param_to_pk_bits
(algorithm,
- GNUTLS_SEC_PARAM_NORMAL),
+ sec_param[i]),
0);
if (ret < 0)
{