diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2004-06-26 06:07:04 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2004-06-26 06:07:04 +0000 |
commit | aada1f29a94fc6875bf68829865906683a6697b5 (patch) | |
tree | 5c1fdcc6c1fc540fd2b5036218c26b4931eec3ea /sbin/isakmpd/pf_key_v2.c | |
parent | 765bffe505b88993ee28536233b1f65b871c7458 (diff) |
Narrow down privsep interface. Move pf_key_v2_open() to monitor.
Work in progress.
ok ho@
Diffstat (limited to 'sbin/isakmpd/pf_key_v2.c')
-rw-r--r-- | sbin/isakmpd/pf_key_v2.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sbin/isakmpd/pf_key_v2.c b/sbin/isakmpd/pf_key_v2.c index 4afc3eda669..eca2c2e3017 100644 --- a/sbin/isakmpd/pf_key_v2.c +++ b/sbin/isakmpd/pf_key_v2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_key_v2.c,v 1.145 2004/06/23 23:36:01 ho Exp $ */ +/* $OpenBSD: pf_key_v2.c,v 1.146 2004/06/26 06:07:03 hshoexer Exp $ */ /* $EOM: pf_key_v2.c,v 1.79 2000/12/12 00:33:19 niklas Exp $ */ /* @@ -63,7 +63,6 @@ #include "ipsec_num.h" #include "key.h" #include "log.h" -#include "monitor.h" #include "pf_key_v2.h" #include "sa.h" #include "timer.h" @@ -149,7 +148,7 @@ static int pf_key_v2_conf_refinc(int, char *); #endif /* The socket to use for PF_KEY interactions. */ -static int pf_key_v2_socket; +int pf_key_v2_socket; #ifdef KAME static int @@ -519,7 +518,7 @@ pf_key_v2_open(void) /* Open the socket we use to speak to IPsec. */ pf_key_v2_socket = -1; - fd = monitor_socket(PF_KEY, SOCK_RAW, PF_KEY_V2); + fd = socket(PF_KEY, SOCK_RAW, PF_KEY_V2); if (fd == -1) { log_error("pf_key_v2_open: " "socket (PF_KEY, SOCK_RAW, PF_KEY_V2) failed"); |