mirror of
https://github.com/anope/anope.git
synced 2026-07-05 06:13:13 +02:00
Add verify-only support for POSIX crypt() hashes from Atheme.
This commit is contained in:
@@ -411,9 +411,9 @@ private:
|
||||
// base64 Converted to the first encryption algorithm
|
||||
// bcrypt Converted to enc_bcrypt
|
||||
// crypt3-des NO
|
||||
// crypt3-md5 NO
|
||||
// crypt3-sha2-256 NO
|
||||
// crypt3-sha2-512 NO
|
||||
// crypt3-md5 Converted to enc_posix
|
||||
// crypt3-sha2-256 Converted to enc_posix
|
||||
// crypt3-sha2-512 Converted to enc_posix
|
||||
// ircservices Converted to enc_old
|
||||
// pbkdf2 NO
|
||||
// pbkdf2v2 NO
|
||||
@@ -462,6 +462,9 @@ private:
|
||||
else if (pass.compare(0, 11, "$rawsha512$", 11) == 0)
|
||||
nc->pass = "raw-sha512:" + pass.substr(11);
|
||||
|
||||
else if (pass.compare(0, 3, "$1$", 3) == 0 || pass.compare(0, 3, "$5", 3) == 0 || pass.compare(0, 3, "$6", 3) == 0)
|
||||
nc->pass = "posix:" + pass;
|
||||
|
||||
else if (pass.compare(0, 4, "$2a$", 4) == 0 || pass.compare(0, 4, "$2b$", 4) == 0)
|
||||
nc->pass = "bcrypt:" + pass;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user