From 9739251101bffde2c62ba08c1869eb170d952d5b Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Sat, 3 Sep 2011 21:40:34 +0400 Subject: implemented crypto library selection: -DCRYPTO=OPENSSL|TOMCRYPT|INTERNAL (default OPENSSL) --- accel-pppd/auth/CMakeLists.txt | 6 +++--- accel-pppd/auth/auth_chap_md5.c | 2 +- accel-pppd/auth/auth_mschap_v1.c | 4 +--- accel-pppd/auth/auth_mschap_v2.c | 4 +--- 4 files changed, 6 insertions(+), 10 deletions(-) (limited to 'accel-pppd/auth') diff --git a/accel-pppd/auth/CMakeLists.txt b/accel-pppd/auth/CMakeLists.txt index ef9478aa..7af8faca 100644 --- a/accel-pppd/auth/CMakeLists.txt +++ b/accel-pppd/auth/CMakeLists.txt @@ -3,9 +3,9 @@ ADD_LIBRARY(auth_chap_md5 SHARED auth_chap_md5.c) ADD_LIBRARY(auth_mschap_v1 SHARED auth_mschap_v1.c) ADD_LIBRARY(auth_mschap_v2 SHARED auth_mschap_v2.c) -TARGET_LINK_LIBRARIES(auth_chap_md5 crypto) -TARGET_LINK_LIBRARIES(auth_mschap_v1 crypto) -TARGET_LINK_LIBRARIES(auth_mschap_v2 crypto) +TARGET_LINK_LIBRARIES(auth_chap_md5 ${crypto_lib}) +TARGET_LINK_LIBRARIES(auth_mschap_v1 ${crypto_lib}) +TARGET_LINK_LIBRARIES(auth_mschap_v2 ${crypto_lib}) INSTALL(TARGETS auth_pap auth_chap_md5 auth_mschap_v1 auth_mschap_v2 LIBRARY DESTINATION lib/accel-ppp diff --git a/accel-pppd/auth/auth_chap_md5.c b/accel-pppd/auth/auth_chap_md5.c index 2307f14a..d72f70aa 100644 --- a/accel-pppd/auth/auth_chap_md5.c +++ b/accel-pppd/auth/auth_chap_md5.c @@ -7,7 +7,7 @@ #include #include -#include +#include "crypto.h" #include "log.h" #include "ppp.h" diff --git a/accel-pppd/auth/auth_mschap_v1.c b/accel-pppd/auth/auth_mschap_v1.c index 10d5fe8e..b212f034 100644 --- a/accel-pppd/auth/auth_mschap_v1.c +++ b/accel-pppd/auth/auth_mschap_v1.c @@ -8,9 +8,7 @@ #include #include -#include -#include -#include +#include "crypto.h" #include "log.h" #include "ppp.h" diff --git a/accel-pppd/auth/auth_mschap_v2.c b/accel-pppd/auth/auth_mschap_v2.c index ebcffb7a..0dd41430 100644 --- a/accel-pppd/auth/auth_mschap_v2.c +++ b/accel-pppd/auth/auth_mschap_v2.c @@ -8,9 +8,7 @@ #include #include -#include -#include -#include +#include "crypto.h" #include "log.h" #include "ppp.h" -- cgit v1.2.3