auth_negotiate.h

来自「代理服务器 squid-2.6.STABLE16」· C头文件 代码 · 共 60 行

H
60
字号
/* * auth_negotiate.h * Internal declarations for the negotiate auth module */#ifndef __AUTH_Negotiate_H__#define __AUTH_Negotiate_H__#define DefaultAuthenticateChildrenMax  32	/* 32 processes */typedef enum {    AUTHENTICATE_STATE_NONE,    AUTHENTICATE_STATE_INITIAL,    AUTHENTICATE_STATE_NEGOTIATE,    AUTHENTICATE_STATE_DONE,    AUTHENTICATE_STATE_FAILED} auth_state_t;			/* connection level auth state *//* Generic */typedef struct {    void *data;    auth_user_request_t *auth_user_request;    RH *handler;} authenticateStateData;struct _negotiate_user {    /* what username did this connection get? */    char *username;};struct _negotiate_request {    /*we need to store the helper server between requests */    helper_stateful_server *authserver;    /* how far through the authentication process are we? */    auth_state_t auth_state;    /* currently waiting for helper response */    int waiting;    /* what connection is this associated with */    ConnStateData *conn;    /* our current blob to pass to the client */    char *server_blob;    /* our current blob to pass to the server */    char *client_blob;    /* the HTTP request */    request_t *request;};/* configuration runtime data */struct _auth_negotiate_config {    int authenticateChildren;    int keep_alive;    wordlist *authenticate;};typedef struct _negotiate_user negotiate_user_t;typedef struct _negotiate_request negotiate_request_t;typedef struct _auth_negotiate_config auth_negotiate_config;#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?