summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/sysdep
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-05-01 20:43:47 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-05-01 20:43:47 +0000
commit5a7f502ff85fa80daab3422d3d21e27a6768f2e4 (patch)
tree5ead3611b8809acc3fbaa7d07b57e50a51975e88 /sbin/isakmpd/sysdep
parenta43578c3e198040540661d0a58d2439a31b021e4 (diff)
sysdep/openbsd/sysdep.c: Merge with EOM 1.7
DESIGN-NOTES: Merge with EOM 1.42 Makefile: Merge with EOM 1.51 app.c: Merge with EOM 1.6 conf.c: Merge with EOM 1.18 init.c: Merge with EOM 1.14 isakmpd.conf.5: Merge with EOM 1.19 pf_encap.c: Merge with EOM 1.64 pf_encap.h: Merge with EOM 1.12 pf_key_v2.h: Merge with EOM 1.3 sysdep.h: Merge with EOM 1.16 transport.c: Merge with EOM 1.40 ui.c: Merge with EOM 1.32 author: niklas A new connection abstraction
Diffstat (limited to 'sbin/isakmpd/sysdep')
-rw-r--r--sbin/isakmpd/sysdep/openbsd/sysdep.c27
1 files changed, 5 insertions, 22 deletions
diff --git a/sbin/isakmpd/sysdep/openbsd/sysdep.c b/sbin/isakmpd/sysdep/openbsd/sysdep.c
index 136c355fc1b..382b718ddef 100644
--- a/sbin/isakmpd/sysdep/openbsd/sysdep.c
+++ b/sbin/isakmpd/sysdep/openbsd/sysdep.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: sysdep.c,v 1.4 1999/04/05 20:57:35 niklas Exp $ */
-/* $EOM: sysdep.c,v 1.6 1999/04/05 18:27:42 niklas Exp $ */
+/* $OpenBSD: sysdep.c,v 1.5 1999/05/01 20:43:40 niklas Exp $ */
+/* $EOM: sysdep.c,v 1.7 1999/05/01 20:21:23 niklas Exp $ */
/*
* Copyright (c) 1998, 1999 Niklas Hallqvist. All rights reserved.
@@ -110,28 +110,11 @@ sysdep_app_handler (int fd)
KEY_API (handler) (fd);
}
-/*
- * This is where we try to set up routes that make the IP-stack request
- * SAs from us on demand.
- */
+/* Check that the connection named NAME is active, or else make it active. */
void
-sysdep_conf_init_hook ()
+sysdep_connection_check (char *name)
{
- struct conf_list *conns;
- struct conf_list_node *conn;
-
- conns = conf_get_list ("Phase 2", "Connections");
- if (conns)
- {
- for (conn = TAILQ_FIRST (&conns->fields); conn;
- conn = TAILQ_NEXT (conn, link))
- {
- if (KEY_API(connection) (conn->field))
- /* XXX What else? */
- continue;
- }
- conf_free_list (conns);
- }
+ KEY_API (connection_check) (name);
}
/*