From 0eeac967a3294e6a1718efbd1252433dc76a7684 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 2 Nov 2013 16:07:12 +0100 Subject: Algorithms without implementation aren't available --- src/crypto/cipher/ciphers.c.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/crypto/cipher') diff --git a/src/crypto/cipher/ciphers.c.in b/src/crypto/cipher/ciphers.c.in index 6ff058f..37de211 100644 --- a/src/crypto/cipher/ciphers.c.in +++ b/src/crypto/cipher/ciphers.c.in @@ -94,9 +94,8 @@ void fastd_cipher_free(fastd_context_t *ctx) { bool fastd_cipher_available(const char *name) { size_t i; for (i = 0; i < array_size(ciphers); i++) { - if (!strcmp(ciphers[i].name, name)) { - return true; - } + if (!strcmp(ciphers[i].name, name)) + return ciphers[i].impls[0]; } return false; -- cgit v1.2.3