aboutsummaryrefslogtreecommitdiff
path: root/src/lib/tls/tortls_openssl.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-11-06 10:29:28 -0500
committerNick Mathewson <nickm@torproject.org>2020-11-06 10:31:32 -0500
commitb22568a54506e4b79b72530f89f21032e6435414 (patch)
treebb648e64477c67226ceb7195e23cba32eb94ee61 /src/lib/tls/tortls_openssl.c
parentdd119b277b66c1a7209d4a345fd43878296a532e (diff)
downloadtor-b22568a54506e4b79b72530f89f21032e6435414.tar.gz
tor-b22568a54506e4b79b72530f89f21032e6435414.zip
Rename OpenSSL_version_num() as defined in Tor
This way, if we guess wrong about whether the library has it, we don't conflict with the library's headers. Fixes #40181; bug not in any released version.
Diffstat (limited to 'src/lib/tls/tortls_openssl.c')
-rw-r--r--src/lib/tls/tortls_openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/tls/tortls_openssl.c b/src/lib/tls/tortls_openssl.c
index 2269714141..ad9b49ab4f 100644
--- a/src/lib/tls/tortls_openssl.c
+++ b/src/lib/tls/tortls_openssl.c
@@ -342,7 +342,7 @@ tor_tls_init(void)
#if (SIZEOF_VOID_P >= 8 && \
OPENSSL_VERSION_NUMBER >= OPENSSL_V_SERIES(1,0,1))
- long version = OpenSSL_version_num();
+ long version = tor_OpenSSL_version_num();
/* LCOV_EXCL_START : we can't test these lines on the same machine */
if (version >= OPENSSL_V_SERIES(1,0,1)) {