From 352ce60b8ba43458f44aec4e5990644109ca9ba3 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Thu, 26 Oct 2017 13:09:26 +1100 Subject: src/openssl.c: Fix warning about unused function --- src/openssl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/openssl.c b/src/openssl.c index 01e1840..18a59ad 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -1903,6 +1903,7 @@ static void compat_init_SSL_CTX_onfree(void *_ctx, void *data NOTUSED, CRYPTO_EX #endif +#if defined compat_X509_STORE_free /* helper routine to determine if X509_STORE_free obeys reference count */ static void compat_init_X509_STORE_onfree(void *store, void *data NOTUSED, CRYPTO_EX_DATA *ad NOTUSED, int idx NOTUSED, long argl NOTUSED, void *argp NOTUSED) { /* unfortunately there's no way to remove a handler */ @@ -1912,6 +1913,8 @@ static void compat_init_X509_STORE_onfree(void *store, void *data NOTUSED, CRYPT /* signal that we were freed by nulling our reference */ compat.tmp.store = NULL; } /* compat_init_X509_STORE_onfree() */ +#endif + #if !HAVE_X509_STORE_UP_REF #define X509_STORE_up_ref(...) EXPAND( compat_X509_STORE_up_ref(__VA_ARGS__) ) -- cgit v1.2.3-59-g8ed1b