OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.14 / (download) - annotate - [select for diffs], Tue Apr 23 13:34:51 2024 UTC (5 weeks, 4 days ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

correct indentation; no functional change
ok tb@

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jun 22 10:38:27 2023 UTC (11 months, 1 week ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.12: +8 -7 lines
Diff to previous 1.12 (colored)

Use new ibu API, switch from ibuf_seek() to ibuf_set().
Also use ibuf_data() and ibuf_size().
OK tb@

Revision 1.11.36.1 / (download) - annotate - [select for diffs], Thu Dec 19 16:51:06 2019 UTC (4 years, 5 months ago) by deraadt
Branch: OPENBSD_6_5
Changes since 1.11: +9 -1 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Validate auth_offset before using it. If it's too big ripd will crash.

RFC 2082, chapter 3.1 sys about the offset:
A 16 bit offset from the RIP-2 header to the MD5 digest (if no
other trailer fields are ever defined, this value equals the
RIP-2 Data Length).

Problem reported by Hiltjo Posthuma.

OK claudio@ deraadt@ benno@
this is errata 6.5/027_ripd.patch.sig

Revision 1.11.38.1 / (download) - annotate - [select for diffs], Thu Dec 19 16:50:46 2019 UTC (4 years, 5 months ago) by deraadt
Branch: OPENBSD_6_6
Changes since 1.11: +9 -1 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Validate auth_offset before using it. If it's too big ripd will crash.

RFC 2082, chapter 3.1 sys about the offset:
A 16 bit offset from the RIP-2 header to the MD5 digest (if no
other trailer fields are ever defined, this value equals the
RIP-2 Data Length).

Problem reported by Hiltjo Posthuma.

OK claudio@ deraadt@ benno@
this is errata 6.6/016_ripd.patch.sig

Revision 1.12 / (download) - annotate - [select for diffs], Thu Dec 19 16:47:14 2019 UTC (4 years, 5 months ago) by remi
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
Changes since 1.11: +9 -1 lines
Diff to previous 1.11 (colored)

Validate auth_offset before using it. If it's too big ripd will crash.

RFC 2082, chapter 3.1 sys about the offset:
A 16 bit offset from the RIP-2 header to the MD5 digest (if no
other trailer fields are ever defined, this value equals the
RIP-2 Data Length).

Problem reported by Hiltjo Posthuma.

OK claudio@ deraadt@ benno@

Revision 1.11 / (download) - annotate - [select for diffs], Wed May 26 13:56:08 2010 UTC (14 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_5_BASE, 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, 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, OPENBSD_4_8_BASE, OPENBSD_4_8
Branch point for: OPENBSD_6_6, OPENBSD_6_5
Changes since 1.10: +12 -12 lines
Diff to previous 1.10 (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.10 / (download) - annotate - [select for diffs], Sat Sep 26 11:12:50 2009 UTC (14 years, 8 months ago) by michele
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

Whitespace cleanup.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Oct 24 20:52:50 2007 UTC (16 years, 7 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.8: +5 -5 lines
Diff to previous 1.8 (colored)

Make the packet buffer u_int8_t * everywhere. This is binary data and not
a string.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Oct 18 17:00:59 2007 UTC (16 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

spacing

Revision 1.7 / (download) - annotate - [select for diffs], Thu Oct 18 09:47:57 2007 UTC (16 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.6: +14 -10 lines
Diff to previous 1.6 (colored)

Massive cleanup in the authentication code. the simple auth_key and the crypt
keys are not strings so a) use u_int8_t instead of char and b) uses memcpy
to copy the full MAX_SIMPLE_AUTH_LEN resp. MD5_DIGEST_LENGTH bytes around.
The parser needs some special code to ensure that the string is not to long
and if it is shorter then the buffer the rest needs to be zero padded.
Avoid to use strncpy() instead use a bzero(); memcpy() combo.
with and OK deraadt@

Revision 1.6 / (download) - annotate - [select for diffs], Wed Oct 17 20:36:27 2007 UTC (16 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

wrong type for digest; ok claudio

Revision 1.5 / (download) - annotate - [select for diffs], Sat Mar 31 09:49:20 2007 UTC (17 years, 2 months ago) by michele
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.4: +6 -5 lines
Diff to previous 1.4 (colored)

Some code cleanups. Added one lint command, removed one unused function and
some other cosmetics.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Nov 27 15:02:34 2006 UTC (17 years, 6 months ago) by stevesk
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

use correct function name in error message; ok henning@

Revision 1.3 / (download) - annotate - [select for diffs], Tue Oct 31 07:16:45 2006 UTC (17 years, 7 months ago) by mcbride
Branch: MAIN
Changes since 1.2: +32 -5 lines
Diff to previous 1.2 (colored)

Time is not a secret.
Modulate the timer with an MD5 hash of the key to generate the sequence number.
Ensure that the most significant bit of the modulated value is 0 to prevent
wrapping of the sequence number.

ok michele@

Revision 1.2 / (download) - annotate - [select for diffs], Thu Oct 19 12:29:58 2006 UTC (17 years, 7 months ago) by mcbride
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Correct function name in log_debug() messages

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 16:11:58 2006 UTC (17 years, 7 months ago) by norby
Branch: MAIN

Welcome ripd
started by Michele Marchetto some time ago by using the imsg/three process framework
of ospfd. He implemented most of the daemon with a little help and guidance from
Claudio and I.

Currently the daemon is more or less complete, with the exception of key lifetime
and rollover.

Not yet connected to the builds.
OK claudio@

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.