]>
Commit | Line | Data |
---|---|---|
42f3b2f9 LP |
1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
2 | #pragma once | |
3 | ||
42f3b2f9 | 4 | #include <stdbool.h> |
42f3b2f9 LP |
5 | |
6 | int make_salt(char **ret); | |
a937ce2d ZJS |
7 | int hash_password_full(const char *password, void **cd_data, int *cd_size, char **ret); |
8 | static inline int hash_password(const char *password, char **ret) { | |
9 | return hash_password_full(password, NULL, NULL, ret); | |
10 | } | |
8f796e40 | 11 | bool looks_like_hashed_password(const char *s); |
2ae297fe ZJS |
12 | int test_password_one(const char *hashed_password, const char *password); |
13 | int test_password_many(char **hashed_password, const char *password); |