diff options
Diffstat (limited to 'src/crypto/mac')
-rw-r--r-- | src/crypto/mac/macs.c.in | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/crypto/mac/macs.c.in b/src/crypto/mac/macs.c.in index e591935..5a4e1fb 100644 --- a/src/crypto/mac/macs.c.in +++ b/src/crypto/mac/macs.c.in @@ -94,9 +94,8 @@ void fastd_mac_free(fastd_context_t *ctx) { bool fastd_mac_available(const char *name) { size_t i; for (i = 0; i < array_size(macs); i++) { - if (!strcmp(macs[i].name, name)) { - return true; - } + if (!strcmp(macs[i].name, name)) + return macs[i].impls[0]; } return false; |