Replace NSS with Pale Moon's

This commit is contained in:
wuggy 2026-06-29 21:29:25 +01:00
commit 8c2e376f94
2870 changed files with 1762232 additions and 1374220 deletions

0
security/nss/cmd/libpkix/Makefile Normal file → Executable file
View file

View file

@ -1,9 +0,0 @@
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
TARGETS = $(LIBRARY)
SHARED_LIBRARY =
IMPORT_LIBRARY =
PROGRAM =

0
security/nss/cmd/libpkix/manifest.mn Normal file → Executable file
View file

2
security/nss/cmd/libpkix/perf/Makefile Normal file → Executable file
View file

@ -20,8 +20,6 @@ include $(CORE_DEPTH)/coreconf/config.mk
# (3) Include "component" configuration information. (OPTIONAL) #
#######################################################################
include $(PKIX_DEPTH)/config.mk
#######################################################################
# (4) Include "local" platform-dependent assignments (OPTIONAL). #
#######################################################################

1
security/nss/cmd/libpkix/perf/manifest.mn Normal file → Executable file
View file

@ -15,6 +15,7 @@ CSRCS = libpkix_buildthreads.c \
$(NULL)
LIBRARY_NAME = pkixtoolperf
SHARED_LIBRARY = $(NULL)
SOURCE_LIB_DIR = $(PKIX_DEPTH)/$(OBJDIR)

2
security/nss/cmd/libpkix/pkix/Makefile Normal file → Executable file
View file

@ -20,8 +20,6 @@ include $(CORE_DEPTH)/coreconf/config.mk
# (3) Include "component" configuration information. (OPTIONAL) #
#######################################################################
include $(PKIX_DEPTH)/config.mk
#######################################################################
# (4) Include "local" platform-dependent assignments (OPTIONAL). #
#######################################################################

2
security/nss/cmd/libpkix/pkix/certsel/Makefile Normal file → Executable file
View file

@ -20,8 +20,6 @@ include $(CORE_DEPTH)/coreconf/config.mk
# (3) Include "component" configuration information. (OPTIONAL) #
#######################################################################
include $(PKIX_DEPTH)/config.mk
#######################################################################
# (4) Include "local" platform-dependent assignments (OPTIONAL). #
#######################################################################

3
security/nss/cmd/libpkix/pkix/certsel/manifest.mn Normal file → Executable file
View file

@ -14,7 +14,8 @@ CSRCS = test_certselector.c \
test_comcertselparams.c \
$(NULL)
LIBRARY_NAME=pkixtoolcertsel
LIBRARY_NAME = pkixtoolcertsel
SHARED_LIBRARY = $(NULL)
SOURCE_LIB_DIR=$(PKIX_DEPTH)/$(OBJDIR)

View file

@ -410,7 +410,8 @@ cleanup:
PKIX_TEST_RETURN();
}
static void testPolicyMatch(
static void
testPolicyMatch(
PKIX_List *certs,
PKIX_PL_Cert *NIST1Cert, /* a source for policy NIST1 */
PKIX_PL_Cert *NIST2Cert, /* a source for policy NIST2 */
@ -860,8 +861,9 @@ cleanup:
PKIX_TEST_RETURN();
}
static void test_customCallback2(PKIX_List *certs,
PKIX_PL_Cert *anyPolicyCert) /* a source for policy anyPolicy */
static void
test_customCallback2(PKIX_List *certs,
PKIX_PL_Cert *anyPolicyCert) /* a source for policy anyPolicy */
{
PKIX_CertSelector *selector = NULL;
PKIX_List *anyPolicyList = NULL; /* OIDs */
@ -1423,12 +1425,10 @@ test_CertSelector_Duplicate(PKIX_CertSelector *selector)
PKIX_TRUE,
plContext);
} else {
if
PKIX_EXACTLY_ONE_NULL(goodSubject, equalSubject)
{
pkixTestErrorMsg = "Subject Names are not equal!";
goto cleanup;
}
if PKIX_EXACTLY_ONE_NULL (goodSubject, equalSubject) {
pkixTestErrorMsg = "Subject Names are not equal!";
goto cleanup;
}
}
PKIX_TEST_EXPECT_NO_ERROR(PKIX_ComCertSelParams_GetPolicy(goodParams, &goodPolicy, plContext));
@ -1439,12 +1439,10 @@ test_CertSelector_Duplicate(PKIX_CertSelector *selector)
PKIX_TRUE,
plContext);
} else {
if
PKIX_EXACTLY_ONE_NULL(goodPolicy, equalPolicy)
{
pkixTestErrorMsg = "Policy Lists are not equal!";
goto cleanup;
}
if PKIX_EXACTLY_ONE_NULL (goodPolicy, equalPolicy) {
pkixTestErrorMsg = "Policy Lists are not equal!";
goto cleanup;
}
}
PKIX_TEST_EXPECT_NO_ERROR(PKIX_ComCertSelParams_GetCertificate(goodParams, &goodCert, plContext));
@ -1455,12 +1453,10 @@ test_CertSelector_Duplicate(PKIX_CertSelector *selector)
PKIX_TRUE,
plContext);
} else {
if
PKIX_EXACTLY_ONE_NULL(goodCert, equalCert)
{
pkixTestErrorMsg = "Cert Lists are not equal!";
goto cleanup;
}
if PKIX_EXACTLY_ONE_NULL (goodCert, equalCert) {
pkixTestErrorMsg = "Cert Lists are not equal!";
goto cleanup;
}
}
PKIX_TEST_EXPECT_NO_ERROR(PKIX_ComCertSelParams_GetCertificateValid(goodParams, &goodDate, plContext));
@ -1471,12 +1467,10 @@ test_CertSelector_Duplicate(PKIX_CertSelector *selector)
PKIX_TRUE,
plContext);
} else {
if
PKIX_EXACTLY_ONE_NULL(goodDate, equalDate)
{
pkixTestErrorMsg = "Date Lists are not equal!";
goto cleanup;
}
if PKIX_EXACTLY_ONE_NULL (goodDate, equalDate) {
pkixTestErrorMsg = "Date Lists are not equal!";
goto cleanup;
}
}
PKIX_TEST_EXPECT_NO_ERROR(PKIX_ComCertSelParams_GetBasicConstraints(goodParams, &goodBasicConstraints, plContext));

