mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
nss: fix failed test of nss.
The expiration date of the "PayPalEE.cert" test certificate in the nss package is Jan 12 2022 and causing a test failure. Signed-off-by: Wentao Zhang <wentao.zhang@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Haixiao Yan <haixiao.yan.cn@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
parent
69d1121922
commit
6e66175949
@ -0,0 +1,64 @@
|
||||
From 1109c1b8259ad840ac1688d533f76ca268c67b6b Mon Sep 17 00:00:00 2001
|
||||
From: "John M. Schanck" <jschanck@mozilla.com>
|
||||
Date: Sat, 5 Feb 2022 11:12:43 +0000
|
||||
Subject: [PATCH] Bug 1750624 - Pin validation date for PayPalEE test cert.
|
||||
r=nss-reviewers,bbeurdouche,rrelyea
|
||||
|
||||
Differential Revision: https://phabricator.services.mozilla.com/D136289
|
||||
|
||||
--HG--
|
||||
extra : moz-landing-system : lando
|
||||
|
||||
Upstream-Status: Backport
|
||||
|
||||
---
|
||||
tests/chains/chains.sh | 6 +++++-
|
||||
tests/chains/scenarios/realcerts.cfg | 1 +
|
||||
2 files changed, 6 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/chains/chains.sh b/tests/chains/chains.sh
|
||||
index 32c7ef54c..e13ae52f9 100755
|
||||
--- a/nss/tests/chains/chains.sh
|
||||
+++ b/nss/tests/chains/chains.sh
|
||||
@@ -917,7 +917,7 @@ verify_cert()
|
||||
done
|
||||
|
||||
VFY_OPTS_TNAME="${DB_OPT} ${ENGINE} ${TRUST_AND_DB_OPT} ${REV_OPTS} ${FETCH_OPT} ${USAGE_OPT} ${POLICY_OPT} ${TRUST_OPT}"
|
||||
- VFY_OPTS_ALL="${DB_OPT} ${ENGINE} -vv ${TRUST_AND_DB_OPT} ${REV_OPTS} ${FETCH_OPT} ${USAGE_OPT} ${POLICY_OPT} ${VFY_CERTS} ${TRUST_OPT}"
|
||||
+ VFY_OPTS_ALL="${DB_OPT} ${ENGINE} -vv ${VFY_TIME_OPT} ${TRUST_AND_DB_OPT} ${REV_OPTS} ${FETCH_OPT} ${USAGE_OPT} ${POLICY_OPT} ${VFY_CERTS} ${TRUST_OPT}"
|
||||
|
||||
TESTNAME="Verifying certificate(s) ${VFY_LIST} with flags ${VFY_OPTS_TNAME}"
|
||||
echo "${SCRIPTNAME}: ${TESTNAME}"
|
||||
@@ -1118,6 +1118,7 @@ parse_config()
|
||||
;;
|
||||
"verify")
|
||||
VERIFY="${VALUE}"
|
||||
+ VFY_TIME_OPT=
|
||||
TRUST=
|
||||
TRUST_AND_DB=
|
||||
POLICY=
|
||||
@@ -1126,6 +1127,9 @@ parse_config()
|
||||
REV_OPTS=
|
||||
USAGE_OPT=
|
||||
;;
|
||||
+ "at_time")
|
||||
+ VFY_TIME_OPT="-b ${VALUE}"
|
||||
+ ;;
|
||||
"cert")
|
||||
VERIFY="${VERIFY} ${VALUE}"
|
||||
;;
|
||||
diff --git a/tests/chains/scenarios/realcerts.cfg b/tests/chains/scenarios/realcerts.cfg
|
||||
index 305443fc3..f8b0fc452 100644
|
||||
--- a/nss/tests/chains/scenarios/realcerts.cfg
|
||||
+++ b/nss/tests/chains/scenarios/realcerts.cfg
|
||||
@@ -22,6 +22,7 @@ verify TestUser51:x
|
||||
|
||||
verify PayPalEE:x
|
||||
policy OID.2.16.840.1.114412.2.1
|
||||
+ at_time 2201010000Z
|
||||
result pass
|
||||
|
||||
verify BrAirWaysBadSig:x
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@ -35,6 +35,7 @@ SRC_URI = "http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${VERSIO
|
||||
file://0001-Bug-1780432-CVE-2023-5388-Timing-attack-against-RSA-.patch;patchdir=nss \
|
||||
file://0001-Bug-1867408-add-a-defensive-check-for-large-ssl_DefS.patch;patchdir=nss \
|
||||
file://CVE-2023-0767.patch \
|
||||
file://0001-Bug-1750624-Pin-validation-date-for-PayPalEE-test-ce.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "88928811f9f40f87d42e2eaccdf6e454562e51486067f2ddbe90aa47ea6cd056"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user