Debian Codegraph @

src/common/cockpitauthorize.h

raw
1 /*
2 * Copyright (C) 2014 Red Hat, Inc.
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6 #ifndef COCKPIT_AUTHORIZE_H__
7 #define COCKPIT_AUTHORIZE_H__
8
9 #include <sys/types.h>
10
11 void cockpit_authorize_logger (void (* func) (const char *data),
12 int verbose);
13
14 void * cockpit_authorize_nonce (size_t length);
15
16 const char * cockpit_authorize_type (const char *challenge,
17 char **type);
18
19 const char * cockpit_authorize_subject (const char *challenge,
20 char **subject);
21
22 char * cockpit_authorize_parse_basic (const char *challenge,
23 char **user);
24
25 char * cockpit_authorize_build_basic (const char *user,
26 const char *password);
27
28 void * cockpit_authorize_parse_negotiate (const char *challenge,
29 size_t *length);
30
31 char * cockpit_authorize_build_negotiate (const void *input,
32 size_t length);
33
34 char * cockpit_authorize_parse_x_conversation (const char *challenge,
35 char **conversation);
36
37 char * cockpit_authorize_build_x_conversation (const char *prompt,
38 char **conversation);
39
40 #endif /* COCKPIT_AUTHORIZE_H__ */