2
security/nss/cmd/libpkix/pkix/checker/Makefile Normal file → Executable file
View file

@ -20,8 +20,6 @@ include $(CORE_DEPTH)/coreconf/config.mk
# (3) Include "component" configuration information. (OPTIONAL) #
#######################################################################
include $(PKIX_DEPTH)/config.mk
#######################################################################
# (4) Include "local" platform-dependent assignments (OPTIONAL). #
#######################################################################

3
security/nss/cmd/libpkix/pkix/checker/manifest.mn Normal file → Executable file
View file

@ -12,7 +12,8 @@ MODULE = nss
CSRCS = test_certchainchecker.c
LIBRARY_NAME=pkixtoolchecker
LIBRARY_NAME = pkixtoolchecker
SHARED_LIBRARY = $(NULL)
SOURCE_LIB_DIR=$(PKIX_DEPTH)/$(OBJDIR)

2
security/nss/cmd/libpkix/pkix/crlsel/Makefile Normal file → Executable file
View file

@ -20,8 +20,6 @@ include $(CORE_DEPTH)/coreconf/config.mk
# (3) Include "component" configuration information. (OPTIONAL) #
#######################################################################
include $(PKIX_DEPTH)/config.mk
#######################################################################
# (4) Include "local" platform-dependent assignments (OPTIONAL). #
#######################################################################

3
security/nss/cmd/libpkix/pkix/crlsel/manifest.mn Normal file → Executable file
View file

@ -14,7 +14,8 @@ CSRCS = test_crlselector.c \
test_comcrlselparams.c \
$(NULL)
LIBRARY_NAME=pkixtoolcrlsel
LIBRARY_NAME = pkixtoolcrlsel
SHARED_LIBRARY = $(NULL)
SOURCE_LIB_DIR=$(PKIX_DEPTH)/$(OBJDIR)

0
security/nss/cmd/libpkix/pkix/manifest.mn Normal file → Executable file
View file

2
security/nss/cmd/libpkix/pkix/params/Makefile Normal file → Executable file
View file

@ -20,8 +20,6 @@ include $(CORE_DEPTH)/coreconf/config.mk
# (3) Include "component" configuration information. (OPTIONAL) #
#######################################################################
include $(PKIX_DEPTH)/config.mk
#######################################################################
# (4) Include "local" platform-dependent assignments (OPTIONAL). #
#######################################################################

3
security/nss/cmd/libpkix/pkix/params/manifest.mn Normal file → Executable file
View file

@ -16,7 +16,8 @@ CSRCS = test_procparams.c \
test_resourcelimits.c \
$(NULL)
LIBRARY_NAME=pkixtoolparams
LIBRARY_NAME = pkixtoolparams
SHARED_LIBRARY = $(NULL)
SOURCE_LIB_DIR=$(PKIX_DEPTH)/$(OBJDIR)

2
security/nss/cmd/libpkix/pkix/results/Makefile Normal file → Executable file
View file

@ -20,8 +20,6 @@ include $(CORE_DEPTH)/coreconf/config.mk
# (3) Include "component" configuration information. (OPTIONAL) #
#######################################################################
include $(PKIX_DEPTH)/config.mk
#######################################################################
# (4) Include "local" platform-dependent assignments (OPTIONAL). #
#######################################################################

