summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristopher Patton <chrispatton@gmail.com>2019-06-25 14:21:59 +1000
committerChristopher Patton <chrispatton@gmail.com>2019-06-25 14:21:59 +1000
commit62b1e1d91c19c50a5e4c2540fcf49f0d8cf073dd (patch)
tree0a740fbe2b15a3970fa0c373c74294d8202a68eb /tests
parent89715eee6c2dbc17820977e466fb8b52a1e12784 (diff)
downloadnss-hg-62b1e1d91c19c50a5e4c2540fcf49f0d8cf073dd.tar.gz
Bug 1540403 - draft-ietf-tls-subcerts-03, r=mt,jcj
Differential Revision: https://phabricator.services.mozilla.com/D25654
Diffstat (limited to 'tests')
-rw-r--r--tests/common/certsetup.sh5
-rwxr-xr-xtests/ssl_gtests/ssl_gtests.sh1
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/common/certsetup.sh b/tests/common/certsetup.sh
index f9ee459e1..32c6bc235 100644
--- a/tests/common/certsetup.sh
+++ b/tests/common/certsetup.sh
@@ -46,6 +46,11 @@ make_cert() {
rsapss_chain) type_args=(-g 1024);sign=(-c rsa_pss_ca);type=rsa;;
rsa_ca_rsapss_chain) type_args=(-g 1024 --pss-sign);sign=(-c rsa_ca);type=rsa;;
ecdh_rsa) type_args=(-q nistp256);sign=(-c rsa_ca);type=ec ;;
+ delegator_p256)
+ touch empty.txt
+ type_args=(-q nistp256 --extGeneric 1.3.6.1.4.1.44363.44:not-critical:empty.txt)
+ type=ec
+ ;;
esac
msg="create certificate: $@"
shift 2
diff --git a/tests/ssl_gtests/ssl_gtests.sh b/tests/ssl_gtests/ssl_gtests.sh
index 6c088d8a6..d3a10303e 100755
--- a/tests/ssl_gtests/ssl_gtests.sh
+++ b/tests/ssl_gtests/ssl_gtests.sh
@@ -57,6 +57,7 @@ ssl_gtest_certs() {
make_cert rsa_ca_rsa_pss_chain rsa_ca_rsapss_chain sign
make_cert ecdh_rsa ecdh_rsa kex
make_cert dsa dsa sign
+ make_cert delegator_ecdsa256 delegator_p256 sign
}
############################## ssl_gtest_init ##########################