]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make "ext" participate in may_include.
authorNick Mathewson <nickm@torproject.org>
Wed, 7 Nov 2018 01:34:47 +0000 (20:34 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 14 Nov 2018 21:07:36 +0000 (16:07 -0500)
Also, resolve a circular dependency involving the use of lib/log by
csiphash.c.

src/ext/.may_include [new file with mode: 0644]
src/ext/csiphash.c
src/ext/readpassphrase.c

diff --git a/src/ext/.may_include b/src/ext/.may_include
new file mode 100644 (file)
index 0000000..1eafff2
--- /dev/null
@@ -0,0 +1,10 @@
+
+orconfig.h
+
+lib/err/*.h
+lib/cc/*.h
+
+tinytest*.h
+ext/siphash.h
+ext/byteorder.h
+ext/tor_readpassphrase.h
\ No newline at end of file
index a6a9846db48e9a3199dcc053f1d9477fc77af75e..af8559a476c1e141290a0fbcb4bb208d52c7fb1a 100644 (file)
 */
 
 #include "lib/cc/torint.h"
-#include "lib/log/util_bug.h"
+#include "lib/err/torerr.h"
 
-#include "siphash.h"
+#include "ext/siphash.h"
 #include <string.h>
 #include <stdlib.h>
-#include "byteorder.h"
+#include "ext/byteorder.h"
 
 #define ROTATE(x, b) (uint64_t)( ((x) << (b)) | ( (x) >> (64 - (b))) )
 
@@ -112,13 +112,13 @@ static int the_siphash_key_is_set = 0;
 static struct sipkey the_siphash_key;
 
 uint64_t siphash24g(const void *src, unsigned long src_sz) {
-       tor_assert(the_siphash_key_is_set);
+       raw_assert(the_siphash_key_is_set);
        return siphash24(src, src_sz, &the_siphash_key);
 }
 
 void siphash_set_global_key(const struct sipkey *key)
 {
-       tor_assert(! the_siphash_key_is_set);
+       raw_assert(! the_siphash_key_is_set);
        the_siphash_key.k0 = key->k0;
        the_siphash_key.k1 = key->k1;
        the_siphash_key_is_set = 1;
index e0df05d7b7830e46ee375e55312ce1ca16951b89..16611af1e2efbd8b3a666c10f9b918ae5f9a4793 100644 (file)
@@ -30,7 +30,7 @@
 #include <signal.h>
 #include <ctype.h>
 #include <fcntl.h>
-#include "tor_readpassphrase.h"
+#include "ext/tor_readpassphrase.h"
 #include <errno.h>
 #include <string.h>
 #include <unistd.h>