From 09b1fe9a0d3392b266e47fd1808617059e41c1c3 Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Tue, 13 Mar 2018 18:36:18 -0700 Subject: Expose additional cipher and digest accessors --- openssl-sys/src/ossl110.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openssl-sys/src/ossl110.rs') diff --git a/openssl-sys/src/ossl110.rs b/openssl-sys/src/ossl110.rs index 580c3f72..96e9b1e3 100644 --- a/openssl-sys/src/ossl110.rs +++ b/openssl-sys/src/ossl110.rs @@ -367,4 +367,7 @@ extern "C" { pub fn SSL_extension_supported(ext_type: c_uint) -> c_int; pub fn ECDSA_SIG_get0(sig: *const ECDSA_SIG, pr: *mut *const BIGNUM, ps: *mut *const BIGNUM); pub fn ECDSA_SIG_set0(sig: *mut ECDSA_SIG, pr: *mut BIGNUM, ps: *mut BIGNUM) -> c_int; + + pub fn SSL_CIPHER_get_cipher_nid(c: *const ::SSL_CIPHER) -> c_int; + pub fn SSL_CIPHER_get_digest_nid(c: *const ::SSL_CIPHER) -> c_int; } -- cgit v1.2.3