3
security/nss/cmd/libpkix/pkix/results/manifest.mn Normal file → Executable file
View file

@ -16,7 +16,8 @@ CSRCS = test_buildresult.c \
test_valresult.c \
$(NULL)
LIBRARY_NAME=pkixtoolresults
LIBRARY_NAME = pkixtoolresults
SHARED_LIBRARY = $(NULL)
SOURCE_LIB_DIR=$(PKIX_DEPTH)/$(OBJDIR)

2
security/nss/cmd/libpkix/pkix/store/Makefile Normal file → Executable file
View file

@ -20,8 +20,6 @@ include $(CORE_DEPTH)/coreconf/config.mk
# (3) Include "component" configuration information. (OPTIONAL) #
#######################################################################
include $(PKIX_DEPTH)/config.mk
#######################################################################
# (4) Include "local" platform-dependent assignments (OPTIONAL). #
#######################################################################

3
security/nss/cmd/libpkix/pkix/store/manifest.mn Normal file → Executable file
View file

@ -12,7 +12,8 @@ MODULE = nss
CSRCS = test_store.c
LIBRARY_NAME=pkixtoolstore
LIBRARY_NAME = pkixtoolstore
SHARED_LIBRARY = $(NULL)
SOURCE_LIB_DIR=$(PKIX_DEPTH)/$(OBJDIR)

2
security/nss/cmd/libpkix/pkix/top/Makefile Normal file → Executable file
View file

@ -20,8 +20,6 @@ include $(CORE_DEPTH)/coreconf/config.mk
# (3) Include "component" configuration information. (OPTIONAL) #
#######################################################################
include $(PKIX_DEPTH)/config.mk
#######################################################################
# (4) Include "local" platform-dependent assignments (OPTIONAL). #
#######################################################################

3
security/nss/cmd/libpkix/pkix/top/manifest.mn Normal file → Executable file
View file

@ -26,7 +26,8 @@ CSRCS = test_basicchecker.c \
test_validatechain_NB.c \
$(NULL)
LIBRARY_NAME=pkixtooltop
LIBRARY_NAME = pkixtooltop
SHARED_LIBRARY = $(NULL)
SOURCE_LIB_DIR=$(PKIX_DEPTH)/$(OBJDIR)

View file

@ -218,13 +218,13 @@ test_basicchecker(int argc, char *argv[])
testNameChainingFail(dirName, goodInput, diffInput, dateAscii);
testDateFail(dirName, goodInput, diffInput);
/*
/*
* XXX
* since the signature check is done last, we need to create
* certs whose name chaining passes, but their signatures fail;
* we currently don't have any such certs.
*/
/* testSignatureFail(goodInput, diffInput, dateAscii); */
/* testSignatureFail(goodInput, diffInput, dateAscii); */
cleanup:

2
security/nss/cmd/libpkix/pkix/util/Makefile Normal file → Executable file
View file

@ -20,8 +20,6 @@ include $(CORE_DEPTH)/coreconf/config.mk
# (3) Include "component" configuration information. (OPTIONAL) #
#######################################################################
include $(PKIX_DEPTH)/config.mk
#######################################################################
# (4) Include "local" platform-dependent assignments (OPTIONAL). #
#######################################################################

3
security/nss/cmd/libpkix/pkix/util/manifest.mn Normal file → Executable file
View file

@ -16,7 +16,8 @@ CSRCS = test_error.c \
test_logger.c \
$(NULL)
LIBRARY_NAME=pkixtoolutil
LIBRARY_NAME = pkixtoolutil
SHARED_LIBRARY = $(NULL)
SOURCE_LIB_DIR=$(PKIX_DEPTH)/$(OBJDIR)

2
security/nss/cmd/libpkix/pkix_pl/Makefile Normal file → Executable file
View file

@ -20,8 +20,6 @@ include $(CORE_DEPTH)/coreconf/config.mk
# (3) Include "component" configuration information. (OPTIONAL) #
#######################################################################
include $(PKIX_DEPTH)/config.mk
#######################################################################
# (4) Include "local" platform-dependent assignments (OPTIONAL). #
#######################################################################

0
security/nss/cmd/libpkix/pkix_pl/manifest.mn Normal file → Executable file
View file

2
security/nss/cmd/libpkix/pkix_pl/module/Makefile Normal file → Executable file
View file

@ -20,8 +20,6 @@ include $(CORE_DEPTH)/coreconf/config.mk
# (3) Include "component" configuration information. (OPTIONAL) #
#######################################################################
include $(PKIX_DEPTH)/config.mk
#######################################################################
# (4) Include "local" platform-dependent assignments (OPTIONAL). #
#######################################################################

