From d16f642734fb492601d2223b0bfca982b0acd6fb Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Thu, 21 Jul 2022 16:26:26 -0700 Subject: [PATCH] pass full string in as salt --- apps/wolfsshd/auth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/wolfsshd/auth.c b/apps/wolfsshd/auth.c index 16030585..c216206c 100644 --- a/apps/wolfsshd/auth.c +++ b/apps/wolfsshd/auth.c @@ -295,7 +295,7 @@ static int CheckPasswordPAM(const byte* usr, const byte* pw, int pwSz) } #else -#if defined(WOLFSSH_HAVE_LIBCRYPT) +#if 0 static int ExtractSalt(char* hash, char** salt, int saltSz) { int ret = WS_SUCCESS; @@ -348,7 +348,7 @@ static int ExtractSalt(char* hash, char** salt, int saltSz) return ret; } -#endif /* WOLFSSH_HAVE_LIBCRYPT */ +#endif #if defined(WOLFSSH_HAVE_LIBCRYPT) || defined(WOLFSSH_HAVE_LIBLOGIN) static int CheckPasswordHashUnix(const char* input, char* stored)