diff options
| author | Steven Fackler <[email protected]> | 2016-10-03 01:46:58 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-10-03 01:46:58 +0200 |
| commit | 623a34aa0245e7103ffe3adb98507d114ca27239 (patch) | |
| tree | 6be8c574dd69644a95aab777d1310d1d75a5b1f2 | |
| parent | Make sure private component exists when signing (diff) | |
| parent | Add RAND_status() (diff) | |
| download | rust-openssl-623a34aa0245e7103ffe3adb98507d114ca27239.tar.xz rust-openssl-623a34aa0245e7103ffe3adb98507d114ca27239.zip | |
Merge pull request #458 from manuels/patch-1
Add RAND_status and RSA paddings
| -rw-r--r-- | openssl-sys/src/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 380f0058..b7a61c52 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -340,6 +340,12 @@ pub const PKCS5_SALT_LEN: c_int = 8; pub const RSA_F4: c_long = 0x10001; +pub const RSA_PKCS1_PADDING: c_int = 1; +pub const RSA_SSLV23_PADDING: c_int = 2; +pub const RSA_NO_PADDING: c_int = 3; +pub const RSA_PKCS1_OAEP_PADDING: c_int = 4; +pub const RSA_X931_PADDING: c_int = 5; + pub const SSL_CTRL_SET_TMP_DH: c_int = 3; pub const SSL_CTRL_EXTRA_CHAIN_CERT: c_int = 14; pub const SSL_CTRL_OPTIONS: c_int = 32; @@ -867,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); |