-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathcfg.h
More file actions
42 lines (35 loc) · 756 Bytes
/
cfg.h
File metadata and controls
42 lines (35 loc) · 756 Bytes
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
/*
* Copyright (C) 2014-2019 Yubico AB - See COPYING
*/
#ifndef CFG_H
#define CFG_H
#include <stdio.h>
#define CFG_DEFAULT_PATH (SCONFDIR "/pam_u2f.conf")
#define CFG_MAX_FILE_SIZE 4096
typedef struct {
unsigned max_devs;
int manual;
int debug;
int nouserok;
int openasuser;
int alwaysok;
int interactive;
int cue;
int nodetect;
int userpresence;
int userverification;
int pinverification;
int sshformat;
int expand;
const char *auth_file;
const char *authpending_file;
const char *origin;
const char *appid;
const char *prompt;
const char *cue_prompt;
FILE *debug_file;
char *defaults_buffer;
} cfg_t;
int cfg_init(cfg_t *cfg, int flags, int argc, const char **argv);
void cfg_free(cfg_t *cfg);
#endif