From: Tim Duesterhus Date: Sat, 14 May 2022 20:15:26 +0000 (+0200) Subject: CLEANUP: Add missing header to ssl_utils.c X-Git-Tag: v2.6-dev11~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a0688aa8942af162450beb0b87c45d6945f47b4;p=thirdparty%2Fhaproxy.git CLEANUP: Add missing header to ssl_utils.c Found with -Wmissing-prototypes: src/ssl_utils.c:22:5: fatal error: no previous prototype for function 'cert_get_pkey_algo' [-Wmissing-prototypes] int cert_get_pkey_algo(X509 *crt, struct buffer *out) ^ src/ssl_utils.c:22:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int cert_get_pkey_algo(X509 *crt, struct buffer *out) ^ static 1 error generated. --- diff --git a/src/ssl_utils.c b/src/ssl_utils.c index 35c06f73d6..0f4a8596c9 100644 --- a/src/ssl_utils.c +++ b/src/ssl_utils.c @@ -17,6 +17,7 @@ #include #include #include +#include /* fill a buffer with the algorithm and size of a public key */ int cert_get_pkey_algo(X509 *crt, struct buffer *out)