mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 07:17: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/pk11mode/Makefile
Normal file → Executable file
0
security/nss/cmd/pk11mode/Makefile
Normal file → Executable file
|
|
@ -7,8 +7,6 @@ CORE_DEPTH = ../..
|
|||
|
||||
MODULE = nss
|
||||
|
||||
EXPORTS =
|
||||
|
||||
CSRCS = pk11mode.c
|
||||
|
||||
PROGRAM = pk11mode
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
#include <string.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#if defined(XP_UNIX) && !defined(NO_FORK_CHECK)
|
||||
#if defined(XP_UNIX) && defined(DO_FORK_CHECK)
|
||||
#include <unistd.h>
|
||||
#include <sys/wait.h>
|
||||
#else
|
||||
|
|
@ -96,8 +96,7 @@ int MODE = FIPSMODE;
|
|||
CK_BBOOL true = CK_TRUE;
|
||||
CK_BBOOL false = CK_FALSE;
|
||||
static const CK_BYTE PLAINTEXT[] = { "Firefox Rules!" };
|
||||
static const CK_BYTE PLAINTEXT_PAD[] =
|
||||
{ "Firefox and thunderbird rule the world!" };
|
||||
static const CK_BYTE PLAINTEXT_PAD[] = { "Firefox and thunderbird rule the world!" };
|
||||
CK_ULONG NUMTESTS = 0;
|
||||
|
||||
static const char *slotFlagName[] = {
|
||||
|
|
@ -323,6 +322,7 @@ main(int argc, char **argv)
|
|||
CK_FUNCTION_LIST_PTR pFunctionList;
|
||||
CK_RV crv = CKR_OK;
|
||||
CK_C_INITIALIZE_ARGS_NSS initArgs;
|
||||
CK_C_INITIALIZE_ARGS_NSS initArgsRerun; /* rerun selftests */
|
||||
CK_SLOT_ID *pSlotList = NULL;
|
||||
CK_TOKEN_INFO tokenInfo;
|
||||
CK_ULONG slotID = 0; /* slotID == 0 for FIPSMODE */
|
||||
|
|
@ -330,6 +330,7 @@ main(int argc, char **argv)
|
|||
CK_UTF8CHAR *pwd = NULL;
|
||||
CK_ULONG pwdLen = 0;
|
||||
char *moduleSpec = NULL;
|
||||
char *moduleSpecRerun = NULL;
|
||||
char *configDir = NULL;
|
||||
char *dbPrefix = NULL;
|
||||
char *disableUnload = NULL;
|
||||
|
|
@ -463,8 +464,13 @@ main(int argc, char **argv)
|
|||
moduleSpec = PR_smprintf("configdir='%s' certPrefix='%s' "
|
||||
"keyPrefix='%s' secmod='secmod.db' flags= ",
|
||||
configDir, dbPrefix, dbPrefix);
|
||||
moduleSpecRerun = PR_smprintf("configdir='%s' certPrefix='%s' "
|
||||
"keyPrefix='%s' secmod='secmod.db' flags=forcePOST ",
|
||||
configDir, dbPrefix, dbPrefix);
|
||||
initArgs.LibraryParameters = (CK_CHAR_PTR *)moduleSpec;
|
||||
initArgs.pReserved = NULL;
|
||||
initArgsRerun = initArgs;
|
||||
initArgsRerun.LibraryParameters = (CK_CHAR_PTR *)moduleSpecRerun;
|
||||
|
||||
/*DebugBreak();*/
|
||||
/* FIPSMODE invokes FC_Initialize as pFunctionList->C_Initialize */
|
||||
|
|
@ -710,7 +716,7 @@ main(int argc, char **argv)
|
|||
if (doForkTests) {
|
||||
/* testing one more C_Initialize / C_Finalize to exercise getpid()
|
||||
* fork check code */
|
||||
crv = pFunctionList->C_Initialize(&initArgs);
|
||||
crv = pFunctionList->C_Initialize(&initArgsRerun);
|
||||
if (crv == CKR_OK) {
|
||||
PKM_LogIt("C_Initialize succeeded\n");
|
||||
} else {
|
||||
|
|
@ -746,6 +752,9 @@ cleanup:
|
|||
if (moduleSpec) {
|
||||
PR_smprintf_free(moduleSpec);
|
||||
}
|
||||
if (moduleSpecRerun) {
|
||||
PR_smprintf_free(moduleSpecRerun);
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
FreeLibrary(hModule);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue