mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 07:47:32 +09:00
Update NSS to 3.48 while keeping vc2013 hackfix and no-sslkeylogfile intact.
This commit is contained in:
parent
0b9855b841
commit
171849c8e5
351 changed files with 115185 additions and 57946 deletions
|
|
@ -10,7 +10,27 @@
|
|||
#
|
||||
# Script to test NSS SSL
|
||||
#
|
||||
# needs to work on all Unix and Windows platforms
|
||||
# Needs to work on all Unix and Windows platforms
|
||||
#
|
||||
# Testing schema:
|
||||
# ---------------
|
||||
# all.sh ~ (main)
|
||||
# | |
|
||||
# +------------+------------+-----------+ ~ run_cycles
|
||||
# | | | | |
|
||||
# standard pkix upgradedb sharedb ~ run_cycle_*
|
||||
# ... | ... ... |
|
||||
# +------+------+-----> ~ run_tests
|
||||
# | | | |
|
||||
# ... ssl ... ~ ssl.sh
|
||||
# | |
|
||||
# +-------+-------+-----------------+ ~ ssl_run_tests
|
||||
# | | | | |
|
||||
# crl iopr policy permute(normal,fips) ~ ssl_run_test_*
|
||||
# | | | | |
|
||||
# +------+------+------+------+---+-+-+-+----> ~ ssl_run
|
||||
# | | | | | | |
|
||||
# stapling cov auth stress dtls ... ~ ssl_run_*
|
||||
#
|
||||
# special strings
|
||||
# ---------------
|
||||
|
|
@ -64,7 +84,7 @@ ssl_init()
|
|||
PORT=$(($PORT + $padd))
|
||||
fi
|
||||
NSS_SSL_TESTS=${NSS_SSL_TESTS:-normal_normal}
|
||||
nss_ssl_run="stapling signed_cert_timestamps cov auth stress dtls scheme"
|
||||
nss_ssl_run="stapling signed_cert_timestamps cov auth dtls scheme exporter"
|
||||
NSS_SSL_RUN=${NSS_SSL_RUN:-$nss_ssl_run}
|
||||
|
||||
# Test case files
|
||||
|
|
@ -264,7 +284,7 @@ start_selfserv()
|
|||
|
||||
ignore_blank_lines()
|
||||
{
|
||||
LC_ALL=C grep -v '^[[:space:]]*\(#\|$\)' "$1"
|
||||
LC_ALL=C egrep -v '^[[:space:]]*(#|$)' "$1"
|
||||
}
|
||||
|
||||
############################## ssl_cov #################################
|
||||
|
|
@ -393,6 +413,15 @@ ssl_auth()
|
|||
echo "${testname}" | grep "TLS 1.3" > /dev/null
|
||||
TLS13=$?
|
||||
|
||||
# Currently TLS 1.3 tests are known to fail under FIPS mode,
|
||||
# because HKDF is implemented using the PKCS #11 functions
|
||||
# prohibited under FIPS mode.
|
||||
if [ "${TLS13}" -eq 0 ] && \
|
||||
[ "$SERVER_MODE" = "fips" -o "$CLIENT_MODE" = "fips" ] ; then
|
||||
echo "$SCRIPTNAME: skipping $testname (non-FIPS only)"
|
||||
continue
|
||||
fi
|
||||
|
||||
if [ "${CLIENT_MODE}" = "fips" -a "${CAUTH}" -eq 0 ] ; then
|
||||
echo "$SCRIPTNAME: skipping $testname (non-FIPS only)"
|
||||
elif [ "$ectype" = "SNI" -a "$NORM_EXT" = "Extended Test" ] ; then
|
||||
|
|
@ -512,10 +541,10 @@ ssl_stapling_stress()
|
|||
echo "${testname}"
|
||||
start_selfserv
|
||||
|
||||
echo "strsclnt -q -p ${PORT} -d ${P_R_CLIENTDIR} ${CLIENT_OPTIONS} -w nss \\"
|
||||
echo "strsclnt -4 -q -p ${PORT} -d ${P_R_CLIENTDIR} ${CLIENT_OPTIONS} -w nss \\"
|
||||
echo " -c 1000 -V ssl3:tls1.2 -N -T $verbose ${HOSTADDR}"
|
||||
echo "strsclnt started at `date`"
|
||||
${PROFTOOL} ${BINDIR}/strsclnt -q -p ${PORT} -d ${P_R_CLIENTDIR} ${CLIENT_OPTIONS} -w nss \
|
||||
${PROFTOOL} ${BINDIR}/strsclnt -4 -q -p ${PORT} -d ${P_R_CLIENTDIR} ${CLIENT_OPTIONS} -w nss \
|
||||
-c 1000 -V ssl3:tls1.2 -N -T $verbose ${HOSTADDR}
|
||||
ret=$?
|
||||
|
||||
|
|
@ -642,10 +671,10 @@ ssl_stress()
|
|||
dbdir=${P_R_CLIENTDIR}
|
||||
fi
|
||||
|
||||
echo "strsclnt -q -p ${PORT} -d ${dbdir} ${CLIENT_OPTIONS} -w nss $cparam \\"
|
||||
echo "strsclnt -4 -q -p ${PORT} -d ${dbdir} ${CLIENT_OPTIONS} -w nss $cparam \\"
|
||||
echo " -V ssl3:tls1.2 $verbose ${HOSTADDR}"
|
||||
echo "strsclnt started at `date`"
|
||||
${PROFTOOL} ${BINDIR}/strsclnt -q -p ${PORT} -d ${dbdir} ${CLIENT_OPTIONS} -w nss $cparam \
|
||||
${PROFTOOL} ${BINDIR}/strsclnt -4 -q -p ${PORT} -d ${dbdir} ${CLIENT_OPTIONS} -w nss $cparam \
|
||||
-V ssl3:tls1.2 $verbose ${HOSTADDR}
|
||||
ret=$?
|
||||
echo "strsclnt completed at `date`"
|
||||
|
|
@ -1266,9 +1295,9 @@ ssl_scheme_stress()
|
|||
|
||||
start_selfserv -V tls1.2:tls1.2 -J "$sscheme"
|
||||
|
||||
echo "strsclnt -q -p ${PORT} -d ${P_R_CLIENTDIR} $verbose ${CLIENT_OPTIONS} \\"
|
||||
echo "strsclnt -4 -q -p ${PORT} -d ${P_R_CLIENTDIR} $verbose ${CLIENT_OPTIONS} \\"
|
||||
echo " -V tls1.2:tls1.2 -J "$cscheme" ${HOSTADDR} < ${REQUEST_FILE}"
|
||||
${PROFTOOL} ${BINDIR}/strsclnt -q -p ${PORT} ${CLIENT_OPTIONS} \
|
||||
${PROFTOOL} ${BINDIR}/strsclnt -4 -q -p ${PORT} ${CLIENT_OPTIONS} \
|
||||
-d ${P_R_CLIENTDIR} $verbose -V tls1.2:tls1.2 -J "$cscheme" ${HOSTADDR} < ${REQUEST_FILE} 2>&1
|
||||
ret=$?
|
||||
# If both schemes include just one option and those options don't
|
||||
|
|
@ -1290,6 +1319,38 @@ ssl_scheme_stress()
|
|||
html "</TABLE><BR>"
|
||||
}
|
||||
|
||||
############################ ssl_exporter ###################################
|
||||
# local shell function to test tstclnt and selfserv handling of TLS exporter
|
||||
#########################################################################
|
||||
ssl_exporter()
|
||||
{
|
||||
html_head "SSL EXPORTER $NORM_EXT - server $SERVER_MODE/client $CLIENT_MODE"
|
||||
|
||||
save_fileout=${fileout}
|
||||
fileout=1
|
||||
SAVE_SERVEROUTFILE=${SERVEROUTFILE}
|
||||
SERVEROUTFILE=server.out
|
||||
exporters=("label" "label:10" "label:10:0xdeadbeef" "0x666f6f2c:10:0xdeadbeef" "label1:10:0xdeadbeef,label2:10")
|
||||
for exporter in "${exporters[@]}"; do
|
||||
start_selfserv -V tls1.2:tls1.2 -x "$exporter"
|
||||
|
||||
echo "tstclnt -4 -p ${PORT} -h ${HOSTADDR} -f -d ${P_R_CLIENTDIR} $verbose ${CLIENT_OPTIONS} \\"
|
||||
echo " -V tls1.2:tls1.2 -x $exporter < ${REQUEST_FILE}"
|
||||
${PROFTOOL} ${BINDIR}/tstclnt -4 -p ${PORT} -h ${HOSTADDR} -f ${CLIENT_OPTIONS} \
|
||||
-d ${P_R_CLIENTDIR} $verbose -V tls1.2:tls1.2 -x "$exporter" < ${REQUEST_FILE} 2>&1 > client.out
|
||||
kill_selfserv
|
||||
diff <(LC_ALL=C grep -A1 "^ *Keying Material:" server.out) \
|
||||
<(LC_ALL=C grep -A1 "^ *Keying Material:" client.out)
|
||||
ret=$?
|
||||
html_msg $ret 0 "${testname}" \
|
||||
"produced a returncode of $ret, expected is 0"
|
||||
done
|
||||
SERVEROUTFILE=${SAVE_SERVEROUTFILE}
|
||||
fileout=${save_fileout}
|
||||
|
||||
html "</TABLE><BR>"
|
||||
}
|
||||
|
||||
############################## ssl_cleanup #############################
|
||||
# local shell function to finish this script (no exit since it might be
|
||||
# sourced)
|
||||
|
|
@ -1334,6 +1395,9 @@ ssl_run()
|
|||
ssl_scheme
|
||||
ssl_scheme_stress
|
||||
;;
|
||||
"exporter")
|
||||
ssl_exporter
|
||||
;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue