summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-07-07 22:04:35 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-07-07 22:04:35 +0000
commit65805e6e70ac7077734b9eac7230547eb34d725c (patch)
treefb1bb11e36730e969cd2b3f82b1b397c53da20c8 /sbin
parentc22a6649beebd53b5d4b3b4164f37ada72e3c100 (diff)
Merge with EOM 1.16
author: ho Add copyright notice. author: ho Add connection_exist function
Diffstat (limited to 'sbin')
-rw-r--r--sbin/isakmpd/connection.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/sbin/isakmpd/connection.c b/sbin/isakmpd/connection.c
index 69daecd049b..414e0774edb 100644
--- a/sbin/isakmpd/connection.c
+++ b/sbin/isakmpd/connection.c
@@ -1,8 +1,9 @@
-/* $OpenBSD: connection.c,v 1.2 1999/06/02 06:31:37 niklas Exp $ */
-/* $EOM: connection.c,v 1.14 1999/06/01 18:28:44 ho Exp $ */
+/* $OpenBSD: connection.c,v 1.3 1999/07/07 22:04:34 niklas Exp $ */
+/* $EOM: connection.c,v 1.16 1999/06/07 00:10:47 ho Exp $ */
/*
* Copyright (c) 1999 Niklas Hallqvist. All rights reserved.
+ * Copyright (c) 1999 Hakan Olsson. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -172,6 +173,13 @@ connection_lookup (char *name)
return 0;
}
+/* Does the connection named NAME exist? */
+int
+connection_exist (char *name)
+{
+ return (connection_lookup (name) != NULL);
+}
+
/* Find the passive connection named NAME. */
static struct connection_passive *
connection_passive_lookup_by_name (char *name)