Skip to content

Commit

Permalink
Fix SSL_group_to_name to match docs
Browse files Browse the repository at this point in the history
SSL_group_to_name documents the first parameter SSL as being const, but
the header files don't match that, bring them into line

Fixed openssl#23775
  • Loading branch information
nhorman committed Mar 8, 2024
1 parent 6d42be3 commit e0a9473
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/openssl/ssl.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,7 @@ DECLARE_PEM_rw(SSL_SESSION, SSL_SESSION)
SSL_ctrl(s, SSL_CTRL_GET_MAX_PROTO_VERSION, 0, NULL)

const char *SSL_get0_group_name(SSL *s);
const char *SSL_group_to_name(SSL *s, int id);
const char *SSL_group_to_name(const SSL *s, int id);

/* Backwards compatibility, original 1.1.0 names */
# define SSL_CTRL_GET_SERVER_TMP_KEY \
Expand Down
2 changes: 1 addition & 1 deletion ssl/s3_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -5048,7 +5048,7 @@ const char *SSL_get0_group_name(SSL *s)
return tls1_group_id2name(s->ctx, id);
}

const char *SSL_group_to_name(SSL *s, int nid) {
const char *SSL_group_to_name(const SSL *s, int nid) {
int group_id = 0;
const TLS_GROUP_INFO *cinf = NULL;

Expand Down

0 comments on commit e0a9473

Please sign in to comment.