Debian Codegraph @

src/shared/libcrypt-util.h

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include "shared-forward.h"
5
6 #if HAVE_LIBCRYPT
7 int make_salt(char **ret);
8 int hash_password(const char *password, char **ret);
9 int test_password_one(const char *hashed_password, const char *password);
10 int test_password_many(char **hashed_password, const char *password);
11
12 #else
13
14 static inline int hash_password(const char *password, char **ret) {
15 return -EOPNOTSUPP;
16 }
17 #endif
18
19 int dlopen_libcrypt(int log_level);
20
21 bool looks_like_hashed_password(const char *s);