From 2fa7b722ce3dcb54dca598d6b1d5a5abfb716f7c Mon Sep 17 00:00:00 2001 From: Alexander Færøy Date: Tue, 18 Apr 2017 22:30:36 +0200 Subject: Show liblzma and libzstd versions in `tor --library-versions`. See: https://bugs.torproject.org/21662 --- src/or/config.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/or/config.c') diff --git a/src/or/config.c b/src/or/config.c index 9af116db1c..3549a1d608 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -70,7 +70,9 @@ #include "circuitmux_ewma.h" #include "circuitstats.h" #include "compress.h" +#include "compress_lzma.h" #include "compress_zlib.h" +#include "compress_zstd.h" #include "config.h" #include "connection.h" #include "connection_edge.h" @@ -4953,6 +4955,12 @@ options_init_from_torrc(int argc, char **argv) printf("Zlib \t\t%-15s\t\t%s\n", tor_zlib_get_header_version_str(), tor_zlib_get_version_str()); + printf("Liblzma \t\t%-15s\t\t%s\n", + tor_lzma_get_header_version_str(), + tor_lzma_get_version_str()); + printf("Libzstd \t\t%-15s\t\t%s\n", + tor_zstd_get_header_version_str(), + tor_zstd_get_version_str()); //TODO: Hex versions? exit(0); } -- cgit v1.2.3-54-g00ecf