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
This commit is contained in:
Nick Mathewson 2007-06-13 22:39:10 +00:00
parent 649a802322
commit a8e88adba4

View File

@ -176,12 +176,13 @@ void secret_to_key(char *key_out, size_t key_out_len, const char *secret,
#ifdef CRYPTO_PRIVATE #ifdef CRYPTO_PRIVATE
/* Prototypes for private functions only used by tortls.c and crypto.c */ /* Prototypes for private functions only used by tortls.c and crypto.c */
typedef struct rsa_st RSA; struct rsa_st;
typedef struct evp_pkey_st EVP_PKEY; struct evp_pkey_st;
typedef struct dh_st DH; struct dh_st;
crypto_pk_env_t *_crypto_new_pk_env_rsa(RSA *rsa); crypto_pk_env_t *_crypto_new_pk_env_rsa(struct rsa_st *rsa);
EVP_PKEY *_crypto_pk_env_get_evp_pkey(crypto_pk_env_t *env, int private); struct evp_pkey_st *_crypto_pk_env_get_evp_pkey(crypto_pk_env_t *env,
DH *_crypto_dh_env_get_dh(crypto_dh_env_t *dh); 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*/ /* 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, int crypto_pk_read_private_key_from_string(crypto_pk_env_t *env,
const char *s); const char *s);