[Privoxy-commits] [privoxy] 02/03: Only compile ssl_release() when FEATURE_GRACEFUL_TERMINATION is enabled
User Git
git at git.privoxy.org
Tue Jan 26 05:26:36 UTC 2021
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit 292734022187241c1a0348050df15ea806a8e363
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Mon Jan 25 18:55:06 2021 +0100
Only compile ssl_release() when FEATURE_GRACEFUL_TERMINATION is enabled
---
openssl.c | 3 ++-
ssl.c | 2 ++
ssl.h | 3 +++
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/openssl.c b/openssl.c
index b29aa926..8239e336 100644
--- a/openssl.c
+++ b/openssl.c
@@ -2221,6 +2221,7 @@ extern void ssl_crt_verify_info(char *buf, size_t size, struct client_state *csp
}
+#ifdef FEATURE_GRACEFUL_TERMINATION
/*********************************************************************
*
* Function : ssl_release
@@ -2255,4 +2256,4 @@ extern void ssl_release(void)
CRYPTO_cleanup_all_ex_data();
}
}
-
+#endif /* def FEATURE_GRACEFUL_TERMINATION */
diff --git a/ssl.c b/ssl.c
index 4f187c24..cf1e8a0d 100644
--- a/ssl.c
+++ b/ssl.c
@@ -1902,6 +1902,7 @@ extern void ssl_crt_verify_info(char *buf, size_t size, struct client_state *csp
}
+#ifdef FEATURE_GRACEFUL_TERMINATION
/*********************************************************************
*
* Function : ssl_release
@@ -1921,6 +1922,7 @@ extern void ssl_release(void)
mbedtls_entropy_free(&entropy);
}
}
+#endif /* def FEATURE_GRACEFUL_TERMINATION */
/*********************************************************************
diff --git a/ssl.h b/ssl.h
index f4f69a67..c0168154 100644
--- a/ssl.h
+++ b/ssl.h
@@ -56,6 +56,9 @@ extern void close_client_ssl_connection(struct client_state *csp);
extern int ssl_base64_encode(unsigned char *dst, size_t dlen, size_t *olen,
const unsigned char *src, size_t slen );
extern void ssl_crt_verify_info(char *buf, size_t size, struct client_state *csp);
+
+#ifdef FEATURE_GRACEFUL_TERMINATION
extern void ssl_release(void);
+#endif
#endif /* ndef SSL_H_INCLUDED */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list