OpenBSD CVS

CVS log for src/libexec/login_radius/raddauth.c


[BACK] Up to [local] / src / libexec / login_radius

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.31 / (download) - annotate - [select for diffs], Thu Mar 2 16:13:57 2023 UTC (15 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.30: +8 -4 lines
Diff to previous 1.30 (colored)

rad_recv: verify length field in received auth_hdr_t before using it.
Reported by Peter J. Philipp.  OK deraadt@

Revision 1.30 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:53 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: 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
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Sep 3 11:04:23 2016 UTC (7 years, 8 months ago) by gsoares
Branch: MAIN
CVS Tags: 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
Changes since 1.28: +7 -3 lines
Diff to previous 1.28 (colored)

convert to use readpassphrase() instead of DEPRECATED/getpass()
OK millert@

Revision 1.28 / (download) - annotate - [select for diffs], Mon Oct 5 17:31:17 2015 UTC (8 years, 7 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored)

Use explicit_bzero() instead of memset() for zeroing out secrets.
OK deraadt@

Revision 1.27 / (download) - annotate - [select for diffs], Fri Jan 16 06:39:50 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.26 / (download) - annotate - [select for diffs], Sun Aug 10 05:06:38 2014 UTC (9 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

Only need <stdint.h> and not all of <inttypes.h> here

Revision 1.25 / (download) - annotate - [select for diffs], Wed Nov 27 21:25:25 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.24: +5 -5 lines
Diff to previous 1.24 (colored)

unsigned char for ctype
ok okan kettenis

Revision 1.24 / (download) - annotate - [select for diffs], Tue Dec 4 02:24:47 2012 UTC (11 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.23: +1 -2 lines
Diff to previous 1.23 (colored)

remove some unnecessary sys/param.h inclusions

Revision 1.23 / (download) - annotate - [select for diffs], Fri Dec 14 14:23:25 2007 UTC (16 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: 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, OPENBSD_4_7_BASE, OPENBSD_4_7, 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.22: +21 -15 lines
Diff to previous 1.22 (colored)

Add radius-port login.conf variable to allow people to configure a
non-standard port name or number for use when connecting to radiusd.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Sep 20 21:28:09 2006 UTC (17 years, 8 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.21: +3 -2 lines
Diff to previous 1.21 (colored)

Recommit non-static array fix.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Aug 14 13:53:34 2006 UTC (17 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Fix typo introduced in rev 1.16; fixes "login" authentication style.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Nov 19 23:02:25 2005 UTC (18 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.19: +4 -4 lines
Diff to previous 1.19 (colored)

No longer need volatile since longjmp has been removed.
Ironically silences a gcc warning.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Nov 12 13:28:00 2005 UTC (18 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +2 -6 lines
Diff to previous 1.18 (colored)

use snprintf; ok cloder dhill@mindcry.org

Revision 1.18 / (download) - annotate - [select for diffs], Wed Mar 2 21:51:17 2005 UTC (19 years, 3 months ago) by cloder
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.17: +5 -5 lines
Diff to previous 1.17 (colored)

More network randomness.  PIDs on my machine are none of anyone else's
business.  Submitted by Bruno Rohee.  OK cloder@ millert@

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Sun Sep 12 03:46:55 2004 UTC (19 years, 8 months ago) by brad
Branch: OPENBSD_3_4
Changes since 1.14: +16 -4 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

MFC:
Fix by millert@

Verify packets from the server were md5'd with the same shared
secret we used in the request.

ok deraadt@

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Sat Sep 11 21:06:56 2004 UTC (19 years, 8 months ago) by brad
Branch: OPENBSD_3_5
Changes since 1.16: +16 -4 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

MFC:
Fix by millert@

Verify packets from the server were md5'd with the same shared
secret we used in the request.

ok deraadt@

Revision 1.17 / (download) - annotate - [select for diffs], Sat Sep 11 03:19:08 2004 UTC (19 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.16: +16 -4 lines
Diff to previous 1.16 (colored)

Verify packets from the server were md5'd with the same shared
secret we used in the request.  OK deraadt@

Revision 1.16 / (download) - annotate - [select for diffs], Wed Mar 10 21:30:27 2004 UTC (20 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE
Branch point for: OPENBSD_3_5
Changes since 1.15: +6 -5 lines
Diff to previous 1.15 (colored)

More checking for a NULL return value from getpass().  otto@ OK

Revision 1.15 / (download) - annotate - [select for diffs], Wed Mar 3 22:05:15 2004 UTC (20 years, 3 months ago) by jcs
Branch: MAIN
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

assign servtimeout to sa.sa_handler to actually use the alternate
radius server

ok millert

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jul 6 21:54:38 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE
Branch point for: OPENBSD_3_4
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

proto in scope

Revision 1.13 / (download) - annotate - [select for diffs], Sun Sep 29 03:23:01 2002 UTC (21 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.12: +25 -12 lines
Diff to previous 1.12 (colored)

BSD-licensed as per Stephen Diercouff of tfm associates

Revision 1.12 / (download) - annotate - [select for diffs], Sun Sep 29 00:54:49 2002 UTC (21 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.11: +0 -0 lines
Diff to previous 1.11 (colored)

re-add; license will be fixed by millert sometime tonight

Revision 1.11, Thu Sep 26 22:48:33 2002 UTC (21 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +1 -1 lines
FILE REMOVED

Makefile

Revision 1.10 / (download) - annotate - [select for diffs], Fri Sep 6 18:45:06 2002 UTC (21 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

ansi; ok millert pvalchev

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jun 28 01:14:37 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +6 -6 lines
Diff to previous 1.8 (colored)

minor indent cleanup

Revision 1.8 / (download) - annotate - [select for diffs], Wed May 22 06:35:44 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.7: +6 -4 lines
Diff to previous 1.7 (colored)

a bunch more strcpy -> strlcpy and sprintf -> snprintf

Revision 1.7 / (download) - annotate - [select for diffs], Fri Dec 7 23:29:06 2001 UTC (22 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.6: +13 -10 lines
Diff to previous 1.6 (colored)

Kill longjmp by not restarting system calls on receipt of SIGALRM.
We can then just check the flag to see that the alarm ran out.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Aug 18 18:56:39 2001 UTC (22 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored)

better handle things; spotted by millert

Revision 1.5 / (download) - annotate - [select for diffs], Sat Aug 18 18:31:21 2001 UTC (22 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

strlcpy invades the tree

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jul 26 20:47:44 2001 UTC (22 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Typo: radius-timout -> radius-timeout; noted by brad@

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jul 9 18:59:25 2001 UTC (22 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

Use socklen_t, not size_t for type of length arg to recvfrom()

Revision 1.2 / (download) - annotate - [select for diffs], Sun Jul 8 20:26:51 2001 UTC (22 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.1: +66 -62 lines
Diff to previous 1.1 (colored)

o make signal handler safe
o add some missing args to prototypes
o some KNF
o use memcpy() to copy random bytes into the vector instead of hand copying
o if servers files ends w/o a newline, alloc space and copy the line
o remove unused function argument "length" from parse_challenge()

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jul 8 17:56:33 2001 UTC (22 years, 10 months ago) by millert
Branch: MAIN

BSD auth module for radius authentication, from BSDi.

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.