aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-12-16 05:47:21 +0000
committerRoger Dingledine <arma@torproject.org>2003-12-16 05:47:21 +0000
commite358a362eefbe11366d1b4f8e59078a3e9695f5e (patch)
tree795615c81e40e43d60daf25c1792ab0d4c16ba77 /src/common/crypto.h
parent7c439c30d00e4851458b66c25a848e27d30c7abe (diff)
downloadtor-e358a362eefbe11366d1b4f8e59078a3e9695f5e.tar
tor-e358a362eefbe11366d1b4f8e59078a3e9695f5e.tar.gz
rename digest_copy to digest_dup, make it return, make gcc happier
svn:r939
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r--src/common/crypto.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h
index 6d26cfa1e..1b072839f 100644
--- a/src/common/crypto.h
+++ b/src/common/crypto.h
@@ -102,12 +102,12 @@ int crypto_SHA_digest(const unsigned char *m, int len, unsigned char *digest);
crypto_digest_env_t *crypto_new_digest_env(int type);
void crypto_digest_free(crypto_digest_env_t *digest);
void crypto_digest_add_bytes(crypto_digest_env_t *digest, const char *data,
- size_t len);
+ size_t len);
void crypto_digest_get_digest(crypto_digest_env_t *digest,
- char *out, size_t out_len);
-crypto_digest_env_t *crypto_digest_copy(const crypto_digest_env_t *digest);
+ char *out, size_t out_len);
+crypto_digest_env_t *crypto_digest_dup(const crypto_digest_env_t *digest);
void crypto_digest_assign(crypto_digest_env_t *into,
- const crypto_digest_env_t *from);
+ const crypto_digest_env_t *from);
/* random numbers */
int crypto_seed_rng();