Browse Source

added CONFIG_CRYPTO_HASH_INFO check.

fixes missing hash_algo_name symbol
pull/17/head
Maximilian Münchow 8 years ago
parent
commit
10451df5c2
  1. 1
      src/Makefile
  2. 2
      src/ts3init_cookie.c

1
src/Makefile

@ -4,6 +4,7 @@ KERNEL_DIR := ${MODULES_DIR}/build @@ -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;

2
src/ts3init_cookie.c

@ -26,7 +26,7 @@ @@ -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…
Cancel
Save