auth_basic.h
来自「功能强大的代理服务器」· C头文件 代码 · 共 55 行
H
55 行
/* * auth_basic.h * Internal declarations for the basic auth module */#ifndef __AUTH_BASIC_H__#define __AUTH_BASIC_H__#define DefaultAuthenticateChildrenMax 32 /* 32 processes *//* Generic */typedef struct { void *data; auth_user_request_t *auth_user_request; RH *handler;} authenticateStateData;typedef struct _auth_basic_queue_node auth_basic_queue_node;/* queue of auth requests waiting for verification to occur */struct _auth_basic_queue_node { auth_basic_queue_node *next; RH *handler; void *data;};struct _basic_data { char *username; char *passwd; time_t credentials_checkedtime; struct { unsigned int credentials_ok:2; /*0=unchecked,1=ok,2=failed */ } flags; auth_basic_queue_node *auth_queue;};/* configuration runtime data */struct _auth_basic_config { int authenticateChildren; int authenticateConcurrency; char *basicAuthRealm; wordlist *authenticate; time_t credentialsTTL; int casesensitive; int blankpassword;};typedef struct _auth_basic_config auth_basic_config;typedef struct _basic_data basic_data;#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?