diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-04-07 13:34:11 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-04-07 13:34:11 +0200 |
commit | f0145a76fcbd2ab87163fb67b9cf58749c12fa90 (patch) | |
tree | a9577b5f48be3a84d40204d548e83943aec22f73 /lib/gnutls_state.c | |
parent | fd4fddfd02ba49b49f99311399cde1a2092b1285 (diff) | |
download | gnutls-f0145a76fcbd2ab87163fb67b9cf58749c12fa90.tar.gz |
Removed the RSA-EXPORT ciphersuites.
Diffstat (limited to 'lib/gnutls_state.c')
-rw-r--r-- | lib/gnutls_state.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/lib/gnutls_state.c b/lib/gnutls_state.c index 2f460a6b92..5d05254ca0 100644 --- a/lib/gnutls_state.c +++ b/lib/gnutls_state.c @@ -42,7 +42,6 @@ #include <auth/anon.h> #include <auth/psk.h> #include <algorithms.h> -#include <gnutls_rsa_export.h> #include <gnutls_extensions.h> #include <system.h> #include <random.h> @@ -235,11 +234,6 @@ deinit_internal_params (gnutls_session_t session) gnutls_dh_params_deinit (session->internals.params.dh_params); #endif -#ifdef ENABLE_RSA_EXPORT - if (session->internals.params.free_rsa_params) - gnutls_rsa_params_deinit (session->internals.params.rsa_params); -#endif - _gnutls_handshake_hash_buffers_clear (session); memset (&session->internals.params, 0, sizeof (session->internals.params)); @@ -591,45 +585,6 @@ _gnutls_dh_set_secret_bits (gnutls_session_t session, unsigned bits) return 0; } -/* This function will set in the auth info structure the - * RSA exponent and the modulus. - */ -int -_gnutls_rsa_export_set_pubkey (gnutls_session_t session, - bigint_t exponent, bigint_t modulus) -{ - cert_auth_info_t info; - int ret; - - info = _gnutls_get_auth_info (session); - if (info == NULL) - return GNUTLS_E_INTERNAL_ERROR; - - if (info->rsa_export.modulus.data) - _gnutls_free_datum (&info->rsa_export.modulus); - - if (info->rsa_export.exponent.data) - _gnutls_free_datum (&info->rsa_export.exponent); - - ret = _gnutls_mpi_dprint_lz (modulus, &info->rsa_export.modulus); - if (ret < 0) - { - gnutls_assert (); - return ret; - } - - ret = _gnutls_mpi_dprint_lz (exponent, &info->rsa_export.exponent); - if (ret < 0) - { - gnutls_assert (); - _gnutls_free_datum (&info->rsa_export.modulus); - return ret; - } - - return 0; -} - - /* Sets the prime and the generator in the auth info structure. */ int |