diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2018-10-24 23:10:38 +0200 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2021-11-26 06:45:19 +0100 |
commit | 0a10825a009c830125fef94c81d34e41300a24a5 (patch) | |
tree | a17f4cd4820ee0927793837c351568ef5b27d204 /ssl/s3_lib.c | |
parent | 8e22f9d6d956ad583afe10b986519731c113ac80 (diff) |
Enable brainpool curves for TLS1.3
See the recently assigned brainpool code points at:
https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7485)
Diffstat (limited to 'ssl/s3_lib.c')
-rw-r--r-- | ssl/s3_lib.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index 88565a7000..1a89bde851 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -3607,8 +3607,11 @@ long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg) int *cptr = parg; for (i = 0; i < clistlen; i++) { + uint16_t cid = SSL_IS_TLS13(s) + ? ssl_group_id_tls13_to_internal(clist[i]) + : clist[i]; const TLS_GROUP_INFO *cinf - = tls1_group_id_lookup(s->ctx, clist[i]); + = tls1_group_id_lookup(s->ctx, cid); if (cinf != NULL) cptr[i] = tls1_group_id2nid(cinf->group_id, 1); |