3
security/nss/cmd/libpkix/pkix_pl/module/manifest.mn Normal file → Executable file
View file

@ -17,7 +17,8 @@ CSRCS = test_colcertstore.c \
test_httpcertstore.c \
$(NULL)
LIBRARY_NAME=pkixtoolmodule
LIBRARY_NAME = pkixtoolmodule
SHARED_LIBRARY = $(NULL)
SOURCE_LIB_DIR=$(PKIX_DEPTH)/$(OBJDIR)

2
security/nss/cmd/libpkix/pkix_pl/pki/Makefile Normal file → Executable file
View file

@ -20,8 +20,6 @@ include $(CORE_DEPTH)/coreconf/config.mk
# (3) Include "component" configuration information. (OPTIONAL) #
#######################################################################
include $(PKIX_DEPTH)/config.mk
#######################################################################
# (4) Include "local" platform-dependent assignments (OPTIONAL). #
#######################################################################

3
security/nss/cmd/libpkix/pkix_pl/pki/manifest.mn Normal file → Executable file
View file

@ -21,7 +21,8 @@ CSRCS = test_cert.c \
test_subjectinfoaccess.c \
$(NULL)
LIBRARY_NAME=pkixtoolpki
LIBRARY_NAME = pkixtoolpki
SHARED_LIBRARY = $(NULL)
SOURCE_LIB_DIR=$(PKIX_DEPTH)/$(OBJDIR)

View file

@ -106,7 +106,7 @@ test_generalname(int argc, char *argv[])
diffInput = "1.2.840.115349";
testNameType(PKIX_OID_NAME, goodInput, diffInput, goodInput);
/*
/*
* We don't support creating PKIX_EDIPARTY_NAME,
* PKIX_IP_NAME, OTHER_NAME, X400_ADDRESS from strings
*/

2
security/nss/cmd/libpkix/pkix_pl/system/Makefile Normal file → Executable file
View file

@ -20,8 +20,6 @@ include $(CORE_DEPTH)/coreconf/config.mk
# (3) Include "component" configuration information. (OPTIONAL) #
#######################################################################
include $(PKIX_DEPTH)/config.mk
#######################################################################
# (4) Include "local" platform-dependent assignments (OPTIONAL). #
#######################################################################

4
security/nss/cmd/libpkix/pkix_pl/system/manifest.mn Normal file → Executable file
View file

@ -30,8 +30,8 @@ CSRCS = test_bigint.c \
test_string2.c \
$(NULL)
LIBRARY_NAME=pkixtoolsys
LIBRARY_NAME = pkixtoolsys
SHARED_LIBRARY = $(NULL)
SOURCE_LIB_DIR=$(PKIX_DEPTH)/$(OBJDIR)

View file

@ -118,13 +118,12 @@ test_bigint(int argc, char *argv[])
PKIX_UInt32 actualMinorVersion;
PKIX_UInt32 j = 0;
char *bigIntValue[4] =
{
"03",
"ff",
"1010101010101010101010101010101010101010",
"1010101010101010101010101010101010101010",
};
char *bigIntValue[4] = {
"03",
"ff",
"1010101010101010101010101010101010101010",
"1010101010101010101010101010101010101010",
};
char *badValue[3] = { "00ff", "fff", "-ff" };

0
security/nss/cmd/libpkix/pkixlibs.mk Normal file → Executable file
View file

0
security/nss/cmd/libpkix/pkixrules.mk Normal file → Executable file
View file

0
security/nss/cmd/libpkix/sample_apps/Makefile Normal file → Executable file
View file

0
security/nss/cmd/libpkix/sample_apps/manifest.mn Normal file → Executable file
View file

1
security/nss/cmd/libpkix/testutil/Makefile Normal file → Executable file
View file

@ -47,5 +47,4 @@ include $(CORE_DEPTH)/coreconf/rules.mk
include $(PLAT_DEPTH)/platrules.mk
export:: private_export

View file

@ -5,11 +5,4 @@
# don't build the static library
LIBRARY =
ifeq (,$(filter-out WIN%,$(OS_TARGET)))
# don't want the 32 in the shared library name
SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
IMPORT_LIBRARY = $(OBJDIR)/$(IMPORT_LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)$(IMPORT_LIB_SUFFIX)
endif
RES =

1
security/nss/cmd/libpkix/testutil/manifest.mn Normal file → Executable file
View file

@ -20,6 +20,7 @@ CSRCS = \
$(NULL)
LIBRARY_NAME = pkixtooltestutil
SHARED_LIBRARY = $(NULL)
SOURCE_LIB_DIR = $(PKIX_DEPTH)/$(OBJDIR)