diff options
| author | Steven Fackler <[email protected]> | 2016-05-06 15:12:19 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-05-06 15:12:19 -0700 |
| commit | dce59a63c52003e878ce7a199a44ca7ed35d8224 (patch) | |
| tree | 81d15072d6228a9052821f60c63fe8662365265f /openssl-sys/src/lib.rs | |
| parent | Merge branch 'release' (diff) | |
| parent | add rsa signature tests (diff) | |
| download | rust-openssl-dce59a63c52003e878ce7a199a44ca7ed35d8224.tar.xz rust-openssl-dce59a63c52003e878ce7a199a44ca7ed35d8224.zip | |
Merge pull request #389 from cmsd2/master
expose rsa from raw private key and rsa sign and verify
Diffstat (limited to 'openssl-sys/src/lib.rs')
| -rw-r--r-- | openssl-sys/src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 85e81951..b6f55832 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -627,6 +627,12 @@ extern "C" { callback: Option<PasswordCallback>, user_data: *mut c_void) -> c_int; pub fn PEM_write_bio_PUBKEY(bp: *mut BIO, x: *mut EVP_PKEY) -> c_int; + pub fn PEM_write_bio_RSAPrivateKey(bp: *mut BIO, rsa: *mut RSA, cipher: *const EVP_CIPHER, + kstr: *mut c_char, klen: c_int, + callback: Option<PasswordCallback>, + user_data: *mut c_void) -> c_int; + pub fn PEM_write_bio_RSAPublicKey(bp: *mut BIO, rsa: *mut RSA) -> c_int; + pub fn PEM_write_bio_RSA_PUBKEY(bp: *mut BIO, rsa: *mut RSA) -> c_int; pub fn PEM_write_bio_X509(bio: *mut BIO, x509: *mut X509) -> c_int; pub fn PEM_write_bio_X509_REQ(bio: *mut BIO, x509: *mut X509_REQ) -> c_int; |