summaryrefslogtreecommitdiff
path: root/openbsd-compat/readpassphrase.c
AgeCommit message (Collapse)Author
2018-02-11Move signal compat code into bsd-signal.{c,h}Darren Tucker
2016-10-19Import readpassphrase.c rev 1.26.Darren Tucker
Author: miller@openbsd.org: Avoid generate SIGTTOU when restoring the terminal mode. If we get SIGTTOU it means the process is not in the foreground process group which, in most cases, means that the shell has taken control of the tty. Requiring the user the fg the process in this case doesn't make sense and can result in both SIGTSTP and SIGTTOU being sent which can lead to the process being suspended again immediately after being brought into the foreground.
2016-10-19Import readpassphrase.c rev 1.25.Darren Tucker
Wrap <readpassphrase.h> so internal calls go direct and readpassphrase is weak. (DEF_WEAK is a no-op in portable.)
2016-10-13Import rev 1.24 from OpenBSD.Darren Tucker
revision 1.24 date: 2013/11/24 23:51:29; author: deraadt; state: Exp; lines: +4 -4; most obvious unsigned char casts for ctype ok jca krw ingo
2016-10-13Import rev 1.23 from OpenBSD. Fixes bz#2619.Darren Tucker
revision 1.23 date: 2010/05/14 13:30:34; author: millert; state: Exp; lines: +41 -39; Defer installing signal handlers until echo is disabled so that we get suspended normally when not the foreground process. Fix potential infinite loop when restoring terminal settings if process is in the background when restore occurs. OK miod@
2016-10-13If we don't have TCSASOFT, define it to zero.Darren Tucker
This makes it a no-op when we use it below, which allows us to re-sync those lines with the upstream and make future updates easier.
2015-02-25Move definition of _NSIG.Darren Tucker
_NSIG is only unsed in one file, so move it there prevent redefinition warnings reported by Kevin Brott.
2010-01-13 - (dtucker) [openbsd-compat/readpassphrase.c] Update to OpenBSD's r1.22.Darren Tucker
Fixes bz #1590, where sometimes you could not interrupt a connection while ssh was prompting for a passphrase or password.
2010-01-13 - (dtucker) [openbsd-compat/readpassphrase.c] Update to OpenBSD's r1.21.Darren Tucker
2010-01-13 - (dtucker) [openbsd-compat/readpassphrase.c] Resync against OpenBSD's ↵Darren Tucker
r1.18: missing restore of SIGTTOU and some whitespace.
2006-07-24 - (djm) [acss.c auth-krb5.c auth-options.c auth-pam.c auth-shadow.c]Damien Miller
[canohost.c channels.c cipher-acss.c defines.h dns.c gss-genr.c] [gss-serv-krb5.c gss-serv.c log.h loginrec.c logintest.c readconf.c] [servconf.c ssh-keygen.c ssh-keyscan.c ssh-keysign.c ssh-rand-helper.c] [ssh.c sshconnect.c sshd.c openbsd-compat/bindresvport.c] [openbsd-compat/bsd-arc4random.c openbsd-compat/bsd-misc.c] [openbsd-compat/getrrsetbyname.c openbsd-compat/glob.c] [openbsd-compat/mktemp.c openbsd-compat/port-linux.c] [openbsd-compat/port-tun.c openbsd-compat/readpassphrase.c] [openbsd-compat/setproctitle.c openbsd-compat/xmmap.c] make the portable tree compile again - sprinkle unistd.h and string.h back in. Don't redefine __unused, as it turned out to be used in headers on Linux, and replace its use in auth-pam.c with ARGSUSED
2006-07-12 - (dtucker) [loginrec.c openbsd-compat/xmmap.c openbsd-compat/bindresvport.cDarren Tucker
openbsd-compat/glob.c openbsd-compat/mktemp.c openbsd-compat/port-tun.c openbsd-compat/readpassphrase.c openbsd-compat/strtonum.c] Include <errno.h>.
2006-07-10 - (djm) [loginrec.c ssh-rand-helper.c sshd.c openbsd-compat/glob.c]Damien Miller
[openbsd-compat/mktemp.c openbsd-compat/openbsd-compat.h] [openbsd-compat/port-tun.c openbsd-compat/readpassphrase.c] [openbsd-compat/xcrypt.c] Fix includes.h fallout, mainly fcntl.h
2006-03-15 - (djm) [auth-pam.c clientloop.c includes.h monitor.c session.c]Damien Miller
[sftp-client.c ssh-keysign.c ssh.c sshconnect.c sshconnect2.c] [sshd.c openbsd-compat/bsd-misc.c openbsd-compat/bsd-openpty.c] [openbsd-compat/glob.c openbsd-compat/mktemp.c] [openbsd-compat/readpassphrase.c] Lots of include fixes for OpenSolaris
2005-11-10 - (dtucker) [openbsd-compat/readpassphrase.c] Update from OpenBSD 1.16 -> 1.18.Darren Tucker
2005-11-10 - (dtucker) [openbsd-compat/{LOTS}] Move the "OPENBSD ORIGINAL" markers toDarren Tucker
after the copyright notices. Having them at the top next to the CVSIDs guarantees a conflict for each and every sync.
2005-05-24restore portable-specific tweakDamien Miller
2005-05-24nicer fix from millert@Damien Miller
2005-05-24 - (djm) [openbsd-compat/readpassphrase.c] bz #950: Retry tcsetattr to ensureDamien Miller
terminal modes are reset correctly. Fix from peak AT argo.troja.mff.cuni.cz; "looks ok" dtucker@
2003-11-24 - (djm) Annotate OpenBSD-derived files in openbsd-compat/ with originalDamien Miller
source file path (in OpenBSD tree).
2003-08-25 - (bal) openbsd-compat/ OpenBSD updates. Mostly licensing, ansificationsBen Lindstrom
and minor fixes.
2002-09-11 - (djm) Sync openbsd-compat with OpenBSD -currentDamien Miller
2002-05-01 - (djm) Fix readpassphase compilation for systems which have itDamien Miller
2002-02-14oops, remove some debugging junk that crept inDamien Miller
2002-02-13unbreakDamien Miller
2002-02-13 - (djm) Sync openbsd-compat with OpenBSD CVS tooDamien Miller
2001-10-25 - (bal) Use VDISABLE if _POSIX_VDISABLE is set in readpassphrase.c. PatchBen Lindstrom
by todd@
2001-06-29 - (bal) Fixed _DISABLE_VPOSIX in readpassphrase.c.Ben Lindstrom
2001-06-27 - (djm) Sync with -current openbsd-compat/readpassphrase.c:Damien Miller
- djm@cvs.openbsd.org 2001/06/27 13:23:30 typo, spotted by Tom Holroyd <tomh@po.crl.go.jp>; ok deraadt@
2001-06-25 - (djm) Bring in readpassphrase() from OpenBSD libc. Compiles OK on Linux andDamien Miller
Solaris