]> git.ipfire.org Git - thirdparty/gnutls.git/commit
gnutls_ciphersuite_get: new function to get unique ciphersuite name
authorDaiki Ueno <ueno@gnu.org>
Wed, 12 Jan 2022 09:37:53 +0000 (10:37 +0100)
committerDaiki Ueno <ueno@gnu.org>
Thu, 10 Feb 2022 15:14:40 +0000 (16:14 +0100)
commita96b04ffcf8fd7375dc3c0f90602bf679f5a9791
tree68d52c946bc48d49066263c514ad27158fd93386
parent6c494be78240bdfa736e4c2cfcbbd1a28c290665
gnutls_ciphersuite_get: new function to get unique ciphersuite name

The existing method to obtain the name of the currently negotiated TLS
ciphersuite is as follows:

- call gnutls_cipher_get, gnutls_mac_get, gnutls_kx_get
- call gnutls_cipher_suite_get_name with the value from the above functions

This process is cumbersome and only works with TLS 1.2 or earlier;
moreover the returned names are GnuTLS specific.

This change adds a new function gnutls_ciphersuite_get to eliminate
those limitations.  It returns the "canonical" name of the
ciphersuite, which is mostly identical to the ones registered in IANA,
with an exception for compatibility.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
13 files changed:
.gitignore
devel/gen-ciphersuite-names.py [new file with mode: 0644]
devel/libgnutls.abignore
devel/symbols.last
doc/Makefile.am
doc/manpages/Makefile.am
lib/algorithms/ciphersuites.c
lib/gnutls_int.h
lib/includes/gnutls/gnutls.h.in
lib/libgnutls.map
lib/state.c
tests/Makefile.am
tests/ciphersuite-name.c [new file with mode: 0644]