aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2015-07-24 11:32:43 -0400
committerSteven Fackler <[email protected]>2015-07-24 11:32:43 -0400
commit87b8d8e318748af4eac33dabd9b0e26a91dcc1ac (patch)
treef3f3f5819a7d5021715265d3d6e2132e1ba15ef9 /openssl-sys/src
parentMake curl follow redirects (diff)
parentAdd function to write RSA public key as PEM (diff)
downloadrust-openssl-87b8d8e318748af4eac33dabd9b0e26a91dcc1ac.tar.xz
rust-openssl-87b8d8e318748af4eac33dabd9b0e26a91dcc1ac.zip
Merge pull request #244 from andrew-d/andrew-save-pubkey
Add function to write RSA public key as PEM
Diffstat (limited to 'openssl-sys/src')
-rw-r--r--openssl-sys/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs
index 5317ff20..7ff600c3 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -468,6 +468,7 @@ extern "C" {
kstr: *mut c_char, klen: c_int,
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_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;