diff options
| author | Steven Fackler <[email protected]> | 2016-01-09 13:08:00 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-01-09 13:08:00 -0800 |
| commit | b32a50797cd384920f8718b77081395394e963f2 (patch) | |
| tree | 3c5731aa89bad647233a39dcf275240795d61973 /openssl-sys/src | |
| parent | Merge pull request #329 from bheart/send-sync-pkey (diff) | |
| parent | Added tests for private_rsa_key_from_pem() and public_rsa_key_from_pem() (diff) | |
| download | rust-openssl-b32a50797cd384920f8718b77081395394e963f2.tar.xz rust-openssl-b32a50797cd384920f8718b77081395394e963f2.zip | |
Merge pull request #328 from Cyberunner23/PemRSA
Add support for RSA PEM files.
Diffstat (limited to 'openssl-sys/src')
| -rw-r--r-- | openssl-sys/src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index f780b6d9..5554d478 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -527,6 +527,9 @@ extern "C" { pub fn PEM_read_bio_PUBKEY(bio: *mut BIO, out: *mut *mut EVP_PKEY, callback: Option<PasswordCallback>, user_data: *mut c_void) -> *mut X509; + pub fn PEM_read_bio_RSAPrivateKey(bio: *mut BIO, rsa: *mut *mut RSA, callback: Option<PasswordCallback>, user_data: *mut c_void) -> *mut RSA; + pub fn PEM_read_bio_RSA_PUBKEY(bio: *mut BIO, rsa: *mut *mut RSA, callback: Option<PasswordCallback>, user_data: *mut c_void) -> *mut RSA; + pub fn PEM_write_bio_PrivateKey(bio: *mut BIO, pkey: *mut EVP_PKEY, cipher: *const EVP_CIPHER, kstr: *mut c_char, klen: c_int, callback: Option<PasswordCallback>, |