httpd: allow yescrypt passwords ("$y$....")
No binary (build failed)
—
(log yok)
| @@ -96,7 +96,7 @@ config USE_BB_CRYPT_YES | |
| default y | |
| depends on USE_BB_CRYPT | |
| help | |
| - | Enable this if you have passwords starting with "$y$" or |
| + | Enable this if you have passwords starting with "$y$" |
| in your /etc/passwd or /etc/shadow files. These passwords | |
| are hashed using yescrypt algorithms. | |
| With this option off, login will fail password check for any | |
| @@ -2247,7 +2247,7 @@ static int check_user_passwd(const char *path, char *user_and_passwd) | |
| } | |
| /* Else: passwd is from httpd.conf, it is either plaintext or encrypted */ | |
| - | if (passwd[0] == '$' && isdigit(passwd[1])) { |
| + | if (passwd[0] == '$' && (isdigit(passwd[1]) || passwd[1] == 'y')) { |
| char *encrypted; | |
| # if !ENABLE_PAM | |
| check_encrypted: | |