aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat_libevent.c
diff options
context:
space:
mode:
authorKevin Butler <haqkrs@gmail.com>2013-09-01 17:38:01 +0100
committerKevin Butler <haqkrs@gmail.com>2013-09-01 17:38:01 +0100
commit6e17fa6d7ba57b990dd929e07969d35dc82fc46b (patch)
treecb6d7b7e79941df0dec6b7379821c6e8f2cbebe8 /src/common/compat_libevent.c
parent00bcc25d05dc0273323a2cae20c6aa62afd4b50a (diff)
downloadtor-6e17fa6d7ba57b990dd929e07969d35dc82fc46b.tar
tor-6e17fa6d7ba57b990dd929e07969d35dc82fc46b.tar.gz
Added --library-versions flag to print the compile time and runtime versions of libevent, openssl and zlib. Partially implements #6384.
Diffstat (limited to 'src/common/compat_libevent.c')
-rw-r--r--src/common/compat_libevent.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/compat_libevent.c b/src/common/compat_libevent.c
index 200a7c65f..4d0fff833 100644
--- a/src/common/compat_libevent.c
+++ b/src/common/compat_libevent.c
@@ -415,6 +415,14 @@ tor_check_libevent_version(const char *m, int server,
#define HEADER_VERSION _EVENT_VERSION
#endif
+/** Return a string representation of the version of Libevent that was used
+* at compilation time. */
+const char *
+tor_libevent_get_header_version_str(void)
+{
+ return HEADER_VERSION;
+}
+
/** See whether the headers we were built against differ from the library we
* linked against so much that we're likely to crash. If so, warn the
* user. */