aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src/lib.rs
diff options
context:
space:
mode:
authormanuels <[email protected]>2016-10-01 13:42:13 +0200
committerGitHub <[email protected]>2016-10-01 13:42:13 +0200
commit44ed665f02fea1cdd4c8fda81e20480383b1d3aa (patch)
tree6be8c574dd69644a95aab777d1310d1d75a5b1f2 /openssl-sys/src/lib.rs
parentAdd RSA_*_PADDING constants (diff)
downloadrust-openssl-44ed665f02fea1cdd4c8fda81e20480383b1d3aa.tar.xz
rust-openssl-44ed665f02fea1cdd4c8fda81e20480383b1d3aa.zip
Add RAND_status()
RAND_status() returns 1 if the PRNG has been seeded with enough data, 0 otherwise.
Diffstat (limited to 'openssl-sys/src/lib.rs')
-rw-r--r--openssl-sys/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs
index b0ae686d..b7a61c52 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -873,6 +873,7 @@ extern "C" {
out: *mut u8) -> c_int;
pub fn RAND_bytes(buf: *mut u8, num: c_int) -> c_int;
+ pub fn RAND_status() -> c_int;
pub fn RSA_new() -> *mut RSA;
pub fn RSA_free(rsa: *mut RSA);