History log of /openssh-portable/openbsd-compat/openbsd-compat.h (Results 1 - 25 of 177)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 33267fea 27-Oct-2020 Damien Miller

Remove checks for strict POSIX mkdtemp()

We needed a mkdtemp() that accepted template paths that did not
end in XXXXXX a long time ago for KRB4, but that code is long
deprecated. We

Remove checks for strict POSIX mkdtemp()

We needed a mkdtemp() that accepted template paths that did not
end in XXXXXX a long time ago for KRB4, but that code is long
deprecated. We no longer need to replace mkdtemp() for strictly
following POSIX. ok dtucker@

show more ...


Revision tags: V_8_4_P1, V_8_3_P1
# d4860ec4 17-Feb-2020 Darren Tucker

Check if getpeereid is actually declared.

Check in sys/socket.h (AIX) and unistd.h (FreeBSD, DragonFLy and OS X).
Prevents undeclared function warning on at least some versions of AIX.


Revision tags: V_8_2_P1
# 26b2675b 13-Jan-2020 Darren Tucker

Remove configure test & compat code for ripemd160.

RIPEMD160 support was removed upstream in 2017, however we still had
a configure test and compat code for it, so clean those up now.


# afffd310 10-Dec-2019 Darren Tucker

Check if memmem is declared in system headers.

If the system (or one of the dependencies) implements memmem but does
not define the header, we would not declare it either resulting in

Check if memmem is declared in system headers.

If the system (or one of the dependencies) implements memmem but does
not define the header, we would not declare it either resulting in
compiler warnings. Check for declaration explicitly. bz#3102.

show more ...


# 0e3c5bc5 01-Nov-2019 Darren Tucker

Hook up fnmatch for platforms that don't have it.


# 5eb7b956 31-Oct-2019 Darren Tucker

Add prototype for localtime_r if needed.


# 0bd312a3 09-Oct-2019 Darren Tucker

Fix ifdef typo for declaration of memmem.

Fixes build on IRIX. bz#3081.


Revision tags: V_8_1_P1
# 45478898 15-Jul-2019 Darren Tucker

Hook memmem compat code into build.

This fixes builds on platforms that don't have it (at least old DragonFly,
probably others).


# 4efe1adf 07-Jul-2019 Damien Miller

remove realpath() compat replacement

We shipped a BSD implementation of realpath() because sftp-server
depended on its behaviour.

OpenBSD is now moving to a more strictly POSIX-

remove realpath() compat replacement

We shipped a BSD implementation of realpath() because sftp-server
depended on its behaviour.

OpenBSD is now moving to a more strictly POSIX-compliant realpath(2),
so sftp-server now unconditionally requires its own BSD-style realpath
implementation. As such, there is no need to carry another independant
implementation in openbsd-compat.

ok dtucker@

show more ...


# b8e2b797 05-Jul-2019 Darren Tucker

Add prototype for strnlen to prevent warnings.


# 2753521e 05-Jul-2019 Darren Tucker

Add prototype for compat strndup.(bz#3032).


Revision tags: V_8_0_P1
# 8a85f545 25-Nov-2018 Darren Tucker

Include stdio.h for FILE if needed.


Revision tags: V_7_9_P1, V_7_8_P1
# 6301e6c7 02-Jul-2018 Darren Tucker

Add implementation of getline.

Add getline for the benefit of platforms that don't have it. Sourced
from NetBSD (OpenBSD's implementation is a little too chummy with the
internals o

Add implementation of getline.

Add getline for the benefit of platforms that don't have it. Sourced
from NetBSD (OpenBSD's implementation is a little too chummy with the
internals of FILE).

show more ...


Revision tags: V_7_7_P1
# 2eb40414 24-Feb-2018 Darren Tucker

Add prototype for readv if needed.


# ddc0f381 12-Feb-2018 Darren Tucker

Remove UNICOS support.

The code required to support it is quite invasive to the mainline
code that is synced with upstream and is an ongoing maintenance burden.
Both the hardware and

Remove UNICOS support.

The code required to support it is quite invasive to the mainline
code that is synced with upstream and is an ongoing maintenance burden.
Both the hardware and software are literal museum pieces these days and
we could not find anyone still running OpenSSH on one.

show more ...


# fbfa6f98 11-Feb-2018 Darren Tucker

Move signal compat code into bsd-signal.{c,h}


# f5594f93 24-Oct-2017 Damien Miller

rename port-tun.[ch] => port-net.[ch]

Ahead of adding rdomain support


Revision tags: V_7_6_P1
# b7956919 18-Sep-2017 Damien Miller

add freezero(3) replacement

ok dtucker@


# 151c6e43 01-Jun-2017 Damien Miller

add recallocarray replacement and dependency

recallocarray() needs getpagesize() so add a tiny replacement for that.


Revision tags: V_7_5_P1, V_7_4_P1
# b9b8ba3f 12-Dec-2016 Darren Tucker

Remove commented-out includes.

These commented-out includes have "Still needed?" comments. Since
they've been commented out for ~13 years I assert that they're not.


# 25275f1c 12-Dec-2016 Darren Tucker

Add prototype for strcasestr in compat library.


# 1cfd5c06 28-Sep-2016 Damien Miller

Remove portability support for mmap

We no longer need to wrap/replace mmap for portability now that
pre-auth compression has been removed from OpenSSH.


# 1e8013a1 17-Aug-2016 Darren Tucker

Remove obsolete CVS $Id from source files.

Since -portable switched to git the CVS $Id tags are no longer being
updated and are becoming increasingly misleading. Remove them.


# c20dccb5 01-Aug-2016 Darren Tucker

Strip trailing whitespace.

Mechanically strip trailing whitespace on files not synced with OpenBSD
(or in the case of bsd-snprint.c, rsync).


Revision tags: V_7_3_P1
# 5abfb15c 15-Jul-2016 Darren Tucker

Move VA_COPY macro into compat header.

Some AIX compilers unconditionally undefine va_copy but don't set it back
to an internal function, causing link errors. In some compat code we

Move VA_COPY macro into compat header.

Some AIX compilers unconditionally undefine va_copy but don't set it back
to an internal function, causing link errors. In some compat code we
already use VA_COPY instead so move the two existing instances into the
shared header and use for sshbuf-getput-basic.c too. Should fix building
with at lease some versions of AIX's compiler. bz#2589, ok djm@

show more ...


12345678