diff options
author | Nick Mathewson <nickm@freehaven.net> | 2009-01-03 21:43:05 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-04-29 14:46:04 -0400 |
commit | 6ac3a8b0cd1946e90a4c997e8fad1bfc63890abd (patch) | |
tree | e18fffa9c4b0ca4682ca36e607a6b6566946513b /src/common/util.c | |
parent | e3ec061bc0ba9aa1bad1615f78fa7fe602e194e0 (diff) | |
download | tor-6ac3a8b0cd1946e90a4c997e8fad1bfc63890abd.tar tor-6ac3a8b0cd1946e90a4c997e8fad1bfc63890abd.tar.gz |
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.
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 7 |
1 files changed, 7 insertions, 0 deletions
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" + ; +} |