Greenbone Vulnerability Manager  22.4.0~dev1
manage_authentication.h
1 /* Copyright (C) 2022 Greenbone Networks GmbH
2  *
3  * SPDX-License-Identifier: GPL-3.0-or-later
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef _GVMD_MANAGE_AUTHENTICATION_H
20 #define _GVMD_MANAGE_AUTHENTICATION_H
21 
22 
23 enum manage_authentication_rc
24 {
25  GMA_SUCCESS,
26  GMA_HASH_VALID_BUT_DATED,
27  GMA_HASH_INVALID,
28  GMA_ERR,
29 };
30 
31 enum manage_authentication_rc
32 manage_authentication_setup (const char *pepper, unsigned int pepper_size,
33  unsigned int count, char *prefix);
34 char *
35 manage_authentication_hash (const char *password);
36 
37 enum manage_authentication_rc
38 manage_authentication_verify (const char *hash, const char *password);
39 
40 #endif
41 
int count(const char *type, const get_data_t *get, column_t *select_columns, column_t *trash_select_columns, const char **filter_columns, int distinct, const char *extra_tables, const char *extra_where, int owned)
Count number of a particular resource.
Definition: manage_sql.c:5813