diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2003-11-16 23:49:15 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2003-11-16 23:49:15 +0000 |
commit | f83d445b0a957408370dba925c12bd6fcf223071 (patch) | |
tree | 2b97f805e69b9fb5899d8e9b41d9243e7f933a97 /include/apr_random.h | |
parent | b312e057380cd0986c7f412db5e609d5519282b2 (diff) | |
download | libapr-f83d445b0a957408370dba925c12bd6fcf223071.tar.gz |
With the exception of some intersting(1) output from testall random2,
Win32 APR1.0 now builds with apr_random.
Required us to compliment APR_INT64_C with a corresponding APR_UINT64_C,
and finish up Brad's efforts to APR_DECLARE() the various entry points.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64751 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_random.h')
-rw-r--r-- | include/apr_random.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/include/apr_random.h b/include/apr_random.h index ab77c5a45..4cd729564 100644 --- a/include/apr_random.h +++ b/include/apr_random.h @@ -79,15 +79,19 @@ APR_DECLARE(apr_crypto_hash_t *) apr_crypto_sha256_new(apr_pool_t *p); typedef struct apr_random_t apr_random_t; APR_DECLARE(void) apr_random_init(apr_random_t *g,apr_pool_t *p, - apr_crypto_hash_t *pool_hash,apr_crypto_hash_t *key_hash, - apr_crypto_hash_t *prng_hash); + apr_crypto_hash_t *pool_hash, + apr_crypto_hash_t *key_hash, + apr_crypto_hash_t *prng_hash); APR_DECLARE(apr_random_t *) apr_random_standard_new(apr_pool_t *p); -APR_DECLARE(void) apr_random_add_entropy(apr_random_t *g,const void *entropy_, - apr_size_t bytes); -APR_DECLARE(apr_status_t) apr_random_insecure_bytes(apr_random_t *g,void *random, - apr_size_t bytes); -APR_DECLARE(apr_status_t) apr_random_secure_bytes(apr_random_t *g,void *random, - apr_size_t bytes); +APR_DECLARE(void) apr_random_add_entropy(apr_random_t *g, + const void *entropy_, + apr_size_t bytes); +APR_DECLARE(apr_status_t) apr_random_insecure_bytes(apr_random_t *g, + void *random, + apr_size_t bytes); +APR_DECLARE(apr_status_t) apr_random_secure_bytes(apr_random_t *g, + void *random, + apr_size_t bytes); APR_DECLARE(void) apr_random_barrier(apr_random_t *g); APR_DECLARE(apr_status_t) apr_random_secure_ready(apr_random_t *r); APR_DECLARE(apr_status_t) apr_random_insecure_ready(apr_random_t *r); |