]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: include: move ssl_utils.h to haproxy/ssl_utils.h
authorWilly Tarreau <w@1wt.eu>
Thu, 4 Jun 2020 12:21:22 +0000 (14:21 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:57 +0000 (10:18 +0200)
Just added buf-t and openssl-compat for the missing types that appear
in the prototypes.

include/haproxy/ssl_utils.h [moved from include/proto/ssl_utils.h with 88% similarity]
src/ssl_ckch.c
src/ssl_sample.c
src/ssl_sock.c

similarity index 88%
rename from include/proto/ssl_utils.h
rename to include/haproxy/ssl_utils.h
index be14a0d1bc3eff0e0bd2136307cd813769376280..2ebe034a34fa3d558134863ebd60d1fa3274561c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/proto/ssl_utils.h
+ * include/haproxy/ssl_utils.h
  *
  * Utility functions for SSL:
  * Mostly generic functions that retrieve information from certificates
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef _TYPES_SSL_UTILS_H
-#define _TYPES_SSL_UTILS_H
+#ifndef _HAPROXY_SSL_UTILS_H
+#define _HAPROXY_SSL_UTILS_H
+
 #ifdef USE_OPENSSL
 
+#include <haproxy/buf-t.h>
+#include <haproxy/openssl-compat.h>
+
 int cert_get_pkey_algo(X509 *crt, struct buffer *out);
 int ssl_sock_get_serial(X509 *crt, struct buffer *out);
 int ssl_sock_crt2der(X509 *crt, struct buffer *out);
@@ -35,6 +39,6 @@ int ssl_sock_get_dn_entry(X509_NAME *a, const struct buffer *entry, int pos,
 int ssl_sock_get_dn_formatted(X509_NAME *a, const struct buffer *format, struct buffer *out);
 int ssl_sock_get_dn_oneline(X509_NAME *a, struct buffer *out);
 
-#endif /* _TYPES_SSL_UTILS_H */
+#endif /* _HAPROXY_SSL_UTILS_H */
 #endif /* USE_OPENSSL */
 
index 61dd35384657889a0c92598a95560db5c3c70600..1fc0d18d1e940a19e32d547a98600125bf80e512 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <haproxy/base64.h>
 #include <haproxy/errors.h>
+#include <haproxy/ssl_utils.h>
 #include <haproxy/tools.h>
 
 #include <import/ebsttree.h>
@@ -35,7 +36,6 @@
 #include <proto/channel.h>
 #include <proto/ssl_ckch.h>
 #include <proto/ssl_sock.h>
-#include <proto/ssl_utils.h>
 #include <proto/stream_interface.h>
 
 /* Uncommitted CKCH transaction */
index 5462dba54cea9d75f8539a1c8a53ed671ca7eef9..f27b2e6b50fe082ebd75a87f289e7b0bc0431d7a 100644 (file)
@@ -24,6 +24,7 @@
 #include <haproxy/buf-t.h>
 #include <haproxy/obj_type.h>
 #include <haproxy/openssl-compat.h>
+#include <haproxy/ssl_utils.h>
 #include <haproxy/tools.h>
 
 #include <types/sample.h>
@@ -32,7 +33,6 @@
 #include <proto/acl.h>
 #include <haproxy/arg.h>
 #include <proto/ssl_sock.h>
-#include <proto/ssl_utils.h>
 #include <proto/sample.h>
 
 
index 6f0f399c1820ad691109a2cf7bed6b6649b63344..4f57f75bf7f3c79444a6e74a247152c5a1ae1982 100644 (file)
@@ -51,6 +51,7 @@
 #include <haproxy/http_rules.h>
 #include <haproxy/openssl-compat.h>
 #include <haproxy/shctx.h>
+#include <haproxy/ssl_utils.h>
 #include <haproxy/tools.h>
 #include <haproxy/ticks.h>
 #include <haproxy/time.h>
@@ -83,7 +84,6 @@
 #include <proto/ssl_ckch.h>
 #include <proto/ssl_crtlist.h>
 #include <proto/ssl_sock.h>
-#include <proto/ssl_utils.h>
 #include <proto/stream.h>
 #include <proto/task.h>
 #include <proto/vars.h>