aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2018-04-21 14:22:40 -0700
committerGitHub <[email protected]>2018-04-21 14:22:40 -0700
commit6252829f4bedc88f7d2569de5a92a86be8268b39 (patch)
tree84effaebac73582a6634d49d6c6294d962d10413 /openssl-sys/src
parentMerge pull request #899 from rohit-lshift/master (diff)
parentAdd functions to X509Req to obtain public key and extensions (diff)
downloadrust-openssl-6252829f4bedc88f7d2569de5a92a86be8268b39.tar.xz
rust-openssl-6252829f4bedc88f7d2569de5a92a86be8268b39.zip
Merge pull request #903 from Richterrettich/master
Add functions to X509Req to obtain public key and extensions
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 85527f8f..03ab60f4 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -2741,8 +2741,10 @@ extern "C" {
pub fn X509_REQ_set_version(req: *mut X509_REQ, version: c_long) -> c_int;
pub fn X509_REQ_set_subject_name(req: *mut X509_REQ, name: *mut X509_NAME) -> c_int;
pub fn X509_REQ_set_pubkey(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> c_int;
+ pub fn X509_REQ_get_pubkey(req: *mut X509_REQ) -> *mut EVP_PKEY;
pub fn X509_REQ_add_extensions(req: *mut X509_REQ, exts: *mut stack_st_X509_EXTENSION)
-> c_int;
+ pub fn X509_REQ_get_extensions(req: *mut X509_REQ) -> *mut stack_st_X509_EXTENSION;
pub fn X509_REQ_sign(x: *mut X509_REQ, pkey: *mut EVP_PKEY, md: *const EVP_MD) -> c_int;
#[cfg(not(ossl101))]