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