summaryrefslogtreecommitdiffstats
path: root/crypto/rand/rand.h
diff options
context:
space:
mode:
authorGeoff Thorpe <geoff@openssl.org>2001-04-18 04:18:16 +0000
committerGeoff Thorpe <geoff@openssl.org>2001-04-18 04:18:16 +0000
commita4a9d97a3e02849b111d9bd488a954dcc6a44910 (patch)
tree54c96af3d5dcb56701785f82021161a68cc5157d /crypto/rand/rand.h
parent404f952aa3b7e41bba05cb475ce4093f6b5008a1 (diff)
Some more tweaks from ENGINE code.
Previously RAND_get_rand_method was returning a non-const pointer, but it should be const. As with all other such cases, METHOD pointers are stored and returned as "const". The only methods one should be able to alter are methods "local" to the relevant code, in which case a non-const handle to the methods should already exist. This change has been forced by the constifying of the ENGINE code (before which RAND_METHOD was the only method pointer in an ENGINE structure that was not constant).
Diffstat (limited to 'crypto/rand/rand.h')
-rw-r--r--crypto/rand/rand.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rand/rand.h b/crypto/rand/rand.h
index 5d85741452..2252186ecd 100644
--- a/crypto/rand/rand.h
+++ b/crypto/rand/rand.h
@@ -82,7 +82,7 @@ extern int rand_predictable;
struct engine_st;
int RAND_set_rand_method(struct engine_st *meth);
-RAND_METHOD *RAND_get_rand_method(void );
+const RAND_METHOD *RAND_get_rand_method(void );
RAND_METHOD *RAND_SSLeay(void);
void RAND_cleanup(void );
int RAND_bytes(unsigned char *buf,int num);