aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2015-10-17 20:23:28 -0400
committerSteven Fackler <[email protected]>2015-10-17 20:23:28 -0400
commit549f257376964d5c346141867fcccd5bcd52bc8d (patch)
tree3ab8d7dbc1f6763862dddcfc4ca7933b1562d6bd /openssl-sys/src
parentMerge branch 'release' (diff)
parentExpose RSA_generate_key_ex. (diff)
downloadrust-openssl-549f257376964d5c346141867fcccd5bcd52bc8d.tar.xz
rust-openssl-549f257376964d5c346141867fcccd5bcd52bc8d.zip
Merge pull request #290 from jimmycuadra/master
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,