diff options
| author | Mattias Andrée <m@maandree.se> | 2026-05-08 22:29:35 +0200 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-05-08 22:29:35 +0200 |
| commit | 2d3a573977417d917c16742d8d9d8ead047d0ebc (patch) | |
| tree | caeac52856a9df0478e2bee53e5dda1f84422461 /librecrypt_hash_.c | |
| parent | Add DEFAULT_SUPPORT option and improve DEPENDENCIES (diff) | |
| download | librecrypt-2d3a573977417d917c16742d8d9d8ead047d0ebc.tar.gz librecrypt-2d3a573977417d917c16742d8d9d8ead047d0ebc.tar.bz2 librecrypt-2d3a573977417d917c16742d8d9d8ead047d0ebc.tar.xz | |
Misc
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'librecrypt_hash_.c')
| -rw-r--r-- | librecrypt_hash_.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/librecrypt_hash_.c b/librecrypt_hash_.c index 563e072..2ee03ee 100644 --- a/librecrypt_hash_.c +++ b/librecrypt_hash_.c @@ -103,7 +103,10 @@ next: for (i = 0u; i < n; i++) if (settings[i] == LIBRECRYPT_HASH_COMPOSITION_DELIMITER) prefix = i + 1u; - /* TODO "_" is a prefix that is being used */ + if (n && !prefix && settings[i] == '_') { + /* Special case for bsdicrypt */ + prefix = 1u; + } if (!algo->flexible_hash_size && prefix != n) goto einval; |
