diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-06-13 18:15:53 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-06-13 18:15:53 +0000 |
commit | 3637ee0e596c08edf271563ef4ddbbebcfda7873 (patch) | |
tree | 1143f592526d1a509d6858e5ee6bdd9f49c02600 /src/common/crypto.h | |
parent | 89b7021a8b80fc324439726ebe58087098200a8e (diff) | |
download | tor-3637ee0e596c08edf271563ef4ddbbebcfda7873.tar.gz tor-3637ee0e596c08edf271563ef4ddbbebcfda7873.zip |
r13383@catbus: nickm | 2007-06-13 13:53:04 -0400
Expose a function to parse a private key from a string as CRYPTO_PRIVATE. For testing.
svn:r10583
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r-- | src/common/crypto.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h index 62c7674bbf..a1f6fc1f87 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -176,9 +176,15 @@ void secret_to_key(char *key_out, size_t key_out_len, const char *secret, #ifdef CRYPTO_PRIVATE /* Prototypes for private functions only used by tortls.c and crypto.c */ +typedef struct rsa_st RSA; +typedef struct evp_pkey_st EVP_PKEY; +typedef struct dh_st DH; crypto_pk_env_t *_crypto_new_pk_env_rsa(RSA *rsa); EVP_PKEY *_crypto_pk_env_get_evp_pkey(crypto_pk_env_t *env, int private); DH *_crypto_dh_env_get_dh(crypto_dh_env_t *dh); +/* Prototypes for private functions only used by crypto.c and test.c*/ +int crypto_pk_read_private_key_from_string(crypto_pk_env_t *env, + const char *s); #endif #endif |