summaryrefslogtreecommitdiff
path: root/lib/hash_int.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-03-01 13:46:43 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-03-01 14:34:51 +0100
commitb9ea72f9bbb0ef21b61e10f3e26b34129be1d85b (patch)
tree30af9d061aa4374318b05edfed9c5c16991747cc /lib/hash_int.c
parentcdd159f030a023c287709ee2163063103c3e6fd2 (diff)
downloadgnutls-b9ea72f9bbb0ef21b61e10f3e26b34129be1d85b.tar.gz
gnutls-cli: print the ciphers, MACs and KXs when priority string is given
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/hash_int.c')
-rw-r--r--lib/hash_int.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/hash_int.c b/lib/hash_int.c
index efcbf9093f..024b41a6bb 100644
--- a/lib/hash_int.c
+++ b/lib/hash_int.c
@@ -174,6 +174,10 @@ int _gnutls_mac_exists(gnutls_mac_algorithm_t algo)
{
const gnutls_crypto_mac_st *cc = NULL;
+ /* exceptionally it exists, as it is not a real MAC */
+ if (algo == GNUTLS_MAC_AEAD)
+ return 1;
+
cc = _gnutls_get_crypto_mac(algo);
if (cc != NULL)
return 1;