summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Chen <i@harrychen.xyz>2021-03-08 20:14:40 +0800
committerHarry Chen <i@harrychen.xyz>2021-03-08 20:14:40 +0800
commit6bb010f4761a303639b40d8586c7608cbe1275db (patch)
tree9ffbd0a3f224d5720c098a55bb32a35f2eb5f765
parent7819f3e7d8298e6388e093911ee95bd2c24bf40b (diff)
downloadrust-openssl-6bb010f4761a303639b40d8586c7608cbe1275db.zip
Fix NID of SM3 series in libreSSL
Signed-off-by: Harry Chen <i@harrychen.xyz>
-rw-r--r--openssl-sys/src/obj_mac.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/openssl-sys/src/obj_mac.rs b/openssl-sys/src/obj_mac.rs
index 49fc4add..63f5cb38 100644
--- a/openssl-sys/src/obj_mac.rs
+++ b/openssl-sys/src/obj_mac.rs
@@ -920,7 +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(any(ossl111, libressl291))]
+#[cfg(ossl111)]
pub const NID_sm3: c_int = 1143;
-#[cfg(any(ossl111, libressl291))]
+#[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;