Damien Miller
66177929ae
spacing
2007-06-11 12:52:24 +10:00
Darren Tucker
2ac529b505
- (dtucker) [openbsd-compat/xmmap.c] Include stdlib.h for mkstemp prototype.
2007-04-29 14:02:43 +10:00
Darren Tucker
cc40d5ecdf
- (dtucker) [configure.ac openbsd-compat/getrrsetbyname.c] Bug #1299 : Use the
...
platform's _res if it has one. Should fix problem of DNSSEC record lookups
on NetBSD as reported by Curt Sampson.
2007-04-29 13:58:06 +10:00
Darren Tucker
781e7a28d0
- (dtucker) [openbsd-compat/bsd-misc.c] Include unistd.h and sys/types.h
...
for select(2) prototype.
2007-04-29 12:06:55 +10:00
Tim Rice
99203ec48b
20070326
...
- (tim) [auth.c configure.ac defines.h session.c openbsd-compat/port-uw.c
openbsd-compat/port-uw.h openbsd-compat/xcrypt.c] Rework libiaf test/defines
to account for IRIX having libiaf but not set_id(). Patch with & ok dtucker@
2007-03-26 09:35:28 -07:00
Darren Tucker
164aa30e46
- (dtucker) [configure.ac openbsd-compat/bsd-getpeereid.c] Bug #1287 : Use
...
getpeerucred to implement getpeereid (currently only Solaris 10 and up).
Patch by Jan.Pechanec at Sun.
2007-03-21 21:39:57 +11:00
Darren Tucker
fd30986c92
- (dtucker) [openbsd-compat/openssl-compat.h] Bug #1291 : Work around a
...
bug in OpenSSL 0.9.8e that prevents aes256-ctr, aes192-ctr and arcfour256
ciphers from working correctly (disconnects with "Bad packet length"
errors) as found by Ben Harris. ok djm@
2007-03-05 18:25:20 +11:00
Darren Tucker
89ee69e3c6
- (dtucker) [openbsd-compat/getrrsetbyname.c] Don't attempt to calloc
...
an array for signatures when there are none since "calloc(0, n) returns
NULL on some platforms (eg Tru64), which is explicitly permitted by
POSIX. Diagnosis and patch by svallet genoscope.cns.fr.
2007-02-19 22:56:55 +11:00
Darren Tucker
07877ca680
- (dtucker) [openbsd-compat/bsd-snprintf.c] Static declarations for public
...
library interfaces aren't very helpful. Fix up the DOPR_OUTCH macro
so it works properly and modify its callers so that they don't pre or
post decrement arguments that are conditionally evaluated. While there,
put SNPRINTF_CONST back as it prevents build failures in some
configurations. ok djm@ (for most of it)
2007-01-24 00:07:29 +11:00
Damien Miller
742cc1c194
- (djm) [openbsd-compat/bsd-snprintf.c] Fix integer overflow in return
...
value of snprintf replacement, similar to bugs in various libc
implementations. This overflow is not exploitable in OpenSSH.
While I'm fiddling with it, make it a fair bit faster by inlining the
append-char routine; ok dtucker@
2007-01-14 21:20:30 +11:00
Damien Miller
be6db83462
- (djm) [bsd-asprintf.c] Better test for bad vsnprintf lengths; ok dtucker@
2006-12-05 22:58:09 +11:00
Darren Tucker
4d13ecea54
- (dtucker) [openbsd-compat/port-solaris.c] Bug #1255 : Make only hwerr
...
events fatal in Solaris process contract support and tell it to signal
only processes in the same process group when something happens.
Based on information from andrew.benham at thus.net and similar to
a patch from Chad Mynhier. ok djm@
2006-11-01 10:28:49 +11:00
Darren Tucker
c70ce7b09d
- (dtucker) [openbsd-compat/port-aix.{c,h}] Reduce scope of includes.
...
Prevents macro redefinition warnings of "RDONLY".
2006-09-18 23:54:32 +10:00
Darren Tucker
08432d54fa
- (dtucker) [openbsd-compat/bsd-snprintf.c] Add stdarg.h.
2006-09-09 15:59:43 +10:00
Darren Tucker
ed0b59218e
- (dtucker) [configure.ac openbsd-compat/openbsd-compat.h] Check for
...
declaration of writev(2) and declare it ourselves if necessary. Makes
the atomiciov() calls build on really old systems. ok djm@
2006-09-03 22:44:49 +10:00
Darren Tucker
46aa3e0ce1
- (dtucker) [ssh-keyscan.c ssh-rand-helper.c ssh.c sshconnect.c
...
openbsd-compat/bindresvport.c openbsd-compat/getrrsetbyname.c
openbsd-compat/port-tun.c openbsd-compat/rresvport.c] Include <arpa/inet.h>
for hton* and ntoh* macros. Required on (at least) HP-UX since we define
_XOPEN_SOURCE_EXTENDED. Found by santhi.amirta at gmail com.
2006-09-02 15:32:40 +10:00
Darren Tucker
25fa0ee693
- (dtucker) [openbsd-compat/port-irix.c] Add errno.h, found by Iain Morgan.
2006-09-02 12:38:56 +10:00
Darren Tucker
096faecdea
- (dtucker) [configure.ac includes.h openbsd-compat/glob.{c,h}] Explicitly
...
test for GLOB_NOMATCH and use our glob functions if it's not found.
Stops sftp from segfaulting when attempting to get a nonexistent file on
Cygwin (previous versions of OpenSSH didn't use the native glob). Partly
from and tested by Corinna Vinschen.
2006-09-01 20:29:10 +10:00
Darren Tucker
0646ca6be8
- (dtucker) [openbsd-compat/bsd-cygwin_util.c] Fix implict declaration
...
warnings for binary_open and binary_close. Patch from Corinna Vinschen.
2006-09-01 19:29:01 +10:00
Damien Miller
607aede26c
- (djm) [includes.h monitor.c openbsd-compat/bindresvport.c]
...
[openbsd-compat/rresvport.c] Some more headers: netinet/in.h
sys/socket.h and unistd.h in various places
2006-09-01 15:48:19 +10:00
Damien Miller
ded319cca2
- (djm) [audit-bsm.c audit.c auth-bsdauth.c auth-chall.c auth-pam.c]
...
[auth-rsa.c auth-shadow.c auth-sia.c auth1.c auth2-chall.c]
[auth2-gss.c auth2-kbdint.c auth2-none.c authfd.c authfile.c]
[cipher-3des1.c cipher-aes.c cipher-bf1.c cipher-ctr.c clientloop.c]
[dh.c dns.c entropy.c gss-serv-krb5.c gss-serv.c hostfile.c kex.c]
[kexdhc.c kexdhs.c kexgexc.c kexgexs.c key.c loginrec.c mac.c]
[md5crypt.c monitor.c monitor_wrap.c readconf.c rsa.c]
[scard-opensc.c scard.c session.c ssh-add.c ssh-agent.c ssh-dss.c]
[ssh-keygen.c ssh-keysign.c ssh-rsa.c ssh.c sshconnect.c]
[sshconnect1.c sshconnect2.c sshd.c rc4.diff]
[openbsd-compat/bsd-cray.c openbsd-compat/port-aix.c]
[openbsd-compat/port-linux.c openbsd-compat/port-solaris.c]
[openbsd-compat/port-uw.c]
Lots of headers for SCO OSR6, mainly adding stdarg.h for log.h;
compile problems reported by rac AT tenzing.org
2006-09-01 15:38:36 +10:00
Damien Miller
1b06dc30ad
- (djm) [CREDITS LICENCE Makefile.in auth.c configure.ac includes.h ]
...
[platform.c platform.h sshd.c openbsd-compat/Makefile.in]
[openbsd-compat/openbsd-compat.h openbsd-compat/port-solaris.c]
[openbsd-compat/port-solaris.h] Add support for Solaris process
contracts, enabled with --use-solaris-contracts. Patch from Chad
Mynhier, tweaked by dtucker@ and myself; ok dtucker@
2006-08-31 03:24:41 +10:00
Darren Tucker
26d4e19caa
- (dtucker) [auth.c openbsd-compat/port-aix.c] Bug #1207 : always call
...
loginsuccess on AIX immediately after authentication to clear the failed
login count. Previously this would only happen when an interactive
session starts (ie when a pty is allocated) but this means that accounts
that have primarily non-interactive sessions (eg scp's) may gradually
accumulate enough failures to lock out an account. This change may have
a side effect of creating two audit records, one with a tty of "ssh"
corresponding to the authentication and one with the allocated pty per
interactive session.
2006-08-30 22:33:09 +10:00
Damien Miller
8ff1da81ec
- (djm) [openbsd-compat/xcrypt.c] needs unistd.h
2006-08-30 17:52:03 +10:00
Darren Tucker
9162028887
- (dtucker) [openbsd-compat/xmmap.c] Move #define HAVE_MMAP to prevent
...
unused variable warning when we have a broken or missing mmap(2).
Now with 100% more diff!
2006-08-24 19:58:36 +10:00
Darren Tucker
c1abe8e3e8
- (dtucker) [openbsd-compat/rresvport.c] Include <stdlib.h> for malloc.
2006-08-24 19:53:40 +10:00
Darren Tucker
f80f5ec81b
- (dtucker) [openbsd-compat/bsd-openpty.c] Include for ioctl(2).
2006-08-24 19:52:30 +10:00
Darren Tucker
450d2af2a3
- (dtucker) [openbsd-compat/bsd-misc.c] Include <sys/select.h> for select(2)
...
on POSIX systems.
2006-08-24 19:45:33 +10:00
Darren Tucker
e086955531
- (dtucker) [openbsd-compat/bsd-misc.c] Add includes needed for select(2) on
...
older systems.
2006-08-24 19:43:16 +10:00
Darren Tucker
fe408b4826
- (dtucker) [openbsd-compat/basename.c] Include errno.h.
2006-08-24 19:41:03 +10:00
Darren Tucker
f0625699df
- (dtucker) [openbsd-compat/regress/Makefile.in] Add $(EXEEXT) and add a
...
single rule for the test progs.
2006-08-19 19:12:14 +10:00
Darren Tucker
637c80aa6f
- (dtucker) [openbsd-compat/regress/Makefile.in] Use implicit rules for the
...
test progs instead; they work better than what we have.
2006-08-18 20:56:18 +10:00
Darren Tucker
ec4e4daa6c
- (dtucker) [openbsd-compat/regress/snprintftest.c] Newline on error.
2006-08-18 20:09:32 +10:00
Darren Tucker
43d3ccdbdd
- (dtucker) [openbsd-compat/bsd-closefrom.c] Comment out rcsid.
2006-08-18 19:49:58 +10:00
Darren Tucker
d018b2e9c8
- (dtucker) [configure.ac openbsd-compat/bsd-closefrom.c] Resync with
...
closefrom.c from sudo.
2006-08-18 18:51:20 +10:00
Darren Tucker
c889ffdbc6
- (dtucker) [openbsd-compat/regress/{Makefile.in,closefromtest.c}] Regress
...
test for closefrom() in compat code.
2006-08-17 19:40:35 +10:00
Darren Tucker
3083bc2b52
- (dtucker) [configure.ac openbsd-compat/bsd-closefrom.c] Use F_CLOSEM fcntl
...
for closefrom() on AIX. Pointed out by William Ahern.
2006-08-17 19:35:49 +10:00
Darren Tucker
e6b641a9a1
- (dtucker) [openbsd-compat/fake-rfc2553.c openbsd-compat/setproctitle.c]
...
Include stdlib.h for malloc and friends.
2006-08-17 18:55:27 +10:00
Damien Miller
0e5143e88e
- (djm) [openbsd-compat/bsd-getpeereid.c] Add some headers to quiet warnings
...
on Solaris 10
2006-08-07 11:26:36 +10:00
Darren Tucker
f78fb54412
- (dtucker) [openbsd-compat/{bsd-asprintf.c,bsd-openpty.c,bsd-snprintf.c,
...
glob.c}] Include stdlib.h for malloc and friends in compat code.
2006-08-06 21:25:24 +10:00
Darren Tucker
2b4e38b712
- (dtucker) [openbsd-compat/fake-rfc2553.c] Add headers needed for inet_ntoa.
2006-08-05 19:18:08 +10:00
Darren Tucker
92350103fc
- (dtucker) [openbsd-compat/bsd-cygwin_util.c] Add headers required to compile
...
on Cygwin.
2006-08-05 19:08:16 +10:00
Darren Tucker
8a15f01aff
- (dtucker) [openbsd-compat/strtonum.c] Include stdlib.h for strtoll,
...
otherwise it is implicitly declared as returning an int.
2006-08-05 16:27:20 +10:00
Darren Tucker
d8aec107fe
- (dtucker) [openbsd-compat/getrrsetbyname.c] Nees stdlib.h for malloc.
2006-08-05 16:12:15 +10:00
Darren Tucker
e7eec90f38
- (dtucker) [openbsd-compat/{bsd-arc4random.c,port-tun.c,xmmap.c}] Lots of
...
#include stdarg.h, needed for log.h.
2006-08-05 15:47:26 +10:00
Damien Miller
75bb664458
- (djm) [auth-pam.c auth-shadow.c auth2-none.c cleanup.c sshd.c]
...
[openbsd-compat/port-tun.c openbsd-compat/port-tun.h] Sprinkle more
includes for Linux in
2006-08-05 14:07:20 +10:00
Damien Miller
d04db59ad9
- (djm) [openbsd-compat/regress/snprintftest.c]
...
[openbsd-compat/regress/strduptest.c] Add missing includes so they pass
compilation with "-Wall -Werror"
2006-08-05 13:27:29 +10:00
Damien Miller
475d61e104
ignore built test binaries too
2006-08-05 13:26:13 +10:00
Damien Miller
2a7bf6e7c7
ignore generated Makefile
2006-08-05 13:23:49 +10:00
Damien Miller
4cbfe8ebeb
- (djm) [auth-pam.c auth.c bufaux.h entropy.c openbsd-compat/port-tun.c]
...
remove last traces of bufaux.h - it was merged into buffer.h in the big
includes.h commit
2006-08-05 12:49:30 +10:00