diff options
| author | Benjamin Fry <[email protected]> | 2017-01-22 21:27:31 -0800 |
|---|---|---|
| committer | Benjamin Fry <[email protected]> | 2017-01-22 21:27:31 -0800 |
| commit | 52c7868bb615b04feb01be88cd1f47af866f12ad (patch) | |
| tree | 5c36d2fc6559274698b302ba82dbdbeb1ed471d4 /openssl-sys/src | |
| parent | Add categories (diff) | |
| download | rust-openssl-52c7868bb615b04feb01be88cd1f47af866f12ad.tar.xz rust-openssl-52c7868bb615b04feb01be88cd1f47af866f12ad.zip | |
add pkcs12_create and to_der funcs
Diffstat (limited to 'openssl-sys/src')
| -rw-r--r-- | openssl-sys/src/lib.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 0cbd0da7..0af15251 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -1951,7 +1951,19 @@ extern { pub fn i2d_RSAPrivateKey(k: *const RSA, buf: *mut *mut u8) -> c_int; pub fn d2i_RSAPrivateKey(k: *mut *mut RSA, buf: *mut *const u8, len: c_long) -> *mut RSA; + pub fn i2d_PKCS12_bio(b: *mut BIO, a: *mut PKCS12) -> c_int; + pub fn i2d_PKCS12(a: *mut PKCS12, buf: *mut *mut u8) -> c_int; pub fn d2i_PKCS12(a: *mut *mut PKCS12, pp: *mut *const u8, length: c_long) -> *mut PKCS12; + pub fn PKCS12_create(pass: *const c_char, + friendly_name: *const c_char, + pkey: *const EVP_PKEY, + cert: *const X509, + ca: *const stack_st_X509, + nid_key: c_int, + nid_cert: c_int, + iter: c_int, + mac_iter: c_int, + keytype: c_int) -> *mut PKCS12; pub fn PKCS12_parse(p12: *mut PKCS12, pass: *const c_char, pkey: *mut *mut EVP_PKEY, |