diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-18 05:28:27 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-18 05:28:27 +0000 |
commit | cebdf93949c4dc203aca700705dc4032917db96c (patch) | |
tree | cf2c2e635728fe1d69cd9d8868542820f5f0de40 /src/common/crypto.h | |
parent | 7b5be147ee8ddbbddf866cb94600fde65f12f621 (diff) | |
download | tor-cebdf93949c4dc203aca700705dc4032917db96c.tar tor-cebdf93949c4dc203aca700705dc4032917db96c.tar.gz |
Fix bug 889: share deep-copied keys between threads to avoid races in reference counts. Bugfix on 0.1.0.1-rc.
svn:r17672
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r-- | src/common/crypto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h index a0ddd3da2..86dfa8807 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -92,6 +92,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_key_is_private(const crypto_pk_env_t *key); int crypto_pk_public_encrypt(crypto_pk_env_t *env, char *to, |