Fix type cast in SSL_CTX_set1_groups macro
authorArne Schwabe <arne@rfc2549.org>
Thu, 23 Apr 2020 10:42:51 +0000 (12:42 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Mon, 27 Apr 2020 15:39:12 +0000 (17:39 +0200)
commit7d66cb360c448361654a8ffff73e790c474ba302
tree48adacd548e6a4a6267bf2417b6f52462d43927f
parentbb17971acb0d891b734991091244b90019968c65
Fix type cast in SSL_CTX_set1_groups macro

The macro casts the glist parameter to char*
instead of (int *) like the documentation of the function suggest.

Also the function tls1_set_groups that is called from SSL_CTX_ctrl
takes an int * argument. This looks like a copy&paste error from
SSL_CTX_set1_groups_list function.

CLA: trivial
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11614)

(cherry picked from commit 7ffce852372799b6cd856b711db21332f0048314)
include/openssl/ssl.h