diff options
author | daurnimator <quae@daurnimator.com> | 2017-10-26 13:09:26 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-10-26 13:09:26 +1100 |
commit | 352ce60b8ba43458f44aec4e5990644109ca9ba3 (patch) | |
tree | 3a9f2280577f5d5e85297c0fcb86c25915b91288 | |
parent | 163ec2f9f2e759798458040c5ff1697eb64ba24a (diff) | |
download | luaossl-352ce60b8ba43458f44aec4e5990644109ca9ba3.tar.gz luaossl-352ce60b8ba43458f44aec4e5990644109ca9ba3.tar.bz2 luaossl-352ce60b8ba43458f44aec4e5990644109ca9ba3.zip |
src/openssl.c: Fix warning about unused function
-rw-r--r-- | src/openssl.c | 3 |
1 files changed, 3 insertions, 0 deletions
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__) ) |