Skip to content

Commit 7c0f0a7

Browse files
committed
add NID SM2
1 parent 006afe9 commit 7c0f0a7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

openssl-sys/src/obj_mac.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,8 @@ pub const NID_ED25519: c_int = 952;
935935
#[cfg(ossl111)]
936936
pub const NID_ED448: c_int = 1088;
937937
#[cfg(ossl111)]
938+
pub const NID_sm2: c_int = 1172;
939+
#[cfg(ossl111)]
938940
pub const NID_sm3: c_int = 1143;
939941
#[cfg(libressl291)]
940942
pub const NID_sm3: c_int = 968;

openssl/src/nid.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,8 @@ impl Nid {
10741074
pub const AES_128_CBC_HMAC_SHA1: Nid = Nid(ffi::NID_aes_128_cbc_hmac_sha1);
10751075
pub const AES_192_CBC_HMAC_SHA1: Nid = Nid(ffi::NID_aes_192_cbc_hmac_sha1);
10761076
pub const AES_256_CBC_HMAC_SHA1: Nid = Nid(ffi::NID_aes_256_cbc_hmac_sha1);
1077+
#[cfg(ossl111)]
1078+
pub const SM2: Nid = Nid(ffi::NID_sm2);
10771079
#[cfg(any(ossl111, libressl291))]
10781080
pub const SM3: Nid = Nid(ffi::NID_sm3);
10791081
#[cfg(ossl111)]

0 commit comments

Comments
 (0)