diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2017-12-19 05:52:04 +0800 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2017-12-19 05:52:04 +0800 |
commit | 5fdbf108c4bacd16044349d7b7f610e636042abe (patch) | |
tree | 106d056672ee52b4833c3cd547065cea7c61de13 /security | |
parent | cb7b1514c5bd72e59086090d14f375784918b5ac (diff) | |
download | freebsd-ports-gnome-5fdbf108c4bacd16044349d7b7f610e636042abe.tar.gz freebsd-ports-gnome-5fdbf108c4bacd16044349d7b7f610e636042abe.tar.zst freebsd-ports-gnome-5fdbf108c4bacd16044349d7b7f610e636042abe.zip |
security/tor: Unbreaking on systems without timingsafe_memcmp(3)
timingsafe_memcmp(3) has only been introduced in 12, therefore limiting its use to 12.
Reported by: Martin Gehlen <zitlo@zitlo.de> (bug reporter)
Approved by: adamw (mentor)
Differential Revision: https://reviews.freebsd.org/D13502
Diffstat (limited to 'security')
-rw-r--r-- | security/tor/Makefile | 1 | ||||
-rw-r--r-- | security/tor/files/patch-orconfig.h.in | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/security/tor/Makefile b/security/tor/Makefile index 6a710b025a2c..90afc596129a 100644 --- a/security/tor/Makefile +++ b/security/tor/Makefile @@ -3,6 +3,7 @@ PORTNAME= tor PORTVERSION= 0.3.1.9 +PORTREVISION= 1 CATEGORIES= security net ipv6 MASTER_SITES= TOR diff --git a/security/tor/files/patch-orconfig.h.in b/security/tor/files/patch-orconfig.h.in new file mode 100644 index 000000000000..5f670c9debb3 --- /dev/null +++ b/security/tor/files/patch-orconfig.h.in @@ -0,0 +1,12 @@ +--- orconfig.h.in.orig 2017-11-30 20:34:49 UTC ++++ orconfig.h.in +@@ -517,7 +517,9 @@ + #undef HAVE_TIME_H + + /* Define to 1 if you have the `timingsafe_memcmp' function. */ ++#if __FreeBSD_version >= 1200000 // disabled: timingsafe_memcmp(3) has been added only in 12.0, and isn't yet available on older systems + #undef HAVE_TIMINGSAFE_MEMCMP ++#endif + + /* Define to 1 if you have the `TLS_method' function. */ + #undef HAVE_TLS_METHOD |