mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 07:47:32 +09:00
Replace NSS with Pale Moon's
This commit is contained in:
parent
ff1e5e48bf
commit
8c2e376f94
2870 changed files with 1762232 additions and 1374220 deletions
0
security/nss/cmd/pk11gcmtest/Makefile
Normal file → Executable file
0
security/nss/cmd/pk11gcmtest/Makefile
Normal file → Executable file
|
|
@ -9,12 +9,6 @@ MODULE = nss
|
|||
|
||||
PROGRAM = pk11gcmtest
|
||||
|
||||
EXPORTS = \
|
||||
$(NULL)
|
||||
|
||||
PRIVATE_EXPORTS = \
|
||||
$(NULL)
|
||||
|
||||
CSRCS = \
|
||||
pk11gcmtest.c \
|
||||
$(NULL)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue