summaryrefslogtreecommitdiff
path: root/lib/algorithms.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-08-18 12:57:07 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-08-18 14:41:26 +0200
commita791437e62f6c92bba4ee5ee79c38dfdf2b54fbe (patch)
tree4ae352872d6bb888bdb5e888eb03ade9a791ae36 /lib/algorithms.h
parent91d88c300104c66ec14bc3d570c2569ff30158ae (diff)
downloadgnutls-a791437e62f6c92bba4ee5ee79c38dfdf2b54fbe.tar.gz
lib: use casts and be explicit on intentional enumeration use
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/algorithms.h')
-rw-r--r--lib/algorithms.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/algorithms.h b/lib/algorithms.h
index cd2082000d..67902290be 100644
--- a/lib/algorithms.h
+++ b/lib/algorithms.h
@@ -195,7 +195,7 @@ const cipher_entry_st *cipher_name_to_entry(const char *name);
inline static cipher_type_t _gnutls_cipher_type(const cipher_entry_st * e)
{
if (unlikely(e == NULL))
- return 0;
+ return CIPHER_AEAD; /* doesn't matter */
return e->type;
}