]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/libcrypt-util.h
Merge pull request #16981 from keszybz/use-crypt_ra
[thirdparty/systemd.git] / src / shared / libcrypt-util.h
CommitLineData
42f3b2f9
LP
1/* SPDX-License-Identifier: LGPL-2.1+ */
2#pragma once
3
42f3b2f9 4#include <stdbool.h>
42f3b2f9
LP
5
6int make_salt(char **ret);
a937ce2d
ZJS
7int hash_password_full(const char *password, void **cd_data, int *cd_size, char **ret);
8static inline int hash_password(const char *password, char **ret) {
9 return hash_password_full(password, NULL, NULL, ret);
10}
8f796e40 11bool looks_like_hashed_password(const char *s);
2ae297fe
ZJS
12int test_password_one(const char *hashed_password, const char *password);
13int test_password_many(char **hashed_password, const char *password);