summaryrefslogtreecommitdiffstats
path: root/src/methods
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-11-18 03:46:55 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-11-18 03:49:18 +0100
commitaf90494cf1ef40a4e00b9a81d0db4f2690e099a0 (patch)
treef99d77d061c957dc39a07bba10d903d092b17c46 /src/methods
parentd646bd03321217d0af8d4787f8aa2a044c2a63d1 (diff)
downloadfastd-af90494cf1ef40a4e00b9a81d0db4f2690e099a0.tar
fastd-af90494cf1ef40a4e00b9a81d0db4f2690e099a0.zip
generic-gcm: cipher_get returns a boolean
Diffstat (limited to 'src/methods')
-rw-r--r--src/methods/generic_gcm/generic_gcm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/methods/generic_gcm/generic_gcm.c b/src/methods/generic_gcm/generic_gcm.c
index d40c7cb..4c111ce 100644
--- a/src/methods/generic_gcm/generic_gcm.c
+++ b/src/methods/generic_gcm/generic_gcm.c
@@ -49,10 +49,10 @@ static bool cipher_get(fastd_context_t *ctx, const char *name, const fastd_ciphe
size_t len = strlen(name);
if (len < 4)
- return NULL;
+ return false;
if (strcmp(name+len-4, "-gcm"))
- return NULL;
+ return false;
char name_ctr[len+1];
memcpy(name_ctr, name, len-3);