pass full string in as salt

pull/435/head
JacobBarthelmeh 2022-07-21 16:26:26 -07:00
parent f8439af47e
commit d16f642734
1 changed files with 2 additions and 2 deletions

View File

@ -295,7 +295,7 @@ static int CheckPasswordPAM(const byte* usr, const byte* pw, int pwSz)
} }
#else #else
#if defined(WOLFSSH_HAVE_LIBCRYPT) #if 0
static int ExtractSalt(char* hash, char** salt, int saltSz) static int ExtractSalt(char* hash, char** salt, int saltSz)
{ {
int ret = WS_SUCCESS; int ret = WS_SUCCESS;
@ -348,7 +348,7 @@ static int ExtractSalt(char* hash, char** salt, int saltSz)
return ret; return ret;
} }
#endif /* WOLFSSH_HAVE_LIBCRYPT */ #endif
#if defined(WOLFSSH_HAVE_LIBCRYPT) || defined(WOLFSSH_HAVE_LIBLOGIN) #if defined(WOLFSSH_HAVE_LIBCRYPT) || defined(WOLFSSH_HAVE_LIBLOGIN)
static int CheckPasswordHashUnix(const char* input, char* stored) static int CheckPasswordHashUnix(const char* input, char* stored)