summaryrefslogtreecommitdiff
path: root/src/common/crypto.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-04-30 22:42:50 +0000
committerNick Mathewson <nickm@torproject.org>2007-04-30 22:42:50 +0000
commit6a27dd8284d3d7dd3426e74a9f820c1c283bad5d (patch)
treece53ddd14b5cb9fb2df3f335bdbf7f89282e4243 /src/common/crypto.h
parent4b250bbbb7c3c807aa252a2c024f5032b7afe250 (diff)
downloadtor-6a27dd8284d3d7dd3426e74a9f820c1c283bad5d.tar.gz
tor-6a27dd8284d3d7dd3426e74a9f820c1c283bad5d.zip
r12595@catbus: nickm | 2007-04-30 18:32:34 -0400
Move private function declarations from crypto.c into a new #ifdef CRYPTO_PRIVATE block in crypto.h svn:r10074
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r--src/common/crypto.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h
index 319113be78..c85fc118e6 100644
--- a/src/common/crypto.h
+++ b/src/common/crypto.h
@@ -173,5 +173,12 @@ int digest_from_base64(char *digest, const char *d64);
void secret_to_key(char *key_out, size_t key_out_len, const char *secret,
size_t secret_len, const char *s2k_specifier);
+#ifdef CRYPTO_PRIVATE
+/* Prototypes for private functions only used by tortls.c and crypto.c */
+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);
+#endif
+
#endif