aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2015-04-15 23:35:46 -0400
committerSteven Fackler <[email protected]>2015-04-15 23:35:46 -0400
commit9ab4c93ab1086f22aa821baad4ea1887795a3298 (patch)
tree56fdf39753142c496084d554f6feeb836786ec46 /openssl-sys/src
parentFix nightly build issues (diff)
parentAdd X509::public_key() (diff)
downloadrust-openssl-9ab4c93ab1086f22aa821baad4ea1887795a3298.tar.xz
rust-openssl-9ab4c93ab1086f22aa821baad4ea1887795a3298.zip
Merge pull request #200 from manuels/x509_pubkey
Add X509::public_key()
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 109c4168..53e06c3a 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -573,6 +573,7 @@ extern "C" {
pub fn X509_set_version(x: *mut X509, version: c_ulong) -> c_int;
pub fn X509_set_pubkey(x: *mut X509, pkey: *mut EVP_PKEY) -> c_int;
pub fn X509_sign(x: *mut X509, pkey: *mut EVP_PKEY, md: *const EVP_MD) -> c_int;
+ pub fn X509_get_pubkey(x: *mut X509) -> *mut EVP_PKEY;
pub fn X509_EXTENSION_free(ext: *mut X509_EXTENSION);