Compare commits
21 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
a92ce2d962 | ||
|
58aff80c03 | ||
|
28f68c85f5 | ||
|
64a48cd997 | ||
|
36aa0b239b | ||
|
7de08121a4 | ||
|
86f33dd63a | ||
|
fad8bd4953 | ||
|
66df6d2135 | ||
|
4521183f36 | ||
|
0bcbceb525 | ||
|
c4a7ff31ec | ||
|
b1121a2732 | ||
|
b8c5640659 | ||
|
7c3430f24f | ||
|
77ddabc0b0 | ||
|
06167b3620 | ||
|
7ac2515ded | ||
|
a141d8c1c5 | ||
|
5837b7b917 | ||
|
30cca25c10 |
11
.gitignore
vendored
11
.gitignore
vendored
@ -24,3 +24,14 @@ TestUser51.cert
|
|||||||
/nss-3.33.0.tar.gz
|
/nss-3.33.0.tar.gz
|
||||||
/nss-3.34.0.tar.gz
|
/nss-3.34.0.tar.gz
|
||||||
/nss-3.35.0.tar.gz
|
/nss-3.35.0.tar.gz
|
||||||
|
/nss-3.36.0.tar.gz
|
||||||
|
/nss-3.36.1.tar.gz
|
||||||
|
/nss-3.37.1.tar.gz
|
||||||
|
/nss-3.37.3.tar.gz
|
||||||
|
/nss-3.38.0.tar.gz
|
||||||
|
/nss-3.39.tar.gz
|
||||||
|
/nss-3.40.1.tar.gz
|
||||||
|
/nss-3.41.tar.gz
|
||||||
|
/nss-3.42.tar.gz
|
||||||
|
/nss-3.42.1.tar.gz
|
||||||
|
/nss-3.43.tar.gz
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
diff -up nss/coreconf/Linux.mk.relro nss/coreconf/Linux.mk
|
|
||||||
--- nss/coreconf/Linux.mk.relro 2013-04-09 14:29:45.943228682 -0700
|
|
||||||
+++ nss/coreconf/Linux.mk 2013-04-09 14:31:26.194953927 -0700
|
|
||||||
@@ -174,6 +174,12 @@ endif
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
+# harden DSOs/executables a bit against exploits
|
|
||||||
+ifeq (2.6,$(firstword $(sort 2.6 $(OS_RELEASE))))
|
|
||||||
+DSO_LDOPTS+=-Wl,-z,relro
|
|
||||||
+LDFLAGS += -Wl,-z,relro
|
|
||||||
+endif
|
|
||||||
+
|
|
||||||
USE_SYSTEM_ZLIB = 1
|
|
||||||
ZLIB_LIBS = -lz
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
diff -up nss/tests/chains/scenarios/scenarios.noocsptest nss/tests/chains/scenarios/scenarios
|
|
||||||
--- nss/tests/chains/scenarios/scenarios.noocsptest 2013-06-27 10:58:08.000000000 -0700
|
|
||||||
+++ nss/tests/chains/scenarios/scenarios 2013-07-02 16:13:27.075038930 -0700
|
|
||||||
@@ -50,7 +50,6 @@ bridgewithpolicyextensionandmapping.cfg
|
|
||||||
realcerts.cfg
|
|
||||||
dsa.cfg
|
|
||||||
revoc.cfg
|
|
||||||
-ocsp.cfg
|
|
||||||
crldp.cfg
|
|
||||||
trustanchors.cfg
|
|
||||||
nameconstraints.cfg
|
|
@ -1,5 +1,5 @@
|
|||||||
--- ./nss/cmd/httpserv/httpserv.c.539183 2016-05-21 18:31:39.879585420 -0700
|
--- nss/cmd/httpserv/httpserv.c.539183 2016-05-21 18:31:39.879585420 -0700
|
||||||
+++ ./nss/cmd/httpserv/httpserv.c 2016-05-21 18:37:22.374464057 -0700
|
+++ nss/cmd/httpserv/httpserv.c 2016-05-21 18:37:22.374464057 -0700
|
||||||
@@ -953,23 +953,23 @@
|
@@ -953,23 +953,23 @@
|
||||||
getBoundListenSocket(unsigned short port)
|
getBoundListenSocket(unsigned short port)
|
||||||
{
|
{
|
||||||
@ -29,8 +29,8 @@
|
|||||||
if (prStatus < 0) {
|
if (prStatus < 0) {
|
||||||
PR_Close(listen_sock);
|
PR_Close(listen_sock);
|
||||||
errExit("PR_SetSocketOption(PR_SockOpt_Nonblocking)");
|
errExit("PR_SetSocketOption(PR_SockOpt_Nonblocking)");
|
||||||
--- ./nss/cmd/selfserv/selfserv.c.539183 2016-05-21 18:31:39.882585367 -0700
|
--- nss/cmd/selfserv/selfserv.c.539183 2016-05-21 18:31:39.882585367 -0700
|
||||||
+++ ./nss/cmd/selfserv/selfserv.c 2016-05-21 18:41:43.092801174 -0700
|
+++ nss/cmd/selfserv/selfserv.c 2016-05-21 18:41:43.092801174 -0700
|
||||||
@@ -1711,23 +1711,23 @@
|
@@ -1711,23 +1711,23 @@
|
||||||
getBoundListenSocket(unsigned short port)
|
getBoundListenSocket(unsigned short port)
|
||||||
{
|
{
|
||||||
|
@ -1,49 +0,0 @@
|
|||||||
diff -up nss/lib/pk11wrap/pk11pars.c.check_policy_file nss/lib/pk11wrap/pk11pars.c
|
|
||||||
--- nss/lib/pk11wrap/pk11pars.c.check_policy_file 2017-01-06 13:21:47.002952050 +0100
|
|
||||||
+++ nss/lib/pk11wrap/pk11pars.c 2017-01-06 13:28:18.972536334 +0100
|
|
||||||
@@ -109,6 +109,7 @@ secmod_NewModule(void)
|
|
||||||
*other flags are set */
|
|
||||||
#define SECMOD_FLAG_MODULE_DB_SKIP_FIRST 0x02
|
|
||||||
#define SECMOD_FLAG_MODULE_DB_DEFAULT_MODDB 0x04
|
|
||||||
+#define SECMOD_FLAG_MODULE_DB_POLICY_ONLY 0x08
|
|
||||||
|
|
||||||
/* private flags for internal (field in SECMODModule). */
|
|
||||||
/* The meaing of these flags is as follows:
|
|
||||||
@@ -704,6 +705,9 @@ SECMOD_CreateModuleEx(const char *librar
|
|
||||||
if (NSSUTIL_ArgHasFlag("flags", "defaultModDB", nssc)) {
|
|
||||||
flags |= SECMOD_FLAG_MODULE_DB_DEFAULT_MODDB;
|
|
||||||
}
|
|
||||||
+ if (NSSUTIL_ArgHasFlag("flags", "policyOnly", nssc)) {
|
|
||||||
+ flags |= SECMOD_FLAG_MODULE_DB_POLICY_ONLY;
|
|
||||||
+ }
|
|
||||||
/* additional moduleDB flags could be added here in the future */
|
|
||||||
mod->isModuleDB = (PRBool)flags;
|
|
||||||
}
|
|
||||||
@@ -744,6 +748,14 @@ SECMOD_GetDefaultModDBFlag(SECMODModule
|
|
||||||
}
|
|
||||||
|
|
||||||
PRBool
|
|
||||||
+secmod_PolicyOnly(SECMODModule *mod)
|
|
||||||
+{
|
|
||||||
+ char flags = (char) mod->isModuleDB;
|
|
||||||
+
|
|
||||||
+ return (flags & SECMOD_FLAG_MODULE_DB_POLICY_ONLY) ? PR_TRUE : PR_FALSE;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+PRBool
|
|
||||||
secmod_IsInternalKeySlot(SECMODModule *mod)
|
|
||||||
{
|
|
||||||
char flags = (char)mod->internal;
|
|
||||||
@@ -1661,6 +1673,12 @@ SECMOD_LoadModule(char *modulespec, SECM
|
|
||||||
if (!module) {
|
|
||||||
goto loser;
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+ /* a policy only stanza doesn't actually get 'loaded'. policy has already
|
|
||||||
+ * been parsed as a side effect of the CreateModuleEx call */
|
|
||||||
+ if (secmod_PolicyOnly(module)) {
|
|
||||||
+ return module;
|
|
||||||
+ }
|
|
||||||
if (parent) {
|
|
||||||
module->parent = SECMOD_ReferenceModule(parent);
|
|
||||||
if (module->internal && secmod_IsInternalKeySlot(parent)) {
|
|
@ -1,15 +0,0 @@
|
|||||||
diff -up ./nss/cmd/Makefile.skipthem ./nss/cmd/Makefile
|
|
||||||
--- ./nss/cmd/Makefile.skipthem 2017-01-06 13:17:27.477848351 +0100
|
|
||||||
+++ ./nss/cmd/Makefile 2017-01-06 13:19:30.244586100 +0100
|
|
||||||
@@ -19,7 +19,11 @@ BLTEST_SRCDIR =
|
|
||||||
ECPERF_SRCDIR =
|
|
||||||
FREEBL_ECTEST_SRCDIR =
|
|
||||||
FIPSTEST_SRCDIR =
|
|
||||||
+ifeq ($(NSS_BLTEST_NOT_AVAILABLE),1)
|
|
||||||
+SHLIBSIGN_SRCDIR = shlibsign
|
|
||||||
+else
|
|
||||||
SHLIBSIGN_SRCDIR =
|
|
||||||
+endif
|
|
||||||
else
|
|
||||||
BLTEST_SRCDIR = bltest
|
|
||||||
ECPERF_SRCDIR = ecperf
|
|
@ -1,10 +0,0 @@
|
|||||||
diff -up nss/gtests/manifest.mn.skip_util_gtest nss/gtests/manifest.mn
|
|
||||||
--- nss/gtests/manifest.mn.skip_util_gtest 2017-08-08 12:45:57.598801125 +0200
|
|
||||||
+++ nss/gtests/manifest.mn 2017-08-08 12:46:59.682419852 +0200
|
|
||||||
@@ -31,6 +31,5 @@ endif
|
|
||||||
|
|
||||||
DIRS = \
|
|
||||||
$(LIB_SRCDIRS) \
|
|
||||||
- $(UTIL_SRCDIRS) \
|
|
||||||
$(NSS_SRCDIRS) \
|
|
||||||
$(NULL)
|
|
116
nss-softokn-config.in
Normal file
116
nss-softokn-config.in
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
prefix=@prefix@
|
||||||
|
|
||||||
|
major_version=@MOD_MAJOR_VERSION@
|
||||||
|
minor_version=@MOD_MINOR_VERSION@
|
||||||
|
patch_version=@MOD_PATCH_VERSION@
|
||||||
|
|
||||||
|
usage()
|
||||||
|
{
|
||||||
|
cat <<EOF
|
||||||
|
Usage: nss-softokn-config [OPTIONS] [LIBRARIES]
|
||||||
|
Options:
|
||||||
|
[--prefix[=DIR]]
|
||||||
|
[--exec-prefix[=DIR]]
|
||||||
|
[--includedir[=DIR]]
|
||||||
|
[--libdir[=DIR]]
|
||||||
|
[--version]
|
||||||
|
[--libs]
|
||||||
|
[--cflags]
|
||||||
|
Dynamic Libraries:
|
||||||
|
softokn3 - Requires full dynamic linking
|
||||||
|
freebl3 - for internal use only (and glibc for self-integrity check)
|
||||||
|
nssdbm3 - for internal use only
|
||||||
|
Dymamically linked
|
||||||
|
EOF
|
||||||
|
exit $1
|
||||||
|
}
|
||||||
|
|
||||||
|
if test $# -eq 0; then
|
||||||
|
usage 1 1>&2
|
||||||
|
fi
|
||||||
|
|
||||||
|
while test $# -gt 0; do
|
||||||
|
case "$1" in
|
||||||
|
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
||||||
|
*) optarg= ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
--prefix=*)
|
||||||
|
prefix=$optarg
|
||||||
|
;;
|
||||||
|
--prefix)
|
||||||
|
echo_prefix=yes
|
||||||
|
;;
|
||||||
|
--exec-prefix=*)
|
||||||
|
exec_prefix=$optarg
|
||||||
|
;;
|
||||||
|
--exec-prefix)
|
||||||
|
echo_exec_prefix=yes
|
||||||
|
;;
|
||||||
|
--includedir=*)
|
||||||
|
includedir=$optarg
|
||||||
|
;;
|
||||||
|
--includedir)
|
||||||
|
echo_includedir=yes
|
||||||
|
;;
|
||||||
|
--libdir=*)
|
||||||
|
libdir=$optarg
|
||||||
|
;;
|
||||||
|
--libdir)
|
||||||
|
echo_libdir=yes
|
||||||
|
;;
|
||||||
|
--version)
|
||||||
|
echo ${major_version}.${minor_version}.${patch_version}
|
||||||
|
;;
|
||||||
|
--cflags)
|
||||||
|
echo_cflags=yes
|
||||||
|
;;
|
||||||
|
--libs)
|
||||||
|
echo_libs=yes
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
usage 1 1>&2
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
# Set variables that may be dependent upon other variables
|
||||||
|
if test -z "$exec_prefix"; then
|
||||||
|
exec_prefix=`pkg-config --variable=exec_prefix nss-softokn`
|
||||||
|
fi
|
||||||
|
if test -z "$includedir"; then
|
||||||
|
includedir=`pkg-config --variable=includedir nss-softokn`
|
||||||
|
fi
|
||||||
|
if test -z "$libdir"; then
|
||||||
|
libdir=`pkg-config --variable=libdir nss-softokn`
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$echo_prefix" = "yes"; then
|
||||||
|
echo $prefix
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$echo_exec_prefix" = "yes"; then
|
||||||
|
echo $exec_prefix
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$echo_includedir" = "yes"; then
|
||||||
|
echo $includedir
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$echo_libdir" = "yes"; then
|
||||||
|
echo $libdir
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$echo_cflags" = "yes"; then
|
||||||
|
echo -I$includedir
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$echo_libs" = "yes"; then
|
||||||
|
libdirs="-Wl,-rpath-link,$libdir -L$libdir"
|
||||||
|
echo $libdirs
|
||||||
|
fi
|
||||||
|
|
18
nss-softokn-dracut-module-setup.sh
Normal file
18
nss-softokn-dracut-module-setup.sh
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
||||||
|
# ex: ts=8 sw=4 sts=4 et filetype=sh
|
||||||
|
|
||||||
|
check() {
|
||||||
|
return 255
|
||||||
|
}
|
||||||
|
|
||||||
|
depends() {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
install() {
|
||||||
|
local _dir
|
||||||
|
|
||||||
|
inst_libdir_file libfreeblpriv3.so libfreeblpriv3.chk \
|
||||||
|
libfreebl3.so
|
||||||
|
}
|
3
nss-softokn-dracut.conf
Normal file
3
nss-softokn-dracut.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# turn on nss-softokn module
|
||||||
|
|
||||||
|
add_dracutmodules+=" nss-softokn "
|
6
nss-softokn-prelink.conf
Normal file
6
nss-softokn-prelink.conf
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
-b /lib{,64}/libfreeblpriv3.so
|
||||||
|
-b /lib{,64}/libsoftokn3.so
|
||||||
|
-b /lib{,64}/libnssdbm3.so
|
||||||
|
-b /usr/lib{,64}/libfreeblpriv3.so
|
||||||
|
-b /usr/lib{,64}/libsoftokn3.so
|
||||||
|
-b /usr/lib{,64}/libnssdbm3.so
|
11
nss-softokn.pc.in
Normal file
11
nss-softokn.pc.in
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
prefix=%prefix%
|
||||||
|
exec_prefix=%exec_prefix%
|
||||||
|
libdir=%libdir%
|
||||||
|
includedir=%includedir%
|
||||||
|
|
||||||
|
Name: NSS-SOFTOKN
|
||||||
|
Description: Network Security Services Softoken PKCS #11 Module
|
||||||
|
Version: %SOFTOKEN_VERSION%
|
||||||
|
Requires: nspr >= %NSPR_VERSION%, nss-util >= %NSSUTIL_VERSION%
|
||||||
|
Libs: -L${libdir} -lfreebl3 -lnssdbm3 -lsoftokn3
|
||||||
|
Cflags: -I${includedir}
|
118
nss-util-config.in
Normal file
118
nss-util-config.in
Normal file
@ -0,0 +1,118 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
prefix=@prefix@
|
||||||
|
|
||||||
|
major_version=@MOD_MAJOR_VERSION@
|
||||||
|
minor_version=@MOD_MINOR_VERSION@
|
||||||
|
patch_version=@MOD_PATCH_VERSION@
|
||||||
|
|
||||||
|
usage()
|
||||||
|
{
|
||||||
|
cat <<EOF
|
||||||
|
Usage: nss-util-config [OPTIONS] [LIBRARIES]
|
||||||
|
Options:
|
||||||
|
[--prefix[=DIR]]
|
||||||
|
[--exec-prefix[=DIR]]
|
||||||
|
[--includedir[=DIR]]
|
||||||
|
[--libdir[=DIR]]
|
||||||
|
[--version]
|
||||||
|
[--libs]
|
||||||
|
[--cflags]
|
||||||
|
Dynamic Libraries:
|
||||||
|
nssutil
|
||||||
|
EOF
|
||||||
|
exit $1
|
||||||
|
}
|
||||||
|
|
||||||
|
if test $# -eq 0; then
|
||||||
|
usage 1 1>&2
|
||||||
|
fi
|
||||||
|
|
||||||
|
lib_nssutil=yes
|
||||||
|
|
||||||
|
while test $# -gt 0; do
|
||||||
|
case "$1" in
|
||||||
|
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
||||||
|
*) optarg= ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
--prefix=*)
|
||||||
|
prefix=$optarg
|
||||||
|
;;
|
||||||
|
--prefix)
|
||||||
|
echo_prefix=yes
|
||||||
|
;;
|
||||||
|
--exec-prefix=*)
|
||||||
|
exec_prefix=$optarg
|
||||||
|
;;
|
||||||
|
--exec-prefix)
|
||||||
|
echo_exec_prefix=yes
|
||||||
|
;;
|
||||||
|
--includedir=*)
|
||||||
|
includedir=$optarg
|
||||||
|
;;
|
||||||
|
--includedir)
|
||||||
|
echo_includedir=yes
|
||||||
|
;;
|
||||||
|
--libdir=*)
|
||||||
|
libdir=$optarg
|
||||||
|
;;
|
||||||
|
--libdir)
|
||||||
|
echo_libdir=yes
|
||||||
|
;;
|
||||||
|
--version)
|
||||||
|
echo ${major_version}.${minor_version}.${patch_version}
|
||||||
|
;;
|
||||||
|
--cflags)
|
||||||
|
echo_cflags=yes
|
||||||
|
;;
|
||||||
|
--libs)
|
||||||
|
echo_libs=yes
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
usage 1 1>&2
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
# Set variables that may be dependent upon other variables
|
||||||
|
if test -z "$exec_prefix"; then
|
||||||
|
exec_prefix=`pkg-config --variable=exec_prefix nss-util`
|
||||||
|
fi
|
||||||
|
if test -z "$includedir"; then
|
||||||
|
includedir=`pkg-config --variable=includedir nss-util`
|
||||||
|
fi
|
||||||
|
if test -z "$libdir"; then
|
||||||
|
libdir=`pkg-config --variable=libdir nss-util`
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$echo_prefix" = "yes"; then
|
||||||
|
echo $prefix
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$echo_exec_prefix" = "yes"; then
|
||||||
|
echo $exec_prefix
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$echo_includedir" = "yes"; then
|
||||||
|
echo $includedir
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$echo_libdir" = "yes"; then
|
||||||
|
echo $libdir
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$echo_cflags" = "yes"; then
|
||||||
|
echo -I$includedir
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$echo_libs" = "yes"; then
|
||||||
|
libdirs="-Wl,-rpath-link,$libdir -L$libdir"
|
||||||
|
if test -n "$lib_nssutil"; then
|
||||||
|
libdirs="$libdirs -lnssutil${major_version}"
|
||||||
|
fi
|
||||||
|
echo $libdirs
|
||||||
|
fi
|
||||||
|
|
11
nss-util.pc.in
Normal file
11
nss-util.pc.in
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
prefix=%prefix%
|
||||||
|
exec_prefix=%exec_prefix%
|
||||||
|
libdir=%libdir%
|
||||||
|
includedir=%includedir%
|
||||||
|
|
||||||
|
Name: NSS-UTIL
|
||||||
|
Description: Network Security Services Utility Library
|
||||||
|
Version: %NSSUTIL_VERSION%
|
||||||
|
Requires: nspr >= %NSPR_VERSION%
|
||||||
|
Libs: -L${libdir} -lnssutil3
|
||||||
|
Cflags: -I${includedir}
|
@ -1,12 +0,0 @@
|
|||||||
diff -up ./nss/lib/ssl/sslsock.c.transitional ./nss/lib/ssl/sslsock.c
|
|
||||||
--- ./nss/lib/ssl/sslsock.c.transitional 2016-06-23 21:03:16.316480089 -0400
|
|
||||||
+++ ./nss/lib/ssl/sslsock.c 2016-06-23 21:08:07.290202477 -0400
|
|
||||||
@@ -72,7 +72,7 @@ static sslOptions ssl_defaults = {
|
|
||||||
PR_FALSE, /* noLocks */
|
|
||||||
PR_FALSE, /* enableSessionTickets */
|
|
||||||
PR_FALSE, /* enableDeflate */
|
|
||||||
- 2, /* enableRenegotiation (default: requires extension) */
|
|
||||||
+ 3, /* enableRenegotiation (default: transitional) */
|
|
||||||
PR_FALSE, /* requireSafeNegotiation */
|
|
||||||
PR_FALSE, /* enableFalseStart */
|
|
||||||
PR_TRUE, /* cbcRandomIV */
|
|
@ -1,23 +0,0 @@
|
|||||||
--- ./nss/lib/ssl/ssl3con.c.1185708_3des 2016-06-23 21:10:09.765992512 -0400
|
|
||||||
+++ ./nss/lib/ssl/ssl3con.c 2016-06-23 22:58:39.121398601 -0400
|
|
||||||
@@ -118,18 +118,18 @@
|
|
||||||
{ TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, SSL_ALLOWED, PR_TRUE, PR_FALSE},
|
|
||||||
{ TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, SSL_ALLOWED, PR_TRUE, PR_FALSE},
|
|
||||||
{ TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, SSL_ALLOWED, PR_TRUE, PR_FALSE},
|
|
||||||
{ TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, SSL_ALLOWED, PR_TRUE, PR_FALSE},
|
|
||||||
{ TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, SSL_ALLOWED, PR_TRUE, PR_FALSE},
|
|
||||||
{ TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, SSL_ALLOWED, PR_TRUE, PR_FALSE},
|
|
||||||
{ TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, SSL_ALLOWED, PR_FALSE, PR_FALSE},
|
|
||||||
{ TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, SSL_ALLOWED, PR_FALSE, PR_FALSE},
|
|
||||||
- { TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA, SSL_ALLOWED, PR_FALSE, PR_FALSE},
|
|
||||||
- { TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_ALLOWED, PR_FALSE, PR_FALSE},
|
|
||||||
+ { TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA, SSL_ALLOWED, PR_TRUE, PR_FALSE},
|
|
||||||
+ { TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_ALLOWED, PR_TRUE, PR_FALSE},
|
|
||||||
{ TLS_ECDHE_ECDSA_WITH_RC4_128_SHA, SSL_ALLOWED, PR_FALSE, PR_FALSE},
|
|
||||||
{ TLS_ECDHE_RSA_WITH_RC4_128_SHA, SSL_ALLOWED, PR_FALSE, PR_FALSE},
|
|
||||||
|
|
||||||
{ TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, SSL_ALLOWED, PR_TRUE, PR_FALSE},
|
|
||||||
{ TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256,SSL_ALLOWED,PR_TRUE, PR_FALSE},
|
|
||||||
{ TLS_DHE_DSS_WITH_AES_128_GCM_SHA256, SSL_ALLOWED, PR_FALSE, PR_FALSE},
|
|
||||||
{ TLS_DHE_RSA_WITH_AES_256_GCM_SHA384, SSL_ALLOWED, PR_FALSE, PR_FALSE},
|
|
||||||
{ TLS_DHE_DSS_WITH_AES_256_GCM_SHA384, SSL_ALLOWED, PR_FALSE, PR_FALSE},
|
|
@ -1,56 +0,0 @@
|
|||||||
diff -up ./nss/cmd/signtool/sign.c.org ./nss/cmd/signtool/sign.c
|
|
||||||
--- ./nss/cmd/signtool/sign.c.org 2018-01-18 15:19:59.000000000 +0100
|
|
||||||
+++ ./nss/cmd/signtool/sign.c 2018-01-29 22:46:32.599450048 +0100
|
|
||||||
@@ -83,7 +83,12 @@ SignArchive(char *tree, char *keyName, c
|
|
||||||
/* rsa/dsa to zip */
|
|
||||||
sprintf(tempfn, "META-INF/%s.%s", base, (keyType == dsaKey ? "dsa"
|
|
||||||
: "rsa"));
|
|
||||||
- sprintf(fullfn, "%s/%s", tree, tempfn);
|
|
||||||
+ if (snprintf(fullfn, FNSIZE, "%s/%s", tree, tempfn) >= FNSIZE) {
|
|
||||||
+ PR_fprintf(errorFD, "buffer overflow, the tree \"%s\" was NOT SUCCESSFULLY SIGNED\n",
|
|
||||||
+ tree);
|
|
||||||
+ errorCount++;
|
|
||||||
+ exit(ERRX);
|
|
||||||
+ }
|
|
||||||
JzipAdd(fullfn, tempfn, zipfile, compression_level);
|
|
||||||
|
|
||||||
/* Loop through all files & subdirectories, add to archive */
|
|
||||||
@@ -93,12 +98,22 @@ SignArchive(char *tree, char *keyName, c
|
|
||||||
}
|
|
||||||
/* mf to zip */
|
|
||||||
strcpy(tempfn, "META-INF/manifest.mf");
|
|
||||||
- sprintf(fullfn, "%s/%s", tree, tempfn);
|
|
||||||
+ if (snprintf(fullfn, FNSIZE, "%s/%s", tree, tempfn) >= FNSIZE) {
|
|
||||||
+ PR_fprintf(errorFD, "buffer overflow, the tree \"%s\" was NOT SUCCESSFULLY SIGNED\n",
|
|
||||||
+ tree);
|
|
||||||
+ errorCount++;
|
|
||||||
+ exit(ERRX);
|
|
||||||
+ }
|
|
||||||
JzipAdd(fullfn, tempfn, zipfile, compression_level);
|
|
||||||
|
|
||||||
/* sf to zip */
|
|
||||||
sprintf(tempfn, "META-INF/%s.sf", base);
|
|
||||||
- sprintf(fullfn, "%s/%s", tree, tempfn);
|
|
||||||
+ if (snprintf(fullfn, FNSIZE, "%s/%s", tree, tempfn) >= FNSIZE) {
|
|
||||||
+ PR_fprintf(errorFD, "buffer overflow, the tree \"%s\" was NOT SUCCESSFULLY SIGNED\n",
|
|
||||||
+ tree);
|
|
||||||
+ errorCount++;
|
|
||||||
+ exit(ERRX);
|
|
||||||
+ }
|
|
||||||
JzipAdd(fullfn, tempfn, zipfile, compression_level);
|
|
||||||
|
|
||||||
/* Add the rsa/dsa file to the zip archive normally */
|
|
||||||
@@ -106,7 +121,12 @@ SignArchive(char *tree, char *keyName, c
|
|
||||||
/* rsa/dsa to zip */
|
|
||||||
sprintf(tempfn, "META-INF/%s.%s", base, (keyType == dsaKey ? "dsa"
|
|
||||||
: "rsa"));
|
|
||||||
- sprintf(fullfn, "%s/%s", tree, tempfn);
|
|
||||||
+ if (snprintf(fullfn, FNSIZE, "%s/%s", tree, tempfn) >= FNSIZE) {
|
|
||||||
+ PR_fprintf(errorFD, "buffer overflow, the tree \"%s\" was NOT SUCCESSFULLY SIGNED\n",
|
|
||||||
+ tree);
|
|
||||||
+ errorCount++;
|
|
||||||
+ exit(ERRX);
|
|
||||||
+ }
|
|
||||||
JzipAdd(fullfn, tempfn, zipfile, compression_level);
|
|
||||||
}
|
|
||||||
|
|
2
sources
2
sources
@ -3,4 +3,4 @@ SHA512 (blank-cert9.db) = 2f8eab4c0612210ee47db8a3a80c1b58a0b43849551af78c7da403
|
|||||||
SHA512 (blank-key3.db) = 01f7314e9fc8a7c9aa997652624cfcde213d18a6b3bb31840c1a60bbd662e56b5bc3221d13874abb42ce78163b225a6dfce2e1326cf6dd29366ad9c28ba5a71c
|
SHA512 (blank-key3.db) = 01f7314e9fc8a7c9aa997652624cfcde213d18a6b3bb31840c1a60bbd662e56b5bc3221d13874abb42ce78163b225a6dfce2e1326cf6dd29366ad9c28ba5a71c
|
||||||
SHA512 (blank-key4.db) = 8fedae93af7163da23fe9492ea8e785a44c291604fa98e58438448efb69c85d3253fc22b926d5c3209c62e58a86038fd4d78a1c4c068bc00600a7f3e5382ebe7
|
SHA512 (blank-key4.db) = 8fedae93af7163da23fe9492ea8e785a44c291604fa98e58438448efb69c85d3253fc22b926d5c3209c62e58a86038fd4d78a1c4c068bc00600a7f3e5382ebe7
|
||||||
SHA512 (blank-secmod.db) = 06a2dbd861839ef6315093459328b500d3832333a34b30e6fac4a2503af337f014a4d319f0f93322409e719142904ce8bc08252ae9a4f37f30d4c3312e900310
|
SHA512 (blank-secmod.db) = 06a2dbd861839ef6315093459328b500d3832333a34b30e6fac4a2503af337f014a4d319f0f93322409e719142904ce8bc08252ae9a4f37f30d4c3312e900310
|
||||||
SHA512 (nss-3.35.0.tar.gz) = a9865fd11d8b2ab83b57b1b50fe6f0d3a6d936f7ae4d0817e9dd1bf3e5182ff7f26ebc21fe7490c3dea2b792e4e4302af876ac70750e8e1f4da6bb710fd3002e
|
SHA512 (nss-3.43.tar.gz) = e9dfba5bd6f68c5ab58fc7a6fa1b16a035be1b1b7c436cf787bdc99257c5f54c78d73d94d015bffd29420df19b2a2818166c68fe592dd7208ab5605344827fb5
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
diff -up nss/lib/nss/config.mk.templates nss/lib/nss/config.mk
|
|
||||||
--- nss/lib/nss/config.mk.templates 2013-06-18 11:32:07.590089155 -0700
|
|
||||||
+++ nss/lib/nss/config.mk 2013-06-18 11:33:28.732763345 -0700
|
|
||||||
@@ -3,6 +3,10 @@
|
|
||||||
# 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/.
|
|
||||||
|
|
||||||
+#ifeq ($(NSS_BUILD_WITHOUT_SOFTOKEN),1)
|
|
||||||
+INCLUDES += -I/usr/include/nss3/templates
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
# can't do this in manifest.mn because OS_TARGET isn't defined there.
|
|
||||||
ifeq (,$(filter-out WIN%,$(OS_TARGET)))
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user