aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
authorNathan Lilienthal <[email protected]>2015-10-01 20:33:12 -0400
committerNathan Lilienthal <[email protected]>2015-10-01 20:33:12 -0400
commitffa9d330fda20d8b7ae9289383151a32e8017d12 (patch)
tree66b5483e106afd700fc90142abad342e1337193c /openssl-sys/src
parentMerge pull request #263 from jedisct1/ecdh_auto (diff)
downloadrust-openssl-ffa9d330fda20d8b7ae9289383151a32e8017d12.tar.xz
rust-openssl-ffa9d330fda20d8b7ae9289383151a32e8017d12.zip
Add public key PEM read function.
Diffstat (limited to 'openssl-sys/src')
-rw-r--r--openssl-sys/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs
index 45d03ac8..49e76a11 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -485,6 +485,8 @@ extern "C" {
user_data: *mut c_void) -> *mut X509_REQ;
pub fn PEM_read_bio_PrivateKey(bio: *mut BIO, out: *mut *mut EVP_PKEY, callback: Option<PasswordCallback>,
user_data: *mut c_void) -> *mut X509;
+ 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_write_bio_PrivateKey(bio: *mut BIO, pkey: *mut EVP_PKEY, cipher: *const EVP_CIPHER,
kstr: *mut c_char, klen: c_int,