From: Ilya Shipitsin Date: Sat, 21 Nov 2020 18:10:04 +0000 (+0500) Subject: CLEANUP: remove unused function "ssl_sock_is_ckch_valid" X-Git-Tag: v2.4-dev2~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f04a89c5497c3b7e9edd0797fdfc4c9f68c29850;p=thirdparty%2Fhaproxy.git CLEANUP: remove unused function "ssl_sock_is_ckch_valid" "ssl_sock_is_ckch_valid" is not used anymore, let us remove it --- diff --git a/include/haproxy/ssl_ckch.h b/include/haproxy/ssl_ckch.h index f8184b62ad..87c69ec199 100644 --- a/include/haproxy/ssl_ckch.h +++ b/include/haproxy/ssl_ckch.h @@ -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);