Return group id in tls1_shared_group

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/=4412)
This commit is contained in:
Dr. Stephen Henson 2017-09-22 23:43:03 +01:00
parent 1483b8582c
commit 8841154a90
4 changed files with 17 additions and 22 deletions

View file

@ -3633,7 +3633,7 @@ long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg)
&s->ext.supportedgroups_len, parg);
case SSL_CTRL_GET_SHARED_GROUP:
return tls1_shared_group(s, larg);
return tls1_ec_curve_id2nid(tls1_shared_group(s, larg), NULL);
#endif
case SSL_CTRL_SET_SIGALGS: