2 * Copyright (C) 2018 IBM Corporation
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
21 char *crypt_get_hash(void *ctx);
22 bool crypt_check_password(const char *password);
23 int crypt_set_password(void *ctx, const char *password);
24 int crypt_set_password_hash(void *ctx, const char *hash);
28 static inline char *crypt_get_hash(void *ctx __attribute__((unused)))
32 static inline bool crypt_check_password(
33 const char *password __attribute__((unused)))
37 static inline int crypt_set_password(void *ctx __attribute__((unused)),
38 const char *password __attribute__((unused)))
42 static inline int crypt_set_password_hash(void *ctx __attribute__((unused)),
43 const char *hash __attribute__((unused)))