diff --git a/include/proto/ssl_utils.h b/include/haproxy/ssl_utils.h similarity index 88% rename from include/proto/ssl_utils.h rename to include/haproxy/ssl_utils.h index be14a0d1b..2ebe034a3 100644 --- a/include/proto/ssl_utils.h +++ b/include/haproxy/ssl_utils.h @@ -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 @@ -22,10 +22,14 @@ * 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 +#include + 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 */ diff --git a/src/ssl_ckch.c b/src/ssl_ckch.c index 61dd35384..1fc0d18d1 100644 --- a/src/ssl_ckch.c +++ b/src/ssl_ckch.c @@ -23,6 +23,7 @@ #include #include +#include #include #include @@ -35,7 +36,6 @@ #include #include #include -#include #include /* Uncommitted CKCH transaction */ diff --git a/src/ssl_sample.c b/src/ssl_sample.c index 5462dba54..f27b2e6b5 100644 --- a/src/ssl_sample.c +++ b/src/ssl_sample.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -32,7 +33,6 @@ #include #include #include -#include #include diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 6f0f399c1..4f57f75bf 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -51,6 +51,7 @@ #include #include #include +#include #include #include #include @@ -83,7 +84,6 @@ #include #include #include -#include #include #include #include