diff options
Diffstat (limited to 'openssl-sys/src')
-rw-r--r-- | openssl-sys/src/evp.rs | 2 | ||||
-rw-r--r-- | openssl-sys/src/obj_mac.rs | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/openssl-sys/src/evp.rs b/openssl-sys/src/evp.rs index ec5df30a..893e9828 100644 --- a/openssl-sys/src/evp.rs +++ b/openssl-sys/src/evp.rs @@ -243,6 +243,8 @@ extern "C" { #[cfg(ossl111)] pub fn EVP_shake256() -> *const EVP_MD; pub fn EVP_ripemd160() -> *const EVP_MD; + #[cfg(all(any(ossl111, libressl291), not(osslconf = "OPENSSL_NO_SM3")))] + pub fn EVP_sm3() -> *const EVP_MD; pub fn EVP_des_ecb() -> *const EVP_CIPHER; pub fn EVP_des_ede3() -> *const EVP_CIPHER; pub fn EVP_des_ede3_cbc() -> *const EVP_CIPHER; diff --git a/openssl-sys/src/obj_mac.rs b/openssl-sys/src/obj_mac.rs index d78416da..63f5cb38 100644 --- a/openssl-sys/src/obj_mac.rs +++ b/openssl-sys/src/obj_mac.rs @@ -920,3 +920,11 @@ pub const NID_X448: c_int = 1035; pub const NID_ED25519: c_int = 1087; #[cfg(ossl111)] pub const NID_ED448: c_int = 1088; +#[cfg(ossl111)] +pub const NID_sm3: c_int = 1143; +#[cfg(libressl291)] +pub const NID_sm3: c_int = 968; +#[cfg(ossl111)] +pub const NID_sm3WithRSAEncryption: c_int = 1144; +#[cfg(libressl291)] +pub const NID_sm3WithRSAEncryption: c_int = 969; |