summaryrefslogtreecommitdiff
path: root/src/common/crypto.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-10-27 18:16:37 +0000
committerNick Mathewson <nickm@torproject.org>2004-10-27 18:16:37 +0000
commitce5709184bef665a545bcbf207598ad0f991a67b (patch)
tree58bf49cd59a7d236e2146ef3a86327929ca637fb /src/common/crypto.h
parent6874c3990426ca4efd4e88796854f2bab60df54d (diff)
downloadtor-ce5709184bef665a545bcbf207598ad0f991a67b.tar.gz
tor-ce5709184bef665a545bcbf207598ad0f991a67b.zip
Pass with -Wstrict-prototypes
svn:r2614
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r--src/common/crypto.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h
index 33e4006c1c..c6df8f0021 100644
--- a/src/common/crypto.h
+++ b/src/common/crypto.h
@@ -46,8 +46,8 @@ typedef struct crypto_digest_env_t crypto_digest_env_t;
typedef struct crypto_dh_env_t crypto_dh_env_t;
/* global state */
-int crypto_global_init();
-int crypto_global_cleanup();
+int crypto_global_init(void);
+int crypto_global_cleanup(void);
/* environment setup */
crypto_pk_env_t *crypto_new_pk_env(void);
@@ -100,7 +100,7 @@ void base16_encode(char *dest, size_t destlen, const char *src, size_t srclen);
int base16_decode(char *dest, size_t destlen, const char *src, size_t srclen);
/* Key negotiation */
-crypto_dh_env_t *crypto_dh_new();
+crypto_dh_env_t *crypto_dh_new(void);
int crypto_dh_get_bytes(crypto_dh_env_t *dh);
int crypto_dh_generate_public(crypto_dh_env_t *dh);
int crypto_dh_get_public(crypto_dh_env_t *dh, char *pubkey_out,
@@ -129,7 +129,7 @@ crypto_cipher_env_t *crypto_create_init_cipher(const char *key, int encrypt_mode
/* SHA-1 */
int crypto_digest(const unsigned char *m, int len, unsigned char *digest);
-crypto_digest_env_t *crypto_new_digest_env();
+crypto_digest_env_t *crypto_new_digest_env(void);
void crypto_free_digest_env(crypto_digest_env_t *digest);
void crypto_digest_add_bytes(crypto_digest_env_t *digest, const char *data,
size_t len);
@@ -140,7 +140,7 @@ void crypto_digest_assign(crypto_digest_env_t *into,
const crypto_digest_env_t *from);
/* random numbers */
-int crypto_seed_rng();
+int crypto_seed_rng(void);
int crypto_rand(unsigned int n, unsigned char *to);
void crypto_pseudo_rand(unsigned int n, unsigned char *to);
int crypto_pseudo_rand_int(unsigned int max);