Move test_password_{one,many} to libcrypt-util.c

They are only used under src/home/, but I want to add tests in test-libcrypt-util.c.
And the functions are almost trivial, so I think it is OK to move them to shared.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2020-09-15 11:52:30 +02:00
parent a937ce2d85
commit 2ae297fe0d
5 changed files with 35 additions and 36 deletions
+2
View File
@@ -23,3 +23,5 @@ static inline int hash_password(const char *password, char **ret) {
return hash_password_full(password, NULL, NULL, ret);
}
bool looks_like_hashed_password(const char *s);
int test_password_one(const char *hashed_password, const char *password);
int test_password_many(char **hashed_password, const char *password);