OpenBSD CVS

CVS log for src/usr.sbin/ospfd/auth.c


[BACK] Up to [local] / src / usr.sbin / ospfd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.22.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:04:29 2023 UTC (6 months, 2 weeks ago) by bluhm
Branch: OPENBSD_7_4
Changes since 1.22: +3 -2 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

iface->auth_key is not a real C string so use strnlen() to define the maximum.

This fixes the use of 8 char passwords with auth simple.
Reported by Laurent CARON (lcaron at unix-scripts info)
from claudio@; OK tb@

this is errata/7.4/004_ospfd.patch.sig

Revision 1.23 / (download) - annotate - [select for diffs], Tue Nov 7 11:29:05 2023 UTC (7 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.22: +3 -2 lines
Diff to previous 1.22 (colored)

iface->auth_key is not a real C string so use strnlen() to define the maximum.

This fixes the use of 8 char passwords with auth simple.
Reported by Laurent CARON (lcaron at unix-scripts info)
OK tb@

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jul 3 09:40:47 2023 UTC (11 months, 1 week ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE
Branch point for: OPENBSD_7_4
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

Use ibuf_data() instead of directly accessing ibuf->buf.
OK tb@

Revision 1.21 / (download) - annotate - [select for diffs], Tue Jun 20 15:19:55 2023 UTC (11 months, 2 weeks ago) by claudio
Branch: MAIN
Changes since 1.20: +26 -17 lines
Diff to previous 1.20 (colored)

Update ospfd to use new ibuf api.

This mostly moves away from memcpy(ibuf_seek(buf, off, size), data, size) to
ibuf_set(buf, off, data, size). Also ibuf_reserve() is replaced with
ibuf_add_zero().

OK tb@

Revision 1.20 / (download) - annotate - [select for diffs], Tue May 5 01:26:37 2015 UTC (9 years, 1 month ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

use the sizeof the struct not the sizeof a pointer to the struct
ok claudio@

Revision 1.19 / (download) - annotate - [select for diffs], Thu Sep 2 14:03:21 2010 UTC (13 years, 9 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

remove trailing spaces and tabs from source code; no binary changes
(verified by both sthen@ and me).

ok sthen@; "just commit it" claudio@

Revision 1.18 / (download) - annotate - [select for diffs], Wed May 26 13:56:08 2010 UTC (14 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.17: +9 -9 lines
Diff to previous 1.17 (colored)

Rename some imsg bits to make namespace collisions less likely buf to
ibuf, buf_read to ibuf_read, READ_BUF_SIZE to IBUF_READ_SIZE.

ok henning gilles claudio jacekm deraadt

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jun 6 07:31:26 2009 UTC (15 years ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

sync ospfctl/ospfd with the common imsg code, making it lib ready as well.

"looks ok" claudio@

Revision 1.16 / (download) - annotate - [select for diffs], Fri Jun 5 19:33:58 2009 UTC (15 years ago) by pyr
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

make ospfd's imsg lib ready as well.
ok claudio@

Revision 1.15 / (download) - annotate - [select for diffs], Wed Mar 4 12:51:01 2009 UTC (15 years, 3 months ago) by claudio
Branch: MAIN
Changes since 1.14: +6 -6 lines
Diff to previous 1.14 (colored)

Introduce and use buf_size(buf) instead of buf->wpos -- at least in the non
buf/imsg specific code. buf_close() will no force a truncation of the buffer
to the wpos but actually add code in imsg.c to detect and report such silly
behaviour. Makes the buf API a bit more sane.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jul 24 18:46:59 2008 UTC (15 years, 10 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored)

Use memcpy() and memcmp() like everywhere else in ospfd. OK norby@

Revision 1.13 / (download) - annotate - [select for diffs], Mon Feb 11 11:50:30 2008 UTC (16 years, 4 months ago) by norby
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

log_debug error messages report incorrect function names

from Igor Zinovik

Revision 1.12 / (download) - annotate - [select for diffs], Thu Feb 1 13:25:28 2007 UTC (17 years, 4 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

whitespace cleanup, no binary change.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Feb 1 12:41:03 2007 UTC (17 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.10: +14 -1 lines
Diff to previous 1.10 (colored)

Implement md_list_send() function to send auth crypt keys to the OSPF engine.
Needed for reload support. OK norby@ pyr@

Revision 1.10 / (download) - annotate - [select for diffs], Mon Apr 24 20:18:03 2006 UTC (18 years, 1 month ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.9: +31 -24 lines
Diff to previous 1.9 (colored)

Fix parser to match current behaviour and make auth-type et al. part of the
global and per area defaults. With this it is now possible to define one
set of auth-md keys and use them in every defined interface. OK norby@

Revision 1.9 / (download) - annotate - [select for diffs], Wed Mar 8 15:35:07 2006 UTC (18 years, 3 months ago) by claudio
Branch: MAIN
Changes since 1.8: +5 -7 lines
Diff to previous 1.8 (colored)

Spaces and other minor cleanup.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Feb 2 15:11:54 2006 UTC (18 years, 4 months ago) by norby
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.7: +1 -7 lines
Diff to previous 1.7 (colored)

zap md_list_empty, found by lint.

ok claudio@

Revision 1.7 / (download) - annotate - [select for diffs], Sat Nov 12 18:18:24 2005 UTC (18 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +1 -3 lines
Diff to previous 1.6 (colored)

spacing mostly

Revision 1.6 / (download) - annotate - [select for diffs], Wed Oct 19 22:00:37 2005 UTC (18 years, 7 months ago) by stevesk
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

small cleanups while reading; ok claudio@

Revision 1.5 / (download) - annotate - [select for diffs], Tue Apr 5 13:01:21 2005 UTC (19 years, 2 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.4: +14 -15 lines
Diff to previous 1.4 (colored)

Use the dynamic buffer API for packet generation and sending.
OK norby@

Revision 1.4 / (download) - annotate - [select for diffs], Mon Apr 4 13:49:13 2005 UTC (19 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.3: +12 -12 lines
Diff to previous 1.3 (colored)

On auth crypt verify not only the main key is allowed but all configured keys.
This makes changing keys a piece of cake -- if ospfd would support reloads.
Found and patch from Jason Ackley.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Mar 31 19:32:10 2005 UTC (19 years, 2 months ago) by norby
Branch: MAIN
Changes since 1.2: +190 -24 lines
Diff to previous 1.2 (colored)

Add support for crypt authentication (MD5).

ok and input claudio@

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jan 28 17:53:33 2005 UTC (19 years, 4 months ago) by norby
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Change my email address to the OpenBSD one since Ericsson has nothing to
do with this software, just happend to be my only valid email address at
the time.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Jan 28 14:05:40 2005 UTC (19 years, 4 months ago) by claudio
Branch: MAIN

Welcome ospfd
started by Esben Norby some time ago by using the imsg/three process framework
of bgpd. He implemented the basic concept plus the ospf finite state machines.
Later I joined and helped him cleanup, debug and extend his work.
Right now it is not particularly useful, major parts are still missing but is
imported to allow more people to work on it.
status:
The basic protocol works for broadcast networks and the LS database is
synchronized and updated. It is not possible to be DR or BDR on a network
and other interface types like point-to-point are not yet supported.
The shortest path tree is not calculated and so no routing information is
exchanged with the kernel FIB.

Not yet connected to the builds.
OK henning@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.