From 31f3d9adb5b629e739f58d8d6ac2e2bf05a2fdfa Mon Sep 17 00:00:00 2001 From: Esben Norby Date: Thu, 31 Mar 2005 19:32:11 +0000 Subject: Add support for crypt authentication (MD5). ok and input claudio@ --- usr.sbin/ospfd/ospfe.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'usr.sbin/ospfd/ospfe.h') diff --git a/usr.sbin/ospfd/ospfe.h b/usr.sbin/ospfd/ospfe.h index 03e95318ffb..268ba23082e 100644 --- a/usr.sbin/ospfd/ospfe.h +++ b/usr.sbin/ospfd/ospfe.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ospfe.h,v 1.9 2005/03/22 22:13:48 norby Exp $ */ +/* $OpenBSD: ospfe.h,v 1.10 2005/03/31 19:32:10 norby Exp $ */ /* * Copyright (c) 2004, 2005 Esben Norby @@ -133,6 +133,7 @@ struct nbr { u_int32_t dd_pending; u_int32_t peerid; /* unique ID in DB */ u_int32_t ls_req_cnt; + u_int32_t crypt_seq_num; int state; u_int8_t link_state; @@ -144,8 +145,14 @@ struct nbr { }; /* auth.c */ -int auth_validate(struct ospf_hdr *, const struct iface *); -int auth_gen(void *, u_int16_t, const struct iface *); +int auth_validate(void *buf, u_int16_t len, struct iface *, + struct nbr *); +int auth_gen(void *, u_int16_t, struct iface *); +void md_list_init(struct iface *); +void md_list_add(struct iface *, u_int8_t, char *); +void md_list_clr(struct iface *); +int md_list_empty(struct iface *); +struct auth_md *md_list_find(struct iface *, u_int8_t); /* database.c */ int send_db_description(struct nbr *); -- cgit v1.2.3