aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/httpd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index 7ac43619a..0a8322c88 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -2347,7 +2347,12 @@ int httpd_main(int argc UNUSED_PARAM, char **argv)
2347#endif 2347#endif
2348#if ENABLE_FEATURE_HTTPD_AUTH_MD5 2348#if ENABLE_FEATURE_HTTPD_AUTH_MD5
2349 if (opt & OPT_MD5) { 2349 if (opt & OPT_MD5) {
2350 puts(pw_encrypt(pass, "$1$", 1)); 2350 char salt[sizeof("$1$XXXXXXXX")];
2351 salt[0] = '$';
2352 salt[1] = '1';
2353 salt[2] = '$';
2354 crypt_make_salt(salt + 3, 4, 0);
2355 puts(pw_encrypt(pass, salt, 1));
2351 return 0; 2356 return 0;
2352 } 2357 }
2353#endif 2358#endif