]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Show liblzma and libzstd versions in `tor --library-versions`.
authorAlexander Færøy <ahf@torproject.org>
Tue, 18 Apr 2017 20:30:36 +0000 (22:30 +0200)
committerNick Mathewson <nickm@torproject.org>
Tue, 25 Apr 2017 12:10:09 +0000 (08:10 -0400)
See: https://bugs.torproject.org/21662

src/or/config.c

index 9af116db1ce0ed32ad1e088bc1d456cc68dfcd9c..3549a1d6086a73c037f23eb3ffdb86a1da94ecf7 100644 (file)
@@ -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);
   }