diff options
Diffstat (limited to 'usr/src/common/openssl/crypto/rand/rand.h')
-rw-r--r-- | usr/src/common/openssl/crypto/rand/rand.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/usr/src/common/openssl/crypto/rand/rand.h b/usr/src/common/openssl/crypto/rand/rand.h index 606382dd21..ac6c021763 100644 --- a/usr/src/common/openssl/crypto/rand/rand.h +++ b/usr/src/common/openssl/crypto/rand/rand.h @@ -71,7 +71,14 @@ extern "C" { #endif -typedef struct rand_meth_st +#if defined(OPENSSL_FIPS) +#define FIPS_RAND_SIZE_T size_t +#endif + +/* Already defined in ossl_typ.h */ +/* typedef struct rand_meth_st RAND_METHOD; */ + +struct rand_meth_st { void (*seed)(const void *buf, int num); int (*bytes)(unsigned char *buf, int num); @@ -79,7 +86,7 @@ typedef struct rand_meth_st void (*add)(const void *buf, int num, double entropy); int (*pseudorand)(unsigned char *buf, int num); int (*status)(void); - } RAND_METHOD; + }; #ifdef BN_DEBUG extern int rand_predictable; |