diff options
| author | Steven Fackler <[email protected]> | 2016-03-05 13:57:53 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-03-05 13:57:53 -0800 |
| commit | 23fd427900ff9d76278ad88865d7739afc61f2a2 (patch) | |
| tree | 2d414d8a9ef2bcbc1113ae03d0d27e75f534c682 /openssl-sys/src/lib.rs | |
| parent | Stop testing sslv2 feature on Travis (diff) | |
| parent | making from_raw() unsafe (diff) | |
| download | rust-openssl-23fd427900ff9d76278ad88865d7739afc61f2a2.tar.xz rust-openssl-23fd427900ff9d76278ad88865d7739afc61f2a2.zip | |
Merge pull request #353 from bluejekyll/master
adding functionality to directly get and set RSA public key material
Diffstat (limited to 'openssl-sys/src/lib.rs')
| -rw-r--r-- | openssl-sys/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index eaa2188f..d638b38a 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -589,6 +589,7 @@ extern "C" { pub fn RAND_bytes(buf: *mut u8, num: c_int) -> c_int; + pub fn RSA_new() -> *mut RSA; pub fn RSA_free(rsa: *mut RSA); 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; |