diff options
| author | Onur Aslan <[email protected]> | 2016-07-29 12:11:53 +0300 |
|---|---|---|
| committer | Onur Aslan <[email protected]> | 2016-07-29 12:14:49 +0300 |
| commit | 5ed77df197afc33c04569edcd3db5993a695fbae (patch) | |
| tree | 850ae655923d264436673a585e4eb03c431d3f06 /openssl-sys | |
| parent | Merge pull request #423 from taheris/fix/moving-write-buffer (diff) | |
| download | rust-openssl-5ed77df197afc33c04569edcd3db5993a695fbae.tar.xz rust-openssl-5ed77df197afc33c04569edcd3db5993a695fbae.zip | |
Implement save_der for X509 and X509Req
Diffstat (limited to 'openssl-sys')
| -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 96a24e48..1e0d5fe5 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -841,6 +841,9 @@ extern "C" { pub fn X509_REQ_add_extensions(req: *mut X509_REQ, exts: *mut stack_st_X509_EXTENSION) -> c_int; pub fn X509_REQ_sign(x: *mut X509_REQ, pkey: *mut EVP_PKEY, md: *const EVP_MD) -> c_int; + pub fn i2d_X509_bio(b: *mut BIO, x: *mut X509) -> c_int; + pub fn i2d_X509_REQ_bio(b: *mut BIO, x: *mut X509_REQ) -> c_int; + pub fn i2d_RSA_PUBKEY(k: *mut RSA, buf: *const *mut u8) -> c_int; pub fn d2i_RSA_PUBKEY(k: *const *mut RSA, buf: *const *const u8, len: c_uint) -> *mut RSA; pub fn i2d_RSAPrivateKey(k: *mut RSA, buf: *const *mut u8) -> c_int; |