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/pk11gcmtest/Makefile Normal file → Executable file
View file

View file

@ -9,12 +9,6 @@ MODULE = nss
PROGRAM = pk11gcmtest
EXPORTS = \
$(NULL)
PRIVATE_EXPORTS = \
$(NULL)
CSRCS = \
pk11gcmtest.c \
$(NULL)

View file

@ -45,7 +45,7 @@ aes_encrypt_buf(
SECItem key_item;
PK11SlotInfo *slot = NULL;
PK11SymKey *symKey = NULL;
CK_GCM_PARAMS gcm_params;
CK_NSS_GCM_PARAMS gcm_params;
SECItem param;
/* Import key into NSS. */
@ -102,7 +102,7 @@ aes_decrypt_buf(
SECItem key_item;
PK11SlotInfo *slot = NULL;
PK11SymKey *symKey = NULL;
CK_GCM_PARAMS gcm_params;
CK_NSS_GCM_PARAMS gcm_params;
SECItem param;
if (inputlen + tagsize > sizeof(concatenated)) {
@ -439,10 +439,13 @@ loser:
int
main(int argc, char **argv)
{
if (argc < 2)
exit(1);
if (argc < 2) {
return 1;
}
NSS_NoDB_Init(NULL);
if (NSS_NoDB_Init(NULL) != SECSuccess) {
return 1;
}
/*************/
/* AES */
@ -455,6 +458,8 @@ main(int argc, char **argv)
}
}
NSS_Shutdown();
if (NSS_Shutdown() != SECSuccess) {
return 1;
}
return 0;
}