summaryrefslogtreecommitdiff
path: root/regress/lib/libssl
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2020-09-16 15:47:44 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2020-09-16 15:47:44 +0000
commit5798217ec3fcb00f43c979798a911f94b8c7a2b3 (patch)
tree0b15eb302c25573ec0ed8e334e5a16e4f0a1e738 /regress/lib/libssl
parentb129dad19ab42eb4dd841fc92277e498d659dc16 (diff)
Add cipher set tests with empty SSL_set_ciphersuites().
Diffstat (limited to 'regress/lib/libssl')
-rw-r--r--regress/lib/libssl/ciphers/cipherstest.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/regress/lib/libssl/ciphers/cipherstest.c b/regress/lib/libssl/ciphers/cipherstest.c
index 2e51a040cc7..c79b6a3c31f 100644
--- a/regress/lib/libssl/ciphers/cipherstest.c
+++ b/regress/lib/libssl/ciphers/cipherstest.c
@@ -375,6 +375,28 @@ struct cipher_set_test cipher_set_tests[] = {
},
},
{
+ .ssl_ciphersuites_first = 1,
+ .ssl_ciphersuites = "",
+ .ssl_rulestr = "TLSv1.2+ECDHE+AEAD+AES",
+ .cids = {
+ TLS1_CK_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
+ TLS1_CK_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
+ TLS1_CK_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
+ TLS1_CK_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
+ },
+ },
+ {
+ .ssl_ciphersuites_first = 0,
+ .ssl_ciphersuites = "",
+ .ssl_rulestr = "TLSv1.2+ECDHE+AEAD+AES",
+ .cids = {
+ TLS1_CK_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
+ TLS1_CK_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
+ TLS1_CK_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
+ TLS1_CK_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
+ },
+ },
+ {
.ctx_ciphersuites = "AEAD-AES256-GCM-SHA384:AEAD-CHACHA20-POLY1305-SHA256",
.ssl_rulestr = "TLSv1.2+ECDHE+AEAD+AES",
.cids = {