/*
- * include/common/base64.h
+ * include/haproxy/base64.h
* Ascii to Base64 conversion as described in RFC1421.
*
- * Copyright 2006-2010 Willy Tarreau <w@1wt.eu>
+ * Copyright 2006-2020 Willy Tarreau <w@1wt.eu>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
*
*/
-#ifndef _COMMON_BASE64_H
-#define _COMMON_BASE64_H
+#ifndef _HAPROXY_BASE64_H
+#define _HAPROXY_BASE64_H
-#include <haproxy/api.h>
+#include <stddef.h>
int a2base64(char *in, int ilen, char *out, int olen);
int base64dec(const char *in, size_t ilen, char *out, size_t olen);
extern const char base64tab[];
-#endif /* _COMMON_BASE64_H */
+#endif /* _HAPROXY_BASE64_H */
/*
- * include/common/errors.h
+ * include/haproxy/errors.h
* Global error macros and constants
*
- * Copyright (C) 2000-2010 Willy Tarreau - w@1wt.eu
+ * Copyright (C) 2000-2020 Willy Tarreau - w@1wt.eu
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef _COMMON_ERRORS_H
-#define _COMMON_ERRORS_H
+#ifndef _HAPROXY_ERRORS_H
+#define _HAPROXY_ERRORS_H
/* These flags may be used in various functions which are called from within
* loops (eg: to start all listeners from all proxies). They provide enough
PE_ARG_NOT_FOUND, /* argument references something not found */
};
-#endif /* _COMMON_ERRORS_H */
+#endif /* _HAPROXY_ERRORS_H */
/*
* Local variables:
/*
- * include/common/hash.h
+ * include/haproxy/hash.h
* Macros for different hashing function.
*
- * Copyright (C) 2000-2011 Willy Tarreau - w@1wt.eu
+ * Copyright (C) 2000-2020 Willy Tarreau - w@1wt.eu
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef _COMMON_HASH_H_
-#define _COMMON_HASH_H_
+#ifndef _HAPROXY_HASH_H_
+#define _HAPROXY_HASH_H_
#include <inttypes.h>
unsigned int hash_crc32(const void *input, int len);
uint32_t hash_crc32c(const void *input, int len);
-#endif /* _COMMON_HASH_H_ */
+#endif /* _HAPROXY_HASH_H_ */
#ifndef _PROTO_STICK_TABLE_H
#define _PROTO_STICK_TABLE_H
-#include <common/errors.h>
+#include <haproxy/errors.h>
#include <common/ticks.h>
#include <common/time.h>
#include <types/stick_table.h>
#include <common/cfgparse.h>
#include <common/chunk.h>
#include <common/buffer.h>
-#include <common/errors.h>
+#include <haproxy/errors.h>
#include <common/hathreads.h>
#include <types/global.h>
#include <proto/arg.h>
#include <haproxy/api.h>
#include <types/global.h>
-#include <common/errors.h>
+#include <haproxy/errors.h>
#include <common/hathreads.h>
#include <proto/acl.h>
#include <haproxy/api.h>
#include <common/buffer.h>
#include <common/debug.h>
-#include <common/hash.h>
+#include <haproxy/hash.h>
#include <common/htx.h>
#include <common/ticks.h>
#include <common/time.h>
#include <string.h>
#include <haproxy/api.h>
-#include <common/base64.h>
+#include <haproxy/base64.h>
#define B64BASE '#' /* arbitrary chosen base value */
#define B64CMIN '+'
#include <common/cfgparse.h>
-#include <common/hash.h>
+#include <haproxy/hash.h>
#include <common/htx.h>
#include <common/net_helper.h>
#include <sys/types.h>
#include <haproxy/api.h>
-#include <common/base64.h>
+#include <haproxy/base64.h>
#include <common/cfgparse.h>
#include <common/openssl-compat.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
#include <common/chunk.h>
-#include <common/errors.h>
+#include <haproxy/errors.h>
#include <common/memory.h>
#include <common/standard.h>
#include <common/time.h>
#include <common/time.h>
#include <common/uri_auth.h>
#include <haproxy/version.h>
-#include <common/base64.h>
+#include <haproxy/base64.h>
#include <types/applet.h>
#include <types/global.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
#include <common/namespace.h>
-#include <common/hash.h>
+#include <haproxy/hash.h>
#include <common/net_helper.h>
#include <proto/connection.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
-#include <common/errors.h>
+#include <haproxy/errors.h>
#include <common/http.h>
#include <types/global.h>
#include <proto/arg.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
-#include <common/errors.h>
+#include <haproxy/errors.h>
#include <common/time.h>
#include <common/ticks.h>
#include <common/net_helper.h>
#include <haproxy/api.h>
#include <common/chunk.h>
#include <common/cfgparse.h>
-#include <common/errors.h>
+#include <haproxy/errors.h>
#include <common/standard.h>
#include <types/global.h>
#include <common/buffer.h>
#include <common/debug.h>
#include <common/cfgparse.h>
-#include <common/errors.h>
+#include <haproxy/errors.h>
#include <common/htx.h>
#include <common/namespace.h>
#include <common/standard.h>
#include <haproxy/api.h>
#include <import/sha1.h>
-#include <common/base64.h>
+#include <haproxy/base64.h>
#include <common/cfgparse.h>
#include <common/chunk.h>
-#include <common/errors.h>
+#include <haproxy/errors.h>
#include <common/memory.h>
#include <common/mini-clist.h>
#include <common/namespace.h>
*/
-#include <common/hash.h>
+#include <haproxy/hash.h>
unsigned int hash_wt6(const void *input, int len)
*/
#include <haproxy/api.h>
-#include <common/base64.h>
+#include <haproxy/base64.h>
#include <common/debug.h>
#include <common/htx.h>
#include <common/net_helper.h>
#include <time.h>
#include <haproxy/api.h>
-#include <common/base64.h>
+#include <haproxy/base64.h>
#include <common/chunk.h>
#include <common/debug.h>
#include <common/h1.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
-#include <common/errors.h>
+#include <haproxy/errors.h>
#include <common/mini-clist.h>
#include <common/standard.h>
#include <common/time.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
-#include <common/errors.h>
+#include <haproxy/errors.h>
#include <proto/log.h>
#include <proto/mworker.h>
#include <haproxy/api.h>
#include <common/namespace.h>
-#include <common/hash.h>
-#include <common/errors.h>
+#include <haproxy/hash.h>
+#include <haproxy/errors.h>
#include <proto/log.h>
#include <proto/signal.h>
#include <types/global.h>
#include <haproxy/api.h>
#include <common/debug.h>
-#include <common/errors.h>
+#include <haproxy/errors.h>
#include <common/mini-clist.h>
#include <common/standard.h>
#include <common/time.h>
#include <haproxy/api.h>
#include <common/debug.h>
-#include <common/errors.h>
+#include <haproxy/errors.h>
#include <common/mini-clist.h>
#include <common/standard.h>
#include <common/namespace.h>
#include <haproxy/api.h>
#include <common/debug.h>
-#include <common/errors.h>
+#include <haproxy/errors.h>
#include <common/mini-clist.h>
#include <common/standard.h>
#include <common/time.h>
#include <sys/socket.h>
#include <haproxy/api.h>
-#include <common/errors.h>
+#include <haproxy/errors.h>
#include <common/mini-clist.h>
#include <common/standard.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
-#include <common/errors.h>
+#include <haproxy/errors.h>
#include <common/memory.h>
#include <common/time.h>
#include <types/global.h>
#include <common/chunk.h>
-#include <common/hash.h>
+#include <haproxy/hash.h>
#include <common/http.h>
#include <common/net_helper.h>
#include <common/standard.h>
#include <common/uri_auth.h>
-#include <common/base64.h>
+#include <haproxy/base64.h>
#include <proto/arg.h>
#include <proto/auth.h>
#include <import/xxhash.h>
#include <common/cfgparse.h>
-#include <common/errors.h>
+#include <haproxy/errors.h>
#include <common/namespace.h>
#include <common/time.h>
#include <sys/stat.h>
#include <sys/types.h>
-#include <common/base64.h>
-#include <common/errors.h>
+#include <haproxy/base64.h>
+#include <haproxy/errors.h>
#include <common/standard.h>
#include <import/ebsttree.h>
#include <sys/stat.h>
#include <sys/types.h>
-#include <common/errors.h>
+#include <haproxy/errors.h>
#include <common/standard.h>
#include <dirent.h>
#include <common/buffer.h>
#include <common/chunk.h>
#include <common/debug.h>
-#include <common/errors.h>
+#include <haproxy/errors.h>
#include <common/openssl-compat.h>
#include <common/standard.h>
#include <common/ticks.h>
#include <common/time.h>
-#include <common/base64.h>
+#include <haproxy/base64.h>
#include <import/ebpttree.h>
#include <import/ebsttree.h>
#include <common/time.h>
#include <common/uri_auth.h>
#include <haproxy/version.h>
-#include <common/base64.h>
+#include <haproxy/base64.h>
#include <types/applet.h>
#include <types/cli.h>
#include <string.h>
#include <haproxy/api.h>
-#include <common/base64.h>
+#include <haproxy/base64.h>
#include <common/uri_auth.h>
#include <types/stats.h>
#include <common/cfgparse.h>
#include <common/chunk.h>
#include <common/buffer.h>
-#include <common/errors.h>
+#include <haproxy/errors.h>
#include <types/global.h>
#include <proto/arg.h>
#include <proto/log.h>