summaryrefslogtreecommitdiff
path: root/src/common/crypto.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-12-18 05:47:28 +0000
committerNick Mathewson <nickm@torproject.org>2008-12-18 05:47:28 +0000
commit9b72e96f95d3048bb1fb83caa03f45b7e6170f93 (patch)
treeb7a053c7630832bfb4fc9cadf5102d0d4b184a11 /src/common/crypto.h
parent5efd2b2fa7bf61dfb6edb1b7f142b8d3c7641ed2 (diff)
downloadtor-9b72e96f95d3048bb1fb83caa03f45b7e6170f93.tar.gz
tor-9b72e96f95d3048bb1fb83caa03f45b7e6170f93.zip
Backport: Fix bug 889: share deep-copied keys between threads to avoid races in reference counts. Bugfix on 0.1.0.1-rc.
svn:r17674
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r--src/common/crypto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h
index e51c0777a9..b45bc85852 100644
--- a/src/common/crypto.h
+++ b/src/common/crypto.h
@@ -88,6 +88,7 @@ int crypto_pk_check_key(crypto_pk_env_t *env);
int crypto_pk_cmp_keys(crypto_pk_env_t *a, crypto_pk_env_t *b);
size_t crypto_pk_keysize(crypto_pk_env_t *env);
crypto_pk_env_t *crypto_pk_dup_key(crypto_pk_env_t *orig);
+crypto_pk_env_t *crypto_pk_copy_full(crypto_pk_env_t *orig);
int crypto_pk_public_encrypt(crypto_pk_env_t *env, char *to,
const char *from, size_t fromlen, int padding);