~clint-fewbar/ubuntu/precise/squid3/ignore-sighup-early

« back to all changes in this revision

Viewing changes to src/auth/basic/auth_basic.h

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2010-05-04 11:15:49 UTC
  • mfrom: (1.3.1 upstream)
  • mto: (20.3.1 squeeze) (21.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20100504111549-1apjh2g5sndki4te
Tags: upstream-3.1.3
ImportĀ upstreamĀ versionĀ 3.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
#ifndef __AUTH_BASIC_H__
7
7
#define __AUTH_BASIC_H__
8
 
#include "authenticate.h"
9
 
#include "AuthUser.h"
10
 
#include "AuthUserRequest.h"
11
 
#include "AuthConfig.h"
 
8
#include "auth/Gadgets.h"
 
9
#include "auth/User.h"
 
10
#include "auth/UserRequest.h"
 
11
#include "auth/Config.h"
12
12
#include "helper.h"
13
13
 
14
14
#define DefaultAuthenticateChildrenMax  32      /* 32 processes */
60
60
    char *passwd;
61
61
    time_t credentials_checkedtime;
62
62
 
63
 
    struct
64
 
    {
 
63
    struct {
65
64
 
66
65
unsigned int credentials_ok:
67
66
        2;      /*0=unchecked,1=ok,2=failed */
68
 
    }
69
 
 
70
 
    flags;
 
67
    } flags;
71
68
    BasicAuthQueueNode *auth_queue;
72
69
 
73
70
private:
79
76
    char const *httpAuthHeader;
80
77
};
81
78
 
82
 
MEMPROXY_CLASS_INLINE(BasicUser)
 
79
MEMPROXY_CLASS_INLINE(BasicUser);
83
80
 
84
81
typedef class BasicUser basic_data;
85
82
 
95
92
    virtual ~AuthBasicUserRequest();
96
93
 
97
94
    virtual int authenticated() const;
98
 
    virtual void authenticate(HttpRequest * request, ConnStateData::Pointer conn, http_hdr_type type);
 
95
    virtual void authenticate(HttpRequest * request, ConnStateData *conn, http_hdr_type type);
99
96
    virtual int module_direction();
100
97
    virtual void module_start(RH *, void *);
101
98
    virtual AuthUser *user() {return _theUser;}
108
105
    BasicUser *_theUser;
109
106
};
110
107
 
111
 
MEMPROXY_CLASS_INLINE(AuthBasicUserRequest)
 
108
MEMPROXY_CLASS_INLINE(AuthBasicUserRequest);
112
109
 
113
110
/* configuration runtime data */
114
111
 
126
123
    virtual void fixHeader(AuthUserRequest *, HttpReply *, http_hdr_type, HttpRequest *);
127
124
    virtual void init(AuthConfig *);
128
125
    virtual void parse(AuthConfig *, int, char *);
129
 
    virtual void registerWithCacheManager(CacheManager & manager);
 
126
    virtual void registerWithCacheManager(void);
130
127
    virtual const char * type() const;
131
128
    int authenticateChildren;
132
129
    int authenticateConcurrency;
134
131
    wordlist *authenticate;
135
132
    time_t credentialsTTL;
136
133
    int casesensitive;
 
134
    int utf8;
137
135
};
138
136
 
139
137
#endif