]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: ssl: include buffer common headers for ssl_sock_ctx
authorWilliam Dauchy <w.dauchy@criteo.com>
Sun, 17 May 2020 11:41:53 +0000 (13:41 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 18 May 2020 06:29:32 +0000 (08:29 +0200)
since commit c0cdaffaa338 ("REORG: ssl: move ssl_sock_ctx and fix
cross-dependencies issues"), `struct ssl_sock_ctx` was moved in
ssl_sock.h. As it contains a `struct buffer`, including
`common/buffer.h` is now mandatory. I encountered an issue while
including ssl_sock.h on another patch:

include/types/ssl_sock.h:240:16: error: field ‘early_buf’ has incomplete type
  240 |  struct buffer early_buf;      /* buffer to store the early data received */

no backport needed.

Fixes: c0cdaffaa338 ("REORG: ssl: move ssl_sock_ctx and fix
cross-dependencies issues")
Signed-off-by: William Dauchy <w.dauchy@criteo.com>
include/types/ssl_sock.h

index 99c964d6edd4105a986097d4d99c8a54cc38a616..78639ac1083e0b906727c5412a235f3458e98d04 100644 (file)
@@ -31,6 +31,7 @@
 #include <types/ssl_ckch.h>
 #include <types/ssl_crtlist.h>
 
+#include <common/buffer.h>
 #include <common/hathreads.h>
 #include <common/mini-clist.h>
 #include <common/openssl-compat.h>