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