diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-09-25 14:49:00 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-09-25 14:49:00 -0400 |
commit | 50d15e06b32ce743ac4da532f29abb3781c4b990 (patch) | |
tree | ce7ffcaf0764107fc044849ed5cd4b98f3ff8de3 | |
parent | d303d6244e097dd2f5256d11d3a529cf63398d69 (diff) | |
download | tor-50d15e06b32ce743ac4da532f29abb3781c4b990.tar.gz tor-50d15e06b32ce743ac4da532f29abb3781c4b990.zip |
Use --require-version to prevent running trunnel pre-1.2
(Also, regenerate trunnel stuff with trunnel 1.2. This just adds a
few comments to our output.)
-rwxr-xr-x | scripts/codegen/run_trunnel.sh | 4 | ||||
-rw-r--r-- | src/ext/trunnel/trunnel-impl.h | 4 | ||||
-rw-r--r-- | src/ext/trunnel/trunnel.c | 4 | ||||
-rw-r--r-- | src/ext/trunnel/trunnel.h | 4 | ||||
-rw-r--r-- | src/trunnel/pwbox.c | 3 | ||||
-rw-r--r-- | src/trunnel/pwbox.h | 3 |
6 files changed, 18 insertions, 4 deletions
diff --git a/scripts/codegen/run_trunnel.sh b/scripts/codegen/run_trunnel.sh index df84a6e2a7..5f694ce6c9 100755 --- a/scripts/codegen/run_trunnel.sh +++ b/scripts/codegen/run_trunnel.sh @@ -5,7 +5,7 @@ if test "x$TRUNNEL_PATH" != "x"; then export PYTHONPATH fi -python -m trunnel ./src/trunnel/*.trunnel +python -m trunnel --require-version=1.2 ./src/trunnel/*.trunnel -python -m trunnel --write-c-files --target-dir=./src/ext/trunnel/ +python -m trunnel --require-version=1.2 --write-c-files --target-dir=./src/ext/trunnel/ diff --git a/src/ext/trunnel/trunnel-impl.h b/src/ext/trunnel/trunnel-impl.h index 4dd710f4a7..c88ee3988e 100644 --- a/src/ext/trunnel/trunnel-impl.h +++ b/src/ext/trunnel/trunnel-impl.h @@ -1,3 +1,7 @@ +/* trunnel-impl.h -- copied from Trunnel v1.2 + * https://gitweb.torproject.org/trunnel.git + * You probably shouldn't edit this file. + */ /* trunnel-impl.h -- Implementation helpers for trunnel, included by * generated trunnel files * diff --git a/src/ext/trunnel/trunnel.c b/src/ext/trunnel/trunnel.c index 4bc28e3f04..da4885ca01 100644 --- a/src/ext/trunnel/trunnel.c +++ b/src/ext/trunnel/trunnel.c @@ -1,3 +1,7 @@ +/* trunnel.c -- copied from Trunnel v1.2 + * https://gitweb.torproject.org/trunnel.git + * You probably shouldn't edit this file. + */ /* trunnel.c -- Helper functions to implement trunnel. * * Copyright 2014, The Tor Project, Inc. diff --git a/src/ext/trunnel/trunnel.h b/src/ext/trunnel/trunnel.h index 0a78e6cfca..f51cade03f 100644 --- a/src/ext/trunnel/trunnel.h +++ b/src/ext/trunnel/trunnel.h @@ -1,3 +1,7 @@ +/* trunnel.h -- copied from Trunnel v1.2 + * https://gitweb.torproject.org/trunnel.git + * You probably shouldn't edit this file. + */ /* trunnel.h -- Public declarations for trunnel, to be included * in trunnel header files. diff --git a/src/trunnel/pwbox.c b/src/trunnel/pwbox.c index 0fbbf2eb6a..b70e1d8265 100644 --- a/src/trunnel/pwbox.c +++ b/src/trunnel/pwbox.c @@ -1,5 +1,6 @@ -/* pwbox.c -- generated by Trunnel v1.1-dev. +/* pwbox.c -- generated by Trunnel v1.2. * https://gitweb.torproject.org/trunnel.git + * You probably shouldn't edit this file. */ #include <stdlib.h> #include "trunnel-impl.h" diff --git a/src/trunnel/pwbox.h b/src/trunnel/pwbox.h index 84bbdf3a80..5b170eb45e 100644 --- a/src/trunnel/pwbox.h +++ b/src/trunnel/pwbox.h @@ -1,5 +1,6 @@ -/* pwbox.h -- generated by by Trunnel v1.1-dev. +/* pwbox.h -- generated by by Trunnel v1.2. * https://gitweb.torproject.org/trunnel.git + * You probably shouldn't edit this file. */ #ifndef TRUNNEL_PWBOX_H #define TRUNNEL_PWBOX_H |