summaryrefslogtreecommitdiffstats
path: root/crypto/openssh/session.c
Commit message (Collapse)AuthorAgeFilesLines
* Resolve conflictsdes2004-10-281-36/+82
|
* Resolve conflicts.des2004-04-201-2/+10
|
* Resolve conflicts.des2004-02-261-100/+191
|
* Resolve conflicts and remove obsolete files.des2004-01-071-117/+153
| | | | Sponsored by: registrar.no
* Correct more cases of allocation size bookkeeping being updated beforenectar2003-09-171-7/+9
| | | | | | | calling functions which can potentially fail and cause cleanups to be invoked. Submitted by: Solar Designer <solar@openwall.com>
* Resolve conflicts.des2003-04-231-14/+43
|
* Back out a lastlog-related change which is no longer relevant.des2002-12-141-1/+1
|
* Resolve conflicts.des2002-10-291-27/+82
|
* sshd didn't handle actual size of struct sockaddr correctly,ume2002-09-091-4/+4
| | | | | | | | | | | | | | | | and did copy it as long as just size of struct sockaddr. So, If connection is via IPv6, sshd didn't log hostname into utmp correctly. This problem occured only under FreeBSD because of our hack. However, this is potential problem of OpenSSH-portable, and they agreed to fix this. Though, there is no fixed version of OpenSSH-portable available yet, since this problem is serious for IPv6 users, I commit the fix. Reported by: many people Reviewed by: current@ and stable@ (no objection) MFC after: 3 days
* Do login cap calls _before_ descriptors are hardly closed because close mayache2002-08-051-1/+8
| | | | | | invalidate login cap descriptor. Reviewed by: des
* Problems addressed:ache2002-07-261-2/+21
| | | | | | | | | 1) options.print_lastlog was not honored. 2) "Last login: ..." was printed twice. 3) "copyright" was not printed 4) No newline was before motd. Reviewed by: maintainer's silence in 2 weeks (with my constant reminders)
* Resolve conflicts.des2002-06-291-14/+27
| | | | Sponsored by: DARPA, NAI Labs
* Make sure the environment variables set by setusercontext() are passed ondes2002-06-291-9/+23
| | | | | | | to the child process. Reviewed by: ache Sponsored by: DARPA, NAI Labs
* Forcibly revert to mainline.des2002-06-271-260/+222
|
* Correctly export the environment variables set by setusercontext().des2002-06-231-7/+5
| | | | Sponsored by: DARPA, NAI Labs
* Resolve conflicts. Known issues:des2002-06-231-113/+192
| | | | | | | | | | | - sshd fails to set TERM correctly. - privilege separation may break PAM and is currently turned off. - man pages have not yet been updated I will have these issues resolved, and privilege separation turned on by default, in time for DP2. Sponsored by: DARPA, NAI Labs
* 1) Proberly conditionalize PAM "last login" printout.ache2002-04-231-14/+11
| | | | | | | | | | 2) For "copyright" case #ifdef HAVE_LOGIN_CAP was placed on too big block, narrow it down. 3) Don't check the same conditions twice (for "copyright" and "welcome"), put them under single block. 4) Print \n between "copyright" and "welcome" as our login does. Reviewed by: des (1)
* Don't report last login time in PAM case. (perforce change 10057)des2002-04-221-4/+6
| | | | Sponsored by: DARPA, NAI Labs
* Move LOGIN_CAP calls before all file descriptors are closed hard, since someache2002-04-211-2/+15
| | | | | | descriptors may be used by LOGIN_CAP internally, add login_close(). Use "nocheckmail" LOGIN_CAP capability too like our login does.
* Fix TZ & TERM handling for use_login case of rev. 1.24ache2002-04-201-4/+6
|
* 1) Surprisingly, "CheckMail" handling code completely removed from thisache2002-04-201-2/+23
| | | | | | | version, so documented "CheckMail" option exists but does nothing. Bring it back to life adding code back. 2) Cosmetique. Reduce number of args in do_setusercontext()
* 1) Fix overlook in my prev. commit - forget HAVE_ prefix in one place in oldache2002-04-201-4/+11
| | | | | | | code merge. 2) In addition honor "timezone" and "term" capabilities from login.conf, not overwrite them once they set (they are TZ and TERM variables).
* Please repeat after me: setusercontext() modifies _current_ environment, butache2002-04-201-24/+58
| | | | | | | | | | sshd uses separate child_env. So, to make setusercontext() really does something, environment must be switched before call and passed to child_env back after it. The error here was that modified environment not passed back to child_env, so all variables that setusercontext() adds are lost, including ones from ~/.login_conf
* Fix some warnings. Don't record logins twice in USE_PAM case. Stripdes2002-04-141-4/+22
| | | | | | | "/dev/" off the tty name before passing it to auth_ttyok or PAM. Inspired by: dinoex Sponsored by: DARPA, NAI Labs
* Align for const poisoning in -lutil.ru2002-04-081-1/+1
|
* Fix conflicts.des2002-03-181-737/+618
|
* Use login_getpwclass() instead of login_getclass() so that defaultgreen2002-02-271-1/+1
| | | | | | | mapping of user login classes works. Obtained from: TrustedBSD project Sponsored by: DARPA, NAI Labs
* Do not pass user-defined environmental variables to /usr/bin/login.nectar2001-12-031-0/+2
| | | | | Obtained from: OpenBSD Approved by: green
* In the "UseLogin yes" case we need env to be NULL to make sure itdwmalone2001-11-191-1/+1
| | | | | | | | will be correctly initialised. PR: 32065 Tested by: The Anarcat <anarcat@anarcat.dyndns.org> MFC after: 3 days
* Switch to the user's uid before attempting to unlink the auth forwardinggreen2001-06-081-15/+29
| | | | | | file, nullifying the effects of a race. Obtained from: OpenBSD
* Fix conflicts for OpenSSH 2.9.green2001-05-041-258/+281
|
* Reenable the SIGPIPE signal handler default in all cases for spawnedgreen2001-03-111-2/+6
| | | | sessions.
* Actually propagate back to the rest of the application that a commandgreen2001-01-211-1/+1
| | | | | | was specified when using -t mode with the SSH client. Submitted by: Dima Dorfman <dima@unixfreak.org>
* Update to OpenSSH 2.3.0 with FreeBSD modifications. OpenSSH 2.3.0green2000-12-051-14/+86
| | | | | | | | | | | | | | | | | new features description elided in favor of checking out their website. Important new FreeBSD-version stuff: PAM support has been worked in, partially from the "Unix" OpenSSH version, and a lot due to the work of Eivind Eklend, too. This requires at least the following in pam.conf: sshd auth sufficient pam_skey.so sshd auth required pam_unix.so try_first_pass sshd session required pam_permit.so Parts by: Eivind Eklend <eivind@FreeBSD.org>
* Resolve conflicts and update for OpenSSH 2.2.0kris2000-09-101-280/+399
| | | | Reviewed by: gshapiro, peter, green
* ttyname was not being passed into do_login(), so we were erroneously pickingkris2000-09-041-3/+3
| | | | | | up the function definition from unistd.h instead. Use s->tty instead. Submitted by: peter
* Err, we weren't even compiling auth1.c with LOGIN_CAP at all. Guess nobodykris2000-09-021-1/+0
| | | | was using this feature.
* Fix syntax error in previous commit.kris2000-06-111-2/+3
| | | | Submitted by: Udo Schweigert <ust@cert.siemens.de>
* Fix security botch in "UseLogin Yes" case: commands are executed withkris2000-06-101-0/+4
| | | | | | uid 0. Obtained from: OpenBSD
* Bring vendor patches onto the main branch, and resolve conflicts.kris2000-06-031-13/+31
|
* Unbreak Kerberos5 compilation. This still remains untested.kris2000-05-171-0/+4
| | | | Noticed by: obrien
* Resolve conflicts and update for FreeBSD.kris2000-05-151-8/+242
|
* Initial import of OpenSSH v2.1.kris2000-05-151-0/+1516
OpenPOWER on IntegriCloud