summaryrefslogtreecommitdiff
path: root/sbin/ipsecadm/ipsecadm.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-02-27 07:29:18 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-02-27 07:29:18 +0000
commit06ec19c519eff93558eacd706ac42e8a5783a2a1 (patch)
tree4411a06c98726a8cd4bd79e0a04690af881e653b /sbin/ipsecadm/ipsecadm.c
parentb8c3fdefb66b46602d0b91b81b2faa98832d9e3e (diff)
authkey not authp; Markus.Friedl@informatik.uni-erlangen.de
Diffstat (limited to 'sbin/ipsecadm/ipsecadm.c')
-rw-r--r--sbin/ipsecadm/ipsecadm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/ipsecadm/ipsecadm.c b/sbin/ipsecadm/ipsecadm.c
index b168928c8cf..ddb1314f915 100644
--- a/sbin/ipsecadm/ipsecadm.c
+++ b/sbin/ipsecadm/ipsecadm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipsecadm.c,v 1.11 1999/02/26 10:04:05 angelos Exp $ */
+/* $OpenBSD: ipsecadm.c,v 1.12 1999/02/27 07:29:17 deraadt Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -821,7 +821,8 @@ main(int argc, char **argv)
exit(1);
}
- if (isencauth(mode) && keyp == NULL)
+ if (((mode & (ESP_NEW | ESP_OLD)) && keyp == NULL) ||
+ ((mode & (AH_NEW | AH_OLD)) && authp == NULL))
{
fprintf(stderr, "%s: no key material specified\n", argv[0]);
exit(1);