diff options
| author | Benjamin Fry <[email protected]> | 2016-02-17 23:18:42 -0800 |
|---|---|---|
| committer | Benjamin Fry <[email protected]> | 2016-02-17 23:18:42 -0800 |
| commit | ef95223d2679d68b36df77393bd334d4da02077f (patch) | |
| tree | cc89a9298a784b981940e2b191328957722062aa /openssl-sys | |
| parent | Update appveyor openssl version (diff) | |
| download | rust-openssl-ef95223d2679d68b36df77393bd334d4da02077f.tar.xz rust-openssl-ef95223d2679d68b36df77393bd334d4da02077f.zip | |
adding functionality to directly get and set RSA key material
Diffstat (limited to 'openssl-sys')
| -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 ff221935..d03fed31 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -588,6 +588,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; |