Skip to content

Commit

Permalink
crypt_r with crypt
Browse files Browse the repository at this point in the history
  • Loading branch information
formiano committed Dec 13, 2024
1 parent c3606e8 commit 0f5ab74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/dvb/streamserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void eStreamClient::notifier(int what)
crypt = spwd.sp_pwdp;
}
}
cryptresult = crypt_r(password.c_str(), crypt.c_str(), &cryptdata);
cryptresult = crypt(password.c_str(), crypt.c_str(), &cryptdata);
authenticated = cryptresult && cryptresult == crypt;
}
free(buffer);
Expand Down
2 changes: 1 addition & 1 deletion main/enigma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ bool checkLogin(const char *user, const char *password)
crypt = spwd.sp_pwdp;
}
}
cryptresult = crypt_r(password, crypt.c_str(), &cryptdata);
cryptresult = crypt(password, crypt.c_str(), &cryptdata);
authenticated = cryptresult && cryptresult == crypt;
}
free(buffer);
Expand Down

0 comments on commit 0f5ab74

Please sign in to comment.