OpenBSD CVS

CVS log for src/usr.bin/ssh/sshlogin.c


[BACK] Up to [local] / src / usr.bin / ssh

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.35 / (download) - annotate - [select for diffs], Sun Oct 18 11:32:02 2020 UTC (3 years, 6 months ago) by djm
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, 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, HEAD
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored)

use the new variant log macros instead of prepending __func__ and
appending ssh_err(r) manually; ok markus@

Revision 1.34 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:04 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (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.33 / (download) - annotate - [select for diffs], Mon Jul 9 21:26:02 2018 UTC (5 years, 10 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.32: +10 -7 lines
Diff to previous 1.32 (colored)

sshd: switch loginmsg to sshbuf API; ok djm@

Revision 1.32 / (download) - annotate - [select for diffs], Sat Dec 26 20:51:35 2015 UTC (8 years, 4 months ago) by guenther
Branch: MAIN
CVS Tags: 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
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

Use pread/pwrite instead separate lseek+read/write for lastlog.
Cast to off_t before multiplication to avoid truncation on ILP32

ok kettenis@ mmcc@

Revision 1.31 / (download) - annotate - [select for diffs], Tue Jan 20 23:14:00 2015 UTC (9 years, 3 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.30: +3 -3 lines
Diff to previous 1.30 (colored)

Reduce use of <sys/param.h> and transition to <limits.h> throughout.
ok djm markus

Revision 1.30 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:12 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (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.29 / (download) - annotate - [select for diffs], Tue Jul 15 15:54:14 2014 UTC (9 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored)

Add support for Unix domain socket forwarding.  A remote TCP port
may be forwarded to a local Unix domain socket and vice versa or
both ends may be a Unix domain socket.  This is a reimplementation
of the streamlocal patches by William Ahern from:
    http://www.25thandclement.com/~william/projects/streamlocal.html
OK djm@ markus@

Revision 1.28 / (download) - annotate - [select for diffs], Fri Jan 31 16:39:19 2014 UTC (10 years, 3 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

replace most bzero with explicit_bzero, except a few that cna be memset
ok djm dtucker

Revision 1.27 / (download) - annotate - [select for diffs], Tue Jan 11 06:06:09 2011 UTC (13 years, 4 months ago) by djm
Branch: MAIN
CVS Tags: 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.26: +3 -1 lines
Diff to previous 1.26 (colored)

fd leak on error paths; from zinovik@

Revision 1.26 / (download) - annotate - [select for diffs], Tue Sep 11 15:47:17 2007 UTC (16 years, 8 months ago) by gilles
Branch: MAIN
CVS Tags: 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.25: +2 -3 lines
Diff to previous 1.25 (colored)

use strcspn to properly overwrite '\n' in fgets returned buffer

ok pyr@, ray@, millert@, moritz@, chl@

Revision 1.13.6.1 / (download) - annotate - [select for diffs], Fri Oct 6 03:19:33 2006 UTC (17 years, 7 months ago) by brad
Branch: OPENBSD_3_8
Changes since 1.13: +17 -7 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

upgrade to OpenSSH 4.4

Revision 1.13.8.1 / (download) - annotate - [select for diffs], Sat Sep 30 04:06:51 2006 UTC (17 years, 7 months ago) by brad
Branch: OPENBSD_3_9
Changes since 1.13: +17 -7 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

upgrade to OpenSSH 4.4

Revision 1.25 / (download) - annotate - [select for diffs], Thu Aug 3 03:34:42 2006 UTC (17 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

almost entirely get rid of the culture of ".h files that include .h files"
ok djm, sort of ok stevesk
makes the pain stop in one easy step

Revision 1.24 / (download) - annotate - [select for diffs], Tue Aug 1 23:22:48 2006 UTC (17 years, 9 months ago) by stevesk
Branch: MAIN
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (colored)

move #include <stdio.h> out of includes.h

Revision 1.23 / (download) - annotate - [select for diffs], Wed Jul 26 02:35:17 2006 UTC (17 years, 9 months ago) by stevesk
Branch: MAIN
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored)

move #include <sys/param.h> out of includes.h

Revision 1.22 / (download) - annotate - [select for diffs], Sat Jul 22 20:48:23 2006 UTC (17 years, 9 months ago) by stevesk
Branch: MAIN
Changes since 1.21: +2 -1 lines
Diff to previous 1.21 (colored)

move #include <string.h> out of includes.h

Revision 1.21 / (download) - annotate - [select for diffs], Sat Jul 22 19:08:54 2006 UTC (17 years, 9 months ago) by stevesk
Branch: MAIN
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

move #include <time.h> out of includes.h

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jul 17 01:31:10 2006 UTC (17 years, 10 months ago) by stevesk
Branch: MAIN
Changes since 1.19: +4 -1 lines
Diff to previous 1.19 (colored)

move #include <unistd.h> out of includes.h

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jul 11 20:07:25 2006 UTC (17 years, 10 months ago) by stevesk
Branch: MAIN
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (colored)

move #include <errno.h> out of includes.h; ok markus@

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jul 9 15:15:11 2006 UTC (17 years, 10 months ago) by stevesk
Branch: MAIN
Changes since 1.17: +3 -1 lines
Diff to previous 1.17 (colored)

move #include <fcntl.h> out of includes.h

Revision 1.17 / (download) - annotate - [select for diffs], Sat Mar 25 18:36:15 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.16: +4 -4 lines
Diff to previous 1.16 (colored)

nicer size_t and time_t types

Revision 1.16 / (download) - annotate - [select for diffs], Sat Mar 25 13:17:03 2006 UTC (18 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.15: +1 -0 lines
Diff to previous 1.15 (colored)

Put $OpenBSD$ tags back (as comments) to replace the RCSID()s that
Theo nuked - our scripts to sync -portable need them in the files

Revision 1.15 / (download) - annotate - [select for diffs], Mon Mar 20 18:26:55 2006 UTC (18 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +1 -1 lines
Diff to previous 1.14 (colored)

annoying spacing fixes getting in the way of real diffs

Revision 1.14 / (download) - annotate - [select for diffs], Sun Mar 19 18:51:19 2006 UTC (18 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.13: +0 -1 lines
Diff to previous 1.13 (colored)

RCSID() can die

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Thu Aug 19 22:37:33 2004 UTC (19 years, 9 months ago) by brad
Branch: OPENBSD_3_4
Changes since 1.7: +57 -8 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

upgrade to OpenSSH 3.9

Revision 1.7.4.1 / (download) - annotate - [select for diffs], Thu Aug 19 04:13:28 2004 UTC (19 years, 9 months ago) by brad
Branch: OPENBSD_3_5
Changes since 1.7: +57 -8 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

upgrade to OpenSSH 3.9

Revision 1.13 / (download) - annotate - [select for diffs], Thu Aug 12 09:18:24 2004 UTC (19 years, 9 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_8_BASE, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Branch point for: OPENBSD_3_9, OPENBSD_3_8
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

typo in error message, spotted by moritz AT jodeit.org

Revision 1.12 / (download) - annotate - [select for diffs], Wed Aug 11 12:01:16 2004 UTC (19 years, 9 months ago) by djm
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

make store_lastlog_message() static to appease -Wall; ok markus

Revision 1.11 / (download) - annotate - [select for diffs], Wed Aug 11 11:59:22 2004 UTC (19 years, 9 months ago) by djm
Branch: MAIN
Changes since 1.10: +13 -2 lines
Diff to previous 1.10 (colored)

check that lseek went were we told it to; ok markus@

Revision 1.10 / (download) - annotate - [select for diffs], Sat Jul 17 05:31:41 2004 UTC (19 years, 10 months ago) by dtucker
Branch: MAIN
Changes since 1.9: +39 -1 lines
Diff to previous 1.9 (colored)

Move "Last logged in at.." message generation to the monitor, right
before recording the new login.  Fixes missing lastlog message when
/var/log/lastlog is not world-readable and incorrect datestamp when
multiple sessions are used (bz #463);  much assistance & ok markus@

Revision 1.9 / (download) - annotate - [select for diffs], Sat Jul 3 05:11:33 2004 UTC (19 years, 10 months ago) by dtucker
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Use '\0' not 0 for string; ok djm@, deraadt@

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jun 21 17:36:31 2004 UTC (19 years, 10 months ago) by avsm
Branch: MAIN
Changes since 1.7: +6 -6 lines
Diff to previous 1.7 (colored)

make ssh -Wshadow clean, no functional changes
markus@ ok

Revision 1.5.4.2 / (download) - annotate - [select for diffs], Thu Mar 4 18:18:17 2004 UTC (20 years, 2 months ago) by brad
Branch: OPENBSD_3_3
Changes since 1.5.4.1: +0 -0 lines
Diff to previous 1.5.4.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

upgrade to OpenSSH 3.8upgrade to OpenSSH 3.8upgrade to OpenSSH 3.8

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Tue Sep 16 21:20:29 2003 UTC (20 years, 8 months ago) by brad
Branch: OPENBSD_3_2
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

upgrade to OpenSSH 3.7

Revision 1.5.4.1 / (download) - annotate - [select for diffs], Tue Sep 16 20:50:44 2003 UTC (20 years, 8 months ago) by brad
Branch: OPENBSD_3_3
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored)

upgrade to OpenSSH 3.7

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jun 12 07:57:38 2003 UTC (20 years, 11 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_4_BASE
Branch point for: OPENBSD_3_5, OPENBSD_3_4
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

typos; dtucker at zip.com.au

Revision 1.6 / (download) - annotate - [select for diffs], Tue Apr 8 20:21:29 2003 UTC (21 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

rename log() into logit() to avoid name conflict.  markus ok, from netbsd

Revision 1.2.4.3 / (download) - annotate - [select for diffs], Fri Oct 11 14:53:07 2002 UTC (21 years, 7 months ago) by miod
Branch: OPENBSD_3_0
Changes since 1.2.4.2: +2 -2 lines
Diff to previous 1.2.4.2 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Update to OpenSSH 3.5

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Fri Oct 11 14:51:53 2002 UTC (21 years, 7 months ago) by miod
Branch: OPENBSD_3_1
Changes since 1.3.2.1: +2 -2 lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Update to OpenSSH 3.5

Revision 1.5 / (download) - annotate - [select for diffs], Thu Aug 29 15:57:25 2002 UTC (21 years, 8 months ago) by stevesk
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_2_BASE
Branch point for: OPENBSD_3_3, OPENBSD_3_2
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

pass addrlen with sockaddr *; from Hajimu UMEMOTO <ume@FreeBSD.org>
NOTE: there are also p-specific parts to this patch. ok markus@

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Wed Jun 26 18:22:37 2002 UTC (21 years, 10 months ago) by miod
Branch: OPENBSD_3_0
Changes since 1.2.4.1: +3 -6 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored)

There was an update to OpenSSH 3.4, and people rejoiced.

Revision 1.3.2.1 / (download) - annotate - [select for diffs], Wed Jun 26 15:30:39 2002 UTC (21 years, 10 months ago) by jason
Branch: OPENBSD_3_1
Changes since 1.3: +3 -6 lines
Diff to previous 1.3 (colored)

Pull in OpenSSH-3.4

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jun 23 03:30:17 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +3 -6 lines
Diff to previous 1.3 (colored)

various KNF and %d for unsigned

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Sat Mar 9 00:20:45 2002 UTC (22 years, 2 months ago) by miod
Branch: OPENBSD_2_9
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Merge OpenSSH 3.1, keeping /etc as configuration files directory.
(i.e. OpenSSH 3.1 + openbsd29_3.1.patch)

Revision 1.1.4.4 / (download) - annotate - [select for diffs], Fri Mar 8 17:04:43 2002 UTC (22 years, 2 months ago) by brad
Branch: OPENBSD_2_8
Changes since 1.1.4.3: +2 -2 lines
Diff to previous 1.1.4.3 (colored) next main 1.2 (colored)

Merge OpenSSH 3.1.

Revision 1.2.4.1 / (download) - annotate - [select for diffs], Thu Mar 7 17:37:48 2002 UTC (22 years, 2 months ago) by jason
Branch: OPENBSD_3_0
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

Update to OpenSSH-3.1 on 3.0-stable branch

Revision 1.3 / (download) - annotate - [select for diffs], Wed Dec 19 07:18:56 2001 UTC (22 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE
Branch point for: OPENBSD_3_1
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

basic KNF done while i was looking for something else

Revision 1.1.4.3 / (download) - annotate - [select for diffs], Thu Sep 27 00:15:43 2001 UTC (22 years, 7 months ago) by miod
Branch: OPENBSD_2_8
Changes since 1.1.4.2: +0 -0 lines
Diff to previous 1.1.4.2 (colored)

Pull in OpenSSH 2.9.9 to the 2.8 branch.

Revision 1.1.4.2 / (download) - annotate - [select for diffs], Mon May 7 21:09:38 2001 UTC (23 years ago) by jason
Branch: OPENBSD_2_8
Changes since 1.1.4.1: +1 -11 lines
Diff to previous 1.1.4.1 (colored)

Pull in OpenSSH-2.9 to 2.8 branch.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Mar 24 16:43:27 2001 UTC (23 years, 1 month ago) by stevesk
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_2_9_BASE
Branch point for: OPENBSD_3_0, OPENBSD_2_9
Changes since 1.1: +1 -11 lines
Diff to previous 1.1 (colored)

unused; remove dup comments.  ok markus@

Revision 1.1.4.1 / (download) - annotate - [select for diffs], Wed Mar 21 19:46:31 2001 UTC (23 years, 2 months ago) by jason
Branch: OPENBSD_2_8
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

Pull in OpenSSH-2.5.2 for 2.8 branch.

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Wed Mar 21 18:53:17 2001 UTC (23 years, 2 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

Pull in OpenSSH-2.5.2 for 2.7 branch.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 4 01:46:30 2001 UTC (23 years, 2 months ago) by djm
Branch: MAIN
Branch point for: OPENBSD_2_8, OPENBSD_2_7

Rename pty.[ch] -> sshpty.[ch] and login.[ch] to sshlogin.[ch] to avoid
header conflicts in portable; ok markus@

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.