diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-01-25 18:07:02 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-01-25 18:07:02 -0500 |
commit | c939c953aef7018f9581d934ef9713e50bd8df16 (patch) | |
tree | e467de6b077d24085e8b100ac0ed6f4339fba30f | |
parent | 9e7691b05c77261290b10ef433bf377f02a98705 (diff) | |
download | tor-c939c953aef7018f9581d934ef9713e50bd8df16.tar.gz tor-c939c953aef7018f9581d934ef9713e50bd8df16.zip |
Remove an unused function in crypto.c
-rw-r--r-- | src/common/crypto.c | 11 | ||||
-rw-r--r-- | src/common/crypto.h | 1 |
2 files changed, 0 insertions, 12 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index 5264fd8085..4223b10a7f 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -326,17 +326,6 @@ _crypto_new_pk_env_rsa(RSA *rsa) return env; } -/** used by tortls.c: wrap the RSA from an evp_pkey in a crypto_pk_env_t. - * returns NULL if this isn't an RSA key. */ -crypto_pk_env_t * -_crypto_new_pk_env_evp_pkey(EVP_PKEY *pkey) -{ - RSA *rsa; - if (!(rsa = EVP_PKEY_get1_RSA(pkey))) - return NULL; - return _crypto_new_pk_env_rsa(rsa); -} - /** Helper, used by tor-checkkey.c and tor-gencert.c. Return the RSA from a * crypto_pk_env_t. */ RSA * diff --git a/src/common/crypto.h b/src/common/crypto.h index 7134956731..05185f3f18 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -249,7 +249,6 @@ struct evp_pkey_st; struct dh_st; struct rsa_st *_crypto_pk_env_get_rsa(crypto_pk_env_t *env); crypto_pk_env_t *_crypto_new_pk_env_rsa(struct rsa_st *rsa); -crypto_pk_env_t *_crypto_new_pk_env_evp_pkey(struct evp_pkey_st *pkey); struct evp_pkey_st *_crypto_pk_env_get_evp_pkey(crypto_pk_env_t *env, int private); struct dh_st *_crypto_dh_env_get_dh(crypto_dh_env_t *dh); |