summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/sysdep/openbsd/sysdep.c
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2004-08-10 15:59:12 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2004-08-10 15:59:12 +0000
commitad93a395f096ca7b9a0833d0906d723b7880e483 (patch)
tree40283255eb9e94abcc82178a9dbb6c11f09a3932 /sbin/isakmpd/sysdep/openbsd/sysdep.c
parente6aea2c186d9eef5275040b69b69d4764a29f5b8 (diff)
Better implementation of the Dead Peer Detection protocol, RFC 3706.
hshoexer@ ok.
Diffstat (limited to 'sbin/isakmpd/sysdep/openbsd/sysdep.c')
-rw-r--r--sbin/isakmpd/sysdep/openbsd/sysdep.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sbin/isakmpd/sysdep/openbsd/sysdep.c b/sbin/isakmpd/sysdep/openbsd/sysdep.c
index fc4b14d8af2..f59922fde23 100644
--- a/sbin/isakmpd/sysdep/openbsd/sysdep.c
+++ b/sbin/isakmpd/sysdep/openbsd/sysdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysdep.c,v 1.27 2004/06/26 06:07:03 hshoexer Exp $ */
+/* $OpenBSD: sysdep.c,v 1.28 2004/08/10 15:59:11 ho Exp $ */
/* $EOM: sysdep.c,v 1.9 2000/12/04 04:46:35 angelos Exp $ */
/*
@@ -133,6 +133,15 @@ sysdep_ipsec_get_spi(size_t *sz, u_int8_t proto, struct sockaddr *src,
return KEY_API(get_spi)(sz, proto, src, dst, seq);
}
+struct sa_kinfo *
+sysdep_ipsec_get_kernel_sa(u_int8_t *spi, size_t spi_sz, u_int8_t proto,
+ struct sockaddr *dst)
+{
+ if (app_none)
+ return 0;
+ return KEY_API(get_kernel_sa)(spi, spi_sz, proto, dst);
+}
+
/* Force communication on socket FD to go in the clear. */
int
sysdep_cleartext(int fd, int af)