Skip to content
Permalink
Browse files

auth: use MD5 instead SHA512 crypt() due to uClibc defaults

Signed-off-by: Mateusz Zalega <mateusz@radicallyopensecurity.com>
  • Loading branch information
msgctl committed Sep 20, 2016
1 parent 85264e6 commit 9b7569986016fdd070b857828126ef37596075a6
Showing with 2 additions and 2 deletions.
  1. +2 −2 auth.c
4 auth.c
@@ -29,8 +29,8 @@ static int _auth_get_random(char *out, size_t n) {
}

static char *__auth_gen_crypt(const char *pass) {
/* SHA512 */
char salt[] = "$6$........";
/* SHA512 isn't available in uClibc by default, using MD5 for now */
char salt[] = "$1$........";
const char seedchars[] =
"./0123456789ABCDEFGHIJKLMNOPQRST"
"UVWXYZabcdefghijklmnopqrstuvwxyz";

0 comments on commit 9b75699

Please sign in to comment.
You can’t perform that action at this time.