diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-04-07 20:24:10 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-04-07 20:24:10 +0200 |
commit | 0422d5b01ba349ce9d266353c967b2f33a2dc4bd (patch) | |
tree | 5543ecc116da0c7ff61ccc4bcf4f6efc4c0f468f /lib/crypto-backend.c | |
parent | b05cf9b5b9d1200c4128b53f48e35891b9215cf0 (diff) | |
download | gnutls-0422d5b01ba349ce9d266353c967b2f33a2dc4bd.tar.gz |
removed unused functions
Diffstat (limited to 'lib/crypto-backend.c')
-rw-r--r-- | lib/crypto-backend.c | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/lib/crypto-backend.c b/lib/crypto-backend.c index 3c427601d2..714f86f9fb 100644 --- a/lib/crypto-backend.c +++ b/lib/crypto-backend.c @@ -383,76 +383,6 @@ const gnutls_crypto_digest_st return _get_algo(&glob_dl, algo); } -/*- - * gnutls_crypto_bigint_register: - * @priority: is the priority of the interface - * @s: is a structure holding new interface's data - * - * This function will register an interface for gnutls to operate - * on big integers. Any interface registered will override - * the included interface. The interface with the lowest - * priority will be used by gnutls. - * - * Note that the bigint interface must interoperate with the public - * key interface. Thus if this interface is updated the - * gnutls_crypto_pk_register() should also be used. - * - * This function should be called before gnutls_global_init(). - * - * For simplicity you can use the convenience gnutls_crypto_bigint_register() - * macro. - * - * Returns: %GNUTLS_E_SUCCESS on success, otherwise a negative error code. - * - * Since: 2.6.0 - -*/ -int -gnutls_crypto_bigint_register(int priority, - const gnutls_crypto_bigint_st * s) -{ - if (crypto_bigint_prio > priority) { - memcpy(&_gnutls_mpi_ops, s, sizeof(*s)); - crypto_bigint_prio = priority; - return 0; - } - - return GNUTLS_E_CRYPTO_ALREADY_REGISTERED; -} - -/*- - * gnutls_crypto_pk_register: - * @priority: is the priority of the interface - * @s: is a structure holding new interface's data - * - * This function will register an interface for gnutls to operate - * on public key operations. Any interface registered will override - * the included interface. The interface with the lowest - * priority will be used by gnutls. - * - * Note that the bigint interface must interoperate with the bigint - * interface. Thus if this interface is updated the - * gnutls_crypto_bigint_register() should also be used. - * - * This function should be called before gnutls_global_init(). - * - * For simplicity you can use the convenience gnutls_crypto_pk_register() - * macro. - * - * Returns: %GNUTLS_E_SUCCESS on success, otherwise a negative error code. - * - * Since: 2.6.0 - -*/ -int gnutls_crypto_pk_register(int priority, const gnutls_crypto_pk_st * s) -{ - if (crypto_pk_prio > priority) { - memcpy(&_gnutls_pk_ops, s, sizeof(*s)); - crypto_pk_prio = priority; - return 0; - } - - return GNUTLS_E_CRYPTO_ALREADY_REGISTERED; -} - /** * gnutls_crypto_register_mac: * @algorithm: is the gnutls MAC identifier |