added CONFIG_CRYPTO_HASH_INFO check.
fixes missing hash_algo_name symbol
This commit is contained in:
parent
ae4e5a5e77
commit
10451df5c2
@ -4,6 +4,7 @@ KERNEL_DIR := ${MODULES_DIR}/build
|
||||
|
||||
obj-m += xt_ts3init.o
|
||||
xt_ts3init-objs += ts3init_module.o ts3init_match.o ts3init_cookie.o ts3init_target.o ts3init_cache.o siphash24.o
|
||||
ccflags-$(CONFIG_CRYPTO_HASH_INFO) += -DHAS_CRYPTO_HASH_INFO=1
|
||||
|
||||
all:
|
||||
$(MAKE) -C ${KERNEL_DIR} M=$$PWD;
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include "ts3init_random_seed.h"
|
||||
#include "ts3init_cookie.h"
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
|
||||
#ifndef HAS_CRYPTO_HASH_INFO
|
||||
#define TS3_SHA_512_NAME "sha512"
|
||||
#else
|
||||
#include <crypto/hash_info.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user