summaryrefslogtreecommitdiff
path: root/src/tests.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-04-09 18:50:59 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-04-09 18:50:59 +0200
commit2452670d63228a3f4b01d6e82414348ea183cf6c (patch)
treea98f03d8c65e9cddc3dc14cef86ea1ed9cb21bcc /src/tests.c
parentb750210132daffe5e87261f5bcbfd90e627fd66b (diff)
downloadgnutls-2452670d63228a3f4b01d6e82414348ea183cf6c.tar.gz
removed the RSA-EXPORT checks
Diffstat (limited to 'src/tests.c')
-rw-r--r--src/tests.c97
1 files changed, 1 insertions, 96 deletions
diff --git a/src/tests.c b/src/tests.c
index cbf792cc6f..066bde4417 100644
--- a/src/tests.c
+++ b/src/tests.c
@@ -112,7 +112,7 @@ char prio_str[512] = "";
#define ALL_COMP "+COMP-NULL"
#define ALL_MACS "+SHA1:+MD5"
#define ALL_CERTTYPES "+CTYPE-X509"
-#define ALL_KX "+RSA:+DHE-RSA:+DHE-DSS:+ANON-DH:+RSA-EXPORT:+ECDHE-RSA:+ECDHE-ECDSA:+ANON-ECDH"
+#define ALL_KX "+RSA:+DHE-RSA:+DHE-DSS:+ANON-DH:+ECDHE-RSA:+ECDHE-ECDSA:+ANON-ECDH"
#define INIT_STR "NONE:"
char rest[128] = "%UNSAFE_RENEGOTIATION:+SIGN-ALL:+CURVE-ALL";
@@ -178,85 +178,6 @@ test_server (gnutls_session_t session)
return TEST_SUCCEED;
}
-
-static int export_true = 0;
-static gnutls_datum_t exp = { NULL, 0 }, mod =
-
-{
-NULL, 0};
-
-#ifdef ENABLE_RSA_EXPORT
-test_code_t
-test_export (gnutls_session_t session)
-{
- int ret;
-
- sprintf (prio_str, INIT_STR
- "+ARCFOUR-40:+RSA-EXPORT:" ALL_COMP ":" ALL_CERTTYPES ":%s:"
- ALL_MACS ":" ALL_KX ":%s", protocol_str, rest);
- _gnutls_priority_set_direct (session, prio_str);
-
- gnutls_credentials_set (session, GNUTLS_CRD_CERTIFICATE, xcred);
-
- ret = do_handshake (session);
-
- if (ret == TEST_SUCCEED)
- {
- export_true = 1;
- gnutls_rsa_export_get_pubkey (session, &exp, &mod);
- }
-
- return ret;
-}
-
-test_code_t
-test_export_info (gnutls_session_t session)
-{
- int ret2, ret;
- gnutls_datum_t exp2, mod2;
- const char *print;
-
- if (verbose == 0 || export_true == 0)
- return TEST_IGNORE;
-
- sprintf (prio_str, INIT_STR
- "+ARCFOUR-40:+RSA-EXPORT:" ALL_COMP ":" ALL_CERTTYPES ":%s:"
- ALL_MACS ":" ALL_KX ":%s", protocol_str, rest);
- _gnutls_priority_set_direct (session, prio_str);
-
- gnutls_credentials_set (session, GNUTLS_CRD_CERTIFICATE, xcred);
-
- ret = do_handshake (session);
-
- if (ret == TEST_SUCCEED)
- {
- ret2 = gnutls_rsa_export_get_pubkey (session, &exp2, &mod2);
- if (ret2 >= 0)
- {
- printf ("\n");
-
- print = raw_to_string (exp2.data, exp2.size);
- if (print)
- printf (" Exponent [%d bits]: %s\n", exp2.size * 8, print);
-
- print = raw_to_string (mod2.data, mod2.size);
- if (print)
- printf (" Modulus [%d bits]: %s\n", mod2.size * 8, print);
-
- if (mod2.size != mod.size || exp2.size != exp.size ||
- memcmp (mod2.data, mod.data, mod.size) != 0 ||
- memcmp (exp2.data, exp.data, exp.size) != 0)
- {
- printf
- (" (server uses different public keys per connection)\n");
- }
- }
- }
-
- return ret;
-}
-#endif
-
static gnutls_datum_t pubkey = { NULL, 0 };
static gnutls_ecc_curve_t curve = GNUTLS_ECC_CURVE_INVALID;
@@ -652,22 +573,6 @@ test_arcfour (gnutls_session_t session)
}
test_code_t
-test_arcfour_40 (gnutls_session_t session)
-{
- int ret;
-
- sprintf (prio_str,
- INIT_STR "+ARCFOUR-40:" ALL_COMP ":" ALL_CERTTYPES ":%s:" ALL_MACS
- ":" "+RSA-EXPORT" ":%s", protocol_str, rest);
- _gnutls_priority_set_direct (session, prio_str);
-
- gnutls_credentials_set (session, GNUTLS_CRD_CERTIFICATE, xcred);
-
- ret = do_handshake (session);
- return ret;
-}
-
-test_code_t
test_tls1 (gnutls_session_t session)
{
int ret;