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
|
|
@ -5,7 +5,19 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
include manifest.mn
|
||||
include $(CORE_DEPTH)/coreconf/config.mk
|
||||
include config.mk
|
||||
include $(CORE_DEPTH)/coreconf/rules.mk
|
||||
|
||||
include $(CORE_DEPTH)/coreconf/config.mk
|
||||
|
||||
# NSS_X86 means the target is a 32-bits x86 CPU architecture
|
||||
# NSS_X64 means the target is a 64-bits x64 CPU architecture
|
||||
# NSS_X86_OR_X64 means the target is either x86 or x64
|
||||
ifeq (,$(filter-out i386 x386 x86 x86_64,$(CPU_ARCH)))
|
||||
DEFINES += -DNSS_X86_OR_X64
|
||||
ifdef USE_64
|
||||
DEFINES += -DNSS_X64
|
||||
else
|
||||
DEFINES += -DNSS_X86
|
||||
endif
|
||||
endif
|
||||
|
||||
include $(CORE_DEPTH)/coreconf/rules.mk
|
||||
|
|
|
|||
|
|
@ -1,26 +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/.
|
||||
|
||||
#
|
||||
# Override TARGETS variable so that only static libraries
|
||||
# are specifed as dependencies within rules.mk.
|
||||
#
|
||||
|
||||
TARGETS = $(LIBRARY)
|
||||
SHARED_LIBRARY =
|
||||
IMPORT_LIBRARY =
|
||||
PROGRAM =
|
||||
|
||||
# NSS_X86 means the target is a 32-bits x86 CPU architecture
|
||||
# NSS_X64 means the target is a 64-bits x64 CPU architecture
|
||||
# NSS_X86_OR_X64 means the target is either x86 or x64
|
||||
ifeq (,$(filter-out i386 x386 x86 x86_64,$(CPU_ARCH)))
|
||||
DEFINES += -DNSS_X86_OR_X64
|
||||
ifdef USE_64
|
||||
DEFINES += -DNSS_X64
|
||||
else
|
||||
DEFINES += -DNSS_X86
|
||||
endif
|
||||
endif
|
||||
|
|
@ -18,7 +18,7 @@ static void
|
|||
jar_destroy_list(ZZList *list);
|
||||
|
||||
static int
|
||||
jar_find_first_cert(JAR_Signer *signer, int type, JAR_Item **it);
|
||||
jar_find_first_cert(JAR_Signer *signer, jarType type, JAR_Item **it);
|
||||
|
||||
/*
|
||||
* J A R _ n e w
|
||||
|
|
@ -323,7 +323,7 @@ JAR_find_next(JAR_Context *ctx, JAR_Item **it)
|
|||
{
|
||||
JAR *jar;
|
||||
ZZList *list = NULL;
|
||||
int finding;
|
||||
jarType finding;
|
||||
JAR_Signer *signer = NULL;
|
||||
|
||||
PORT_Assert(ctx != NULL);
|
||||
|
|
@ -413,6 +413,13 @@ JAR_find_next(JAR_Context *ctx, JAR_Item **it)
|
|||
case jarTypeSign:
|
||||
ctx->next = ZZ_ListHead(signer->certs);
|
||||
break;
|
||||
|
||||
case jarTypeMF:
|
||||
case jarTypeMeta:
|
||||
case jarTypePhy:
|
||||
case jarTypeSect:
|
||||
case jarTypeOwner:
|
||||
break;
|
||||
}
|
||||
}
|
||||
PORT_Assert(ctx->next != NULL);
|
||||
|
|
@ -447,7 +454,7 @@ JAR_find_next(JAR_Context *ctx, JAR_Item **it)
|
|||
}
|
||||
|
||||
static int
|
||||
jar_find_first_cert(JAR_Signer *signer, int type, JAR_Item **it)
|
||||
jar_find_first_cert(JAR_Signer *signer, jarType type, JAR_Item **it)
|
||||
{
|
||||
ZZLink *link;
|
||||
ZZList *list = signer->certs;
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ typedef struct JAR_Physical_ {
|
|||
unsigned long offset;
|
||||
unsigned long length;
|
||||
unsigned long uncompressed_length;
|
||||
#if defined(XP_UNIX) || defined(XP_BEOS)
|
||||
#if defined(XP_UNIX)
|
||||
PRUint16 mode;
|
||||
#endif
|
||||
} JAR_Physical;
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
/* commercial compression */
|
||||
#include "jzlib.h"
|
||||
|
||||
#if defined(XP_UNIX) || defined(XP_BEOS)
|
||||
#if defined(XP_UNIX)
|
||||
#include "sys/stat.h"
|
||||
#endif
|
||||
|
||||
|
|
@ -219,7 +219,7 @@ JAR_extract(JAR *jar, char *path, char *outpath)
|
|||
(unsigned int)phy->compression);
|
||||
}
|
||||
|
||||
#if defined(XP_UNIX) || defined(XP_BEOS)
|
||||
#if defined(XP_UNIX)
|
||||
if (phy->mode)
|
||||
chmod(outpath, 0400 | (mode_t)phy->mode);
|
||||
#endif
|
||||
|
|
@ -755,14 +755,16 @@ jar_listzip(JAR *jar, JAR_FILE fp)
|
|||
ZZ_AppendLink(jar->phy, ent);
|
||||
pos = phy->offset + phy->length;
|
||||
} else if (sigVal == CSIG) {
|
||||
#if defined(XP_UNIX)
|
||||
unsigned int attr = 0;
|
||||
#endif
|
||||
if (JAR_FREAD(fp, Central, sizeof *Central) != sizeof *Central) {
|
||||
/* apparently truncated archive */
|
||||
err = JAR_ERR_CORRUPT;
|
||||
goto loser;
|
||||
}
|
||||
|
||||
#if defined(XP_UNIX) || defined(XP_BEOS)
|
||||
#if defined(XP_UNIX)
|
||||
/* with unix we need to locate any bits from
|
||||
the protection mask in the external attributes. */
|
||||
attr = Central->external_attributes[2]; /* magic */
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
MODULE = nss
|
||||
|
||||
LIBRARY_NAME = jar
|
||||
SHARED_LIBRARY = $(NULL)
|
||||
|
||||
CORE_DEPTH = ../..
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue