summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMichael Baentsch <info@baentsch.ch>2021-01-07 09:09:32 +0100
committerMatt Caswell <matt@openssl.org>2021-01-08 17:04:46 +0000
commitbecbacd705170952725571ae4404846b0ecee86a (patch)
treef7be4e390ca3736c25c5a5b8c500cce9aeb20615 /include
parent22aa4a3afb53984201c84970ec03b251d0117f00 (diff)
Adding TLS group name retrieval
Function SSL_group_to_name() added, together with documentation and tests. This now permits displaying names of internal and external provider-implemented groups. Partial fix of #13767 Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13785)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/ssl.h.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/openssl/ssl.h.in b/include/openssl/ssl.h.in
index 37b4c82f02..4e5d50bd6d 100644
--- a/include/openssl/ssl.h.in
+++ b/include/openssl/ssl.h.in
@@ -1501,6 +1501,8 @@ DECLARE_PEM_rw(SSL_SESSION, SSL_SESSION)
# define SSL_get_max_proto_version(s) \
SSL_ctrl(s, SSL_CTRL_GET_MAX_PROTO_VERSION, 0, NULL)
+const char *SSL_group_to_name(SSL *s, int id);
+
/* Backwards compatibility, original 1.1.0 names */
# define SSL_CTRL_GET_SERVER_TMP_KEY \
SSL_CTRL_GET_PEER_TMP_KEY