aboutsummaryrefslogtreecommitdiffstats
path: root/librecrypt_find_first_algorithm_.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-05-20 20:29:04 +0200
committerMattias Andrée <m@maandree.se>2026-05-20 20:33:29 +0200
commit3454e0328d57f57852bf12d698b6b4a4736d0719 (patch)
treeb05330eabb10715b8fee2bbe022805ef386276b8 /librecrypt_find_first_algorithm_.c
parentAdd librecrypt_is_enabled (diff)
downloadlibrecrypt-3454e0328d57f57852bf12d698b6b4a4736d0719.tar.gz
librecrypt-3454e0328d57f57852bf12d698b6b4a4736d0719.tar.bz2
librecrypt-3454e0328d57f57852bf12d698b6b4a4736d0719.tar.xz
Prepare for supporting custom algorithms
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--librecrypt_find_first_algorithm_.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/librecrypt_find_first_algorithm_.c b/librecrypt_find_first_algorithm_.c
index 6bbfe70..2a33b5e 100644
--- a/librecrypt_find_first_algorithm_.c
+++ b/librecrypt_find_first_algorithm_.c
@@ -3,11 +3,11 @@
#ifndef TEST
-const struct algorithm *
+const struct librecrypt_algorithm *
librecrypt_find_first_algorithm_(const char *settings, size_t len)
{
unsigned r, priority = 0;
- const struct algorithm *algo, *found = NULL;
+ const struct librecrypt_algorithm *algo, *found = NULL;
size_t i;
for (i = 0u;; i++) {
@@ -55,7 +55,7 @@ librecrypt_find_first_algorithm_(const char *settings, size_t len)
int
main(void)
{
- const struct algorithm *algo;
+ const struct librecrypt_algorithm *algo;
SET_UP_ALARM();
INIT_RESOURCE_TEST();