a1174d
# HG changeset patch
a1174d
# User Rob Lemley <rob@thunderbird.net>
a1174d
# Date 1663866531 14400
a1174d
#      Thu Sep 22 13:08:51 2022 -0400
a1174d
# Node ID 0798506e89ab0ad98d5826effe2087c2e2560d0b
a1174d
# Parent  a863c22903a3fa4c71360920ed77ac31f1fa5d01
a1174d
Bug 1790116 - Do not compile SM2 crypto with librnp. r=kaie
a1174d
a1174d
a1174d
a1174d
The CMake configuration in rnp/src/lib/CMakeLists.txt does not include
a1174d
src/lib/crypto/sm2.cpp unless ENABLE_SM2 is defined.
a1174d
Thunderbird builds do not set ENABLE_SM2, so there's no need to build this
a1174d
file.
a1174d
a1174d
Depends on D157053
a1174d
a1174d
Differential Revision: https://phabricator.services.mozilla.com/D157154
a1174d
a1174d
diff --git a/comm/third_party/rnp/moz.build b/third_party/rnp/moz.b/commuild
a1174d
--- a/comm/third_party/rnp/moz.build
a1174d
+++ b/comm/third_party/rnp/moz.build
a1174d
@@ -128,11 +128,10 @@ SOURCES += [
a1174d
     "src/lib/crypto/s2k.cpp",
a1174d
     "src/lib/crypto/sha1cd/hash_sha1cd.cpp",
a1174d
     "src/lib/crypto/sha1cd/sha1.c",
a1174d
     "src/lib/crypto/sha1cd/ubc_check.c",
a1174d
     "src/lib/crypto/signatures.cpp",
a1174d
-    "src/lib/crypto/sm2.cpp",
a1174d
     "src/lib/crypto/symmetric.cpp",
a1174d
     "src/lib/fingerprint.cpp",
a1174d
     "src/lib/generate-key.cpp",
a1174d
     "src/lib/json-utils.cpp",
a1174d
     "src/lib/key-provider.cpp",