aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
authorJimmy Cuadra <[email protected]>2015-10-15 08:54:46 -0700
committerJimmy Cuadra <[email protected]>2015-10-15 08:54:46 -0700
commit214c3a60f04da5c5fe6f0722641a1272c795cde2 (patch)
tree3ab8d7dbc1f6763862dddcfc4ca7933b1562d6bd /openssl-sys/src
parentMerge branch 'release' (diff)
downloadrust-openssl-214c3a60f04da5c5fe6f0722641a1272c795cde2.tar.xz
rust-openssl-214c3a60f04da5c5fe6f0722641a1272c795cde2.zip
Expose RSA_generate_key_ex.
Diffstat (limited to 'openssl-sys/src')
-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 bc177959..e26bec0a 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -513,6 +513,7 @@ extern "C" {
pub fn RAND_bytes(buf: *mut u8, num: c_int) -> c_int;
pub fn RSA_generate_key(modsz: c_int, e: c_ulong, cb: *const c_void, cbarg: *const c_void) -> *mut RSA;
+ pub fn RSA_generate_key_ex(rsa: *mut RSA, bits: c_int, e: *mut BIGNUM, cb: *const c_void) -> c_int;
pub fn RSA_private_decrypt(flen: c_int, from: *const u8, to: *mut u8, k: *mut RSA,
pad: c_int) -> c_int;
pub fn RSA_public_encrypt(flen: c_int, from: *const u8, to: *mut u8, k: *mut RSA,