diff options
author | Daniel Martí <mvdan@mvdan.cc> | 2017-03-07 09:58:30 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-03-16 14:38:28 -0400 |
commit | 590ffdb2c9e0e3516fdb113cfa8b7a3f888cb970 (patch) | |
tree | 0bb50228fe7e15d7e31f81fba3cc7ba789aafaf2 /src/or/consdiff.h | |
parent | ad19f1507ac3bfd4b26ae478e61c8ef8c4057f22 (diff) | |
download | tor-590ffdb2c9e0e3516fdb113cfa8b7a3f888cb970.tar.gz tor-590ffdb2c9e0e3516fdb113cfa8b7a3f888cb970.zip |
Consensus diff backend from Daniel Martí GSOC project.
(This commit was extracted by nickm based on the final outcome of
the project, taking only the changes in the files touched by this
commit from the consdiff_rebased branch. The directory-system
changes are going to get worked on separately.)
Diffstat (limited to 'src/or/consdiff.h')
-rw-r--r-- | src/or/consdiff.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/or/consdiff.h b/src/or/consdiff.h new file mode 100644 index 0000000000..da8dbac79b --- /dev/null +++ b/src/or/consdiff.h @@ -0,0 +1,22 @@ +/* Copyright (c) 2014, Daniel Martí + * Copyright (c) 2014, The Tor Project, Inc. */ +/* See LICENSE for licensing information */ + +#ifndef TOR_CONSDIFF_H +#define TOR_CONSDIFF_H + +#include "or.h" + +smartlist_t * +consdiff_gen_diff(smartlist_t *cons1, smartlist_t *cons2, + common_digests_t *digests1, common_digests_t *digests2); +char * +consdiff_apply_diff(smartlist_t *cons1, smartlist_t *diff, + common_digests_t *digests1); +int +consdiff_get_digests(smartlist_t *diff, + char *digest1, char *digest1_hex, + char *digest2, char *digest2_hex); + +#endif + |