X-Git-Url: https://git.saurik.com/apple/ipsec.git/blobdiff_plain/52b7d2ce06d68d0a9160d16f6e7c08c21c149d0d..476121220b14176dcbf5f70f47b9ef8e38f8b389:/ipsec-tools/Common/config.h?ds=sidebyside diff --git a/ipsec-tools/Common/config.h b/ipsec-tools/Common/config.h index be2c9ed..05028df 100644 --- a/ipsec-tools/Common/config.h +++ b/ipsec-tools/Common/config.h @@ -1,4 +1,6 @@ +#include +#define __IPSEC_BUILD__ 1 /* If printf doesn't support %zu. */ #undef BROKEN_PRINTF @@ -61,7 +63,7 @@ #undef ENABLE_SAMODE_UNSPECIFIED /* Enable statictics */ -//#define ENABLE_STATS 1 +/* #define ENABLE_STATS 1*/ /* causes too many logs to syslog */ /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 @@ -76,7 +78,8 @@ #define HAVE_GETTIMEOFDAY 1 /* Enable GSS API */ -#define HAVE_GSSAPI 1 +/* %%%%%%% change this back when conflict fixed */ +#undef HAVE_GSSAPI /* Have iconv using const */ #define HAVE_ICONV_2ND_CONST 1 @@ -88,7 +91,8 @@ #undef HAVE_IPSEC_POLICY_T /* Hybrid authentication uses PAM */ -#define HAVE_LIBPAM 1 +//#define HAVE_LIBPAM 1 +#undef HAVE_LIBPAM /* Hybrid authentication uses RADIUS */ #undef HAVE_LIBRADIUS @@ -99,7 +103,34 @@ /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 -/* Use */ +/* Define to 1 if keychain is used */ +#if TARGET_OS_EMBEDDED +#undef HAVE_KEYCHAIN +#else +#define HAVE_KEYCHAIN 1 +#endif + +/* Define to 1 if keychain is used */ +#if TARGET_OS_EMBEDDED +#undef HAVE_SECURITY_FRAMEWORK +#else +#define HAVE_SECURITY_FRAMEWORK 1 +#endif + + +/* Define to 1 if Open Dir available */ +#if TARGET_OS_EMBEDDED +#undef HAVE_OPENDIR +#else +#define HAVE_OPENDIR 1 +#endif + +#if TARGET_OS_EMBEDDED +#undef HAVE_LIBLDAP +#else +#define HAVE_LIBLDAP 1 +#endif + #define HAVE_NETINET6_IPSEC 1 #define HAVE_GETIFADDRS 1 @@ -117,7 +148,11 @@ #define HAVE_OPENSSL_RC5_H 1 /* Define to 1 if you have the `pam_start' function. */ +#if TARGET_OS_EMBEDDED +#undef HAVE_PAM_START +#else #define HAVE_PAM_START 1 +#endif /* Are PF_KEY policy priorities supported? */ #undef HAVE_PFKEY_POLICY_PRIORITY @@ -254,3 +289,7 @@ /* Define to `unsigned' if does not define. */ #undef size_t + +#ifdef __APPLE__ +#define USE_SYSTEMCONFIGURATION_PRIVATE_HEADERS 1 +#endif