]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: Add missing header to ssl_utils.c
authorTim Duesterhus <tim@bastelstu.be>
Sat, 14 May 2022 20:15:26 +0000 (22:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 17 May 2022 09:40:33 +0000 (11:40 +0200)
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.

src/ssl_utils.c

index 35c06f73d631dce15939459ac81ebf03e7ec9719..0f4a8596c9f18839727f8123771b403b8f6cadf6 100644 (file)
@@ -17,6 +17,7 @@
 #include <haproxy/chunk.h>
 #include <haproxy/openssl-compat.h>
 #include <haproxy/ssl_sock.h>
+#include <haproxy/ssl_utils.h>
 
 /* fill a buffer with the algorithm and size of a public key */
 int cert_get_pkey_algo(X509 *crt, struct buffer *out)