re-introduce old nss im too tired for this

This commit is contained in:
wuggy 2026-06-30 06:37:32 +01:00
commit 3a838106b9
2871 changed files with 1374431 additions and 1762417 deletions

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

View file

@ -9,6 +9,12 @@ 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_NSS_GCM_PARAMS gcm_params;
CK_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_NSS_GCM_PARAMS gcm_params;
CK_GCM_PARAMS gcm_params;
SECItem param;
if (inputlen + tagsize > sizeof(concatenated)) {
@ -439,13 +439,10 @@ loser:
int
main(int argc, char **argv)
{
if (argc < 2) {
return 1;
}
if (argc < 2)
exit(1);
if (NSS_NoDB_Init(NULL) != SECSuccess) {
return 1;
}
NSS_NoDB_Init(NULL);
/*************/
/* AES */
@ -458,8 +455,6 @@ main(int argc, char **argv)
}
}
if (NSS_Shutdown() != SECSuccess) {
return 1;
}
NSS_Shutdown();
return 0;
}