summaryrefslogtreecommitdiffhomepage
path: root/src/crypto/zinc/selftest/curve25519.h
diff options
context:
space:
mode:
authorMathias Krause <minipli@grsecurity.net>2021-07-06 15:27:13 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-08-08 22:28:36 +0200
commit29747255f9672035ccf9cc310b7ff66b1f35f1d2 (patch)
tree65d7b46b89a01647111a116b343629ebea4ef336 /src/crypto/zinc/selftest/curve25519.h
parent50dda8ce5ee691b97ae640aba4cbe55aa9b62085 (diff)
compat: account for grsecurity backports and changes
grsecurity kernels tend to carry additional backports and changes, like commit b60b87fc2996 ("netlink: add ethernet address policy types") or the SYM_FUNC_* changes. RAP nowadays hooks the latter, therefore no diversion to RAP_ENTRY is needed any more. Instead of relying on the kernel version test, also test for the macros we're about to define to not already be defined to account for these additional changes in the grsecurity patch without breaking compatibility to the older public ones. Also test for CONFIG_PAX instead of RAP_PLUGIN for the timer API related changes as these don't depend on the RAP plugin to be enabled but just a PaX/grsecurity patch to be applied. While there is no preprocessor knob for the latter, use CONFIG_PAX as this will likely be enabled in every kernel that uses the patch. Signed-off-by: Mathias Krause <minipli@grsecurity.net> [zx2c4: small changes to include a header nearby a macro def test] Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto/zinc/selftest/curve25519.h')
0 files changed, 0 insertions, 0 deletions