diff options
Diffstat (limited to '')
| -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; |
