ipsec-tools-0.6.5.diff
| ipsec-tools-0.6.5/configure 2006-04-28 13:48:34.000000000 +0100 | ||
|---|---|---|
| 24212 | 24212 |
cat >>conftest.$ac_ext <<_ACEOF |
| 24213 | 24213 |
/* end confdefs.h. */ |
| 24214 | 24214 | |
| 24215 |
#include <openssl/sha.h> |
|
| 24215 |
#include <openssl/opensslv.h> |
|
| 24216 | ||
| 24217 |
/* OpenSSL 0.9.8 headers require size_t to be defined */ |
|
| 24218 |
#if defined(OPENSSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x0090800fL) |
|
| 24219 |
#include <sys/types.h> |
|
| 24220 |
#endif |
|
| 24221 | ||
| 24222 |
#include <openssl/sha.h> |
|
| 24216 | 24223 | |
| 24217 | 24224 |
int |
| 24218 | 24225 |
main () |
| ipsec-tools-0.6.5/src/libipsec/key_debug.c 2006-04-28 13:38:27.000000000 +0100 | ||
|---|---|---|
| 34 | 34 |
#endif |
| 35 | 35 | |
| 36 | 36 |
#ifdef _KERNEL |
| 37 |
#if defined(__FreeBSD__) && __FreeBSD__ >= 3
|
|
| 37 |
#if (defined(__FreeBSD__) && __FreeBSD__ >= 3) || defined(__DragonFly__)
|
|
| 38 | 38 |
#include "opt_inet.h" |
| 39 | 39 |
#include "opt_inet6.h" |
| 40 | 40 |
#include "opt_ipsec.h" |
| ... | ... | |
| 707 | 707 |
m->m_pkthdr.len, m->m_pkthdr.rcvif); |
| 708 | 708 |
} |
| 709 | 709 | |
| 710 |
#ifdef __FreeBSD__
|
|
| 710 |
#if defined(__FreeBSD__) || defined(__DragonFly__)
|
|
| 711 | 711 |
if (m->m_flags & M_EXT) {
|
| 712 | 712 |
printf(" m_ext{ ext_buf:%p ext_free:%p "
|
| 713 | 713 |
"ext_size:%u ext_ref:%p }\n", |
| ipsec-tools-0.6.5/src/libipsec/policy_token.c 2006-04-28 13:38:27.000000000 +0100 | ||
|---|---|---|
| 530 | 530 | |
| 531 | 531 |
#include "libpfkey.h" |
| 532 | 532 | |
| 533 |
#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__linux__) |
|
| 533 |
#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__linux__)
|
|
| 534 | 534 |
#include "y.tab.h" |
| 535 | 535 |
#else |
| 536 | 536 |
#include "policy_parse.h" |
| ipsec-tools-0.6.5/src/libipsec/policy_token.l 2006-04-28 13:38:27.000000000 +0100 | ||
|---|---|---|
| 53 | 53 | |
| 54 | 54 |
#include "libpfkey.h" |
| 55 | 55 | |
| 56 |
#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__linux__) |
|
| 56 |
#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__linux__)
|
|
| 57 | 57 |
#include "y.tab.h" |
| 58 | 58 |
#else |
| 59 | 59 |
#include "policy_parse.h" |
| ipsec-tools-0.6.5/src/racoon/crypto_openssl.c 2006-04-28 13:46:29.000000000 +0100 | ||
|---|---|---|
| 46 | 46 |
#error OpenSSL version 0.9.6 or later required. |
| 47 | 47 |
#endif |
| 48 | 48 | |
| 49 |
/* OpenSSL 0.9.8 headers require size_t to be defined */ |
|
| 50 |
#if defined(OPENSSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x0090800fL) |
|
| 51 |
#include <sys/types.h> |
|
| 52 |
#endif |
|
| 53 | ||
| 49 | 54 |
#include <openssl/pem.h> |
| 50 | 55 |
#include <openssl/evp.h> |
| 51 | 56 |
#include <openssl/x509.h> |
| ipsec-tools-0.6.5/src/racoon/grabmyaddr.c 2006-04-28 13:38:27.000000000 +0100 | ||
|---|---|---|
| 37 | 37 |
#include <sys/ioctl.h> |
| 38 | 38 | |
| 39 | 39 |
#include <net/if.h> |
| 40 |
#if defined(__FreeBSD__) && __FreeBSD__ >= 3
|
|
| 40 |
#if (defined(__FreeBSD__) && __FreeBSD__ >= 3) || defined(__DragonFly__)
|
|
| 41 | 41 |
#include <net/if_var.h> |
| 42 | 42 |
#endif |
| 43 |
#if defined(__NetBSD__) || defined(__FreeBSD__) |
|
| 43 |
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
|
|
| 44 | 44 |
#include <netinet/in.h> |
| 45 | 45 |
#include <netinet6/in6_var.h> |
| 46 | 46 |
#endif |
| ipsec-tools-0.6.5/src/racoon/gssapi.h 2006-04-28 13:38:27.000000000 +0100 | ||
|---|---|---|
| 32 | 32 |
* POSSIBILITY OF SUCH DAMAGE. |
| 33 | 33 |
*/ |
| 34 | 34 | |
| 35 |
#ifdef __FreeBSD__
|
|
| 35 |
#if defined(__FreeBSD__) || defined(__DragonFly__)
|
|
| 36 | 36 |
#include "/usr/include/gssapi.h" |
| 37 | 37 |
#else |
| 38 | 38 |
#include <gssapi/gssapi.h> |
| ipsec-tools-0.6.5/src/racoon/isakmp.c 2006-04-28 13:38:27.000000000 +0100 | ||
|---|---|---|
| 114 | 114 |
# define SOL_UDP 17 |
| 115 | 115 |
# endif |
| 116 | 116 |
# endif /* __linux__ */ |
| 117 |
# if defined(__NetBSD__) || defined(__FreeBSD__) |
|
| 117 |
# if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
|
|
| 118 | 118 |
# include <netinet/in.h> |
| 119 | 119 |
# include <netinet/udp.h> |
| 120 | 120 |
# define SOL_UDP IPPROTO_UDP |
| 121 |
# endif /* __NetBSD__ / __FreeBSD__ */ |
|
| 121 |
# endif /* __NetBSD__ / __FreeBSD__ / __DragonFly__ */
|
|
| 122 | 122 |
#endif |
| 123 | 123 | |
| 124 | 124 |
static int nostate1 __P((struct ph1handle *, vchar_t *)); |
| ipsec-tools-0.6.5/src/racoon/pfkey.c 2006-04-28 13:38:27.000000000 +0100 | ||
|---|---|---|
| 47 | 47 |
# ifdef __linux__ |
| 48 | 48 |
# include <linux/udp.h> |
| 49 | 49 |
# endif |
| 50 |
# if defined(__NetBSD__) || defined(__FreeBSD__) |
|
| 50 |
# if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
|
|
| 51 | 51 |
# include <netinet/udp.h> |
| 52 | 52 |
# endif |
| 53 | 53 |
#endif |
| ipsec-tools-0.6.5/src/setkey/token.c 2006-04-28 13:38:27.000000000 +0100 | ||
|---|---|---|
| 937 | 937 |
#include <netdb.h> |
| 938 | 938 | |
| 939 | 939 |
#include "vchar.h" |
| 940 |
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__linux__) |
|
| 940 |
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__linux__)
|
|
| 941 | 941 |
#include "parse.h" |
| 942 | 942 |
#else |
| 943 | 943 |
#include "y.tab.h" |
| ipsec-tools-0.6.5/src/setkey/token.l 2006-04-28 13:38:27.000000000 +0100 | ||
|---|---|---|
| 54 | 54 |
#include <netdb.h> |
| 55 | 55 | |
| 56 | 56 |
#include "vchar.h" |
| 57 |
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__linux__) |
|
| 57 |
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__linux__)
|
|
| 58 | 58 |
#include "parse.h" |
| 59 | 59 |
#else |
| 60 | 60 |
#include "y.tab.h" |