summaryrefslogtreecommitdiff
path: root/coreconf
diff options
context:
space:
mode:
Diffstat (limited to 'coreconf')
-rw-r--r--coreconf/config.gypi6
-rw-r--r--coreconf/config.mk4
2 files changed, 10 insertions, 0 deletions
diff --git a/coreconf/config.gypi b/coreconf/config.gypi
index 8cae4c48d..760b51a26 100644
--- a/coreconf/config.gypi
+++ b/coreconf/config.gypi
@@ -132,6 +132,7 @@
'mozpkix_only%': 0,
'coverage%': 0,
'softfp_cflags%': '',
+ 'enable_draft_hpke%': 0,
},
'target_defaults': {
# Settings specific to targets should go here.
@@ -568,6 +569,11 @@
'NSS_DISABLE_DBM',
],
}],
+ [ 'enable_draft_hpke==1', {
+ 'defines': [
+ 'NSS_ENABLE_DRAFT_HPKE',
+ ],
+ }],
[ 'disable_libpkix==1', {
'defines': [
'NSS_DISABLE_LIBPKIX',
diff --git a/coreconf/config.mk b/coreconf/config.mk
index e0556af14..2f7b63896 100644
--- a/coreconf/config.mk
+++ b/coreconf/config.mk
@@ -195,6 +195,10 @@ ifdef NSS_PKIX_NO_LDAP
DEFINES += -DNSS_PKIX_NO_LDAP
endif
+ifdef NSS_ENABLE_DRAFT_HPKE
+DEFINES += -DNSS_ENABLE_DRAFT_HPKE
+endif
+
# FIPS support requires startup tests to be executed at load time of shared modules.
# For performance reasons, these tests are disabled by default.
# When compiling binaries that must support FIPS mode,