aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src/lib.rs
diff options
context:
space:
mode:
authorBenjamin Saunders <[email protected]>2018-03-13 18:36:18 -0700
committerBenjamin Saunders <[email protected]>2018-03-16 20:33:23 -0700
commit09b1fe9a0d3392b266e47fd1808617059e41c1c3 (patch)
treed231a09965697980aea94c13a37a35755f7fc55d /openssl-sys/src/lib.rs
parentMerge pull request #864 from mlen/aes-ccm-bindings (diff)
downloadrust-openssl-09b1fe9a0d3392b266e47fd1808617059e41c1c3.tar.xz
rust-openssl-09b1fe9a0d3392b266e47fd1808617059e41c1c3.zip
Expose additional cipher and digest accessors
Diffstat (limited to 'openssl-sys/src/lib.rs')
-rw-r--r--openssl-sys/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs
index 331479ed..8d4344dd 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -2112,6 +2112,7 @@ extern "C" {
a: *const ASN1_OBJECT,
no_name: c_int,
) -> c_int;
+ pub fn OBJ_nid2sn(nid: c_int) -> *const c_char;
pub fn OCSP_BASICRESP_new() -> *mut OCSP_BASICRESP;
pub fn OCSP_BASICRESP_free(r: *mut OCSP_BASICRESP);
@@ -2855,4 +2856,7 @@ extern "C" {
cookie_len: c_uint
) -> c_int>
);
+
+ pub fn EVP_MD_size(md: *const EVP_MD) -> c_int;
+ pub fn EVP_get_cipherbyname(name: *const c_char) -> *const EVP_CIPHER;
}