summaryrefslogtreecommitdiff
path: root/lib/gnutls_cert.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-08-30 23:34:51 +0300
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-08-30 23:34:51 +0300
commite9b9c1c518cb3751f54b114d2f847b0b59662d54 (patch)
treeb9016beb0818643ebbcc386ebb38ad77935a84aa /lib/gnutls_cert.c
parent6d25d31976892cadd8c8cef7c93509bd6ede7dbe (diff)
downloadgnutls-e9b9c1c518cb3751f54b114d2f847b0b59662d54.tar.gz
Optimizations in RSA-PSK by removing unneeded code.
Diffstat (limited to 'lib/gnutls_cert.c')
-rw-r--r--lib/gnutls_cert.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/lib/gnutls_cert.c b/lib/gnutls_cert.c
index a89adf4332..3697836af0 100644
--- a/lib/gnutls_cert.c
+++ b/lib/gnutls_cert.c
@@ -139,44 +139,6 @@ gnutls_certificate_free_ca_names (gnutls_certificate_credentials_t sc)
_gnutls_free_datum (&sc->x509_rdn_sequence);
}
-/*-
- * _gnutls_certificate_get_rsa_params - Returns the RSA parameters pointer
- * @rsa_params: holds the RSA parameters or NULL.
- * @func: function to retrieve the parameters or NULL.
- * @session: The session.
- *
- * This function will return the rsa parameters pointer.
- -*/
-gnutls_rsa_params_t
-_gnutls_certificate_get_rsa_params (gnutls_rsa_params_t rsa_params,
- gnutls_params_function * func,
- gnutls_session_t session)
-{
- gnutls_params_st params;
- int ret;
-
- if (session->internals.params.rsa_params)
- {
- return session->internals.params.rsa_params;
- }
-
- if (rsa_params)
- {
- session->internals.params.rsa_params = rsa_params;
- }
- else if (func)
- {
- ret = func (session, GNUTLS_PARAMS_RSA_EXPORT, &params);
- if (ret == 0 && params.type == GNUTLS_PARAMS_RSA_EXPORT)
- {
- session->internals.params.rsa_params = params.params.rsa_export;
- session->internals.params.free_rsa_params = params.deinit;
- }
- }
-
- return session->internals.params.rsa_params;
-}
-
/**
* gnutls_certificate_free_credentials: