-#ifndef __TYPES_SHCTX
-#define __TYPES_SHCTX
+/*
+ * include/haproxy/shctx-t.h - shared context management functions for SSL
+ *
+ * Copyright (C) 2011-2012 EXCELIANCE
+ *
+ * Author: Emeric Brun - emeric@exceliance.fr
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version
+ * 2 of the License, or (at your option) any later version.
+ */
+
+#ifndef __HAPROXY_SHCTX_T_H
+#define __HAPROXY_SHCTX_T_H
+
+#if !defined (USE_PRIVATE_CACHE) && defined(USE_PTHREAD_PSHARED)
+#include <pthread.h>
+#endif
+#include <haproxy/list.h>
#ifndef SHSESS_BLOCK_MIN_SIZE
#define SHSESS_BLOCK_MIN_SIZE 128
unsigned char data[0];
};
-#endif
+#endif /* __HAPROXY_SHCTX_T_H */
/*
- * shctx.h - shared context management functions for SSL
+ * include/haproxy/shctx.h - shared context management functions for SSL
*
* Copyright (C) 2011-2012 EXCELIANCE
*
* 2 of the License, or (at your option) any later version.
*/
-#ifndef SHCTX_H
-#define SHCTX_H
+#ifndef __HAPROXY_SHCTX_H
+#define __HAPROXY_SHCTX_H
+#include <haproxy/api-t.h>
#include <haproxy/list.h>
-#include <types/shctx.h>
-
-#include <inttypes.h>
+#include <haproxy/shctx-t.h>
#ifndef USE_PRIVATE_CACHE
#ifdef USE_PTHREAD_PSHARED
LIST_ADDQ(&shctx->avail, &s->list);
}
-#endif /* SHCTX_H */
+#endif /* __HAPROXY_SHCTX_H */
*/
#include <haproxy/api.h>
+#include <haproxy/shctx.h>
#include <import/eb32tree.h>
#include <import/sha1.h>
#include <types/cli.h>
#include <types/filters.h>
#include <types/proxy.h>
-#include <types/shctx.h>
#include <proto/channel.h>
#include <proto/cli.h>
#include <proto/log.h>
#include <proto/stream.h>
#include <proto/stream_interface.h>
-#include <proto/shctx.h>
#include <common/cfgparse.h>
#include <import/ebmbtree.h>
#include <types/global.h>
#include <haproxy/list.h>
-#include "proto/shctx.h"
+#include <haproxy/shctx.h>
#if !defined (USE_PRIVATE_CACHE)
#include <haproxy/chunk.h>
#include <haproxy/errors.h>
#include <haproxy/openssl-compat.h>
+#include <haproxy/shctx.h>
#include <haproxy/tools.h>
#include <haproxy/ticks.h>
#include <haproxy/time.h>
#include <proto/stream_interface.h>
#include <proto/log.h>
#include <proto/proxy.h>
-#include <proto/shctx.h>
#include <proto/ssl_ckch.h>
#include <proto/ssl_crtlist.h>
#include <proto/ssl_sock.h>