diff options
| author | Chris Dawes <[email protected]> | 2016-05-05 23:41:55 +0100 |
|---|---|---|
| committer | Chris Dawes <[email protected]> | 2016-05-05 23:41:55 +0100 |
| commit | f82a1c4f75208c414a24deb2a6d90e0fc3981637 (patch) | |
| tree | f926484132542ba9d068b8a961a6f0b4bea01840 /openssl-sys/src | |
| parent | add missing NIDs and use Nid as input to signing (diff) | |
| download | rust-openssl-f82a1c4f75208c414a24deb2a6d90e0fc3981637.tar.xz rust-openssl-f82a1c4f75208c414a24deb2a6d90e0fc3981637.zip | |
add rsa signature tests
Diffstat (limited to 'openssl-sys/src')
| -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 3d7c59c3..0a762944 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; |