X-Git-Url: https://git.saurik.com/apple/ipsec.git/blobdiff_plain/d1e348cfd503b08e7d34b7683d23aae209af0a71..e627a751fc4d26304657fc20440abb72632b1e6e:/ipsec-tools/Common/config.h?ds=sidebyside diff --git a/ipsec-tools/Common/config.h b/ipsec-tools/Common/config.h index 05028df..5ded22d 100644 --- a/ipsec-tools/Common/config.h +++ b/ipsec-tools/Common/config.h @@ -2,12 +2,6 @@ #define __IPSEC_BUILD__ 1 -/* If printf doesn't support %zu. */ -#undef BROKEN_PRINTF - -/* Enable admin port */ -#define ENABLE_ADMINPORT 1 - /* Enable VPN control port */ #define ENABLE_VPNCONTROL_PORT 1 @@ -15,7 +9,7 @@ #define ENABLE_DPD 1 /* IKE fragmentation support */ -#undef ENABLE_FRAG +#define ENABLE_FRAG 1 /* Hybrid authentication support */ #define ENABLE_HYBRID 1 @@ -23,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 @@ -62,6 +47,9 @@ /* Enable samode-unspec */ #undef ENABLE_SAMODE_UNSPECIFIED +/* Enable no SA flush */ +#define ENABLE_NO_SA_FLUSH 1 + /* Enable statictics */ /* #define ENABLE_STATS 1*/ /* causes too many logs to syslog */ @@ -77,10 +65,6 @@ /* Define to 1 if you have the `gettimeofday' function. */ #define HAVE_GETTIMEOFDAY 1 -/* Enable GSS API */ -/* %%%%%%% change this back when conflict fixed */ -#undef HAVE_GSSAPI - /* Have iconv using const */ #define HAVE_ICONV_2ND_CONST 1 @@ -90,19 +74,15 @@ /* Have ipsec_policy_t */ #undef HAVE_IPSEC_POLICY_T -/* Hybrid authentication uses PAM */ -//#define HAVE_LIBPAM 1 -#undef HAVE_LIBPAM - -/* 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 +/* Define to 1 to enable DNSSEC - not currently functional */ +#define ENABLE_DNSSEC_CERTS 0 + /* Define to 1 if keychain is used */ #if TARGET_OS_EMBEDDED #undef HAVE_KEYCHAIN @@ -125,33 +105,21 @@ #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 -/* Define to 1 if you have the header file. */ -#define HAVE_OPENSSL_AES_H 1 +#if 1 +#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. */ -#if TARGET_OS_EMBEDDED -#undef HAVE_PAM_START -#else -#define HAVE_PAM_START 1 #endif /* Are PF_KEY policy priorities supported? */ @@ -160,9 +128,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 @@ -237,6 +202,7 @@ /* Use advanced IPv6 API */ #define INET6_ADVAPI 1 +#define __APPLE_USE_RFC_3542 1 /* Name of package */ #undef PACKAGE @@ -257,7 +223,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 @@ -268,12 +234,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 @@ -281,15 +241,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 - -#ifdef __APPLE__ #define USE_SYSTEMCONFIGURATION_PRIVATE_HEADERS 1 -#endif