From 2d3a573977417d917c16742d8d9d8ead047d0ebc Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 8 May 2026 22:29:35 +0200 Subject: Misc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- librecrypt_hash_.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'librecrypt_hash_.c') 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; -- cgit v1.2.3-70-g09d2