summaryrefslogtreecommitdiff
path: root/openssl-sys
diff options
context:
space:
mode:
authorNathaniel McCallum <npmccallum@redhat.com>2019-03-17 14:47:07 -0400
committerNathaniel McCallum <npmccallum@redhat.com>2019-03-19 11:10:35 -0400
commitd9cb5433b1556a7c652a02f0407c9d36f4cd4211 (patch)
treed44c414e76f8ad4f2f1377785e07e5a8c4a124c5 /openssl-sys
parenta335c1b2f5d8cd32c57b6685236b5bbe3c70bbe8 (diff)
downloadrust-openssl-d9cb5433b1556a7c652a02f0407c9d36f4cd4211.zip
Expose EVP_MD_type()
This gives us the ability to get the Nid from a MessageDigest.
Diffstat (limited to 'openssl-sys')
-rw-r--r--openssl-sys/src/evp.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/openssl-sys/src/evp.rs b/openssl-sys/src/evp.rs
index e8276afa..87469e0a 100644
--- a/openssl-sys/src/evp.rs
+++ b/openssl-sys/src/evp.rs
@@ -23,6 +23,7 @@ pub unsafe fn EVP_get_digestbynid(type_: c_int) -> *const EVP_MD {
extern "C" {
pub fn EVP_MD_size(md: *const EVP_MD) -> c_int;
+ pub fn EVP_MD_type(md: *const EVP_MD) -> c_int;
#[cfg(any(ossl110, libressl273))]
pub fn EVP_CIPHER_key_length(cipher: *const EVP_CIPHER) -> c_int;