[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Show liblzma and libzstd versions in `tor --library-versions`.
commit 2fa7b722ce3dcb54dca598d6b1d5a5abfb716f7c
Author: Alexander Færøy <ahf@xxxxxxxxxxxxxx>
Date: Tue Apr 18 22:30:36 2017 +0200
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(+)
diff --git a/src/or/config.c b/src/or/config.c
index 9af116d..3549a1d 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);
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits