Codebase list openssl / 0d9fece
afalg: Fix kernel version check The check should reject kernel versions < 4.1.0, not <= 4.1.0. The issue was spotted on OpenSUSE 42.1 Leap, since its linux/version.h header advertises 4.1.0. CLA: trivial Fixes: 7f458a48 ("ALG: Add AFALG engine") Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4618) Baptiste Jonglez authored 6 years ago Richard Levitte committed 6 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2323 #define K_MAJ 4
2424 #define K_MIN1 1
2525 #define K_MIN2 0
26 #if LINUX_VERSION_CODE <= KERNEL_VERSION(K_MAJ, K_MIN1, K_MIN2) || \
26 #if LINUX_VERSION_CODE < KERNEL_VERSION(K_MAJ, K_MIN1, K_MIN2) || \
2727 !defined(AF_ALG)
2828 # ifndef PEDANTIC
2929 # warning "AFALG ENGINE requires Kernel Headers >= 4.1.0"
1414 # define K_MAJ 4
1515 # define K_MIN1 1
1616 # define K_MIN2 0
17 # if LINUX_VERSION_CODE <= KERNEL_VERSION(K_MAJ, K_MIN1, K_MIN2)
17 # if LINUX_VERSION_CODE < KERNEL_VERSION(K_MAJ, K_MIN1, K_MIN2)
1818 /*
1919 * If we get here then it looks like there is a mismatch between the linux
2020 * headers and the actual kernel version, so we have tried to compile with