File: auth.h

package info (click to toggle)
haproxy 1.5.8-3%2Bdeb8u2
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 8,248 kB
  • ctags: 6,924
  • sloc: ansic: 62,867; xml: 1,754; python: 925; makefile: 551; perl: 550; sh: 491
file content (59 lines) | stat: -rw-r--r-- 1,225 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
 * User authentication & authorization.
 *
 * Copyright 2010 Krzysztof Piotr Oledzki <ole@ans.pl>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version
 * 2 of the License, or (at your option) any later version.
 *
 */

#ifndef _TYPES_AUTH_H
#define _TYPES_AUTH_H

#include <common/config.h>
#include <common/mini-clist.h>

#include <types/auth.h>

#define AU_O_INSECURE	0x00000001		/* insecure, unencrypted password */

struct auth_groups {
	struct auth_groups *next;
	char *name;
	char *groupusers; /* Just used during the configuration parsing. */
};

struct auth_groups_list {
	struct auth_groups_list *next;
	struct auth_groups *group;
};

struct auth_users {
	struct auth_users *next;
	unsigned int flags;
	char *user, *pass;
	union {
		char *groups_names; /* Just used during the configuration parsing. */
		struct auth_groups_list *groups;
	} u;
};

struct userlist {
	struct userlist *next;
	char *name;
	struct auth_users *users;
	struct auth_groups *groups;
};

#endif /* _TYPES_AUTH_H */

/*
 * Local variables:
 *  c-indent-level: 8
 *  c-basic-offset: 8
 * End:
 */