diff options
| author | Mattias Andrée <m@maandree.se> | 2026-05-20 23:04:11 +0200 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-05-20 23:04:11 +0200 |
| commit | c35b47228f5494f4d806e9166628110af6dd2469 (patch) | |
| tree | 3b5a123af999a5e047b8565efee293a5d95c3f6c /librecrypt_test_supported.c | |
| parent | Prepare for supporting custom algorithms (diff) | |
| download | librecrypt-c35b47228f5494f4d806e9166628110af6dd2469.tar.gz librecrypt-c35b47228f5494f4d806e9166628110af6dd2469.tar.bz2 librecrypt-c35b47228f5494f4d806e9166628110af6dd2469.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'librecrypt_test_supported.c')
| -rw-r--r-- | librecrypt_test_supported.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/librecrypt_test_supported.c b/librecrypt_test_supported.c index 6d2a7a6..9cc8bd5 100644 --- a/librecrypt_test_supported.c +++ b/librecrypt_test_supported.c @@ -4,13 +4,11 @@ int -librecrypt_test_supported(const char *phrase, size_t len, int text, const char *settings, void *reserved) +librecrypt_test_supported(const char *phrase, size_t len, int text, const char *settings, LIBRECRYPT_CONTEXT *ctx) { const struct librecrypt_algorithm *algo; size_t n; - (void) reserved; - /* For each chained algorithm */ for (;;) { /* Measure until next '>' */ @@ -19,7 +17,7 @@ librecrypt_test_supported(const char *phrase, size_t len, int text, const char * break; /* Identify algorithm */ - algo = librecrypt_find_first_algorithm_(settings, n); + algo = librecrypt_find_first_algorithm_(settings, n, ctx); if (!algo) return 0; |
