summaryrefslogtreecommitdiff
path: root/openbsd-compat/bsd-cygwin_util.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix signedness bug in Cygwin codeCorinna Vinschen2022-01-211-2/+2
| | | | | | | | The Cygwin-specific pattern match code has a bug. It checks the size_t value returned by mbstowcs for being < 0. The right thing to do is to check against (size_t) -1. Fix that. Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
* Replace alloca with xcalloc.Darren Tucker2019-03-131-3/+8
| | | | | | The latter checks for memory exhaustion and integer overflow and may be at a less predictable place. Sanity check by vinschen at redhat.com, ok djm@
* Use Cygwin-specific matching only for users+groups.Darren Tucker2019-03-121-10/+8
| | | | Patch from vinschen at redhat.com, updated a little by me.
* Cygwin: implement case-insensitive Unicode user and group name matchingCorinna Vinschen2019-02-221-0/+146
| | | | | | | | | | The previous revert enabled case-insensitive user names again. This patch implements the case-insensitive user and group name matching. To allow Unicode chars, implement the matcher using wchar_t chars in Cygwin-specific code. Keep the generic code changes as small as possible. Cygwin: implement case-insensitive Unicode user and group name matching Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
* Revert unintended parts of previous commit.Darren Tucker2019-02-221-146/+0
|
* Revert "[auth.c] On Cygwin, refuse usernames that have differences in case"Corinna Vinschen2019-02-221-0/+146
| | | | | | This reverts commit acc9b29486dfd649dfda474e5c1a03b317449f1c. Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
* cygwin: add missing stdarg.h includeCorinna Vinschen2018-08-131-0/+1
| | | | | | | Further header file standarization in Cygwin uncovered a lazy indirect include in bsd-cygwin_util.c Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
* Strip trailing whitespace.Darren Tucker2016-08-021-2/+2
| | | | | Mechanically strip trailing whitespace on files not synced with OpenBSD (or in the case of bsd-snprint.c, rsync).
* Replace strcpy with strlcpy.Darren Tucker2015-06-021-1/+1
| | | | ok djm, sanity check by Corinna Vinschen.
* - (djm) [configure.ac openbsd-compat/bsd-cygwin_util.c]Damien Miller2014-05-271-0/+16
| | | | | | [openbsd-compat/bsd-cygwin_util.h] On Cygwin, determine privilege separation user at runtime, since it may need to be a domain account. Patch from Corinna Vinschen.
* - (dtucker) [M auth-chall.c auth-krb5.c auth-pam.c cipher-aes.c cipher-ctr.cDarren Tucker2013-06-021-1/+1
| | | | | | | | groupaccess.c loginrec.c monitor.c monitor_wrap.c session.c sshd.c sshlogin.c uidswap.c openbsd-compat/bsd-cygwin_util.c openbsd-compat/getrrsetbyname-ldns.c openbsd-compat/port-aix.c openbsd-compat/port-linux.c] Replace portable-specific instances of xfree with the equivalent calls to free.
* - (dtucker) [openbsd-compat/bsd-cygwin_util.{c,h}] Don't include windows.hDarren Tucker2013-04-011-8/+3
| | | | | to avoid conflicting definitions of __int64, adding the required bits. Patch from Corinna Vinschen.
* - (djm) [openbsd-compat/bsd-cygwin_util.c] Add PROGRAMFILES to list ofDamien Miller2012-02-141-0/+1
| | | | preserved Cygwin environment variables; from Corinna Vinschen
* - (djm) [ openbsd-compat/bsd-cygwin_util.c openbsd-compat/bsd-cygwin_util.h]Damien Miller2011-08-171-16/+1
| | | | binary_pipe is no longer required on Cygwin; patch from Corinna Vinschen
* - (djm) [openbsd-compat/bsd-cygwin_util.c] Reduce the set of environmentDamien Miller2010-02-281-9/+0
| | | | variables copied into sshd child processes. From vinschen AT redhat.com
* - (dtucker) [auth-passwd.c auth1.c auth2-kbdint.c auth2-none.c auth2-passwd.cDarren Tucker2009-03-081-124/+0
| | | | | | auth2-pubkey.c session.c openbsd-compat/bsd-cygwin_util.{c,h} openbsd-compat/daemon.c] Remove support for Windows 95/98/ME and very old version of Cygwin. Patch from vinschen at redhat com.
* - (dtucker) [openbsd-compat/bsd-cygwin_util.c] Remove long-unneeded compatDarren Tucker2008-07-171-39/+1
| | | | | code, replace with equivalent cygwin library call. Patch from vinschen at redhat.comi, ok djm@.
* - (dtucker) [openbsd-compat/bsd-cygwin_util.c] Fix implict declarationDarren Tucker2006-09-011-7/+7
| | | | warnings for binary_open and binary_close. Patch from Corinna Vinschen.
* - (dtucker) [openbsd-compat/bsd-cygwin_util.c] Add headers required to compileDarren Tucker2006-08-051-2/+7
| | | | on Cygwin.
* - (dtucker) [auth-pam.c groupaccess.c monitor.c monitor_wrap.c scard-opensc.cDarren Tucker2006-05-041-1/+1
| | | | | | | session.c ssh-rand-helper.c sshd.c openbsd-compat/bsd-cygwin_util.c openbsd-compat/setproctitle.c] Convert malloc(foo*bar) -> calloc(foo,bar) in Portable-only code; since calloc zeros, remove now-redundant memsets. Also add a couple of sanity checks. With & ok djm@
* - deraadt@cvs.openbsd.org 2006/03/19 18:51:18Damien Miller2006-03-261-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | [atomicio.c auth-bsdauth.c auth-chall.c auth-krb5.c auth-options.c] [auth-pam.c auth-passwd.c auth-rh-rsa.c auth-rhosts.c auth-rsa.c] [auth-shadow.c auth-skey.c auth.c auth1.c auth2-chall.c] [auth2-hostbased.c auth2-kbdint.c auth2-none.c auth2-passwd.c] [auth2-pubkey.c auth2.c authfd.c authfile.c bufaux.c buffer.c] [canohost.c channels.c cipher-3des1.c cipher-acss.c cipher-aes.c] [cipher-bf1.c cipher-ctr.c cipher.c cleanup.c clientloop.c compat.c] [compress.c deattack.c dh.c dispatch.c dns.c entropy.c fatal.c] [groupaccess.c hostfile.c includes.h kex.c kexdh.c kexdhc.c] [kexdhs.c kexgex.c kexgexc.c kexgexs.c key.c log.c loginrec.c] [loginrec.h logintest.c mac.c match.c md-sha256.c md5crypt.c misc.c] [monitor.c monitor_fdpass.c monitor_mm.c monitor_wrap.c msg.c] [nchan.c packet.c progressmeter.c readconf.c readpass.c rsa.c] [scard.c scp.c servconf.c serverloop.c session.c sftp-client.c] [sftp-common.c sftp-glob.c sftp-server.c sftp.c ssh-add.c] [ssh-agent.c ssh-dss.c ssh-keygen.c ssh-keyscan.c ssh-keysign.c] [ssh-rand-helper.c ssh-rsa.c ssh.c sshconnect.c sshconnect1.c] [sshconnect2.c sshd.c sshlogin.c sshpty.c sshtty.c ttymodes.c] [uidswap.c uuencode.c xmalloc.c openbsd-compat/bsd-arc4random.c] [openbsd-compat/bsd-closefrom.c openbsd-compat/bsd-cygwin_util.c] [openbsd-compat/bsd-getpeereid.c openbsd-compat/bsd-misc.c] [openbsd-compat/bsd-nextstep.c openbsd-compat/bsd-snprintf.c] [openbsd-compat/bsd-waitpid.c openbsd-compat/fake-rfc2553.c] RCSID() can die
* - (dtucker) [openbsd-compat/bsd-cygwin_util.c] Make loop counter unsignedDarren Tucker2006-02-121-2/+2
| | | | to silence compiler warning, from vinschen at redhat.com.
* - (dtucker) [openbsd-compat/bsd-cygwin_util.c] Ensure sufficient memoryDarren Tucker2005-05-251-3/+4
| | | | | allocation when retrieving core Windows environment. Add CYGWIN variable to propagated variables. Patch from vinschen at redhat.com, ok djm@
* - (dtucker) [session.c openbsd-compat/bsd-cygwin_util.{c,h}] Bug #915: onlyDarren Tucker2004-08-301-2/+52
| | | | | copy required environment variables on Cygwin. Patch from vinschen at redhat.com, ok djm@
* - (djm) [openbsd-compat/bsd-cygwin_util.c] Recent versions of Cygwin allowDamien Miller2004-04-181-2/+10
| | | | | change of user context without a password, so relax auth method restrictions; from vinschen AT redhat.com; ok dtucker@
* - (dtucker) [openbsd-compat/bsd-cygwin_util.c openbsd-compat/bsd-cygwin_util.h]Darren Tucker2003-08-071-3/+1
| | | | Remove incorrect filenames from comments (file names are in Id tags).
* - (djm) Big KNF on openbsd-compat/Damien Miller2003-05-191-45/+48
|
* - (bal) Update ssh-host-config and minor rewrite of bsd-cygwin_util.cBen Lindstrom2002-11-091-12/+60
| | | | | ntsec now default if cygwin version beginning w/ version 56. Patch by Corinna Vinschen <vinschen@redhat.com>
* - (stevesk) bsd-cygwin_util.[ch] BSD license from Corinna VinschenKevin Steves2002-04-151-5/+21
|
* - (djm) Apply Cygwin pointer deref fix from Corinna VinschenDamien Miller2001-12-291-3/+5
| | | | <vinschen@redhat.com> Could be abused to guess valid usernames
* [contrib/cygwin/README, openbsd-compat/bsd-cygwin_util.c,Tim Rice2001-11-261-1/+23
| | | | | | | openbsd-compat/bsd-cygwin_util.h, openbsd-compat/daemon.c] Allow SSHD to install as service under WIndows 9x/Me [configure.ac] Fix to allow linking against PCRE on Cygwin Patches by Corinna Vinschen <vinschen@redhat.com>
* - (bal) Allow sshd to switch user context without password for Cygwin.Ben Lindstrom2001-07-181-12/+35
| | | | Patch by Corinna Vinschen <vinschen@redhat.com>
* - Cygwin sftp/sftp-server binary mode patch from Corinna VinschenDamien Miller2001-04-141-2/+1
| | | | <vinschen@redhat.com>
* - (djm) Fix my breaking of cygwin builds, Patch from Corinna VinschenDamien Miller2001-02-181-2/+15
| | | | <vinschen@redhat.com> and myself.
* - (djm) Add CVS Id's to files that we have missedDamien Miller2001-02-091-1/+3
|
* - (bal) Reorder. Move all bsd-*, fake-*, next-*, and cygwin* stuff toBen Lindstrom2001-01-311-0/+105
openbsd-compat/. And resolve all ./configure and Makefile.in issues assocated. Logic: * All OpenBSD functions should have the same filename as in the OpenBSD tree * All 'home brew' functions have bsd-* infront of them. * All 'not really implemented' functions have fake-* infront of them.