diff options
author | Alexander Færøy <ahf@torproject.org> | 2017-04-18 22:30:36 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-04-25 08:10:09 -0400 |
commit | 2fa7b722ce3dcb54dca598d6b1d5a5abfb716f7c (patch) | |
tree | 408f407ceb2a5f77fbf42a0c30957553a1e33297 | |
parent | 380736d045f85299121f044928170cff321ae852 (diff) | |
download | tor-2fa7b722ce3dcb54dca598d6b1d5a5abfb716f7c.tar.gz tor-2fa7b722ce3dcb54dca598d6b1d5a5abfb716f7c.zip |
Show liblzma and libzstd versions in `tor --library-versions`.
See: https://bugs.torproject.org/21662
-rw-r--r-- | src/or/config.c | 8 |
1 files changed, 8 insertions, 0 deletions
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); } |