diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-06-13 22:39:10 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-06-13 22:39:10 +0000 |
commit | a8e88adba4dc042ce7e04e69e705f0e43c1452ca (patch) | |
tree | 977c865f001a7999db19d257e36b2cb675928be5 /src/common/crypto.h | |
parent | 649a80232283155f568f1e05464ffbf2b20647bd (diff) | |
download | tor-a8e88adba4dc042ce7e04e69e705f0e43c1452ca.tar.gz tor-a8e88adba4dc042ce7e04e69e705f0e43c1452ca.zip |
r13410@catbus: nickm | 2007-06-13 18:39:05 -0400
Fix compilation on compilers that do not allow you to typedef the same type twice.
svn:r10598
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r-- | src/common/crypto.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h index a1f6fc1f87..5dc52f3296 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -176,12 +176,13 @@ 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); +struct rsa_st; +struct evp_pkey_st; +struct dh_st; +crypto_pk_env_t *_crypto_new_pk_env_rsa(struct rsa_st *rsa); +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); /* 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); |