summaryrefslogtreecommitdiff
path: root/lib/auth_rsa.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-08-10 10:18:16 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-08-10 11:42:28 +0200
commit63d331755f55fc121481b42d7ac3210c89603ea8 (patch)
tree27057a9dc890dc52384d72c13542868219efa90c /lib/auth_rsa.c
parent14aa5a5f99f1e50a3643a008c8aed358a1517def (diff)
downloadgnutls-remove-rsa-export.tar.gz
Removed support for EXPORT ciphersuitesremove-rsa-export
Diffstat (limited to 'lib/auth_rsa.c')
-rw-r--r--lib/auth_rsa.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/lib/auth_rsa.c b/lib/auth_rsa.c
index 068c8e2caa..f2a6019a8b 100644
--- a/lib/auth_rsa.c
+++ b/lib/auth_rsa.c
@@ -97,37 +97,6 @@ _gnutls_get_public_rsa_params (gnutls_session_t session,
}
- /* EXPORT case: */
- if (_gnutls_cipher_suite_get_kx_algo
- (&session->security_parameters.current_cipher_suite) ==
- GNUTLS_KX_RSA_EXPORT
- && _gnutls_mpi_get_nbits (peer_cert.params[0]) > 512)
- {
-
- _gnutls_gcert_deinit (&peer_cert);
-
- if (session->key->rsa[0] == NULL || session->key->rsa[1] == NULL)
- {
- gnutls_assert ();
- return GNUTLS_E_INTERNAL_ERROR;
- }
-
- if (*params_len < 2)
- {
- gnutls_assert ();
- return GNUTLS_E_INTERNAL_ERROR;
- }
- *params_len = 2;
- for (i = 0; i < *params_len; i++)
- {
- params[i] = _gnutls_mpi_copy (session->key->rsa[i]);
- }
-
- return 0;
- }
-
- /* end of export case */
-
if (*params_len < peer_cert.params_size)
{
gnutls_assert ();