The STATS_DEFAULT_REALM and STATS_DEFAULT_URI were moved to defaults.h.
It was required to include types/pattern.h and types/sample.h since they
are mentioned in function prototypes.
It would be wise to merge this with uri_auth.h later.
#define _COMMON_URI_AUTH_H
+#include <haproxy/auth-t.h>
#include <haproxy/api.h>
-#include <types/auth.h>
/* This is a list of proxies we are allowed to see. Later, it should go in the
* user list, but before this we need to support de/re-authentication.
struct uri_auth *next; /* Used at deinit() to build a list of unique elements */
};
-/* This is the default statistics URI */
-#ifdef CONFIG_STATS_DEFAULT_URI
-#define STATS_DEFAULT_URI CONFIG_STATS_DEFAULT_URI
-#else
-#define STATS_DEFAULT_URI "/haproxy?stats"
-#endif
-
-/* This is the default statistics realm */
-#ifdef CONFIG_STATS_DEFAULT_REALM
-#define STATS_DEFAULT_REALM CONFIG_STATS_DEFAULT_REALM
-#else
-#define STATS_DEFAULT_REALM "HAProxy Statistics"
-#endif
-
-
struct stats_admin_rule {
struct list list; /* list linked to from the proxy */
struct acl_cond *cond; /* acl condition to meet */
/*
- * User authentication & authorization.
+ * include/haproxy/auth-t.h
+ * Types definitions for user authentication & authorization.
*
* Copyright 2010 Krzysztof Piotr Oledzki <ole@ans.pl>
*
*
*/
-#ifndef _TYPES_AUTH_H
-#define _TYPES_AUTH_H
+#ifndef _HAPROXY_AUTH_T_H
+#define _HAPROXY_AUTH_T_H
+#include <haproxy/auth-t.h>
#include <haproxy/api-t.h>
#include <haproxy/list-t.h>
-#include <types/auth.h>
-
#define AU_O_INSECURE 0x00000001 /* insecure, unencrypted password */
struct auth_groups {
struct auth_groups *groups;
};
-#endif /* _TYPES_AUTH_H */
+#endif /* _HAPROXY_AUTH_T_H */
/*
* Local variables:
/*
- * User authentication & authorization.
+ * include/haproxy/auth.h
+ * Functions for user authentication & authorization.
*
* Copyright 2010 Krzysztof Piotr Oledzki <ole@ans.pl>
*
*
*/
-#ifndef _PROTO_AUTH_H
-#define _PROTO_AUTH_H
+#ifndef _HAPROXY_AUTH_H
+#define _HAPROXY_AUTH_H
+#include <haproxy/auth-t.h>
#include <haproxy/api.h>
-#include <types/auth.h>
+#include <types/pattern.h>
+#include <types/sample.h>
extern struct userlist *userlist;
int check_user(struct userlist *ul, const char *user, const char *pass);
int check_group(struct userlist *ul, char *name);
-#endif /* _PROTO_AUTH_H */
+#endif /* _HAPROXY_AUTH_H */
/*
* Local variables:
#define STATS_VERSION_STRING " version " HAPROXY_VERSION ", released " HAPROXY_DATE
#endif
+/* This is the default statistics URI */
+#ifdef CONFIG_STATS_DEFAULT_URI
+#define STATS_DEFAULT_URI CONFIG_STATS_DEFAULT_URI
+#else
+#define STATS_DEFAULT_URI "/haproxy?stats"
+#endif
+
+/* This is the default statistics realm */
+#ifdef CONFIG_STATS_DEFAULT_REALM
+#define STATS_DEFAULT_REALM CONFIG_STATS_DEFAULT_REALM
+#else
+#define STATS_DEFAULT_REALM "HAProxy Statistics"
+#endif
+
/* Maximum signal queue size, and also number of different signals we can
* handle.
*/
#ifndef _TYPES_ACL_H
#define _TYPES_ACL_H
+#include <haproxy/auth-t.h>
#include <haproxy/api-t.h>
#include <haproxy/list-t.h>
#include <haproxy/arg-t.h>
-#include <types/auth.h>
#include <types/pattern.h>
#include <types/proxy.h>
#include <types/server.h>
#include <stdio.h>
#include <string.h>
+#include <haproxy/auth.h>
#include <haproxy/api.h>
#include <haproxy/list.h>
#include <haproxy/tools.h>
#include <proto/acl.h>
#include <haproxy/arg.h>
-#include <proto/auth.h>
#include <proto/channel.h>
#include <proto/log.h>
#include <proto/pattern.h>
#include <string.h>
#include <unistd.h>
+#include <haproxy/auth-t.h>
#include <haproxy/api.h>
#include <types/global.h>
#include <haproxy/errors.h>
#include <proto/acl.h>
#include <proto/log.h>
-#include <types/auth.h>
#include <types/pattern.h>
struct userlist *userlist = NULL; /* list of all existing userlists */
#include <unistd.h>
#include <haproxy/action-t.h>
+#include <haproxy/auth.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
#include <haproxy/chunk.h>
#include <types/stats.h>
#include <proto/acl.h>
-#include <proto/auth.h>
#include <proto/backend.h>
#include <proto/channel.h>
#include <proto/checks.h>
#include <systemd/sd-daemon.h>
#endif
+#include <haproxy/auth.h>
#include <haproxy/api.h>
#include <import/sha1.h>
#include <proto/acl.h>
#include <haproxy/activity.h>
#include <haproxy/arg.h>
-#include <proto/auth.h>
#include <proto/backend.h>
#include <proto/channel.h>
#include <proto/cli.h>
#include <string.h>
#include <time.h>
+#include <haproxy/auth.h>
#include <haproxy/api.h>
#include <haproxy/chunk.h>
#include <haproxy/http.h>
#include <proto/acl.h>
#include <haproxy/arg.h>
-#include <proto/auth.h>
#include <proto/pattern.h>
#include <string.h>
#include <time.h>
+#include <haproxy/auth.h>
#include <haproxy/api.h>
#include <haproxy/base64.h>
#include <haproxy/chunk.h>
#include <types/global.h>
#include <haproxy/arg.h>
-#include <proto/auth.h>
#include <proto/channel.h>
#include <proto/connection.h>
#include <proto/http_fetch.h>
#include <haproxy/api.h>
#include <types/global.h>
+#include <haproxy/auth.h>
#include <haproxy/buf.h>
#include <haproxy/chunk.h>
#include <haproxy/hash.h>
#include <haproxy/base64.h>
#include <haproxy/arg.h>
-#include <proto/auth.h>
#include <proto/log.h>
#include <proto/proxy.h>
#include <proto/protocol_buffers.h>