X-Git-Url: https://git.saurik.com/apple/ipsec.git/blobdiff_plain/52b7d2ce06d68d0a9160d16f6e7c08c21c149d0d..c8d8bee0bee0298e25cb827876f57e58cc0a938c:/ipsec-tools/Common/config.h diff --git a/ipsec-tools/Common/config.h b/ipsec-tools/Common/config.h index be2c9ed..cd9cb92 100644 --- a/ipsec-tools/Common/config.h +++ b/ipsec-tools/Common/config.h @@ -1,10 +1,6 @@ +#include - -/* If printf doesn't support %zu. */ -#undef BROKEN_PRINTF - -/* Enable admin port */ -#define ENABLE_ADMINPORT 1 +#define __IPSEC_BUILD__ 1 /* Enable VPN control port */ #define ENABLE_VPNCONTROL_PORT 1 @@ -13,7 +9,7 @@ #define ENABLE_DPD 1 /* IKE fragmentation support */ -#undef ENABLE_FRAG +#define ENABLE_FRAG 1 /* Hybrid authentication support */ #define ENABLE_HYBRID 1 @@ -21,15 +17,6 @@ /* Enable NAT-Traversal */ #define ENABLE_NATT 1 -#ifndef __APPLE__ -/* our kernel does not have support for versions 00 or 01 */ -/* Enable NAT-Traversal draft 00 */ -#undef ENABLE_NATT_00 - -/* Enable NAT-Traversal draft 01 */ -#undef ENABLE_NATT_01 -#endif /* __APPLE__ */ - /* Enable NAT-Traversal draft 02 */ #define ENABLE_NATT_02 1 @@ -60,8 +47,11 @@ /* Enable samode-unspec */ #undef ENABLE_SAMODE_UNSPECIFIED +/* Enable no SA flush */ +#define ENABLE_NO_SA_FLUSH 1 + /* 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 @@ -75,9 +65,6 @@ /* Define to 1 if you have the `gettimeofday' function. */ #define HAVE_GETTIMEOFDAY 1 -/* Enable GSS API */ -#define HAVE_GSSAPI 1 - /* Have iconv using const */ #define HAVE_ICONV_2ND_CONST 1 @@ -87,37 +74,50 @@ /* Have ipsec_policy_t */ #undef HAVE_IPSEC_POLICY_T -/* Hybrid authentication uses PAM */ -#define HAVE_LIBPAM 1 - -/* Hybrid authentication uses RADIUS */ -#undef HAVE_LIBRADIUS - /* Define to 1 if you have the header file. */ #define HAVE_LIMITS_H 1 /* 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 + #define HAVE_NETINET6_IPSEC 1 #define HAVE_GETIFADDRS 1 -/* Define to 1 if you have the header file. */ -#define HAVE_OPENSSL_AES_H 1 +#if TARGET_OS_EMBEDDED +#undef HAVE_OPENSSL +#else +#define HAVE_OPENSSL 1 +#endif + +#ifdef HAVE_OPENSSL /* Define to 1 if you have the header file. */ #define HAVE_OPENSSL_ENGINE_H 1 -/* Define to 1 if you have the header file. */ -#undef HAVE_OPENSSL_IDEA_H - -/* Define to 1 if you have the header file. */ -#define HAVE_OPENSSL_RC5_H 1 - -/* Define to 1 if you have the `pam_start' function. */ -#define HAVE_PAM_START 1 +#endif /* Are PF_KEY policy priorities supported? */ #undef HAVE_PFKEY_POLICY_PRIORITY @@ -125,9 +125,6 @@ /* Have forward policy */ #undef HAVE_POLICY_FWD -/* Define to 1 if you have the `rad_create_request' function. */ -#undef HAVE_RAD_CREATE_REQUEST - /* Is readline available? */ #undef HAVE_READLINE @@ -202,6 +199,7 @@ /* Use advanced IPv6 API */ #define INET6_ADVAPI 1 +#define __APPLE_USE_RFC_3542 1 /* Name of package */ #undef PACKAGE @@ -222,7 +220,7 @@ #undef PACKAGE_VERSION /* Define as the return type of signal handlers (`int' or `void'). */ -#define RETSIGTYPE int +#define RETSIGTYPE void /* Define to 1 if you have the ANSI C header files. */ #define STDC_HEADERS 1 @@ -233,12 +231,6 @@ /* Define to 1 if your declares `struct tm'. */ #define TM_IN_SYS_TIME 1 -/* A 'va_copy' style function */ -#undef VA_COPY - -/* Version number of package */ -#undef VERSION - /* SHA2 support */ #define WITH_SHA2 1 @@ -246,11 +238,4 @@ `char[]'. */ #define YYTEXT_POINTER 1 -/* Define to empty if `const' does not conform to ANSI C. */ -#undef const - -/* Define to `int' if does not define. */ -#undef pid_t - -/* Define to `unsigned' if does not define. */ -#undef size_t +#define USE_SYSTEMCONFIGURATION_PRIVATE_HEADERS 1