]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/libcrypt-util.h
25790f9ad3fc92e3ce9811af92be85939ceb3ec6
[thirdparty/systemd.git] / src / shared / libcrypt-util.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include "forward.h"
5
6 int make_salt(char **ret);
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 }
11 bool looks_like_hashed_password(const char *s);
12 int test_password_one(const char *hashed_password, const char *password);
13 int test_password_many(char **hashed_password, const char *password);