diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2017-09-26 15:28:16 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2017-10-06 13:23:45 +0100 |
commit | ff6d20a67bca5a585124bb47c2672dec3594ff95 (patch) | |
tree | c9f9cc742897ded21a75695283428ea11a09966f /ssl/statem/extensions_srvr.c | |
parent | f0b843c1f4eade5f9d54f826b16cec5ebd15a502 (diff) |
Use separate functions for supported and peer groups lists
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4475)
Diffstat (limited to 'ssl/statem/extensions_srvr.c')
-rw-r--r-- | ssl/statem/extensions_srvr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ssl/statem/extensions_srvr.c b/ssl/statem/extensions_srvr.c index 3be9754b2a..8183ea574c 100644 --- a/ssl/statem/extensions_srvr.c +++ b/ssl/statem/extensions_srvr.c @@ -520,9 +520,9 @@ int tls_parse_ctos_key_share(SSL *s, PACKET *pkt, unsigned int context, X509 *x, } /* Get our list of supported curves */ - tls1_get_grouplist(s, 0, &srvrcurves, &srvr_num_curves); + tls1_get_supported_groups(s, &srvrcurves, &srvr_num_curves); /* Get the clients list of supported curves. */ - tls1_get_grouplist(s, 1, &clntcurves, &clnt_num_curves); + tls1_get_peer_groups(s, &clntcurves, &clnt_num_curves); if (clnt_num_curves == 0) { /* * This can only happen if the supported_groups extension was not sent, @@ -885,7 +885,7 @@ EXT_RETURN tls_construct_stoc_supported_groups(SSL *s, WPACKET *pkt, return EXT_RETURN_NOT_SENT; /* Get our list of supported groups */ - tls1_get_grouplist(s, 0, &groups, &numgroups); + tls1_get_supported_groups(s, &groups, &numgroups); if (numgroups == 0) { SSLerr(SSL_F_TLS_CONSTRUCT_STOC_SUPPORTED_GROUPS, ERR_R_INTERNAL_ERROR); return EXT_RETURN_FAIL; |