-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommon.h
executable file
·60 lines (49 loc) · 904 Bytes
/
common.h
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
60
/*
Copyright (c) 2015 Colum Paget <[email protected]>
* SPDX-License-Identifier: GPL-3.0
*/
#ifndef USBAUTH_COMMON_H
#define USBAUTH_COMMON_H
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <stdarg.h>
#include <string.h>
#include <sys/types.h>
#define VERSION "1.9"
#define FALSE 0
#define TRUE 1
#define MATCH_NO 0
#define MATCH_WRONG_USER 1
#define MATCH_YES 3
#define MATCH_VALID 4
#define FLAG_SYSLOG 1
#define FLAG_DENY 4
#define FLAG_DENYALL 8
#define FLAG_LOGPASS 16
#define FLAG_FAILS 32
#define FLAG_NOTUSER 64
#define FLAG_NOTHOST 128
#define FLAG_IGNORE_BLANK 256
#define FLAG_LOGFOUND 512
typedef struct
{
int Flags;
char *Prompt;
char *CredsFiles;
char *SortedFiles;
char *User;
char *Host;
char *PamUser;
char *PamHost;
char *PamTTY;
char *Script;
} TSettings;
typedef struct
{
int Flags;
char *User;
char *Pass;
char *Salt;
} THoneyCred;
#endif