]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: remove unused function "ssl_sock_is_ckch_valid"
authorIlya Shipitsin <chipitsine@gmail.com>
Sat, 21 Nov 2020 18:10:04 +0000 (23:10 +0500)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 24 Nov 2020 08:54:44 +0000 (09:54 +0100)
"ssl_sock_is_ckch_valid" is not used anymore, let us remove it

include/haproxy/ssl_ckch.h

index f8184b62ad64f9804efe866f7d442c6741186ff9..87c69ec1999552fa8f9bdb1ab350a6f4f08b0421 100644 (file)
@@ -36,14 +36,6 @@ int ssl_sock_load_ocsp_response_from_file(const char *ocsp_path, char *buf, stru
 int ssl_sock_load_sctl_from_file(const char *sctl_path, char *buf, struct cert_key_and_chain *ckch, char **err);
 int ssl_sock_load_issuer_file_into_ckch(const char *path, char *buf, struct cert_key_and_chain *ckch, char **err);
 
-/* checks if a key and cert exists in the ckch */
-#if HA_OPENSSL_VERSION_NUMBER >= 0x1000200fL
-static inline int ssl_sock_is_ckch_valid(struct cert_key_and_chain *ckch)
-{
-       return (ckch->cert != NULL && ckch->key != NULL);
-}
-#endif
-
 /* ckch_store functions */
 struct ckch_store *ckchs_load_cert_file(char *path, char **err);
 struct ckch_store *ckchs_lookup(char *path);