summaryrefslogtreecommitdiffstats
path: root/engines
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-04-13 23:26:56 +0100
committerMatt Caswell <matt@openssl.org>2016-04-14 10:09:31 +0100
commit627537ddf3792249df22fc0e33487ca62c6b7be1 (patch)
tree43d4f92c349d1d785dc6b6f22a3c6cad8eb40191 /engines
parentbdcd660e33710079b495cf5cc6a1aaa5d2dcd317 (diff)
Fix AFALG kernel and headers mismatch problem
During Configure we attempt to check the kernel version of this platform to see whether we can compile the AFALG engine. If the kernel version looks recent enough then we enable AFALG. However when we compile e_afalg.c we check the version of the linux headers. If there is a mismatch between the linux headers and the currently running kernel then we don't compile the AFLAG engine and continue. This was causing a link error. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'engines')
-rw-r--r--engines/afalg/e_afalg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/afalg/e_afalg.c b/engines/afalg/e_afalg.c
index 830e88b302..d8599a165b 100644
--- a/engines/afalg/e_afalg.c
+++ b/engines/afalg/e_afalg.c
@@ -69,6 +69,9 @@
#if LINUX_VERSION_CODE <= KERNEL_VERSION(K_MAJ, K_MIN1, K_MIN2)
# warning "AFALG ENGINE requires Kernel Headers >= 4.1.0"
# warning "Skipping Compilation of AFALG engine"
+void engine_load_afalg_int(void)
+{
+}
#else
# include <linux/if_alg.h>