diff options
author | Daiki Ueno <ueno@gnu.org> | 2022-01-12 10:37:53 +0100 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2022-02-10 16:14:40 +0100 |
commit | a96b04ffcf8fd7375dc3c0f90602bf679f5a9791 (patch) | |
tree | 68d52c946bc48d49066263c514ad27158fd93386 /lib/libgnutls.map | |
parent | 6c494be78240bdfa736e4c2cfcbbd1a28c290665 (diff) | |
download | gnutls-a96b04ffcf8fd7375dc3c0f90602bf679f5a9791.tar.gz |
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>
Diffstat (limited to 'lib/libgnutls.map')
-rw-r--r-- | lib/libgnutls.map | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libgnutls.map b/lib/libgnutls.map index 30e96abafe..5a2e8ce947 100644 --- a/lib/libgnutls.map +++ b/lib/libgnutls.map @@ -1380,6 +1380,14 @@ GNUTLS_3_7_3 *; } GNUTLS_3_7_2; +GNUTLS_3_7_4 +{ + global: + gnutls_ciphersuite_get; + local: + *; +} GNUTLS_3_7_3; + GNUTLS_FIPS140_3_4 { global: gnutls_cipher_self_test; |