diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-21 14:02:11 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-21 14:05:33 -0400 |
commit | 999f7984e189250216fcd0bbbe1c4c8d1b0c380b (patch) | |
tree | cb4fe061d96917b9c42680955a207a9ac5b4acbe /src/lib/tls | |
parent | 8918bd90e9ddc135c0519177a07cd7a8c18859ed (diff) | |
download | tor-999f7984e189250216fcd0bbbe1c4c8d1b0c380b.tar.gz tor-999f7984e189250216fcd0bbbe1c4c8d1b0c380b.zip |
New script to check includes for modularity violations
Includes configuration files to enforce these rules on lib and
common. Of course, "common" *is* a modularity violation right now,
so these rules aren't as strict as I would like them to be.
Diffstat (limited to 'src/lib/tls')
-rw-r--r-- | src/lib/tls/.may_include | 11 | ||||
-rw-r--r-- | src/lib/tls/buffers_tls.c | 2 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/lib/tls/.may_include b/src/lib/tls/.may_include new file mode 100644 index 0000000000..22792b6bfc --- /dev/null +++ b/src/lib/tls/.may_include @@ -0,0 +1,11 @@ +orconfig.h +lib/cc/*.h +lib/crypt_ops/*.h +lib/err/*.h +lib/testsupport/testsupport.h +lib/tls/*.h + +ciphers.inc + +# XXX I'd like to remove this. +common/*.h diff --git a/src/lib/tls/buffers_tls.c b/src/lib/tls/buffers_tls.c index 5accb2d91a..55c3ac334b 100644 --- a/src/lib/tls/buffers_tls.c +++ b/src/lib/tls/buffers_tls.c @@ -10,7 +10,6 @@ #include "common/buffers.h" #include "lib/tls/buffers_tls.h" #include "common/compat.h" -#include "lib/compress/compress.h" #include "common/util.h" #include "lib/cc/torint.h" #include "common/torlog.h" @@ -176,4 +175,3 @@ buf_flush_to_tls(buf_t *buf, tor_tls_t *tls, size_t flushlen, tor_assert(flushed < INT_MAX); return (int)flushed; } - |