summaryrefslogtreecommitdiff
path: root/openssl-sys/src/rand.rs
diff options
context:
space:
mode:
authorSteven Fackler <sfackler@gmail.com>2018-11-22 09:29:43 -0700
committerSteven Fackler <sfackler@gmail.com>2018-11-22 09:32:50 -0700
commit5c7fa43d8721851dd2092e9ebb16ce6d2251cb11 (patch)
treebf3758aad0583958b70d1fa3fb5df0da4ba3eb2a /openssl-sys/src/rand.rs
parent894b924f1d76efd3e9698840f1ac0753093a8c2c (diff)
downloadrust-openssl-5c7fa43d8721851dd2092e9ebb16ce6d2251cb11.zip
Add bindings to RAND_keep_random_devices_open
Closes #1019
Diffstat (limited to 'openssl-sys/src/rand.rs')
-rw-r--r--openssl-sys/src/rand.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/openssl-sys/src/rand.rs b/openssl-sys/src/rand.rs
index 8ee46fbb..7380702d 100644
--- a/openssl-sys/src/rand.rs
+++ b/openssl-sys/src/rand.rs
@@ -2,5 +2,9 @@ use libc::*;
extern "C" {
pub fn RAND_bytes(buf: *mut u8, num: c_int) -> c_int;
+
+ #[cfg(ossl111)]
+ pub fn RAND_keep_random_devices_open(keep: c_int);
+
pub fn RAND_status() -> c_int;
}