summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/policy.c
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-03-19 14:04:44 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-03-19 14:04:44 +0000
commit0b9f96e56b22f3d0bd8f9fa95204ba7a9e49683f (patch)
tree305096d9429011aed372ea12a527d10602e2a847 /sbin/isakmpd/policy.c
parent96c309c384e99b742c4307ece38772c4841ffad2 (diff)
Add missing bits to make already present privsep code work. Enable privsep.
ok ho@ deraadt@ markus@
Diffstat (limited to 'sbin/isakmpd/policy.c')
-rw-r--r--sbin/isakmpd/policy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/isakmpd/policy.c b/sbin/isakmpd/policy.c
index a33e155092a..6bccf75bdf5 100644
--- a/sbin/isakmpd/policy.c
+++ b/sbin/isakmpd/policy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: policy.c,v 1.67 2003/11/06 16:12:08 ho Exp $ */
+/* $OpenBSD: policy.c,v 1.68 2004/03/19 14:04:43 hshoexer Exp $ */
/* $EOM: policy.c,v 1.49 2000/10/24 13:33:39 niklas Exp $ */
/*
@@ -2100,7 +2100,7 @@ keynote_cert_obtain (u_int8_t *id, size_t id_len, void *data, u_int8_t **cert,
return 0;
}
- if (stat (file, &sb) < 0)
+ if (monitor_stat (file, &sb) < 0)
{
LOG_DBG ((LOG_POLICY, 30, "keynote_cert_obtain: failed to stat \"%s\"",
file));
@@ -2118,7 +2118,7 @@ keynote_cert_obtain (u_int8_t *id, size_t id_len, void *data, u_int8_t **cert,
return 0;
}
- fd = open (file, O_RDONLY, 0);
+ fd = monitor_open (file, O_RDONLY, 0);
if (fd < 0)
{
LOG_DBG ((LOG_POLICY, 30, "keynote_cert_obtain: failed to open \"%s\"",