nss: update to 3.76.

This commit is contained in:
Đoàn Trần Công Danh 2022-03-10 21:30:02 +07:00 committed by Đoàn Trần Công Danh
parent e8c036a8f0
commit 21d3be13d6
3 changed files with 22 additions and 45 deletions

View file

@ -1,43 +0,0 @@
Source: https://bugzilla.mozilla.org/show_bug.cgi?id=1750624
diff --git a/nss/tests/chains/chains.sh b/nss/tests/chains/chains.sh
--- a/nss/tests/chains/chains.sh
+++ b/nss/tests/chains/chains.sh
@@ -917,7 +917,7 @@
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 @@
;;
"verify")
VERIFY="${VALUE}"
+ VFY_TIME_OPT=
TRUST=
TRUST_AND_DB=
POLICY=
@@ -1126,6 +1127,9 @@
REV_OPTS=
USAGE_OPT=
;;
+ "at_time")
+ VFY_TIME_OPT="-b ${VALUE}"
+ ;;
"cert")
VERIFY="${VERIFY} ${VALUE}"
;;
diff --git a/nss/tests/chains/scenarios/realcerts.cfg b/nss/tests/chains/scenarios/realcerts.cfg
--- a/nss/tests/chains/scenarios/realcerts.cfg
+++ b/nss/tests/chains/scenarios/realcerts.cfg
@@ -22,6 +22,7 @@
verify PayPalEE:x
policy OID.2.16.840.1.114412.2.1
+ at_time 2201010000Z
result pass
verify BrAirWaysBadSig:x

View file

@ -0,0 +1,20 @@
Source: https://bugzilla.mozilla.org/show_bug.cgi?id=1758478
diff --git a/nss/cpputil/databuffer.h b/nss/cpputil/databuffer.h
index 8d34e1a..6aee509 100644
--- a/nss/cpputil/databuffer.h
+++ b/nss/cpputil/databuffer.h
@@ -33,11 +33,9 @@ class DataBuffer {
return *this;
}
DataBuffer& operator=(DataBuffer&& other) {
- if (this == &other) {
- data_ = other.data_;
- len_ = other.len_;
- other.data_ = nullptr;
- other.len_ = 0;
+ if (this != &other) {
+ std::swap(data_, other.data_);
+ std::swap(len_, other.len_);
}
return *this;
}

View file

@ -3,7 +3,7 @@
_nsprver=4.32
pkgname=nss
version=3.75
version=3.76
revision=1
hostmakedepends="perl"
makedepends="nspr-devel sqlite-devel zlib-devel"
@ -13,7 +13,7 @@ maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="MPL-2.0"
homepage="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS"
distfiles="${MOZILLA_SITE}/security/nss/releases/NSS_${version//\./_}_RTM/src/nss-${version}.tar.gz"
checksum=fd571507827284644f4dd522a032acda2286835f6683ed22a1c2d3878cc58582
checksum=1b8e0310add364d2ade40620cde0f1c37f4f00a6999b2d3e7ea8dacda4aa1630
export NS_USE_GCC=1
export LIBRUNPATH=