diff options
author | Bodo Möller <bodo@openssl.org> | 2000-03-02 14:34:58 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-03-02 14:34:58 +0000 |
commit | 5eb8ca4d9251e0f9183f7c03161ea998c303949b (patch) | |
tree | 9420cdc5d04cca662ebf85381c8d470e7c4a7f8f /crypto/rand/md_rand.c | |
parent | 2d092edf5edef95072fbb63cd8d09d30a7dd7973 (diff) | |
download | openssl-new-5eb8ca4d9251e0f9183f7c03161ea998c303949b.tar.gz |
Use RAND_METHOD for implementing RAND_status.
Diffstat (limited to 'crypto/rand/md_rand.c')
-rw-r--r-- | crypto/rand/md_rand.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/rand/md_rand.c b/crypto/rand/md_rand.c index 583fc137d8..1a366ae5c8 100644 --- a/crypto/rand/md_rand.c +++ b/crypto/rand/md_rand.c @@ -156,6 +156,7 @@ static void ssleay_rand_seed(const void *buf, int num); static void ssleay_rand_add(const void *buf, int num, double add_entropy); static int ssleay_rand_bytes(unsigned char *buf, int num); static int ssleay_rand_pseudo_bytes(unsigned char *buf, int num); +static int ssleay_rand_status(void); RAND_METHOD rand_ssleay_meth={ ssleay_rand_seed, @@ -163,6 +164,7 @@ RAND_METHOD rand_ssleay_meth={ ssleay_rand_cleanup, ssleay_rand_add, ssleay_rand_pseudo_bytes, + ssleay_rand_status }; RAND_METHOD *RAND_SSLeay(void) @@ -502,7 +504,7 @@ static int ssleay_rand_pseudo_bytes(unsigned char *buf, int num) return (ret); } -int RAND_status(void) +static int ssleay_rand_status(void) { if (!initialized) ssleay_rand_initialize(); |