From 6ac3a8b0cd1946e90a4c997e8fad1bfc63890abd Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 3 Jan 2009 21:43:05 -0500 Subject: Command-line option to dump SHA1 digests of all source files. Now, when you call tor --digests, it dumps the SHA1 digest of each source file that Tor was built with. We support both 'sha1sum' and 'openssl sha1'. If the user is building from a tarball and they haven't edited anything, they don't need any program that calculates SHA1. If they _have_ modified a file but they don't have a program to calculate SHA1, we try to build so we do not output digests. --- src/common/util.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/common/util.c') diff --git a/src/common/util.c b/src/common/util.c index 631081196..bb227e4b0 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -2562,3 +2562,10 @@ write_pidfile(char *filename) } } +const char * +libor_get_digests(void) +{ + return "" +#include "common_sha1.i" + ; +} -- cgit v1.2.3