]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: move ssl_crtlist.h to haproxy/ssl_crtlist{,-t}.h
authorWilly Tarreau <w@1wt.eu>
Thu, 4 Jun 2020 12:29:23 +0000 (14:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:58 +0000 (10:18 +0200)
These files were already clean as well. Just added ebptnode which is
needed in crtlist_entry.

include/haproxy/ssl_crtlist-t.h [moved from include/types/ssl_crtlist.h with 92% similarity]
include/haproxy/ssl_crtlist.h [moved from include/proto/ssl_crtlist.h with 90% similarity]
include/types/ssl_sock.h
src/ssl_crtlist.c
src/ssl_sock.c

similarity index 92%
rename from include/types/ssl_crtlist.h
rename to include/haproxy/ssl_crtlist-t.h
index ed8c135aec628a337ace9d95a98590daf69c069e..6ca48b5d92daef0a7cfd895d4dceb3e4a3a4df69 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/types/ssl_crtlist.h
+ * include/haproxy/ssl_crtlist-t.h
  * crt-list structures
  *
  * Copyright (C) 2020 HAProxy Technologies, William Lallemand <wlallemand@haproxy.com>
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef _TYPES_SSL_CRTLIST_H
-#define _TYPES_SSL_CRTLIST_H
+#ifndef _HAPROXY_SSL_CRTLIST_T_H
+#define _HAPROXY_SSL_CRTLIST_T_H
 #ifdef USE_OPENSSL
 
 #include <import/ebmbtree.h>
+#include <import/ebpttree.h>
 
 #include <haproxy/list-t.h>
 
@@ -61,4 +62,4 @@ struct crtlist_entry {
 };
 
 #endif /* USE_OPENSSL */
-#endif /* _TYPES_SSL_CRTLIST_H */
+#endif /* _HAPROXY_SSL_CRTLIST_T_H */
similarity index 90%
rename from include/proto/ssl_crtlist.h
rename to include/haproxy/ssl_crtlist.h
index 5b75ac7aa0489adcc4a58d298194d0a937c2db9b..1650ddc3233c1e7e87ff80929926fdda16a1d758 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/proto/ssl_crtlist.h
+ * include/haproxy/ssl_crtlist.h
  * crt-list function prototyes
  *
  * Copyright (C) 2020 HAProxy Technologies, William Lallemand <wlallemand@haproxy.com>
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef _PROTO_SSL_CRTLIST_H
-#define _PROTO_SSL_CRTLIST_H
+#ifndef _HAPROXY_SSL_CRTLIST_H
+#define _HAPROXY_SSL_CRTLIST_H
 #ifdef USE_OPENSSL
 
-#include <types/ssl_crtlist.h>
+#include <haproxy/ssl_crtlist-t.h>
 
 
 /* crt-list entry functions */
@@ -42,4 +42,4 @@ int crtlist_parse_line(char *line, char **crt_path, struct crtlist_entry *entry,
 int crtlist_parse_file(char *file, struct bind_conf *bind_conf, struct proxy *curproxy, struct crtlist **crtlist, char **err);
 int crtlist_load_cert_dir(char *path, struct bind_conf *bind_conf, struct crtlist **crtlist, char **err);
 #endif /* USE_OPENSSL */
-#endif /* _PROTO_SSL_CRTLIST_H */
+#endif /* _HAPROXY_SSL_CRTLIST_H */
index bea2a1603f548b3d9df42c2cc8f4e4111d1e715a..b535e4d3b3c886ebdd8344e62d9650cd50f7a7b5 100644 (file)
 #include <import/eb64tree.h>
 
 #include <types/connection.h> /* struct wait_event */
-#include <types/ssl_crtlist.h>
 
 #include <haproxy/buf-t.h>
 #include <haproxy/thread.h>
 #include <haproxy/list-t.h>
 #include <haproxy/openssl-compat.h>
 #include <haproxy/ssl_ckch-t.h>
+#include <haproxy/ssl_crtlist-t.h>
 
 /* ***** READ THIS before adding code here! *****
  *
index d8362259a2185a9312e9612535a8e40b4ae9f522..9d0e1e7c5ea5d7eb8f7e5b4eae6b70a22c766b02 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <haproxy/errors.h>
 #include <haproxy/ssl_ckch.h>
+#include <haproxy/ssl_crtlist.h>
 #include <haproxy/tools.h>
 
 #include <dirent.h>
 #include <import/ebsttree.h>
 
 #include <types/cli.h>
-#include <types/ssl_crtlist.h>
 #include <types/ssl_sock.h>
 
 #include <proto/channel.h>
 #include <proto/cli.h>
 #include <proto/stream_interface.h>
-#include <proto/ssl_crtlist.h>
 #include <proto/ssl_sock.h>
 
 /* release ssl bind conf */
index 86eede3510b8f68711e23035a40a84daa40e18be..efab3af01294a525bb625c1bd10c912efac3bc00 100644 (file)
@@ -52,6 +52,7 @@
 #include <haproxy/openssl-compat.h>
 #include <haproxy/shctx.h>
 #include <haproxy/ssl_ckch.h>
+#include <haproxy/ssl_crtlist.h>
 #include <haproxy/ssl_utils.h>
 #include <haproxy/tools.h>
 #include <haproxy/ticks.h>
@@ -82,7 +83,6 @@
 #include <proto/stream_interface.h>
 #include <proto/log.h>
 #include <proto/proxy.h>
-#include <proto/ssl_crtlist.h>
 #include <proto/ssl_sock.h>
 #include <proto/stream.h>
 #include <proto/task.h>