summaryrefslogtreecommitdiff
path: root/test/helpers
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2022-09-30 13:35:28 +0100
committerMatt Caswell <matt@openssl.org>2022-10-07 10:01:48 +0100
commit3f76339a3fe7be412b754ffe7b0a5438a1297f28 (patch)
tree883c4c2bf774b435bf2e11575ca732d8a42737fc /test/helpers
parentc9ee6e3646258f79a9970be96394cb2b93b7eddd (diff)
downloadopenssl-new-3f76339a3fe7be412b754ffe7b0a5438a1297f28.tar.gz
Add some more brainpool tests for TLSv1.3
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from https://github.com/openssl/openssl/pull/19315)
Diffstat (limited to 'test/helpers')
-rw-r--r--test/helpers/ssl_test_ctx.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/helpers/ssl_test_ctx.c b/test/helpers/ssl_test_ctx.c
index 2ce70405d7..69baa0b49f 100644
--- a/test/helpers/ssl_test_ctx.c
+++ b/test/helpers/ssl_test_ctx.c
@@ -533,6 +533,17 @@ __owur static int parse_expected_key_type(int *ptype, const char *value)
if (nid == NID_undef)
nid = EC_curve_nist2nid(value);
#endif
+ switch (nid) {
+ case NID_brainpoolP256r1tls13:
+ nid = NID_brainpoolP256r1;
+ break;
+ case NID_brainpoolP384r1tls13:
+ nid = NID_brainpoolP384r1;
+ break;
+ case NID_brainpoolP512r1tls13:
+ nid = NID_brainpoolP512r1;
+ break;
+ }
if (nid == NID_undef)
return 0;
*ptype = nid;