diff options
Diffstat (limited to 'networking/httpd.c')
-rw-r--r-- | networking/httpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index 4da7e5c65..78c6f4d1d 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -1733,7 +1733,7 @@ static int checkPerm(const char *path, const char *request) | |||
1733 | && pp[3] == '$' && pp[4] | 1733 | && pp[3] == '$' && pp[4] |
1734 | ) { | 1734 | ) { |
1735 | pp++; | 1735 | pp++; |
1736 | cipher = pw_encrypt(u+1, pp); | 1736 | cipher = pw_encrypt(u+1, pp, 1); |
1737 | if (strcmp(cipher, pp) == 0) | 1737 | if (strcmp(cipher, pp) == 0) |
1738 | goto set_remoteuser_var; /* Ok */ | 1738 | goto set_remoteuser_var; /* Ok */ |
1739 | /* unauthorized */ | 1739 | /* unauthorized */ |
@@ -2352,7 +2352,7 @@ int httpd_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
2352 | #endif | 2352 | #endif |
2353 | #if ENABLE_FEATURE_HTTPD_AUTH_MD5 | 2353 | #if ENABLE_FEATURE_HTTPD_AUTH_MD5 |
2354 | if (opt & OPT_MD5) { | 2354 | if (opt & OPT_MD5) { |
2355 | puts(pw_encrypt(pass, "$1$")); | 2355 | puts(pw_encrypt(pass, "$1$", 1)); |
2356 | return 0; | 2356 | return 0; |
2357 | } | 2357 | } |
2358 | #endif | 2358 | #endif |