]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: ssl: rename ssl_sock_load_ca to ssl_sock_gencert_load_ca
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Thu, 23 Jan 2025 14:58:15 +0000 (15:58 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 24 Jan 2025 11:31:07 +0000 (12:31 +0100)
commit846819b316b6521f4babcc28ab7dda381dda0833
treeb8a4cda469d0ef90b6d7312ea67b5cf45ce05184
parentc987f30245023f3bdf4dbe5296ed39f2d8faa98b
CLEANUP: ssl: rename ssl_sock_load_ca to ssl_sock_gencert_load_ca

ssl_sock_load_ca is defined in ssl_gencert.c and compiled only if
SSL_NO_GENERATE_CERTIFICATES is not defined. It's name is a bit confusing, as
we may think at the first glance, that it's a generic function, which is also
used to load CA file, provided via 'ca-file' keyword.
ssl_set_verify_locations_file is used in this case.

So let's rename ssl_sock_load_ca into ssl_sock_gencert_load_ca. Same is
applied to ssl_sock_free_ca.
include/haproxy/ssl_sock.h
src/ssl_gencert.c
src/ssl_sock.c