~ubuntu-branches/ubuntu/trusty/haproxy/trusty-updates

« back to all changes in this revision

Viewing changes to include/common/uri_auth.h

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Cornet
  • Date: 2009-10-19 22:31:45 UTC
  • mfrom: (1.2.5 upstream)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20091019223145-rymupk5njs544bvp
ImportĀ upstreamĀ versionĀ 1.3.22

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
};
33
33
 
34
34
#define ST_HIDEVER      0x00000001      /* do not report the version and reldate */
 
35
#define ST_SHNODE       0x00000002      /* show node name */
 
36
#define ST_SHDESC       0x00000004      /* show description */
35
37
 
36
38
/* later we may link them to support multiple URI matching */
37
39
struct uri_auth {
38
40
        int uri_len;                    /* the prefix length */
39
41
        char *uri_prefix;               /* the prefix we want to match */
40
42
        char *auth_realm;               /* the realm reported to the client */
 
43
        char *node, *desc;              /* node name & description reported in this stats */
41
44
        int refresh;                    /* refresh interval for the browser (in seconds) */
42
45
        int flags;                      /* some flags describing the statistics page */
43
46
        struct user_auth *users;        /* linked list of valid user:passwd couples */
74
77
struct uri_auth *stats_set_flag(struct uri_auth **root, int flag);
75
78
struct uri_auth *stats_add_auth(struct uri_auth **root, char *user);
76
79
struct uri_auth *stats_add_scope(struct uri_auth **root, char *scope);
 
80
struct uri_auth *stats_set_node(struct uri_auth **root, char *name);
 
81
struct uri_auth *stats_set_desc(struct uri_auth **root, char *desc);
77
82
 
78
83
#endif /* _COMMON_URI_AUTH_H */
79
84