summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2007-10-18 09:42:48 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2007-10-18 09:42:48 +0000
commit4403581f7f9e4bbacd069262b9d848164b8c6537 (patch)
treec4a4eb7da10a7f57cdf6fb7f8a1f0b717f2e451d /usr.sbin
parent8fd0029a30e8327d9dbaff7babfe4903ffa57529 (diff)
Add missing bits for auth crypt and cleanup a bit. OK deraadt@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ripd/printconf.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/usr.sbin/ripd/printconf.c b/usr.sbin/ripd/printconf.c
index 3eac0201c4c..bc0d0603c97 100644
--- a/usr.sbin/ripd/printconf.c
+++ b/usr.sbin/ripd/printconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printconf.c,v 1.3 2007/01/08 13:01:10 claudio Exp $ */
+/* $OpenBSD: printconf.c,v 1.4 2007/10/18 09:42:47 claudio Exp $ */
/*
* Copyright (c) 2004, 2005, 2006 Esben Norby <norby@openbsd.org>
@@ -97,6 +97,8 @@ print_redistribute(struct ripd_conf *conf)
void
print_iface(struct iface *iface)
{
+ struct auth_md *m;
+
printf("interface %s {\n", iface->name);
if (iface->passive)
@@ -112,13 +114,16 @@ print_iface(struct iface *iface)
printf("\tauth-key XXXXXX\n");
break;
case AUTH_CRYPT:
+ printf("\tauth-md-keyid %d\n", iface->auth_keyid);
+ TAILQ_FOREACH(m, &iface->auth_md_list, entry)
+ printf("\tauth-md %d XXXXXX\n", m->keyid);
break;
default:
printf("\tunknown auth type!\n");
break;
}
- printf("}\n");
+ printf("}\n\n");
}
void
@@ -126,14 +131,10 @@ print_config(struct ripd_conf *conf)
{
struct iface *iface;
- printf("\n");
print_mainconf(conf);
printf("\n");
LIST_FOREACH(iface, &conf->iface_list, entry) {
- printf("ooo\n");
print_iface(iface);
}
- printf("\n");
-
}