/*
- * 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);
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 */
#include <haproxy/base64.h>
#include <haproxy/errors.h>
+#include <haproxy/ssl_utils.h>
#include <haproxy/tools.h>
#include <import/ebsttree.h>
#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 */
#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>
#include <proto/acl.h>
#include <haproxy/arg.h>
#include <proto/ssl_sock.h>
-#include <proto/ssl_utils.h>
#include <proto/sample.h>
#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>
#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>