Home | History | Annotate | only in /src/libexec
History log of /src/libexec
RevisionDateAuthorComments
 1.64 06-Jun-2022  nia build system: Revert all the recent additions of MK[...] knobs that
allow conditionally disabling the building of certain user space
programs in the 'base' set.

There is not enough consensus that this is the right way and a few
people had strong objections, see source-changes-d@.
 1.63 28-May-2022  nia mk: Add MKFINGER, MKTALK flags for not building
talk, talkd, finger, fingerd.
 1.62 27-May-2022  nia mk: Add a MKLFS flag for excluding the log-structured filesystem userspace
tools from the build.
 1.61 07-Feb-2012  joerg Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.
 1.60 15-Apr-2011  elric branches: 1.60.4;
Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.
 1.59 19-Jan-2009  jmmv Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.
 1.58 16-Aug-2008  gmcgarry Don't build atf tools with (${MKATF} == no).
 1.57 22-Mar-2008  mlelstv branches: 1.57.4;
Import Heimdal-1.1
 1.56 04-Feb-2008  jmmv Add the atf-exec and atf-killpg tools that come with atf 0.4.
 1.55 12-Nov-2007  jmmv Add the atf tools

This adds reachover Makefiles to build and install the atf tools.
Some are public, thus installed in /usr/bin, and others are internal
and therefore installed in /usr/libexec.
 1.54 16-Oct-2007  tls Add httpd to the build. Add _httpd to passwd and groups and postinstall.
Add /var/www to mtree, add example line to inetd.conf.
 1.53 16-Aug-2007  tls branches: 1.53.2;
Oops. USE_FORT needs to be in Makefile.inc, not Makefile, to cause the
programs in subdirectories here to get -D_FORTIFY_SOURCE.
 1.52 28-May-2007  tls Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
 1.51 16-Nov-2006  christos more uucp cleanup
 1.50 12-Nov-2006  christos no more rmail.
 1.49 11-Nov-2004  yamt move pf reachover makefiles into usr.sbin/pf. ok'ed by itojun.

before:
sbin/pfctl
usr.sbin/authpf
usr.sbin/spamdb
libexec/ftp-proxy
libexec/spamd
libexec/spamd-setup
libexec/spamlogd
after:
usr.sbin/pf/pfctl
usr.sbin/pf/authpf
usr.sbin/pf/spamdb
usr.sbin/pf/ftp-proxy
usr.sbin/pf/spamd
usr.sbin/pf/spamd-setup
usr.sbin/pf/spamlogd
 1.48 25-Jun-2004  itojun spamlogd(8)
 1.47 22-Jun-2004  itojun add ftp-proxy from PF OpenBSD 3.5. adjust setlists
 1.46 22-Jun-2004  jwise Remove added SUBDIR+= settings from a developer's (hi itojun!) machine which
point to directories which do not exist (and are not wanted) in our source tree.

While we're here, was `libexec/spamd' approved for import? It conflicts with the
name of a tool in pkgsrc which a _lot_ of developers and users of NetBSD are using...
 1.45 22-Jun-2004  itojun spamd-setup, comes with PF for openbsd 3.5
 1.44 22-Jun-2004  itojun build and install spamd(8)
 1.43 10-Sep-2002  joda don't build kfd; there are security issues with heimdal 0.4e, and we
don't actually need it
 1.42 28-Jul-2002  christos Add utmp_update
 1.41 22-Mar-2002  thorpej branches: 1.41.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.
 1.40 06-Aug-2000  thorpej hprop(8) belongs in /usr/sbin, not /usr/libexec.
 1.39 06-Aug-2000  thorpej The Kerberos KDC belongs in /usr/sbin, not in /usr/libexec.
 1.38 23-Jun-2000  thorpej Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.
 1.37 20-Jun-2000  thorpej branches: 1.37.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.
 1.36 09-Aug-1999  aidan branches: 1.36.6;
added reference to bsd.crypto.mk to Makefile. whoops.
 1.35 06-Aug-1999  aidan libexec now reaches over into ${CRYPTOPATH} for additional SUBDIRs.
 1.34 15-Mar-1999  thorpej Reenable ld.elf_so on the Alpha. Mycroft fixed the binutils 2.9 problem
which prevented it from working.
 1.33 27-Feb-1999  tv Add ld.so hacks for arm32, and reenable ld.aout_so on arm32. As is well
known, XXX this needs a real fix.
 1.32 12-Feb-1999  tv Something is making ld.elf_so lose on Alpha and I don't have time to
figure this out until tomorrow. Disable until myself or someone else
clobbers the problem.
 1.31 30-Dec-1998  tv Until such time that the arm32 hacks are added to ld.so, or at least
something is done about arm32 shlibs, do not build ld.aout_so on a vanilla
recursive make.
 1.30 17-Dec-1998  pk Add ld.aout_so to SUBDIRS
 1.29 22-Jul-1998  scottr Unlike other domestic bits, telnet and telnetd are never built as a part
of the domestic build process. No domestic program actually builds its
own man pages but instead relies on those built in the exportable tree.
The result is missing telnet(1) and telnet(8) pages.

Fix this problem descending into the telnet and telnetd directories
regardless of whether we're doing an exportable build or not. Once there,
we generate only the man pages if we're building a non-exportable system.
 1.28 28-Mar-1998  cgd GC alpha's ECOFF_TOOLCHAIN make variable, and related bits. Nobody
should be using an ECOFF toolchain on NetBSD/alpha any more.
 1.27 08-Oct-1997  mrg merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.26 23-Jun-1997  mrg move man pages into share/man.
 1.25 09-Apr-1997  mikel descend unconditionally for clean and cleandir targets
 1.24 13-Mar-1997  perry add rmail
 1.23 23-Feb-1997  cgd turn Alpha's ELF_TOOLCHAIN checks to ECOFF_TOOLCHAIN checks
 1.22 18-Dec-1996  cgd telnetd is usually spelled with two "t"s.
 1.21 18-Dec-1996  thorpej RCS id police.
 1.20 18-Dec-1996  thorpej Perform the same "don't build telnet stuff if the domestic counterparts
are present in the source tree" kludge that telnet(1) and libtelnet do.
XXX !!
 1.19 16-Dec-1996  cgd on the alpha, if ELF_TOOLCHAIN, add ld.elf_so to the subdirs list
 1.18 07-Jul-1994  mycroft Add lfs_cleanerd.
 1.17 27-Jun-1994  gwr branches: 1.17.2;
Remove: bootpd
 1.16 24-Jun-1994  deraadt compile rpc.rquotad & rpc.sprayd
 1.15 18-Apr-1994  glass move bootpd from othersrc to libexec. add bootptab file
 1.14 04-Feb-1994  cgd add identd
 1.13 24-Jan-1994  cgd ELVIS IS DEAD, DAMNIT!
 1.12 15-Jan-1994  cgd there will be no crond (or cron) tomorrow!
 1.11 05-Jan-1994  jtc Rename crond to cron
 1.10 21-Dec-1993  cgd add makewhatis
 1.9 16-Dec-1993  deraadt rarpd has moved
 1.8 05-Dec-1993  cgd add at, by Thomas Koenig, ig25@rz.uni-karlsruhe.de
 1.7 23-Nov-1993  cgd squish the bugfiler, now that we're using gnats. the bugfiler
wasn't really very useful, anyway...
 1.6 06-Sep-1993  cassidy Added rarpd to the subdir list
 1.5 01-Aug-1993  mycroft Add RCS identifiers.
 1.4 29-Jun-1993  brezak Uucpd from Net2
 1.3 03-Jun-1993  brezak Add rpc.rstatd, rpc.rusersd, and rpc.rwalld.
 1.2 03-May-1993  cgd add bugfiler
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 08-Oct-1997  mrg lite-2.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.17.2.1 08-Jul-1994  cgd from trunk: don't forget lfs_cleanerd
 1.36.6.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.37.2.5 11-Sep-2002  itojun libexec/Makefile 1.43
usr.bin/Makefile 1.126
distrib/sets/lists/base/mi 1.350 via patch
distrib/sets/lists/man/mi 1.513 via patch
distrib/sets/lists/man/obsolete.mi 1.52
distrib/sets/lists/base/obsolete.mi 1.53
obsolete usr.bin/kf and libexec/kfd for security issues, and are no longer
needeed.
 1.37.2.4 06-Aug-2000  thorpej Update from trunk:
hprop(8) belongs in /usr/sbin, not /usr/libexec.
 1.37.2.3 06-Aug-2000  thorpej Update from trunk:
The Kerberos KDC belongs in /usr/sbin, not in /usr/libexec.
 1.37.2.2 24-Jun-2000  thorpej Update from trunk:
Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.
 1.37.2.1 20-Jun-2000  thorpej file Makefile was added on branch netbsd-1-5 on 2000-06-24 06:59:34 +0000
 1.41.2.1 17-Sep-2002  lukem Pull up revision 1.43 (requested by joda in ticket #782):
don't build kfd; there are security issues with heimdal 0.4e, and we
don't actually need it
 1.53.2.3 23-Mar-2008  matt sync with HEAD
 1.53.2.2 09-Jan-2008  matt sync with HEAD
 1.53.2.1 06-Nov-2007  matt sync with HEAD
 1.57.4.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.60.4.1 17-Apr-2012  yamt sync with head
 1.9 19-Jun-2012  dholland Make WARNS=5 the default here.
 1.8 16-Mar-2009  lukem branches: 1.8.6;
Default to WARNS=4
Exceptions that need a lower level are:
getty ld.elf_so lfs_cleanerd makewhatis telnetd tftpd
hpropd ipropd-master ipropd-slave kadmind kpasswdd
 1.7 16-Aug-2007  tls branches: 1.7.16;
Oops. USE_FORT needs to be in Makefile.inc, not Makefile, to cause the
programs in subdirectories here to get -D_FORTIFY_SOURCE.
 1.6 08-Oct-2006  peter WFORMAT is no more...
 1.5 10-Oct-2000  is Format string cleanups by sommerfeld.
 1.4 08-Oct-1997  mrg branches: 1.4.4; 1.4.12;
merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.3 18-Dec-1996  thorpej RCS id police.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 08-Oct-1997  mrg lite-2.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.4.12.1 17-Oct-2000  tv Pullup libexec string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.
 1.4.4.1 10-Oct-2000  he Pull up revision 1.5 (requested by is):
Format string cleanup.
 1.7.16.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.8.6.1 30-Oct-2012  yamt sync with head
 1.15 13-Mar-2016  dholland Use functions instead of preprocessor abuse.
 1.14 16-Aug-2011  christos document non-literal format strings
 1.13 18-Sep-2002  lukem use bsd.own.mk instead of the (obvious typo of) bsd.obj.mk
 1.12 19-Aug-2002  lukem Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path
 1.11 29-Jul-1998  simonb Remove useless BINOWN=root
 1.10 22-Oct-1997  lukem use CPPFLAGS instead of CFLAGS
 1.9 08-Oct-1997  mrg branches: 1.9.2;
merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.8 07-Oct-1997  mrg WARNS?=1.
 1.7 30-Aug-1996  thorpej RCS id police.
 1.6 22-Dec-1994  cgd specify man pages the new way.
 1.5 19-Mar-1994  cgd get section right; from Luke Mewburn <lm@rmit.edu.au>
 1.4 28-Jan-1994  cgd don't need libs hackery any longer
 1.3 28-Jan-1994  cgd hack to make getloadavg() link properly
 1.2 05-Dec-1993  cgd make it owned by root so cron doesn't whine...
 1.1 05-Dec-1993  cgd add at, by Thomas Koenig, ig25@rz.uni-karlsruhe.de
 1.9.2.1 08-Nov-1997  lukem sync with trunk (approved by thorpej)
 1.14 18-Mar-2014  riastradh Merge riastradh-drm2 to HEAD.
 1.13 20-Jul-2013  wiz Use Mt for email addresses.
 1.12 20-Jun-2012  wiz branches: 1.12.2; 1.12.4;
- Remove redundant argument to (successive) `.Nm' macro;
- copy exact line from root's crontab(5) file (and the user name
is indeed unneeded, as root's crontab(5) file is not the system's
one);
- reword the warning: cron(8) _is_ running, by default.

From patch by Bug Hunting.

While here, remove xref to itself.
 1.11 15-Jan-2002  wiz branches: 1.11.56;
Formatting improvements, sort SEE ALSO and sections.
 1.10 07-Nov-2000  lukem fix up various .Nm abuses:
- keep the case consistent between the actual name and what's referenced.
e.g, if it's `foo', don't use '.Nm Foo' at the start of a sentence.
- remove unnecessary `.Nm foo' after the first occurrence (except for
using `.Nm ""' if there's stuff following, or for the 2nd and so on
occurrences in a SYNOPSIS
- use Sx, Ic, Li, Em, Sq, and Xr as appropriate
 1.9 05-Jul-2000  msaitoh remove extra period in SEE ALL section
 1.8 27-Jun-1998  christos Merge in changes from OpenBSD.
 1.7 22-May-1998  msaitoh fix typo
 1.6 20-Oct-1997  enami branches: 1.6.2;
- Fix .Nm usage.
- Sort SEE ALSO list first by section.
 1.5 18-Mar-1997  perry fix typos per pr-3349 submitted by SAITOH Masanobu
 1.4 30-Aug-1996  thorpej RCS id police.
 1.3 03-Nov-1994  jtc Misc manpages fixes (PR #551)
 1.2 29-Jan-1994  jtc Fix spelling error in Copyright notice
 1.1 05-Dec-1993  cgd add at, by Thomas Koenig, ig25@rz.uni-karlsruhe.de
 1.6.2.1 25-Oct-1998  cgd pull up revs 1.7-1.8 from trunk (mrg)
 1.11.56.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.11.56.1 30-Oct-2012  yamt sync with head
 1.12.4.1 23-Jul-2013  riastradh sync with HEAD
 1.12.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.23 10-Jan-2017  christos missing <sys/stat.h> include.
 1.22 13-Mar-2016  dholland branches: 1.22.2;
Use functions instead of preprocessor abuse.
 1.21 16-Sep-2011  plunky NULL does not need a cast, here
 1.20 01-Aug-2011  mbalmer According to the Oxford Dictionary of Etymology, a wether is a male sheep
or ram.
 1.19 05-Apr-2008  christos Fix build from dieter roelants
 1.18 15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.17 15-Dec-2007  perry include sys/cdefs.h so that __attribute__ can be fixed later
 1.16 31-Oct-2005  christos branches: 1.16.10;
- Don't use a stale errno when printing an error
- Redo all error printing using varargs
- KNF
- More descriptive error messages
 1.15 31-Oct-2005  christos Don't use hard-coded values for nobody. Specially ones that don't match
what /etc/group has.
 1.14 05-Nov-2004  dsl Add (unsigned char) cast to ctype functions
 1.13 17-May-2003  itojun use strlcpy
 1.12 03-Mar-2003  dsl Call setsid() so that setlogname doesn't affect our parent and siblings.
(approved by christos)
 1.11 29-Jul-2002  christos err, fix arg to warn.
 1.10 29-Jul-2002  christos jeez, this program included almost everything in /usr/include!
 1.9 06-Jun-2002  martin Make scanf parameters and variable types match. This helps archs
where sizeof(int) != sizeof(long).
 1.8 25-Jun-2000  simonb branches: 1.8.2;
Use LOGIN_NAME_MAX for sizing the mailname buffer. Allows usernames
longer than 8 characters to run jobs instead of aborting because
"File ... is in wrong format".
 1.7 16-Aug-1999  simonb branches: 1.7.8;
Spell "privilege" correctly (correct spelling from Jonathan Stone).
 1.6 12-Feb-1999  kleink <sys/fcntl.h> -> <fcntl.h>
 1.5 27-Jun-1998  christos Merge in changes from OpenBSD.
 1.4 07-Oct-1997  mrg branches: 1.4.2;
WARNS?=1.
 1.3 30-Aug-1996  thorpej RCS id police.
 1.2 02-Mar-1995  cgd properly init group list before running the job.
 1.1 05-Dec-1993  cgd add at, by Thomas Koenig, ig25@rz.uni-karlsruhe.de
 1.4.2.1 25-Oct-1998  cgd pull up rev 1.5 from trunk (mrg)
 1.7.8.1 26-Jun-2000  simonb Pull up rev 1.8:
Use LOGIN_NAME_MAX for sizing the mailname buffer. Allows usernames
longer than 8 characters to run jobs instead of aborting because
"File ... is in wrong format".
 1.8.2.1 10-Jun-2002  tv Pull up revision 1.9 (requested by 195 in ticket #0):
Make scanf parameters and variable types match. This helps archs
where sizeof(int) != sizeof(long).
 1.16.10.1 09-Jan-2008  matt sync with HEAD
 1.22.2.1 20-Mar-2017  pgoyette Sync with HEAD
 1.8 31-Oct-2005  christos Don't use hard-coded values for nobody. Specially ones that don't match
what /etc/group has.
 1.7 26-Jul-2003  salo netbsd.org->NetBSD.org
 1.6 14-Jun-2000  cgd sweep of my licenses (userland files w/o only my copyright) for
consistency. (no functional changes)
 1.5 14-Jun-2000  cgd fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well. No functional changes.
 1.4 27-Jun-1998  christos branches: 1.4.8;
Merge in changes from OpenBSD.
 1.3 30-Aug-1996  thorpej branches: 1.3.2;
RCS id police.
 1.2 29-Jan-1994  jtc Fix spelling error in Copyright notice
 1.1 05-Dec-1993  cgd add at, by Thomas Koenig, ig25@rz.uni-karlsruhe.de
 1.3.2.1 25-Oct-1998  cgd pull up rev 1.4 from trunk (mrg)
 1.4.8.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.7 16-Mar-2009  lukem Default to WARNS=4
Exceptions that need a lower level are:
getty ld.elf_so lfs_cleanerd makewhatis telnetd tftpd
hpropd ipropd-master ipropd-slave kadmind kpasswdd
 1.6 25-Jun-2004  christos branches: 1.6.34;
Forgot to include utmpx support for this one.
 1.5 07-Oct-1997  mrg WARNS?=1. RCS ids
 1.4 22-Dec-1994  cgd specify man pages the new way.
 1.3 06-Aug-1994  jtc Sync with 4.4 lite
 1.2 01-Aug-1993  mycroft branches: 1.2.2;
Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 06-Aug-1994  jtc from 4.4 lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.2.2.1 09-Aug-1994  mycroft update from trunk
 1.6.34.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.15 20-Dec-2016  abhinav s/users/user's

Also, add an xref to services(5)
 1.14 29-May-2010  dholland branches: 1.14.28;
Update outdated comment (and docs) about which header lines are printed.
I appear to have been carrying this patch around since 2002.
 1.13 25-Jun-2004  wiz 2004, not 1994.
 1.12 25-Jun-2004  christos Forgot to include utmpx support for this one.
 1.11 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.10 29-Sep-2002  wiz Begin new sentences on new lines.
Patch from Robert Elz (kre at munnari oz au).
 1.9 15-Jan-2002  wiz Sort sections.
 1.8 14-Aug-2000  msaitoh remove extra period
 1.7 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.6 04-Jul-1998  mrg add -l logging switch.
 1.5 20-Oct-1997  enami Fix .Nm usage.
 1.4 07-Oct-1997  mrg WARNS?=1. RCS ids
 1.3 06-Aug-1994  jtc Sync with 4.4 lite
 1.2 01-Aug-1993  mycroft branches: 1.2.2;
Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 06-Aug-1994  jtc from 4.4 lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.2.2.1 09-Aug-1994  mycroft update from trunk
 1.14.28.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.42 29-May-2010  dholland Remove useless cast, probably motivated by an older and stupider lint.
 1.41 29-May-2010  dholland Update outdated comment (and docs) about which header lines are printed.
I appear to have been carrying this patch around since 2002.
 1.40 29-May-2010  dholland Don't launder const
 1.39 14-Mar-2009  lukem fix sign-compare issue
 1.38 20-Jul-2008  lukem branches: 1.38.6;
Remove the \n and tabs from the __COPYRIGHT() strings.
 1.37 13-Jul-2008  dholland Clarify how one is supposed to use the pointers returned by getutentries()
(the utmpentry.c code), specifically with respect to who owns them and
when to free them. Now they're owned by utmpentry.c, only. Abolish the
freeutentries() function, which was the wrong abstraction; add instead
endutentries(), which flushes out the internally managed memory.

Update callers as necessary. Some (e.g. talkd) had been leaking memory;
others (e.g. syslogd) had been accidentally freeing and reloading utmp
more often than necessary. There are a couple untidy bits in users and
rwhod that someone should look after sometime, maybe.

Fixes PR bin/35131, which was about talkd's memory leak.
 1.36 03-May-2007  christos branches: 1.36.12;
PR/36266: David A. Holland: Don't read and write sig_atomic_t variables in
signal handlers; only write them.
 1.35 21-Feb-2007  hubertf Remove unnecessary ctype.h from libexec/comsat/comsat.c file
From: Slava Semushin <slava.semushin@gmail.com>
 1.34 18-Jul-2005  christos Don't do things you are not supposed to inside a signal handler.
 1.33 07-May-2005  christos PR/30170: Markus W Kilbinger: src/libexec/comsat complains about: '/' in
"/dev/pts/1"
 1.32 15-Sep-2004  martin Fix off by one reported by David A. Holland in PR bin/26778.
 1.31 10-Jul-2004  enami Whitespace nits.
 1.30 10-Jul-2004  enami Use strtoimax rather than strtol to parse a number which represents
an offset in a file. long is insufficient on some architecture.
Problem noticed by Atsushi Onoe while ago.
 1.29 10-Jul-2004  christos stat the right file.
 1.28 10-Jul-2004  enami No need to pretty print the errno with err() or warn().
 1.27 25-Jun-2004  christos Forgot to include utmpx support for this one.
 1.26 19-Sep-2003  itojun realloc mistake. from openbsd
 1.25 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.24 16-Jan-2003  kleink Rename `sigset' locals to avoid symbol shadowing warning.
 1.23 18-Mar-2002  mjl strncpy() -> strlcpy()
 1.22 02-Apr-2001  onoe ignore trailing newline which is included in the message from mail.local.
 1.21 16-Mar-2001  atatat Use strtol() instead of atoi() for reading the number out of the
datagram that we received, which leads to easier support for
(ignoring) the procmail messages that specify the folder to which
the message was delivered.

When reading the mailbox, if we encounter a "From " line, we should
exit(). This can occur if there are a lot of rapidly arriving, yet
short messages.
 1.20 14-Mar-2001  atatat Fix output to a tty that is missing ONLCR (eg emacs, vi, mutt,
etc.). This became broken when strvis(3) started being used instead
of simply scanning for "bad" characters.
 1.19 19-Feb-2001  cgd convert to use getprogname()
 1.18 04-Feb-2001  christos fix nested extern
 1.17 04-Oct-2000  mjl Un-__P and ANSIfy.
 1.16 04-Oct-2000  mjl No \n in syslog messages.
_exit(-1) -> _exit(1).
 1.15 22-Aug-2000  mjl Use sockaddr_storage.
Use correct var for strncpy length.
 1.14 06-Jul-1998  mrg - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
 1.13 04-Jul-1998  mrg add -l logging switch.
 1.12 03-Jul-1998  mrg - remove register
- KNF
- ensure hostname has trailling nul.
- use initgroups/setgid/setuid rather than just setuid, and do this earlier.
- find "from:" and "subject:" as well.
- use strvis(3) rather than some local crufty code.
 1.11 01-Apr-1998  kleink Need <time.h> for time() prototype.
 1.10 07-Oct-1997  mrg WARNS?=1. RCS ids
 1.9 25-Aug-1997  kleink Lseek(2) usage cleanup: the use of L_SET/L_INCR/L_XTND is deprecated,
use SEEK_SET/SEEK_CUR/SEEK_END instead.
 1.8 02-May-1995  mycroft Use POSIX tty semantics.
 1.7 21-Mar-1995  mycroft Use POSIX signals.
 1.6 06-Aug-1994  jtc Sync with 4.4 lite
 1.5 05-Aug-1994  jtc Include proper header files to bring prototypes into scope
 1.4 01-Feb-1994  cgd branches: 1.4.2;
better fix for security problems, and minor cleanup
 1.3 30-Jan-1994  briggs Change from bicknell@csugrad.cs.vt.edu and ceharris@csugrad.cs.vt.edu.
This closes an apparent security problem on systems where users have
write access to the mail spool. Since root actually runs comsat, a
user could link their mail file to a system file that they normally
could not access, and use comsat to view said file. This fix simply
makes sure that the mail file is a REGular file.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 06-Aug-1994  jtc from 4.4 lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.4.2.1 09-Aug-1994  mycroft update from trunk
 1.36.12.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.38.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.9 10-Jan-2005  lukem Only compile in IPv6 support if ${USE_INET6} != "no"

MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
 1.8 02-Jul-1999  itojun dual-stack fingerd. Run it from inetd like:
>>finger stream tcp6 nowait nobody /usr/libexec/fingerd fingerd

Single daemon on tcp6 socket will be able to serve both IPv4 and
IPv6 connections, while you can run both if you wish.
 1.7 08-Oct-1997  mrg merge lite-2 rcsids
 1.6 08-Oct-1997  mrg merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.5 09-Sep-1997  mrg `-s' for `secure' doesn't make much sense. just note that it disables
forwarding of finger requests. also, log the text of the request if
supplied. cleanup for WARNS=1.
 1.4 20-Jan-1997  thorpej RCS ID police.
 1.3 22-Dec-1994  cgd specify man pages the new way.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.22 24-Dec-2016  abhinav Fix a sentence.
 1.21 22-Dec-2016  abhinav We don't have any ``name'' program, so remove its reference
and use markup to refer finger(1).

ok wiz@
 1.20 02-Nov-2003  wiz branches: 1.20.78;
Some improvements from the OpenBSD version of this man page. Forwarded
by jmc@openbsd.
 1.19 07-Sep-2003  wiz Consistently use 'RFC 1234' instead of 'RFC1234' or 'RFC-1234'.
From jmc@openbsd.
 1.18 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.17 29-Sep-2002  wiz Remove some unneeded backslashes.
 1.16 12-Sep-2002  wiz Bump date for -8.
 1.15 12-Sep-2002  wiz Sort options.
 1.14 12-Sep-2002  kim Replace -i with -8, which enables new 8-bit pass-through on the client.
 1.13 10-Sep-2002  kim Add a switch for easy enabling of single-byte 8-bit output.

This is somewhat of a hack, but I find it better than having
to run env(1) from inetd(8), or changing the environment for
inetd(8) itself (and thus all daemons started by it).
 1.12 15-Jan-2002  wiz Sort sections.
 1.11 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.10 29-Aug-1998  kim Added a "-h" option to fingerd, passed on to finger (show host, not office).
 1.9 29-Apr-1998  fair fix bad .Xr references
 1.8 20-Oct-1997  enami - Fix .Nm usage.
- Refer finger by .Xr instead of .Nm.
 1.7 09-Sep-1997  mrg `-s' for `secure' doesn't make much sense. just note that it disables
forwarding of finger requests. also, log the text of the request if
supplied. cleanup for WARNS=1.
 1.6 09-Sep-1997  mrg add "-g" flag: this just gets passed to finger.
 1.5 20-Jan-1997  thorpej RCS ID police.
 1.4 08-Jan-1997  cjs PR 3089: fingerd.8 could be misleading.
Patch from Klaus Klein <kleink@layla.inka.de>, with a few minor mods by cjs.
 1.3 10-Aug-1996  explorer Replace our fingerd with one from OpenBSD, which fixes some security holes
and adds new features.
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.20.78.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.27 15-Mar-2012  joerg Add __printflike attribution to use vprintf and friends with an argument
as format string.
 1.26 27-Aug-2011  joerg branches: 1.26.2;
Rename err() to avoid overlap with libc. Mark it dead.
 1.25 14-Mar-2009  lukem apply some __UNCONST().
 1.24 20-Jul-2008  lukem branches: 1.24.6;
Remove the \n and tabs from the __COPYRIGHT() strings.
 1.23 09-May-2006  mrg branches: 1.23.20;
change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
 1.22 06-Feb-2005  perry de-__P, ANSIfy function declarations, remove obsolete "register" declarations.
 1.21 26-Mar-2004  fair Apply patch from PR 24917 to correct option parse error reporting.
 1.20 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.19 12-Sep-2002  kim Replace -i with -8, which enables new 8-bit pass-through on the client.
 1.18 10-Sep-2002  itojun tabify
 1.17 10-Sep-2002  kim Add a switch for easy enabling of single-byte 8-bit output.

This is somewhat of a hack, but I find it better than having
to run env(1) from inetd(8), or changing the environment for
inetd(8) itself (and thus all daemons started by it).
 1.16 08-Jul-2002  itojun typo in message. PR 17528
 1.15 26-May-2002  wiz __STDC__ is always defined on NetBSD.
 1.14 09-Apr-2002  thorpej branches: 1.14.2;
Use __COPYRIGHT() and __RCSID() macros.
 1.13 16-Dec-1999  itojun do not touch __ss_len directly, they are not supposed to be touched.
 1.12 26-Sep-1999  kleink Need <sys/param.h> for MAXHOSTNAMELEN.
 1.11 02-Jul-1999  itojun branches: 1.11.2;
dual-stack fingerd. Run it from inetd like:
>>finger stream tcp6 nowait nobody /usr/libexec/fingerd fingerd

Single daemon on tcp6 socket will be able to serve both IPv4 and
IPv6 connections, while you can run both if you wish.
 1.10 31-Jan-1999  mrg do not use LOG_CONS.
 1.9 29-Aug-1998  kim Added a "-h" option to fingerd, passed on to finger (show host, not office).
 1.8 03-Feb-1998  perry change <strings.h> to <string.h> to fix compiler warning
 1.7 08-Oct-1997  enami Compare a return value of getopt() against -1 instead of EOF.
 1.6 09-Sep-1997  mrg `-s' for `secure' doesn't make much sense. just note that it disables
forwarding of finger requests. also, log the text of the request if
supplied. cleanup for WARNS=1.
 1.5 09-Sep-1997  mrg add "-g" flag: this just gets passed to finger.
 1.4 20-Jan-1997  thorpej RCS ID police.
 1.3 10-Aug-1996  explorer Replace our fingerd with one from OpenBSD, which fixes some security holes
and adds new features.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.11.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.14.2.2 29-Mar-2004  jmc Pullup rev 1.21 (requested by fair in ticket #1639)

Correct option parse error reporting. PR#24917
 1.14.2.1 06-Nov-2002  tron Pull up revision 1.16 (requested by itojun in ticket #445):
typo in message. PR 17528
 1.23.20.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.24.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.26.2.1 17-Apr-2012  yamt sync with head
 1.4 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.3 20-Jan-1997  thorpej RCS ID police.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Jun-1994  mycroft Clean up deleted files.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.70 25-Nov-2023  prlw1 ftpd: deduplicate gcc warning avoidance
OK lukem@
 1.69 03-Jun-2023  lukem bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.68 15-Jun-2020  christos Rename blacklist -> blocklist
 1.67 15-Oct-2019  christos use strncpy...
 1.66 13-Oct-2019  mrg introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
 1.65 25-Feb-2018  mrg branches: 1.65.4;
add LIBKRB5_LDADD/LIBKRB5_DPADD and their static counterparts
to bsd.prog.mk. use them instead of hard coding various lists
of libraries for krb5.

this fixes static builds.
 1.64 25-Jan-2015  christos blacklist hooks
 1.63 14-Aug-2011  christos branches: 1.63.20;
remove gcc-4.5 hack
 1.62 22-Jun-2011  mrg apply some -Wno-error and/or -fno-strict-aliasing.


all of this should be looked at closer, but some of them are not
very trivial.
 1.61 24-Apr-2011  elric We no longer need -I/usr/include/krb5.
 1.60 15-Mar-2009  lukem Fix WARNS=4 issues (const & sign mismatches, etc)
Ensure various ftpd.conf values can't exceed their underlying types.
 1.59 16-Sep-2008  lukem branches: 1.59.6;
Support building with -DNO_INTERNAL_LS
 1.58 27-Mar-2008  lukem branches: 1.58.4;
Reorganize USE_PAM support so that the reply(331,) from USER is
performed by the pam_conv (PAM conversation) callback, which then
getline()s the PASS reply internally. This involves calling
auth_pam() from user() and caching the result to use later in pass().
This allows the PAM modules to present a different password prompt
dialog if necesary. For example:
Name (localhost:lukem):
331 User lukem accepted, provide password [ otp-md4 89 xxxx12345 ].
versus
Name (localhost:lukem): root
331 User root accepted, provide password.

This is independent of (and effectively exclusive to) USE_SKEY support.

Previously ftpd with USE_SKEY=yes would provide the skey prompt
if the user had an skey configured, even if /etc/pam.d/ftpd didn't
have pam_skey in use.
I.e., ftpd shouldn't need special support for custom password prompts
(such as skey) if PAM is in use.
 1.57 14-Dec-2006  he Complete the move of string_to_flags() and flags_to_string() from the
bin/ls sources to libutil:
o Bump libutil minor version number
o Fix uses to include <util.h> to pick up the function definitions
o Fix most uses of flags_to_string() to release the now-malloc()ed result
 1.56 23-Mar-2006  wiz branches: 1.56.4; 1.56.8;
Remove more references to kerberosIV.
 1.55 09-Mar-2005  christos Add -lcrypt where -lcrypto is specified.
 1.54 04-Mar-2005  he Introduce PAM_STATIC_LDADD and PAM_STATIC_DPADD. When compiling
with MKPIC=no, possibly because the target does not support shared
libraries, these include libraries required to resolve all symbols
which end up referenced from PAM-using applications. The libraries
presently required are -lcrypt, -lrpcsvc and -lutil.

Add use of these variables which are currently set up to use PAM,
so that they compile when MKPIC=no.

Also, in the telnetd case, reorder the order of the libraries, so
that libtelnet.a comes before -ltermcap and -lutil, again to fix
link error when MKPIC=no.

Discussed with thorpej and christos.
 1.53 20-Feb-2005  christos Add PAM and LOGIN_CAP support. Mostly from FreeBSD. If pam is defined,
then we don't fall back to other authentications even if PAM fails due
to a system error (e.g. configuration problem).
 1.52 10-Jan-2005  lukem Only compile in IPv6 support if ${USE_INET6} != "no"

MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
 1.51 23-Jul-2003  itojun split MKKERBEROS4 from MKKERBEROS. based on work by lha at stacken.kth.se
(build confirmed with both MKKERBEROS4=yes and MKKERBEROS4=no)
 1.50 18-Sep-2002  lukem use bsd.own.mk instead of the (obvious typo of) bsd.obj.mk
 1.49 22-Aug-2002  christos enable utmpx support. this doesn't work correctly for chrooted ftpd's, but
I am leaving it to luke to fix.
 1.48 20-Aug-2002  christos Disable UTMPX support for now, because ftpd might chroot and we need
to keep files open.
 1.47 19-Aug-2002  lukem Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path
 1.46 22-Mar-2002  thorpej branches: 1.46.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.
 1.45 01-Dec-2001  lukem - enable case insensitive fnmatch(3)ing for hostname globs in ftpusers(5)
- enable WARNS=2
 1.44 30-Nov-2000  lukem - move password checking into separate valid_passwd() function, to assist
in porting to other systems.
- don't syslog() or setproctitle() "ACCT" lines (as per "PASS")
- replace #ifdef HASSETPROCTITLE with #if HAVE_SETPROCTITLE, and set the
latter #ifdef BSD4_4
- don't compile in internal `ls' #ifdef NO_INTERNAL_LS. will need Makefile
support if this is to be used on NetBSD.
 1.43 03-Jul-2000  matt Make things builds with GCC 2.96
 1.42 20-Jun-2000  thorpej branches: 1.42.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.
 1.41 14-Jun-2000  lukem major overhaul (just before netbsd 1.5 :-):

* implement draft-ietf-ftpext-mlst-10 commands, especially MLST and MLSD.
we already supported SIZE and MDTM. add the appropriate FEAT output lines.

* migrate a lot of the command code from ftpcmd.y and ftpd.c to cmds.c

* make dataconn(), feat(), lookup(), opts() and sizecmd() public

* modify struct tab so that it has a `flags' instead of `implemented' element,
and remove the `hasopts' element. If flags == 1, the command is implemented.
if flags == 2, the command is implemented and takes options

* add macros ISDOTDIR(x) (is x ".") and ISDOTDOTDIR(x) (is x "..")

* modify lreply() so that lreply(-2, ...) just outputs the given info without
a prefix or trailing \r\n. this saves doing b = printf(); total_* += b;

* enhance statcmd(). still needs work in the LPRT status stuff.

* crank version
 1.40 05-Mar-2000  lukem branches: 1.40.2;
* don't bother with a version[] string, just use the macro as appropriate
* clean some more of the GLOBAL stuff
* fix unused var if -UHASSETPROCTITLE
 1.39 18-Dec-1999  lukem * move version to separate header file
* use .Dv and .Tn in the man pages as appropriate
* KNF a bit

The following were inspired by similar changes in openbsd, but may
have additional improvements by me:
* add more check_login tests to the parser rules
* nuke a few memory leaks in the parser rules
* clear passwords before free()ing them, for safety
* don't display \r\n in setproctitle() output
* add support for -U, which enables managing /var/run/utmp entries for
connections. solves [bin/2217] by Jason Downs <downsj@teeny.org>
* fix oob handling for STAT command
* use SIG_ERR instead of -1
 1.38 16-Dec-1999  lukem install ftpusers(5) as ftpchroot(5). more cleanups
 1.37 16-Dec-1999  lukem separate ftpd.conf(5) and ftpusers(5) out from ftpd(8).

xxx: still needs a bit of work
 1.36 07-Dec-1999  lukem * change ftpd_popen() to take char *argv[] instead of char *cmd.
the string tokenisation must be performed by the caller (which is
generally easy because it's almost always a static command).
* change do_conversion() to return a char *argv[] instead of char *cmd.
tokenisation of the command is done internally.
* change retrieve() to take char *argv[] instead of char *cmd.
(to take advantage of the above changes). fixes [bin/8173]
* use fparseln() instead of fgetln()
* store conversions in listed order (rather than reverse order)
* use stringlists instead of handrolling code to manage an argv.
 1.35 20-Jul-1999  mrg branches: 1.35.4;
optionally include CRYPTOPATH Makefile.frag files.
 1.34 12-Jul-1999  thorpej Use bsd.crypto.mk.
 1.33 02-Jul-1999  itojun dual-stack ftpd. run this from inetd, like:
>>ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -ll
 1.32 26-Jun-1999  danw Remove the .ifdef to compile without optimization on powerpc since the
bug that it was working around doesn't seem to exist in egcs
 1.31 17-May-1999  lukem features/fixes:
* implement xferstats. full stats are displayed for `STAT', and a
summary is displayed upon exit (and syslogged). inspired by wu-ftpd.
* wrap data xfers in {send,receive}_data with alarm() timeouts. this
should remove the majority of the `hanging ftpd' problems that
people were still seeing. inspired by wu-ftpd.
* link with ../../bin/ls, so that bin/ls is not required under a
chroot()ed area for `LIST' to work. based on [bin/4497] from
"Soren S. Jorvang" <soren@t.dk>
* migrate code from util.c into ftpd.c, so that it doesn't conflict
with ls' util.c.
* remove man page comment about ~ftp/bin/ls being necessary.
* bump version to 7.2.0.
* syslog xfer time with xfer stats.
* if appropriate, syslog error message with command.

internal code stuff:
* change arguments of various functions from `char *' to `const char *'.
* define PLURAL(x) macro, which returns `' if x == 1, `s' otherwise.
use macro appropriately
* lreply(): a code of -1 means ``send line as is''. a code of 0
means ``send line with 4 space prefix''. don't print a space after
the `-' for any other code.
* logcmd(): add `const struct timeval *elapsed' and `const char *error'
for more flexible error reporting
 1.30 18-Feb-1999  scottr Remove the crypto-related bits until such time as we have a fully-
integrated source tree. Export-controlled versions of these are now
built during the domestic build process.
 1.29 28-Dec-1998  lukem * replace LOG(CMD|BYTES) macros with logcmd(), which is a cleaner
solution with less code replication. use realpath() in logcmd() so
that all logged filenames are sane.
* support `REST STREAM' in `FEAT' reply (from draft-ietf-ftpext-mlst-05)
* in 'HELP', suffix unimplemented commands with `-' instead of `*'; the
former is easier to differentiate from `+'.
* deprecate curdir() now that logcmd() doesn't use it.
* ensure all filename buffers are at least MAXPATHLEN+1 in size.
* move jmp_buf errcatch out of extern.h, removing need to #include <setjmp.h>
in every file.
 1.28 06-Sep-1998  lukem * complete fix for `multiple replies returned for single parse error'
problem; move `hasyyerrored' state flag out of yylex() so that
check_{login,modify} can also set it.
* check result of check_login for PORT command
* set initial timeout before the "setjmp(); for(;;) yyparse()",
otherwise an invalid command after login incorrectly sets the timeout
to 5 minutes (rather than what was set in ftpd.conf)
* replace (char *)0 with NULL
* move yyerror() from ftpd.c to ftpcmd.y
* remove need for -Dunix, by using the version string from ftpd.c
(instead of `BSD-199506')
* move all extern-ed vars into extern.h
 1.27 13-Apr-1998  lukem fix disabling of optimization on powerpc (set COPTS *after* <bsd.prog.mk>...)
 1.26 09-Apr-1998  tv .y.c <sys.mk> rule fixes. Don't create a y.tab.h file unless asked for,
and use smarter creation of the header file.
 1.25 11-Nov-1997  mrg add a "checkportcmd <class>" option that stops ftp bounce attacks.
 1.24 12-Oct-1997  mycroft branches: 1.24.2;
SRCS must be defined *before* bsd.prog.mk is included...
 1.23 12-Oct-1997  mycroft Add some krb5 hooks, though it probably doesn't work yet.
 1.22 12-Oct-1997  mycroft Oops; fix typo.
 1.21 12-Oct-1997  mycroft Conditionalize s/key support.
 1.20 08-Oct-1997  mrg merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.19 01-Jul-1997  christos Add WARNS=1
 1.18 18-Jun-1997  christos - Pass gcc -Wall
- Fix incorrect const poisoning
- Fix ftpd_popen to dynamically allocate strings to avoid buffer overruns.
 1.17 14-Jun-1997  lukem * implement /etc/ftpd.conf, which adds support for the following features,
controllable on a per class (which is one of: real, chroot, guest,
all or none) basis:
* on-the-fly execution of a command to build the file (a ``conversion''),
providing support for "get dirname.tar" and the like.
* displaying the contents of a file when a directory is entered
for the first time.
* maximum value for timeout (replaces -T).
* control usage of CHMOD, DELE, MKD, RMD, UMASK; replacing -DINSECURE_GUEST.
* notifying the user of the existance of a files matching a glob
pattern when a directory is entered for the first time.
* default value for timeout (replaces -t).
* default umask (replaces -DGUEST_CMASK and -u).
The conversion, display, and notify functionality was based on code by
Simon Burge <simonb@telstra.com.au>.
* clean up and re-order parts of the man page into subsections.
* STAT displays the settings defined for the class of the current user.
* bump version from 6.00 to 7.00, because of ftpd.conf.
* deprecate -DGUEST_CMASK and -DINSECURE_GUEST in the Makefile, and
-t, -T and -u, as ftpd.conf allows finer control of these.
* add "nostderr" argument to ftpd_popen(), because you don't want the
stderr stream mixing with the stdout stream during a conversion,
as this can corrupt the stream.
 1.16 27-Apr-1997  lukem * fix "cd ~" so that it works (from Simon Burge <simonb@telstra.com.au>
* move resetting of CFLAGS on powerpc to before optional CFLAGS settings
* minor code & man page cleanups
 1.15 19-Apr-1997  thorpej Don't compile this with -O on the PowerPC - cc1 cores.
 1.14 30-Mar-1997  cjs Changes to make anonymous uploads more secure. For anonymous users:
* Set umask to 707;
* Disable UMASK, CHMOD, DELE, RMD and MKD commands.
Compile-time options let you change that umask and go back to the
old, insecure way if you like.
 1.13 16-Feb-1996  cgd add -Dunix to CFLAGS
 1.12 11-Apr-1995  cgd clean up RCS Id's and a couple of stype nits.
Also, fix bug 947 (reported by Luke Mewburn, extraneous vers.c)
 1.11 22-Dec-1994  cgd specify man pages the new way.
 1.10 25-Jul-1994  brezak As long as KERBEROS is here at least let it compile cleanly...
 1.9 29-Jun-1994  deraadt branches: 1.9.2;
4.4-lite, plus our local changes
 1.8 24-May-1994  deraadt add skey support
 1.7 14-Apr-1994  cgd use setproctitle
 1.6 30-Mar-1994  cgd some changes to make Kerberos a bit easier to use. from
Michael Graff <explorer@vorpal.com>, with some work by myself...
 1.5 07-Oct-1993  cgd always use libcrypt
 1.4 01-Aug-1993  mycroft Add RCS identifiers.
 1.3 26-Apr-1993  cgd changed to use new libcrypt scheme.
 1.2 22-Mar-1993  cgd added support for using real crypt
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Mar-1997  cjs Lite-1 Import.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.9.2.1 19-Aug-1994  mycroft update from trunk
 1.24.2.1 11-Nov-1997  mrg pull up from trunk: add a "checkportcmd <class>" option that stops ftp bounce attacks.
 1.35.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.40.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.42.2.3 26-Aug-2004  jmc Pullup rev 1.45-1.51 + patch (requested by he in ticket #158)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.42.2.2 29-Mar-2001  lukem sync ftpd to -current with the following revisions (for lukem/christos):
Makefile 1.43-1.44
cmds.c 1.7-1.8, 1.10-1.12
conf.c 1.35-1.40
extern.h 1.32-1.38
ftpcmd.y 1.53-1.59
ftpd.8 1.58-1.63
ftpd.c 1.102-1.104, 1.106-1.122
ftpd.conf.5 1.12-1.15
ftpusers.5 1.8
logwtmp.c 1.16
popen.c 1.23-1.25
version.h 1.28

a quick summary of user-visible changes;
- fix glob DoS by using GLOB_LIMIT
- add ftpd.conf directives `advertise', `maxfilesize', `sanenames'
- add flags: -P dataport, -X - wuftpd style log entries,
-q/-Q - (en|dis)able pidfiles, -u/-U - (en|dis)able utmp,
-w/-W - (en|dis)able wtmp
 1.42.2.1 20-Jun-2000  lukem file Makefile was added on branch netbsd-1-5 on 2001-03-29 14:14:16 +0000
 1.46.2.1 31-Aug-2004  jmc Pullup rev 1.47-1.51 + patch (requested by he in ticket #1739)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.56.8.1 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1201):
libexec/ftpd/ftpd.c: revision 1.183
libexec/ftpd/Makefile: revision 1.58
libexec/ftpd/version.h: revision 1.66
Reorganize USE_PAM support so that the reply(331,) from USER is
performed by the pam_conv (PAM conversation) callback, which then
getline()s the PASS reply internally. This involves calling
auth_pam() from user() and caching the result to use later in pass().
This allows the PAM modules to present a different password prompt
dialog if necesary. For example:
Name (localhost:lukem):
331 User lukem accepted, provide password [ otp-md4 89 xxxx12345 ].
versus
Name (localhost:lukem): root
331 User root accepted, provide password.
This is independent of (and effectively exclusive to) USE_SKEY support.
Previously ftpd with USE_SKEY=yes would provide the skey prompt
if the user had an skey configured, even if /etc/pam.d/ftpd didn't
have pam_skey in use.
I.e., ftpd shouldn't need special support for custom password prompts
(such as skey) if PAM is in use.
 1.56.4.1 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1201):
libexec/ftpd/ftpd.c: revision 1.183
libexec/ftpd/Makefile: revision 1.58
libexec/ftpd/version.h: revision 1.66
Reorganize USE_PAM support so that the reply(331,) from USER is
performed by the pam_conv (PAM conversation) callback, which then
getline()s the PASS reply internally. This involves calling
auth_pam() from user() and caching the result to use later in pass().
This allows the PAM modules to present a different password prompt
dialog if necesary. For example:
Name (localhost:lukem):
331 User lukem accepted, provide password [ otp-md4 89 xxxx12345 ].
versus
Name (localhost:lukem): root
331 User root accepted, provide password.
This is independent of (and effectively exclusive to) USE_SKEY support.
Previously ftpd with USE_SKEY=yes would provide the skey prompt
if the user had an skey configured, even if /etc/pam.d/ftpd didn't
have pam_skey in use.
I.e., ftpd shouldn't need special support for custom password prompts
(such as skey) if PAM is in use.
 1.58.4.1 24-Sep-2008  wrstuden Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
 1.59.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.63.20.1 30-Apr-2015  riz Pull up blacklistd(8), requested by christos in ticket #711:
crypto/external/bsd/openssh/dist/moduli-gen/Makefile up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli-gen.sh up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.1024 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.1536 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.2048 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.3072 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.4096 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.6144 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.7680 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.8192 up to 1.1.1.1
crypto/external/bsd/openssh/dist/bcrypt_pbkdf.c up to 1.2
crypto/external/bsd/openssh/dist/kexc25519.c up to 1.3
crypto/external/bsd/openssh/dist/smult_curve25519_ref.c up to 1.3
crypto/external/bsd/openssh/dist/bitmap.c up to 1.2 plus patch
crypto/external/bsd/openssh/dist/PROTOCOL.chacha20poly1305 up to 1.1.1.1
crypto/external/bsd/openssh/dist/PROTOCOL.key up to 1.1.1.1
crypto/external/bsd/openssh/dist/blf.h up to 1.1
crypto/external/bsd/openssh/dist/blocks.c up to 1.3
crypto/external/bsd/openssh/dist/blowfish.c up to 1.2
crypto/external/bsd/openssh/dist/chacha.c up to 1.3
crypto/external/bsd/openssh/dist/chacha.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/cipher-aesctr.c up to 1.1.1.2
crypto/external/bsd/openssh/dist/cipher-aesctr.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/cipher-chachapoly.c up to 1.3
crypto/external/bsd/openssh/dist/cipher-chachapoly.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/crypto_api.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/digest-libc.c up to 1.3
crypto/external/bsd/openssh/dist/digest-openssl.c up to 1.3
crypto/external/bsd/openssh/dist/digest.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/ed25519.c up to 1.3
crypto/external/bsd/openssh/dist/fe25519.c up to 1.3
crypto/external/bsd/openssh/dist/fe25519.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/ge25519.c up to 1.3
crypto/external/bsd/openssh/dist/ge25519.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/ge25519_base.data up to 1.1.1.1
crypto/external/bsd/openssh/dist/hash.c up to 1.3
crypto/external/bsd/openssh/dist/hmac.c up to 1.3
crypto/external/bsd/openssh/dist/hmac.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/kexc25519c.c up to 1.3
crypto/external/bsd/openssh/dist/kexc25519s.c up to 1.3
crypto/external/bsd/openssh/dist/poly1305.c up to 1.3
crypto/external/bsd/openssh/dist/poly1305.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/rijndael.c up to 1.1.1.2
crypto/external/bsd/openssh/dist/rijndael.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/sc25519.c up to 1.3
crypto/external/bsd/openssh/dist/sc25519.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/ssh-ed25519.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf-getput-basic.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf-getput-crypto.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf-misc.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf.h up to 1.4
crypto/external/bsd/openssh/dist/ssherr.c up to 1.3
crypto/external/bsd/openssh/dist/ssherr.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/sshkey.c up to 1.3
crypto/external/bsd/openssh/dist/sshkey.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/verify.c up to 1.3
crypto/external/bsd/openssh/dist/opacket.c up to 1.2
crypto/external/bsd/openssh/dist/umac128.c up to 1.1
crypto/external/bsd/openssh/dist/pfilter.c up to 1.2
crypto/external/bsd/openssh/dist/pfilter.h up to 1.1
crypto/external/bsd/openssh/dist/bitmap.h up to 1.2
crypto/external/bsd/openssh/dist/opacket.h up to 1.2
crypto/external/bsd/openssh/dist/ssh_api.c up to 1.2
crypto/external/bsd/openssh/dist/ssh_api.h up to 1.2
crypto/external/bsd/openssh/dist/auth2-jpake.c delete
crypto/external/bsd/openssh/dist/compress.c delete
crypto/external/bsd/openssh/dist/compress.h delete
crypto/external/bsd/openssh/dist/jpake.c delete
crypto/external/bsd/openssh/dist/jpake.h delete
crypto/external/bsd/openssh/dist/schnorr.c delete
crypto/external/bsd/openssh/dist/schnorr.h delete
crypto/external/bsd/openssh/dist/strtonum.c 1.1
crypto/external/bsd/openssh/Makefile.inc up to 1.8
crypto/external/bsd/openssh/bin/Makefile.inc up to 1.3
crypto/external/bsd/openssh/bin/ssh-keyscan/Makefile up to 1.2
crypto/external/bsd/openssh/bin/sshd/Makefile up to 1.12
crypto/external/bsd/openssh/dist/PROTOCOL up to 1.5
crypto/external/bsd/openssh/dist/PROTOCOL.krl up to 1.1.1.2
crypto/external/bsd/openssh/dist/addrmatch.c up to 1.8
crypto/external/bsd/openssh/dist/atomicio.c up to 1.6
crypto/external/bsd/openssh/dist/auth-bsdauth.c up to 1.4
crypto/external/bsd/openssh/dist/auth-chall.c up to 1.6
crypto/external/bsd/openssh/dist/auth-krb5.c up to 1.7
crypto/external/bsd/openssh/dist/auth-options.c up to 1.9
crypto/external/bsd/openssh/dist/auth-options.h up to 1.6
crypto/external/bsd/openssh/dist/auth-passwd.c up to 1.4
crypto/external/bsd/openssh/dist/auth-rh-rsa.c up to 1.6
crypto/external/bsd/openssh/dist/auth-rhosts.c up to 1.5
crypto/external/bsd/openssh/dist/auth-rsa.c up to 1.10
crypto/external/bsd/openssh/dist/auth.c up to 1.12
crypto/external/bsd/openssh/dist/auth.h up to 1.10
crypto/external/bsd/openssh/dist/auth1.c up to 1.11
crypto/external/bsd/openssh/dist/auth2-chall.c up to 1.7
crypto/external/bsd/openssh/dist/auth2-gss.c up to 1.8
crypto/external/bsd/openssh/dist/auth2-hostbased.c up to 1.7
crypto/external/bsd/openssh/dist/auth2-kbdint.c up to 1.5
crypto/external/bsd/openssh/dist/auth2-krb5.c up to 1.4
crypto/external/bsd/openssh/dist/auth2-none.c up to 1.5
crypto/external/bsd/openssh/dist/auth2-passwd.c up to 1.5
crypto/external/bsd/openssh/dist/auth2-pubkey.c up to 1.11
crypto/external/bsd/openssh/dist/auth2.c up to 1.11
crypto/external/bsd/openssh/dist/authfd.c up to 1.8
crypto/external/bsd/openssh/dist/authfd.h up to 1.5
crypto/external/bsd/openssh/dist/authfile.c up to 1.10
crypto/external/bsd/openssh/dist/authfile.h up to 1.6
crypto/external/bsd/openssh/dist/bufaux.c up to 1.7
crypto/external/bsd/openssh/dist/bufbn.c up to 1.5
crypto/external/bsd/openssh/dist/bufec.c up to 1.5
crypto/external/bsd/openssh/dist/buffer.c up to 1.6
crypto/external/bsd/openssh/dist/buffer.h up to 1.7
crypto/external/bsd/openssh/dist/canohost.c up to 1.8
crypto/external/bsd/openssh/dist/channels.c up to 1.13
crypto/external/bsd/openssh/dist/channels.h up to 1.10
crypto/external/bsd/openssh/dist/cipher-3des1.c up to 1.7
crypto/external/bsd/openssh/dist/cipher-bf1.c up to 1.6
crypto/external/bsd/openssh/dist/cipher.c up to 1.7
crypto/external/bsd/openssh/dist/cipher.h up to 1.7
crypto/external/bsd/openssh/dist/clientloop.c up to 1.13
crypto/external/bsd/openssh/dist/compat.c up to 1.9
crypto/external/bsd/openssh/dist/compat.h up to 1.6
crypto/external/bsd/openssh/dist/deattack.c up to 1.4
crypto/external/bsd/openssh/dist/deattack.h up to 1.4
crypto/external/bsd/openssh/dist/dh.c up to 1.8
crypto/external/bsd/openssh/dist/dh.h up to 1.4
crypto/external/bsd/openssh/dist/dispatch.c up to 1.5
crypto/external/bsd/openssh/dist/dispatch.h up to 1.4
crypto/external/bsd/openssh/dist/dns.c up to 1.11
crypto/external/bsd/openssh/dist/dns.h up to 1.6
crypto/external/bsd/openssh/dist/groupaccess.c up to 1.5
crypto/external/bsd/openssh/dist/gss-genr.c up to 1.7
crypto/external/bsd/openssh/dist/gss-serv-krb5.c up to 1.8
crypto/external/bsd/openssh/dist/gss-serv.c up to 1.7
crypto/external/bsd/openssh/dist/hostfile.c up to 1.7
crypto/external/bsd/openssh/dist/hostfile.h up to 1.7
crypto/external/bsd/openssh/dist/includes.h up to 1.4
crypto/external/bsd/openssh/dist/kex.c up to 1.10
crypto/external/bsd/openssh/dist/kex.h up to 1.9
crypto/external/bsd/openssh/dist/kexdh.c up to 1.4
crypto/external/bsd/openssh/dist/kexdhc.c up to 1.6
crypto/external/bsd/openssh/dist/kexdhs.c up to 1.8
crypto/external/bsd/openssh/dist/kexecdh.c up to 1.5
crypto/external/bsd/openssh/dist/kexecdhc.c up to 1.5
crypto/external/bsd/openssh/dist/kexecdhs.c up to 1.5
crypto/external/bsd/openssh/dist/kexgex.c up to 1.4
crypto/external/bsd/openssh/dist/kexgexc.c up to 1.6
crypto/external/bsd/openssh/dist/kexgexs.c up to 1.8
crypto/external/bsd/openssh/dist/key.c up to 1.16
crypto/external/bsd/openssh/dist/key.h up to 1.9
crypto/external/bsd/openssh/dist/krl.c up to 1.5
crypto/external/bsd/openssh/dist/krl.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/mac.c up to 1.11
crypto/external/bsd/openssh/dist/mac.h up to 1.5
crypto/external/bsd/openssh/dist/match.c up to 1.5
crypto/external/bsd/openssh/dist/misc.c up to 1.10
crypto/external/bsd/openssh/dist/misc.h up to 1.9 plus patch
crypto/external/bsd/openssh/dist/moduli.c up to 1.8
crypto/external/bsd/openssh/dist/monitor.c up to 1.14
crypto/external/bsd/openssh/dist/monitor.h up to 1.7
crypto/external/bsd/openssh/dist/monitor_fdpass.c up to 1.5
crypto/external/bsd/openssh/dist/monitor_mm.c up to 1.6
crypto/external/bsd/openssh/dist/monitor_mm.h up to 1.4
crypto/external/bsd/openssh/dist/monitor_wrap.c up to 1.11
crypto/external/bsd/openssh/dist/monitor_wrap.h up to 1.8
crypto/external/bsd/openssh/dist/msg.c up to 1.4
crypto/external/bsd/openssh/dist/msg.h up to 1.4
crypto/external/bsd/openssh/dist/mux.c up to 1.11
crypto/external/bsd/openssh/dist/myproposal.h up to 1.10
crypto/external/bsd/openssh/dist/namespace.h up to 1.5
crypto/external/bsd/openssh/dist/packet.c up to 1.18
crypto/external/bsd/openssh/dist/packet.h up to 1.11
crypto/external/bsd/openssh/dist/pathnames.h up to 1.9
crypto/external/bsd/openssh/dist/pkcs11.h up to 1.4
crypto/external/bsd/openssh/dist/progressmeter.c up to 1.7
crypto/external/bsd/openssh/dist/progressmeter.h up to 1.4
crypto/external/bsd/openssh/dist/reallocarray.c new
crypto/external/bsd/openssh/dist/readconf.c up to 1.13
crypto/external/bsd/openssh/dist/readconf.h up to 1.12
crypto/external/bsd/openssh/dist/readpass.c up to 1.6
crypto/external/bsd/openssh/dist/roaming_client.c up to 1.7
crypto/external/bsd/openssh/dist/roaming_common.c up to 1.9
crypto/external/bsd/openssh/dist/roaming_dummy.c up to 1.4
crypto/external/bsd/openssh/dist/rsa.c up to 1.5
crypto/external/bsd/openssh/dist/rsa.h up to 1.4
crypto/external/bsd/openssh/dist/sandbox-systrace.c up to 1.1.1.5
crypto/external/bsd/openssh/dist/scp.1 up to 1.9
crypto/external/bsd/openssh/dist/scp.c up to 1.11
crypto/external/bsd/openssh/dist/servconf.c up to 1.17
crypto/external/bsd/openssh/dist/servconf.h up to 1.11
crypto/external/bsd/openssh/dist/serverloop.c up to 1.12
crypto/external/bsd/openssh/dist/session.c up to 1.14
crypto/external/bsd/openssh/dist/session.h up to 1.4
crypto/external/bsd/openssh/dist/sftp-client.c up to 1.13
crypto/external/bsd/openssh/dist/sftp-client.h up to 1.7
crypto/external/bsd/openssh/dist/sftp-common.c up to 1.7
crypto/external/bsd/openssh/dist/sftp-common.h up to 1.5
crypto/external/bsd/openssh/dist/sftp-glob.c up to 1.8
crypto/external/bsd/openssh/dist/sftp-server.8 up to 1.9
crypto/external/bsd/openssh/dist/sftp-server.c up to 1.11
crypto/external/bsd/openssh/dist/sftp.1 up to 1.11
crypto/external/bsd/openssh/dist/sftp.c up to 1.15
crypto/external/bsd/openssh/dist/ssh-add.1 up to 1.9
crypto/external/bsd/openssh/dist/ssh-add.c up to 1.10
crypto/external/bsd/openssh/dist/ssh-agent.1 up to 1.8
crypto/external/bsd/openssh/dist/ssh-agent.c up to 1.14
crypto/external/bsd/openssh/dist/ssh-dss.c up to 1.7
crypto/external/bsd/openssh/dist/ssh-ecdsa.c up to 1.6
crypto/external/bsd/openssh/dist/ssh-gss.h up to 1.5
crypto/external/bsd/openssh/dist/ssh-keygen.1 up to 1.13
crypto/external/bsd/openssh/dist/ssh-keygen.c up to 1.16
crypto/external/bsd/openssh/dist/ssh-keyscan.1 up to 1.10
crypto/external/bsd/openssh/dist/ssh-keyscan.c up to 1.13
crypto/external/bsd/openssh/dist/ssh-keysign.8 up to 1.9
crypto/external/bsd/openssh/dist/ssh-keysign.c up to 1.8
crypto/external/bsd/openssh/dist/ssh-pkcs11-client.c up to 1.6
crypto/external/bsd/openssh/dist/ssh-pkcs11-helper.c up to 1.8
crypto/external/bsd/openssh/dist/ssh-pkcs11.c up to 1.7
crypto/external/bsd/openssh/dist/ssh-pkcs11.h up to 1.4
crypto/external/bsd/openssh/dist/ssh-rsa.c up to 1.7
crypto/external/bsd/openssh/dist/ssh.1 up to 1.14
crypto/external/bsd/openssh/dist/ssh.c up to 1.16
crypto/external/bsd/openssh/dist/ssh2.h up to 1.6
crypto/external/bsd/openssh/dist/ssh_config up to 1.8
crypto/external/bsd/openssh/dist/ssh_config.5 up to 1.13
crypto/external/bsd/openssh/dist/sshconnect.c up to 1.11
crypto/external/bsd/openssh/dist/sshconnect.h up to 1.6
crypto/external/bsd/openssh/dist/sshconnect1.c up to 1.6
crypto/external/bsd/openssh/dist/sshconnect2.c up to 1.19
crypto/external/bsd/openssh/dist/sshd.8 up to 1.13
crypto/external/bsd/openssh/dist/sshd.c up to 1.18
crypto/external/bsd/openssh/dist/sshd_config up to 1.13
crypto/external/bsd/openssh/dist/sshd_config.5 up to 1.17
crypto/external/bsd/openssh/dist/sshlogin.c up to 1.6
crypto/external/bsd/openssh/dist/sshpty.c up to 1.4
crypto/external/bsd/openssh/dist/uidswap.c up to 1.4
crypto/external/bsd/openssh/dist/umac.c up to 1.9
crypto/external/bsd/openssh/dist/version.h up to 1.14
crypto/external/bsd/openssh/dist/xmalloc.c up to 1.5
crypto/external/bsd/openssh/lib/Makefile up to 1.17 plus patch
crypto/external/bsd/openssh/lib/shlib_version up to 1.13
distrib/sets/lists/base/ad.aarch64 patch
distrib/sets/lists/base/ad.arm patch
distrib/sets/lists/base/ad.mips patch
distrib/sets/lists/base/ad.powerpc patch
distrib/sets/lists/base/md.amd64 patch
distrib/sets/lists/base/md.sparc64 patch
distrib/sets/lists/base/mi patch
distrib/sets/lists/base/shl.mi patch
distrib/sets/lists/comp/ad.aarch64 patch
distrib/sets/lists/comp/ad.arm patch
distrib/sets/lists/comp/ad.mips patch
distrib/sets/lists/comp/ad.powerpc patch
distrib/sets/lists/comp/md.amd64 patch
distrib/sets/lists/comp/md.sparc64 patch
distrib/sets/lists/comp/mi patch
distrib/sets/lists/comp/shl.mi patch
distrib/sets/lists/debug/ad.aarch64 patch
distrib/sets/lists/debug/ad.arm patch
distrib/sets/lists/debug/ad.mips patch
distrib/sets/lists/debug/ad.powerpc patch
distrib/sets/lists/debug/md.amd64 patch
distrib/sets/lists/debug/md.sparc64 patch
distrib/sets/lists/debug/shl.mi patch
distrib/sets/lists/etc/mi patch
distrib/sets/lists/man/mi patch
etc/defaults/rc.conf 1.130
etc/mtree/NetBSD.dist.base 1.142
external/bsd/Makefile up to 1.48
external/bsd/blacklist/bin/Makefile up to 1.11 plus patch
external/bsd/blacklist/bin/blacklistctl.8 up to 1.6
external/bsd/blacklist/bin/blacklistctl.c up to 1.17
external/bsd/blacklist/bin/blacklistd.8 up to 1.10
external/bsd/blacklist/bin/blacklistd.c up to 1.32
external/bsd/blacklist/bin/blacklistd.conf.5 up to 1.2
external/bsd/blacklist/bin/conf.c up to 1.18
external/bsd/blacklist/bin/conf.h up to 1.6
external/bsd/blacklist/bin/internal.c up to 1.5
external/bsd/blacklist/bin/internal.h up to 1.12
external/bsd/blacklist/bin/run.c up to 1.12
external/bsd/blacklist/bin/run.h up to 1.5
external/bsd/blacklist/bin/state.c up to 1.15
external/bsd/blacklist/bin/state.h up to 1.5
external/bsd/blacklist/bin/support.c up to 1.6
external/bsd/blacklist/bin/support.h up to 1.5
external/bsd/blacklist/etc/rc.d/Makefile up to 1.1
external/bsd/blacklist/etc/rc.d/blacklistd up to 1.1
external/bsd/blacklist/etc/Makefile up to 1.3
external/bsd/blacklist/etc/blacklistd.conf up to 1.3
external/bsd/blacklist/etc/npf.conf up to 1.1
external/bsd/blacklist/Makefile up to 1.2
external/bsd/blacklist/Makefile.inc up to 1.3
external/bsd/blacklist/README up to 1.7
external/bsd/blacklist/TODO up to 1.7
external/bsd/blacklist/diff/ftpd.diff up to 1.1
external/bsd/blacklist/diff/named.diff up to 1.6
external/bsd/blacklist/diff/ssh.diff up to 1.6
external/bsd/blacklist/include/Makefile up to 1.1
external/bsd/blacklist/include/bl.h up to 1.12
external/bsd/blacklist/include/blacklist.h up to 1.3
external/bsd/blacklist/include/config.h new
external/bsd/blacklist/lib/Makefile up to 1.3
external/bsd/blacklist/lib/bl.c up to 1.24
external/bsd/blacklist/lib/blacklist.c up to 1.5
external/bsd/blacklist/lib/libblacklist.3 up to 1.3
external/bsd/blacklist/lib/shlib_version up to 1.1
external/bsd/blacklist/libexec/Makefile up to 1.1
external/bsd/blacklist/libexec/blacklistd-helper up to 1.4
external/bsd/blacklist/port/m4/.cvsignore up to 1.1
external/bsd/blacklist/port/Makefile.am up to 1.4
external/bsd/blacklist/port/_strtoi.h up to 1.1
external/bsd/blacklist/port/clock_gettime.c up to 1.2
external/bsd/blacklist/port/configure.ac up to 1.7
external/bsd/blacklist/port/fgetln.c up to 1.1
external/bsd/blacklist/port/fparseln.c up to 1.1
external/bsd/blacklist/port/getprogname.c up to 1.4
external/bsd/blacklist/port/pidfile.c up to 1.1
external/bsd/blacklist/port/popenve.c up to 1.2
external/bsd/blacklist/port/port.h up to 1.6
external/bsd/blacklist/port/sockaddr_snprintf.c up to 1.9
external/bsd/blacklist/port/strlcat.c up to 1.2
external/bsd/blacklist/port/strlcpy.c up to 1.2
external/bsd/blacklist/port/strtoi.c up to 1.3
external/bsd/blacklist/test/Makefile up to 1.2
external/bsd/blacklist/test/cltest.c up to 1.6
external/bsd/blacklist/test/srvtest.c up to 1.9
lib/libpam/modules/pam_ssh/pam_ssh.c up to 1.23
libexec/ftpd/pfilter.c up to 1.1
libexec/ftpd/pfilter.h up to 1.1
libexec/ftpd/Makefile up to 1.64
libexec/ftpd/ftpd.c up to 1.201

Add blacklistd(8), a daemon to block and release network ports
on demand to mitigate abuse, and related changes to system daemons
to support it.
[christos, ticket #711]
 1.65.4.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.35 17-Jan-2016  christos PR/50665: David Binderman: move "dir" to the outer scope so it stays alive
when the pointer is used later.
 1.34 10-Aug-2015  shm Fix directory stream leaks
 1.33 03-Jul-2013  christos check that stat succeeded before testing the guts of struct stat
(Manime Villard)
 1.32 28-Jun-2013  joerg Fix violations of the sequence point rule.
 1.31 19-Jun-2012  dholland branches: 1.31.2;
Pass WARNS=5
 1.30 15-Mar-2009  lukem branches: 1.30.6;
Fix WARNS=4 issues (const & sign mismatches, etc)
Ensure various ftpd.conf values can't exceed their underlying types.
 1.29 02-Mar-2009  lukem Use LLF (et al) instead of "%lld" (et al).
 1.28 29-Dec-2008  christos branches: 1.28.2;
fix for 64 bit time_t and dev_t
 1.27 13-Sep-2008  lukem Crank copyright dates
 1.26 09-Jun-2008  lukem Don't use non-standard "u_<foo>" types.
Strip trailing whitespace (as well as ':'s) off PAM password prompts.
Improve some debug logging related to PAM.
 1.25 28-Apr-2008  martin branches: 1.25.2;
Remove clause 3 and 4 from TNF licenses
 1.24 01-Feb-2006  christos branches: 1.24.18;
debug -> ftpd_debug
xstrdup -> ftpd_strdup
 1.23 09-Aug-2004  lukem Fixes from (or inspired by) OpenBSD:
* Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary.
* Fix SIGURG handler to set an urgflag that's later tested, rather than
abusing setjmp(3)/longjmp(3).
* Use "volatile sig_atomic_t" as the type of variables modified by sig handlers.
* Use sigaction(3) instead of signal(3) to set the signal handlers.
* Only set the main SIGALRM handler once. If we need to change it,
cache the old handler and restore appropriately...
* Remove a bunch of signal races by improving the signal handlers.
* Fix memory leak with 'ESPV ALL'.

My stuff:
* Clean up the debug message in reply(); use vsnprintf(3) instead of vsyslog(3).
* Rework parsing of OOB commands to _not_ use the yacc parser, since the
latter isn't reentrant and the hacks to work around that are ugly.
We now examine urgflag at appropriate locations and call handleoobcmd()
if it's set. Since the only OOB commands we currently implement are
ABOR and STAT, this isn't an issue. (I also can't find the reference in
RFC2228 where MIC, CONF & ENC are OOB-only commands. Go figure.)
I could clean up the is_oob stuff some more, but the remaining stuff
in ftpcmd.y is harmless and it's unnecessary churn right this moment.
 1.22 07-Aug-2003  agc branches: 1.22.2;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.21 24-Feb-2003  erh Fix uninitialized variable in mlsname()
 1.20 08-Jan-2003  manu ftpd was unable to service the pwd request once you entered a directory
without search permission. This confused some ftp clients.

We fix this problem by maitaining a cached path when getcwd() does not work.
The symbolic links and ../ are resolved in the cached path, and it is finnally
checked for accuracy by comparing ./ and the cached path with stat (device
and inode comparison). If the comparison fails, pwd fails as it did before,
and if the comparison succeeds, the cached path is displayed.

If paths are too long, we should just compare ./ with a truncated path and
fail, thus making pwd displaying an error as it did before.
 1.19 25-Oct-2002  itojun Turns out that our implementation of STAT wasn't RFC 959 compliant.
This version is now RFC 959 compliant, using a patch adapted from one
sent in by david.leonard@eecs.uq.edu.au

openbsd libexec/ftpd/ftpd.c revision 1.69.

(see RFC959 page 36)
 1.18 12-Oct-2002  darrenr * enclose unknown command strings inside a pair of 's to clearly mark the
text as being the 'whole' part received.
* change a HELP reply from 214 to 504 when there is an error looking for
help on a command.
 1.17 11-Oct-2002  darrenr "Command not implemented." is 502, not 501 (RFC959, 4.2.1)
 1.16 13-Feb-2002  lukem branches: 1.16.2;
Fixes for mlsd/mlst standards conformance issues (noted by Robert Elz):
- mlst shouldn't return cdir or pdir for type, only dir
- mlst should always provide a full path name
- mlsd should provide a full path name for the cdir entry. (providing a
full path name for the pdir entry is optional, and i punted on that).
 1.15 01-Feb-2002  lukem fix previous, and ensure that closedataconn() is only called after dataconn()
and with a non-NULL file pointer. active transfers now work correctly again,
passive transfers work, and the data stream is only closed after a PASV or
EPSV if a successful connection was initiated with dataconn().
 1.14 17-Jan-2002  itojun reject SIZE request for ascii file if it exceeds 10k.
 1.13 25-Apr-2001  lukem crank copyrights of files changed this year
remove superfluous byte_count update in send_file_list
crank version
 1.12 09-Jan-2001  itojun ensure replydirname() do not truncate the names.
From: Paul Janzen <pjanzen@foatdi.harvard.edu>
 1.11 09-Jan-2001  itojun make sure we do not return stray " at the end of stirng, like bla"\0.
From: "William C. Allen" <allenwc@home.com>
 1.10 18-Dec-2000  lukem Features:

* Add ftpd.conf(5) directive `advertise'; change the address that is
advertised to the client for PASV transfers. this may be useful in
certain firewall/NAT environments.

Feature requested in [bin/9606] by Scott Presnell.

* Add -X option; syslog wu-ftpd style xferlog messages, prefixed with
`xferlog: '. An example line from syslog (wrapped):
Dec 16 18:50:24 odysseus ftpd[571]: xferlog: Sat Dec 16 18:50:24 2000
2 localhost 3747328 /pub/WLW2K601.EXE b _ o a lukem@ FTP 0 * c

These messages can be converted to a wu-ftpd style xferlog file
suitable for parsing with third-party tools with something like:
grep 'xferlog: ' /var/log/xferlog | \
sed -e 's/^.*xferlog: //' >wuxferlog

The format is the same as the wu-ftpd xferlog entries (with the leading
syslog stuff), but different from the wu-ftpd syslogged xferlog entries
because the latter is not as easy to convert into the standard xferlog
file format.

The choice to only syslog the xferlog messages rather than append to
a /var/log/xferlog file was made because the latter doesn't work to
well in the situation where the logfile is rotated and compressed and
a long-running ftpd still has a file-descriptor to the now nonexistant
xferlog file, and the log message will then get lost.

Feature requested in [bin/11651] by Hubert Feyrer.


Fixes:

* In ftpd(8), clarify the -a and -c options.

* More clarifications in ftpd.conf(5).

* Ensure that all ftpd.conf commands set a parameter back to sane defaults
if an argument of `none' or bad settings are given.

* Support the `chroot' directive for `REAL' users too (for consistency).

* For `GUEST' users, store the supplied password in pw->pw_passwd for use
later in the xferlog.

* If show_chdir_messages() is given a code of -1, flush the cache of
visited directories. Invoke show_chdir_messages(-1) in end_login().

* Only syslog session stats if logging is requested.

* Rename logcmd() -> logxfer(), and dolog() -> logremotehost().

* Use cprintf() instead of fprintf() where appropriate.

* Minor KNF, and make a couple of functions static that were declared static.
 1.9 04-Dec-2000  itojun in replydirname(), avoid one-byte overrun.
From: Kristian Vlaardingerbroek <kris@obit.nl> (to bugs@openbsd)
 1.8 16-Nov-2000  lukem - new ftpd.conf directives:
maxfilesize set the maximum size of uploaded files
sanenames if set, only permit uploaded filenames that contain
characters from the set "-+,._A-Za-z0-9" and that
don't start with `.'

- new/changed command line options:
-e emailaddr define email address for %E (see below)
-P dataport use dataport as the dataport (instead of ctrlport-1)
-q use pid files to count users [default]
-Q don't use pid files to count users
-u write entries to utmp
-U don't write entries to utmp [default]
-w write entries to wtmp [default]
-W don't write entries to wtmp

NOTE: -U used to mean `write utmp entries'. Its meaning has changed
so that it's orthogonal with -q/-Q and -w/-W. This isn't
considered a major problem, because using -U isn't going to
enable something you don't want, but will disable something
you did want (which is safer).

- new display file escape sequences:
%E email address
%s literal `s' if the previous %M or %N wasn't ``1''.
%S literal `S' if the previous %M or %N wasn't ``1''.

- expand the description of building ~ftp/incoming to cover the
appropriate ftpd.conf(5) directives (which are defaults, but it pays
to explicitly explain them)

- replace strsuftoi() with strsuftoll(), which returns a long long if
supported, otherwise a long

- rework the way that check_modify and check_upload are done in the yacc
parser; they're merged into a common check_write() function which is
called explicitly

- merge all ftpclass `flag variables' into a single bitfield-based flag element

- move various common bits of parse_conf() into a couple of macros

- clean up some comments
 1.7 15-Nov-2000  lukem changes to improve portability:
* replace union sockunion {} with struct sockinet {}, and modify the code
accordingly. this is possibly more portable, as it doesn't rely upon
the structure alignment within the union for our own stuff. uses local
su_len unless HAVE_SOCKADDR_SA_LEN is defined (set ifdef BSD4_4)
(XXX: haven't tested the ipv6 stuff)
* always use getaddrinfo() and getnameinfo() instead of maintaining two code
paths. (lukemftpd will provide replacements for these on older systems)
* use lockf() instead of open(.., O_EXLOCK) to lock the pid file
* minor KNF
* clean up long long support: create helper #defines and use as appropriate:
#define NO_LONG_LONG ! NO_LONG_LONG
------- ------------ --------------
LLF "%ld" "%lld"
LLFP(x) "%" x "ld" "%" x "lld"
LLT long long long
ULLF "%lu" "%llu"
ULLFP(x) "%" x "lu" "%" x "llu"
ULLT unsigned long unsigned long long
STRTOLL(x,y,z) strtol(x,y,z) strtoll(x,y,z)
 1.6 10-Jul-2000  lukem base64_encode(): separate out the special case for the last 2 bytes, and
be a bit safer with signed chars. per discussion with kre.
 1.5 09-Jul-2000  lukem - base64_encode(): fix garbled output due to fencepost error. output now
appears to match that of 'mimencode' (from metamail).
problem noted by kre@munnari.oz.au.
- fact_unique(): encode a combined dev_t+ino_t chunk rather than separate bits
 1.4 19-Jun-2000  lukem branches: 1.4.2; 1.4.4;
rewrite method of traversing facttab[]; use size of list to terminate
not NULL terminated entry (since we need to know the size of other
reasons...)
 1.3 19-Jun-2000  lukem various fixes suggested by Robert Elz:
* implement closedataconn() and use appropriately (including in mlsd())
* only put leading space in front of MLST output (not MLSD output)
* MLSD: only output pdir and cdir entries when the type fact is requested.
* change error code for giving MLSD a non-directory from 550 to 501
* remove MLSx Type fact support for UNIX.* for now; it's not standardised yet.
* do a check_login when MLSD and MLST are given no args
* detect & complain about null facts in OPTS MLST
* cache getgroups() at login instead of calling each time in fact_perm()

other mods:
* implement cprintf(); as per fprintf() but increments total_bytes{,_out}
* implement CPUTC(); as per putc() but increments total_bytes{,_out}
* implement base64_encode()
* fact_unique() display base64 encoding of dev_t and ino_t rather than
hex output; should scale if size of those changes
* change reply() so that a negative code acts as the initial line in a reply,
code == 0 prefixes the line with 4 spaces, and code > 0 works as before.
deprecate lreply(code, ) and lreply(0, ) in favour of reply(-code, ) and
reply(0, ) respectively.
* use cprintf() and CPUTC() appropriately (often instead of printf(),
lreply(-2, ) or lreply(-1, ).
now we actually account for the data sent by MLST and MLSD.
* remove DEBUG support for sending MLSD output to control connection instead
of data connection (my ftp client now supports MLSD :-)
 1.2 16-Jun-2000  explorer include <krb5/krb5.h> before including extern.h, so krb5_context is defined
 1.1 14-Jun-2000  lukem major overhaul (just before netbsd 1.5 :-):

* implement draft-ietf-ftpext-mlst-10 commands, especially MLST and MLSD.
we already supported SIZE and MDTM. add the appropriate FEAT output lines.

* migrate a lot of the command code from ftpcmd.y and ftpd.c to cmds.c

* make dataconn(), feat(), lookup(), opts() and sizecmd() public

* modify struct tab so that it has a `flags' instead of `implemented' element,
and remove the `hasopts' element. If flags == 1, the command is implemented.
if flags == 2, the command is implemented and takes options

* add macros ISDOTDIR(x) (is x ".") and ISDOTDOTDIR(x) (is x "..")

* modify lreply() so that lreply(-2, ...) just outputs the given info without
a prefix or trailing \r\n. this saves doing b = printf(); total_* += b;

* enhance statcmd(). still needs work in the LPRT status stuff.

* crank version
 1.4.4.2 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.4.4.1 19-Jun-2000  minoura file cmds.c was added on branch minoura-xpg4dl on 2000-06-22 15:58:15 +0000
 1.4.2.5 26-Aug-2004  jmc Pullup rev 1.13-1.18,1.20-1.23 (requested by he in ticket #158)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.4.2.4 25-Oct-2002  itojun libexec/ftpd/cmds.c 1.19

Correct RFC959 compliance in quoting lines starting with digits (page 36).

(itojun)
 1.4.2.3 29-Mar-2001  lukem sync ftpd to -current with the following revisions (for lukem/christos):
Makefile 1.43-1.44
cmds.c 1.7-1.8, 1.10-1.12
conf.c 1.35-1.40
extern.h 1.32-1.38
ftpcmd.y 1.53-1.59
ftpd.8 1.58-1.63
ftpd.c 1.102-1.104, 1.106-1.122
ftpd.conf.5 1.12-1.15
ftpusers.5 1.8
logwtmp.c 1.16
popen.c 1.23-1.25
version.h 1.28

a quick summary of user-visible changes;
- fix glob DoS by using GLOB_LIMIT
- add ftpd.conf directives `advertise', `maxfilesize', `sanenames'
- add flags: -P dataport, -X - wuftpd style log entries,
-q/-Q - (en|dis)able pidfiles, -u/-U - (en|dis)able utmp,
-w/-W - (en|dis)able wtmp
 1.4.2.2 13-Dec-2000  he Pull up revision 1.9 (requested by itojun):
Fix a one-byte buffer overrun.
 1.4.2.1 13-Jul-2000  thorpej Pull up revs. 1.4-1.6 (lukem):
fixes some issues with the correct generation of unique facts in
the output of MLSx.
 1.16.2.3 31-Aug-2004  jmc Pullup rev 1.17-1.18,1.21-1.23 (requested by he in ticket #1739)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.16.2.2 11-Jan-2003  jmc Pull up revisions 1.19-1.20 (requested by manu in ticket #1064)
ftpd was unable to service the pwd request once you entered a directory
without search permission. This confused some ftp clients.

We fix this problem by maitaining a cached path when getcwd() does not
work. The symbolic links and ../ are resolved in the cached path, and it
is finnally checked for accuracy by comparing ./ and the cached path
with stat (device and inode comparison). If the comparison fails, pwd
fails as it did before, and if the comparison succeeds, the cached path
is displayed.

If paths are too long, we should just compare ./ with a truncated path
and fail, thus making pwd displaying an error as it did before.
 1.16.2.1 01-Nov-2002  tron Pull up revision 1.19 (requested by itojun in ticket #942):
Turns out that our implementation of STAT wasn't RFC 959 compliant.
This version is now RFC 959 compliant, using a patch adapted from one
sent in by david.leonard@eecs.uq.edu.au
openbsd libexec/ftpd/ftpd.c revision 1.69.
(see RFC959 page 36)
 1.22.2.1 13-Aug-2004  jmc Pullup rev 1.23 (requested by lukem in ticket #757)

* Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary.
* Fix SIGURG handler to set an urgflag that's later tested, rather than
abusing setjmp(3)/longjmp(3).
* Use "volatile sig_atomic_t" as the type of variables modified by sig handlers.
* Use sigaction(3) instead of signal(3) to set the signal handlers.
* Only set the main SIGALRM handler once. If we need to change it,
cache the old handler and restore appropriately...
* Remove a bunch of signal races by improving the signal handlers.
* Fix memory leak with 'ESPV ALL'.
* Clean up the debug message in reply(); use vsnprintf(3) instead of vsyslog(3).
* Rework parsing of OOB commands to _not_ use the yacc parser, since the
latter isn't reentrant and the hacks to work around that are ugly.
We now examine urgflag at appropriate locations and call handleoobcmd()
if it's set. Since the only OOB commands we currently implement are
ABOR and STAT, this isn't an issue.
 1.24.18.2 17-Jun-2008  yamt sync with head.
 1.24.18.1 18-May-2008  yamt sync with head.
 1.25.2.2 24-Sep-2008  wrstuden Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
 1.25.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.28.2.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.30.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.30.6.1 30-Oct-2012  yamt sync with head
 1.31.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.65 29-Sep-2023  shm Fix uninitialized memory usage in count_users()

If the file was previously empty, pids table is not set, the code however used
pids[0] which is uninitialized in this case. In some scenarios it may lead to
propagate garbage value from pids[0] to the file and cause writing outside of
allocated memory.

OK lukem@
 1.64 04-Nov-2012  christos branches: 1.64.22; 1.64.32; 1.64.40;
include pwd.h for password stuff
 1.63 14-Aug-2011  christos branches: 1.63.2; 1.63.8;
remove gcc-4.5 hack
 1.62 15-Mar-2009  lukem Fix WARNS=4 issues (const & sign mismatches, etc)
Ensure various ftpd.conf values can't exceed their underlying types.
 1.61 09-Jun-2008  lukem branches: 1.61.6;
Don't use non-standard "u_<foo>" types.
Strip trailing whitespace (as well as ':'s) off PAM password prompts.
Improve some debug logging related to PAM.
 1.60 28-Apr-2008  martin branches: 1.60.2;
Remove clause 3 and 4 from TNF licenses
 1.59 09-Mar-2008  lukem branches: 1.59.2;
Switch from lockf() to (more portable) fcntl() locking
 1.58 17-Dec-2006  christos branches: 1.58.4; 1.58.8;
fix volatile and initialization issues, from Anon Ymous
 1.57 01-Feb-2006  christos debug -> ftpd_debug
xstrdup -> ftpd_strdup
 1.56 02-Oct-2005  lukem Fix comment about DEFAULT_UMASK.
Pointed out in private mail by Tetsuya Isaki and Dmitry Sivachenko.
 1.55 24-Aug-2005  ginsbach * Add recvbufsize configuration option
This allows for setting the passive socket's SO_RCVBUF. Option works
similarly to the current sendbufsize configuration option.
* Change how recveive_data() works
When reading data from the socket for passive transfers to the server,
receive_data() now works very similar to send_data_with_read(). Reads
from the network are now done using either the filesystem block size or
the configuration option readsize chunks.
* Crank version.h
[Changes discussed with lukem.]
 1.54 03-Mar-2005  ginsbach * Add hidesymlinks configuration option
This adds a -L to all ls command arguments so that the file or directory
the link references is listed rather than the link itself. This was
inspired by IRIX ftpd's -S option.
[Discussed with lukem some time ago.]
* Crank version.h [right Luke? :-)]
 1.53 11-Dec-2004  christos change _PATH_FOO to _NAME_FOO where FOO is not a path. I'll discuss with
luke what is the best way to fix this.
 1.52 09-Aug-2004  lukem Fixes from (or inspired by) OpenBSD:
* Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary.
* Fix SIGURG handler to set an urgflag that's later tested, rather than
abusing setjmp(3)/longjmp(3).
* Use "volatile sig_atomic_t" as the type of variables modified by sig handlers.
* Use sigaction(3) instead of signal(3) to set the signal handlers.
* Only set the main SIGALRM handler once. If we need to change it,
cache the old handler and restore appropriately...
* Remove a bunch of signal races by improving the signal handlers.
* Fix memory leak with 'ESPV ALL'.

My stuff:
* Clean up the debug message in reply(); use vsnprintf(3) instead of vsyslog(3).
* Rework parsing of OOB commands to _not_ use the yacc parser, since the
latter isn't reentrant and the hacks to work around that are ugly.
We now examine urgflag at appropriate locations and call handleoobcmd()
if it's set. Since the only OOB commands we currently implement are
ABOR and STAT, this isn't an issue. (I also can't find the reference in
RFC2228 where MIC, CONF & ENC are OOB-only commands. Go figure.)
I could clean up the is_oob stuff some more, but the remaining stuff
in ftpcmd.y is harmless and it's unnecessary churn right this moment.
 1.51 29-Nov-2002  lukem branches: 1.51.2;
- convert to using libc's strsuftoll(3)
- use LLT (aka 'long long type') for all numeric class parameters
- improve description of various ftpd.conf(5) options
- statcmd(): print out: mmapsize readsize writesize sendbufsize sendlowat
 1.50 16-Nov-2002  itojun audit use of strto* - beware of ERANGE, as well as typecast on result.
 1.49 03-Oct-2002  lukem Enable GLOB_BRACE for ftpd.conf(5)'s `notify' directive.
Now it's much easier to list multiple files...
 1.48 18-Jun-2002  aidan Added CONF_LL macro, which understands raw 'strsuftoll' conf variables.
 1.47 30-May-2002  enami Add optional mmap(2)/write(2) support for binary file transfer.
The default is read(2)/write(2). Note that the sosend_loan needs
some more work for better performance when a file isn't cached.
 1.46 04-Dec-2001  lukem branches: 1.46.2;
Add two new ftpd.conf(5) directives:
- 'denyquick'; deny a connection so tagged by ftpusers(5) after the USER
command instead of the PASS command. whilst this might provide some
info leakage of accounts names if you have some `real' or `chroot'
users enabled and not others, it does prevent accidental entering of
such passwords if you have all such users denied. This option is
strongly recommended on anonymous-only servers.
Functionality requested by Rob Windsor in [bin/12602]
- 'private'; don't display class related information in the output of STAT.
For paranoid admins.
 1.45 01-Dec-2001  lukem - enable case insensitive fnmatch(3)ing for hostname globs in ftpusers(5)
- enable WARNS=2
 1.44 19-Sep-2001  lukem a few changes from Mike Heffner <mheffner@vt.edu> in private email:
- totally clear a glob buffer before use, because FreeBSD depends on
some of the other fields being cleared (other than just gl_offs)
- in strend(), ensure that the source string isn't too large
- remove unnecessarily complicated sizing of proctitle, since snprintf()
will truncate it anyway
 1.43 26-Jun-2001  lukem s/tise/tize/ in docco, add "advertize" as synonym for "advertise"
 1.42 25-May-2001  kristerw Initialize a pointer needed when expanding the %C "display file escape
sequence".
 1.41 25-Apr-2001  lukem crank copyrights of files changed this year
remove superfluous byte_count update in send_file_list
crank version
 1.40 18-Mar-2001  christos don't leak globbed memory.
 1.39 16-Mar-2001  christos Use GLOB_LIMIT. Also fix a bug where gl_offs was not initialized and could
contain trash.
 1.38 16-Mar-2001  lukem don't support t(erabyte) as a suffix in strsuftoll() #ifdef NO_LONG_LONG
 1.37 18-Dec-2000  lukem Features:

* Add ftpd.conf(5) directive `advertise'; change the address that is
advertised to the client for PASV transfers. this may be useful in
certain firewall/NAT environments.

Feature requested in [bin/9606] by Scott Presnell.

* Add -X option; syslog wu-ftpd style xferlog messages, prefixed with
`xferlog: '. An example line from syslog (wrapped):
Dec 16 18:50:24 odysseus ftpd[571]: xferlog: Sat Dec 16 18:50:24 2000
2 localhost 3747328 /pub/WLW2K601.EXE b _ o a lukem@ FTP 0 * c

These messages can be converted to a wu-ftpd style xferlog file
suitable for parsing with third-party tools with something like:
grep 'xferlog: ' /var/log/xferlog | \
sed -e 's/^.*xferlog: //' >wuxferlog

The format is the same as the wu-ftpd xferlog entries (with the leading
syslog stuff), but different from the wu-ftpd syslogged xferlog entries
because the latter is not as easy to convert into the standard xferlog
file format.

The choice to only syslog the xferlog messages rather than append to
a /var/log/xferlog file was made because the latter doesn't work to
well in the situation where the logfile is rotated and compressed and
a long-running ftpd still has a file-descriptor to the now nonexistant
xferlog file, and the log message will then get lost.

Feature requested in [bin/11651] by Hubert Feyrer.


Fixes:

* In ftpd(8), clarify the -a and -c options.

* More clarifications in ftpd.conf(5).

* Ensure that all ftpd.conf commands set a parameter back to sane defaults
if an argument of `none' or bad settings are given.

* Support the `chroot' directive for `REAL' users too (for consistency).

* For `GUEST' users, store the supplied password in pw->pw_passwd for use
later in the xferlog.

* If show_chdir_messages() is given a code of -1, flush the cache of
visited directories. Invoke show_chdir_messages(-1) in end_login().

* Only syslog session stats if logging is requested.

* Rename logcmd() -> logxfer(), and dolog() -> logremotehost().

* Use cprintf() instead of fprintf() where appropriate.

* Minor KNF, and make a couple of functions static that were declared static.
 1.36 16-Nov-2000  lukem - new ftpd.conf directives:
maxfilesize set the maximum size of uploaded files
sanenames if set, only permit uploaded filenames that contain
characters from the set "-+,._A-Za-z0-9" and that
don't start with `.'

- new/changed command line options:
-e emailaddr define email address for %E (see below)
-P dataport use dataport as the dataport (instead of ctrlport-1)
-q use pid files to count users [default]
-Q don't use pid files to count users
-u write entries to utmp
-U don't write entries to utmp [default]
-w write entries to wtmp [default]
-W don't write entries to wtmp

NOTE: -U used to mean `write utmp entries'. Its meaning has changed
so that it's orthogonal with -q/-Q and -w/-W. This isn't
considered a major problem, because using -U isn't going to
enable something you don't want, but will disable something
you did want (which is safer).

- new display file escape sequences:
%E email address
%s literal `s' if the previous %M or %N wasn't ``1''.
%S literal `S' if the previous %M or %N wasn't ``1''.

- expand the description of building ~ftp/incoming to cover the
appropriate ftpd.conf(5) directives (which are defaults, but it pays
to explicitly explain them)

- replace strsuftoi() with strsuftoll(), which returns a long long if
supported, otherwise a long

- rework the way that check_modify and check_upload are done in the yacc
parser; they're merged into a common check_write() function which is
called explicitly

- merge all ftpclass `flag variables' into a single bitfield-based flag element

- move various common bits of parse_conf() into a couple of macros

- clean up some comments
 1.35 15-Nov-2000  lukem changes to improve portability:
* replace union sockunion {} with struct sockinet {}, and modify the code
accordingly. this is possibly more portable, as it doesn't rely upon
the structure alignment within the union for our own stuff. uses local
su_len unless HAVE_SOCKADDR_SA_LEN is defined (set ifdef BSD4_4)
(XXX: haven't tested the ipv6 stuff)
* always use getaddrinfo() and getnameinfo() instead of maintaining two code
paths. (lukemftpd will provide replacements for these on older systems)
* use lockf() instead of open(.., O_EXLOCK) to lock the pid file
* minor KNF
* clean up long long support: create helper #defines and use as appropriate:
#define NO_LONG_LONG ! NO_LONG_LONG
------- ------------ --------------
LLF "%ld" "%lld"
LLFP(x) "%" x "ld" "%" x "lld"
LLT long long long
ULLF "%lu" "%llu"
ULLFP(x) "%" x "lu" "%" x "llu"
ULLT unsigned long unsigned long long
STRTOLL(x,y,z) strtol(x,y,z) strtoll(x,y,z)
 1.34 23-Jul-2000  lukem * make checkportcmd the default. this breaks third-party proxy ftp but
prevents the ftp bounce attack, and we should be secure out of the
box, not require users to tweak obscure stuff.
* allow the version string reported to clients to be changed with '-V vers'.
if vers is empty or `-', don't report a version.
* if -r is given, permanently drop root privs
* if not a REAL user (i.e, GUEST or CHROOT), and ftpd is running on a port
> IPPORT_RESERVED+1, permanently drop root privs
* don't bother reverting to root privs to logout of wtmp/utmp; since the
file descriptor is already open this isn't necessary.
* fix the binding of the port for the PORT/LPRT/EPRT connection to be the
ctrl_addr.su_port-1, not hardcoded to `20' (this was broken in the ipv6
merge). if root privs have been dropped, and this would be a port <
IPPORT_RESERVED, use a random port instead (which isn't RFC959 compliant
but it doesn't appear that many clients care).
* prevent login of a new user if privs have been dropped and already logged
in as a REAL user (existing check already stops GUEST & CHROOT users).
* move the port check stuff into a separate port_check() function, and use
for PORT, LPRT, and EPRT checks. inspired by freebsd
* minor KNF
* minor man page cleanup
 1.33 17-Jul-2000  lukem * add two new ftpd.conf(5) directives:
chroot specify dir to chroot to for GUEST and CHROOT users, to
override -a anondir or the user's homedir.
homedir specify dir to change to upon login; also used for ~ expansion
and $HOME for subprocesses)
both of these can take % escapes: %u (username), %d (homedir), %c (class).
* fix NLST to take a pathname not a STRING, so that ~ expansion works
* modify CWD to use the homedir parsed from curclass.homedir
* implement format_path(dst, src), to parse src expanding % escapes (see above)
into dst.
* rename format_file() to display_file()
 1.32 09-Jul-2000  sommerfeld More -Wformat cleanups.
 1.31 19-Jun-2000  lukem branches: 1.31.2;
various fixes suggested by Robert Elz:
* implement closedataconn() and use appropriately (including in mlsd())
* only put leading space in front of MLST output (not MLSD output)
* MLSD: only output pdir and cdir entries when the type fact is requested.
* change error code for giving MLSD a non-directory from 550 to 501
* remove MLSx Type fact support for UNIX.* for now; it's not standardised yet.
* do a check_login when MLSD and MLST are given no args
* detect & complain about null facts in OPTS MLST
* cache getgroups() at login instead of calling each time in fact_perm()

other mods:
* implement cprintf(); as per fprintf() but increments total_bytes{,_out}
* implement CPUTC(); as per putc() but increments total_bytes{,_out}
* implement base64_encode()
* fact_unique() display base64 encoding of dev_t and ino_t rather than
hex output; should scale if size of those changes
* change reply() so that a negative code acts as the initial line in a reply,
code == 0 prefixes the line with 4 spaces, and code > 0 works as before.
deprecate lreply(code, ) and lreply(0, ) in favour of reply(-code, ) and
reply(0, ) respectively.
* use cprintf() and CPUTC() appropriately (often instead of printf(),
lreply(-2, ) or lreply(-1, ).
now we actually account for the data sent by MLST and MLSD.
* remove DEBUG support for sending MLSD output to control connection instead
of data connection (my ftp client now supports MLSD :-)
 1.30 20-May-2000  lukem branches: 1.30.2;
convert to ANSI C as per style guide
 1.29 13-Jan-2000  lukem suppress verbose messages from CWD and post-login if the first
character of the anonymous password is `-'.
 1.28 12-Jan-2000  lukem * add ftpd.conf directive `portrange class min max', which allows specification
of the port range used by passive connections. based on work in [bin/9158]
from Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
* change the way global variables are defined and extern-ed to be more
consistent.
 1.27 10-Jan-2000  lukem fix problem where ftpd.conf lines would match everything if there was
no template defined. noted by Vebjorn Ljosa <ljosa@initio.no>
 1.26 09-Jan-2000  lukem * new ftpd.conf directive:
template class [refclass]
following directives for refclass will apply to class as well.
this makes setting up a `template' class with many default settings
easy, whilst allowing for class-specific overrides
* prevent crash when the optional limitfile wasn't given to limit
* document count_users()
* document default setting of limit in ftpd.conf(5)
* crank version
 1.25 08-Jan-2000  lukem features:
* add connection limits (`limit' keyword in ftpd.conf)
* move initialisation of curclass from parse_conf() to new function
init_curclass()
* implement count_users(), which determines the number of users in a given
class. a file - /var/run/ftpd.pids-<class> - is used to store a list
of pids in use (effectively an array of pid_t's), and its size is reduced
as necessary.
* new % modifiers in format_file:
%c class
%M maximum connection count
%N current connection count
* always end_login()s, even for refused connections

bugs fixed:
* remove \n from %T output
* fix some inconsistencies in the man pages
* ensure that both `ftp' *and* `anonymous' are allowed in ftpusers.
(this was accidently broken in a recent commit to be ``or'' not ``and'')
* use MAXPATHLEN not MAXPATHLEN+1
* crank copyright date on modified files
* crank version
 1.24 12-Dec-1999  lukem * change format of /etc/ftpusers lines from
userglob [allow|deny]
to
userglob[@host] [allow|deny [classname]]
where class is a userdefined classname.
- if host is given it may either be a CIDR address (e.g, `1.2.3.0/24') or a
hostglob (e.g, `*.foo.com'), and the remote host is matched against that.
- if classname is given, use that to match entries in ftpd.conf (defaults
to `guest' for `anonymous'/`ftp' logins, `chroot' for users found in
/etc/ftpchroot, and `real' for everyone else.

* implement new /etc/ftpd.conf directives:
classtype classname type set type of classname to GUEST, CHROOT, or REAL
motd classname file file to use instead of /etc/motd
rateget classname rate set rateget throttle to rate
rateput classname rate set rateput throttle to rate
upload classname allow/deny uploads (STOU, STOR, APPE). if
denied, also acts as `modify deny'.

* implement new `SITE' commands:
RATEGET as per /etc/ftpd.conf rateget, but cannot exceed that
RATEPUT as per /etc/ftpd.conf rateput, but cannot exceed that

* implement format_file(), which outputs a file to the user, parsing %
escapes. use to print /etc/ftpwelcome, /etc/motd, and the `display' file.

* implement strsuftoi() (from ftp(1)), which parses a number and
optional suffix (for use with rateget, etc)

* don't bother seteuid(0) ; bind(...) ; seteuid(pw->pw_uid), since
we don't need reserved ports (at wasn't getting them anyway).

* update & reorder copyrights

* use strlcpy() as appropriate
 1.23 07-Dec-1999  lukem * change ftpd_popen() to take char *argv[] instead of char *cmd.
the string tokenisation must be performed by the caller (which is
generally easy because it's almost always a static command).
* change do_conversion() to return a char *argv[] instead of char *cmd.
tokenisation of the command is done internally.
* change retrieve() to take char *argv[] instead of char *cmd.
(to take advantage of the above changes). fixes [bin/8173]
* use fparseln() instead of fgetln()
* store conversions in listed order (rather than reverse order)
* use stringlists instead of handrolling code to manage an argv.
 1.22 28-Nov-1999  lukem check return val of sl_init() and sl_add()
 1.21 25-Aug-1999  christos branches: 1.21.4;
more kerberos5 fixes
 1.20 18-May-1999  lukem * fix a problem in retrieve() where arguments to commands weren't working
(this was broken in the last commit). problem noticed by simonb@
* don't display the stderr output of the internal ls.
* modify usage of lreply so that generally only one `XXX-' code per
`block' is displayed; the rest of the lines have four spaces instead.
i find this easier to read.
* fix a couple places where byte accounting wasn't correct
 1.19 17-May-1999  lukem features/fixes:
* implement xferstats. full stats are displayed for `STAT', and a
summary is displayed upon exit (and syslogged). inspired by wu-ftpd.
* wrap data xfers in {send,receive}_data with alarm() timeouts. this
should remove the majority of the `hanging ftpd' problems that
people were still seeing. inspired by wu-ftpd.
* link with ../../bin/ls, so that bin/ls is not required under a
chroot()ed area for `LIST' to work. based on [bin/4497] from
"Soren S. Jorvang" <soren@t.dk>
* migrate code from util.c into ftpd.c, so that it doesn't conflict
with ls' util.c.
* remove man page comment about ~ftp/bin/ls being necessary.
* bump version to 7.2.0.
* syslog xfer time with xfer stats.
* if appropriate, syslog error message with command.

internal code stuff:
* change arguments of various functions from `char *' to `const char *'.
* define PLURAL(x) macro, which returns `' if x == 1, `s' otherwise.
use macro appropriately
* lreply(): a code of -1 means ``send line as is''. a code of 0
means ``send line with 4 space prefix''. don't print a space after
the `-' for any other code.
* logcmd(): add `const struct timeval *elapsed' and `const char *error'
for more flexible error reporting
 1.18 24-Feb-1999  explorer branches: 1.18.2;
Make this build with KERBEROS5 defined.
 1.17 05-Feb-1999  lukem * actually commit the changes which add support for recognising RFC 2228
commands (even if we don't do anything with them)
* in logcmd(), syslog why realpath() failed (if it did).
 1.16 28-Dec-1998  lukem * replace LOG(CMD|BYTES) macros with logcmd(), which is a cleaner
solution with less code replication. use realpath() in logcmd() so
that all logged filenames are sane.
* support `REST STREAM' in `FEAT' reply (from draft-ietf-ftpext-mlst-05)
* in 'HELP', suffix unimplemented commands with `-' instead of `*'; the
former is easier to differentiate from `+'.
* deprecate curdir() now that logcmd() doesn't use it.
* ensure all filename buffers are at least MAXPATHLEN+1 in size.
* move jmp_buf errcatch out of extern.h, removing need to #include <setjmp.h>
in every file.
 1.15 06-Sep-1998  lukem * complete fix for `multiple replies returned for single parse error'
problem; move `hasyyerrored' state flag out of yylex() so that
check_{login,modify} can also set it.
* check result of check_login for PORT command
* set initial timeout before the "setjmp(); for(;;) yyparse()",
otherwise an invalid command after login incorrectly sets the timeout
to 5 minutes (rather than what was set in ftpd.conf)
* replace (char *)0 with NULL
* move yyerror() from ftpd.c to ftpcmd.y
* remove need for -Dunix, by using the version string from ftpd.c
(instead of `BSD-199506')
* move all extern-ed vars into extern.h
 1.14 30-Jun-1998  tv Add the ability to disable passive connects in ftpd.conf (breaks RFC1123,
STD3, but needed in some firewall environments).
 1.13 03-Jun-1998  mouse Show/log the strerror(errno) string when getcwd fails
 1.12 03-Jun-1998  hubertf Fix some problems with failed getcwd commands, reported in PR bin/5531
by Saitoh Masanobu <msaitoh@spa.is.uec.ac.jp>.
 1.11 01-Apr-1998  kleink Need <time.h> for time(), localtime() and ctime() prototypes.
 1.10 16-Nov-1997  lukem log debug stuff using LOG_DEBUG not LOG_INFO
 1.9 11-Nov-1997  lukem * change checkportcmd syntax to `checkportcmd class [off]' (as per `modify')
* display current setting of checkportcmd in STAT
* ensure that curclass.checkportcmd is initialised to 0
* document default setting of checkportcmd in ftpd(8)
* cleanup code a bit, putting code for "checkportcmd" in alphabetical order
 1.8 11-Nov-1997  mrg add a "checkportcmd <class>" option that stops ftp bounce attacks.
 1.7 19-Oct-1997  mycroft branches: 1.7.2;
Use S_IS*(), not S_IF*.
 1.6 23-Sep-1997  lukem implement '-c confdir', which allows the specification of an alternate
directory to look for the various configuration files, overriding /etc.
From Matthias Scheler <tron@lyssa.owl.de> in [bin/4133]
 1.5 14-Aug-1997  lukem * don't depend upon buffer returned by fgetln() to remain. fix mainly
from Tatoku Ogaito <tacha@tera.fukui-med.ac.jp> in [bin/3967]
* fgetln() doesn't \0 terminate its string. look for the \n and replace
it with \0 (if no \n, ignore the line - it's most likely corrupt)
* more intensive checks on strdup() returns (not a current mem leak,
but depended upon code elsewhere to cleanup - not good)
* cleanup some syslog error messages
 1.4 31-Jul-1997  jtc Fix files using old TNF copyright notice
 1.3 22-Jun-1997  christos missed some warnings.
 1.2 18-Jun-1997  christos - Pass gcc -Wall
- Fix incorrect const poisoning
- Fix ftpd_popen to dynamically allocate strings to avoid buffer overruns.
 1.1 14-Jun-1997  lukem * implement /etc/ftpd.conf, which adds support for the following features,
controllable on a per class (which is one of: real, chroot, guest,
all or none) basis:
* on-the-fly execution of a command to build the file (a ``conversion''),
providing support for "get dirname.tar" and the like.
* displaying the contents of a file when a directory is entered
for the first time.
* maximum value for timeout (replaces -T).
* control usage of CHMOD, DELE, MKD, RMD, UMASK; replacing -DINSECURE_GUEST.
* notifying the user of the existance of a files matching a glob
pattern when a directory is entered for the first time.
* default value for timeout (replaces -t).
* default umask (replaces -DGUEST_CMASK and -u).
The conversion, display, and notify functionality was based on code by
Simon Burge <simonb@telstra.com.au>.
* clean up and re-order parts of the man page into subsections.
* STAT displays the settings defined for the class of the current user.
* bump version from 6.00 to 7.00, because of ftpd.conf.
* deprecate -DGUEST_CMASK and -DINSECURE_GUEST in the Makefile, and
-t, -T and -u, as ftpd.conf allows finer control of these.
* add "nostderr" argument to ftpd_popen(), because you don't want the
stderr stream mixing with the stdout stream during a conversion,
as this can corrupt the stream.
 1.7.2.3 17-Nov-1997  mrg pull up from trunk: fixes from lukem.
 1.7.2.2 11-Nov-1997  mrg pull up from trunk: cleanup and a fix to previous (from lukem).
 1.7.2.1 11-Nov-1997  mrg pull up from trunk: add a "checkportcmd <class>" option that stops ftp bounce attacks.
 1.18.2.1 01-Apr-2001  he Pull up revision 1.39 (requested by christos):
Fixes buffer overflow problems in glob(3). Adds and uses GLOB_LIMIT
to prevent denial of service attacks.
 1.21.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.30.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.31.2.3 26-Aug-2004  jmc Pullup rev 1.41-1.52 (requested by he in ticket #158)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.31.2.2 29-Mar-2001  lukem sync ftpd to -current with the following revisions (for lukem/christos):
Makefile 1.43-1.44
cmds.c 1.7-1.8, 1.10-1.12
conf.c 1.35-1.40
extern.h 1.32-1.38
ftpcmd.y 1.53-1.59
ftpd.8 1.58-1.63
ftpd.c 1.102-1.104, 1.106-1.122
ftpd.conf.5 1.12-1.15
ftpusers.5 1.8
logwtmp.c 1.16
popen.c 1.23-1.25
version.h 1.28

a quick summary of user-visible changes;
- fix glob DoS by using GLOB_LIMIT
- add ftpd.conf directives `advertise', `maxfilesize', `sanenames'
- add flags: -P dataport, -X - wuftpd style log entries,
-q/-Q - (en|dis)able pidfiles, -u/-U - (en|dis)able utmp,
-w/-W - (en|dis)able wtmp
 1.31.2.1 25-Jul-2000  lukem user visible changes (besides checking the cvs log):
* make checkportcmd the default
* add -r; force permanent drop of root privs after login
* add -V vers; change version string to vers
* add -H; act as -h `hostname`
* permanently drop root privs if it makes sense to do so (e.g; logging in as
guest/chroot user on a port > 1024)
* fix reference to draft-ietf-ftpext-mlst-11
* add ftpd.conf directives: chroot, homedir
* fix base64_encode() and generation of the unique fact
* crank version to 20000723
 1.46.2.1 31-Aug-2004  jmc Pullup rev 1.47-1.52 (requested by he in ticket #1739)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.51.2.1 12-Aug-2004  jmc Pullup rev 1.52 (requested by lukem in ticket #757)

* Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary.
* Fix SIGURG handler to set an urgflag that's later tested, rather than
abusing setjmp(3)/longjmp(3).
* Use "volatile sig_atomic_t" as the type of variables modified by sig handlers.
* Use sigaction(3) instead of signal(3) to set the signal handlers.
* Only set the main SIGALRM handler once. If we need to change it,
cache the old handler and restore appropriately...
* Remove a bunch of signal races by improving the signal handlers.
* Fix memory leak with 'ESPV ALL'.
* Clean up the debug message in reply(); use vsnprintf(3) instead of vsyslog(3).
* Rework parsing of OOB commands to _not_ use the yacc parser, since the
latter isn't reentrant and the hacks to work around that are ugly.
We now examine urgflag at appropriate locations and call handleoobcmd()
if it's set. Since the only OOB commands we currently implement are
ABOR and STAT, this isn't an issue.
 1.58.8.1 24-Mar-2008  keiichi sync with head.
 1.58.4.1 23-Mar-2008  matt sync with HEAD
 1.59.2.2 17-Jun-2008  yamt sync with head.
 1.59.2.1 18-May-2008  yamt sync with head.
 1.60.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.61.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.63.8.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.63.2.1 16-Jan-2013  yamt sync with (a bit old) head
 1.64.40.1 02-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #388):

libexec/ftpd/conf.c: revision 1.65

Fix uninitialized memory usage in count_users()

If the file was previously empty, pids table is not set, the code however used
pids[0] which is uninitialized in this case. In some scenarios it may lead to
propagate garbage value from pids[0] to the file and cause writing outside of
allocated memory.

OK lukem@
 1.64.32.1 02-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #1741):

libexec/ftpd/conf.c: revision 1.65

Fix uninitialized memory usage in count_users()

If the file was previously empty, pids table is not set, the code however used
pids[0] which is uninitialized in this case. In some scenarios it may lead to
propagate garbage value from pids[0] to the file and cause writing outside of
allocated memory.

OK lukem@
 1.64.22.1 03-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #1905):

libexec/ftpd/conf.c: revision 1.65

Fix uninitialized memory usage in count_users()

If the file was previously empty, pids table is not set, the code however used
pids[0] which is uninitialized in this case. In some scenarios it may lead to
propagate garbage value from pids[0] to the file and cause writing outside of
allocated memory.

OK lukem@
 1.66 17-Apr-2022  andvar fix various typos in comments.
 1.65 15-Oct-2019  christos bump sizes
 1.64 23-Jun-2018  gson branches: 1.64.2; 1.64.4;
No semicolon after macro do ... while (0) wrapper.
 1.63 21-Mar-2013  lukem branches: 1.63.22; 1.63.28;
Convert from __attribute__(foo) to the __foo equiv in <sys/cdefs.h>
 1.62 29-Aug-2011  joerg branches: 1.62.2; 1.62.8;
Use __dead
 1.61 13-Jul-2009  roy Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.60 15-Mar-2009  lukem Fix WARNS=4 issues (const & sign mismatches, etc)
Ensure various ftpd.conf values can't exceed their underlying types.
 1.59 08-Jan-2009  christos branches: 1.59.2;
PR/40339: Ed Ravin: make ftpd log both the hostname and numeric address.
 1.58 13-Sep-2008  lukem Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.org>
 1.57 28-Apr-2008  martin branches: 1.57.2;
Remove clause 3 and 4 from TNF licenses
 1.56 22-Jul-2007  lukem branches: 1.56.10; 1.56.12;
Rename HAVE_SOCKADDR_SA_LEN to HAVE_STRUCT_SOCKADDR_SA_LEN.
Use defined(HAVE_foo) instead of just testing HAVE_foo.
 1.55 01-Feb-2006  christos branches: 1.55.4; 1.55.8;
debug -> ftpd_debug
xstrdup -> ftpd_strdup
 1.54 24-Aug-2005  ginsbach * Add recvbufsize configuration option
This allows for setting the passive socket's SO_RCVBUF. Option works
similarly to the current sendbufsize configuration option.
* Change how recveive_data() works
When reading data from the socket for passive transfers to the server,
receive_data() now works very similar to send_data_with_read(). Reads
from the network are now done using either the filesystem block size or
the configuration option readsize chunks.
* Crank version.h
[Changes discussed with lukem.]
 1.53 23-Jun-2005  christos cleanup utmp and utmpx support.
- make them symmetric
- add a function to open the wtmp file explicitly very early in the game
 1.52 03-Mar-2005  ginsbach branches: 1.52.2; 1.52.4; 1.52.6;
* Add hidesymlinks configuration option
This adds a -L to all ls command arguments so that the file or directory
the link references is listed rather than the link itself. This was
inspired by IRIX ftpd's -S option.
[Discussed with lukem some time ago.]
* Crank version.h [right Luke? :-)]
 1.51 11-Nov-2004  christos Don't write trash in ut_ss; either initialize it to 0, or put in the proper
information.
 1.50 09-Aug-2004  lukem Fixes from (or inspired by) OpenBSD:
* Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary.
* Fix SIGURG handler to set an urgflag that's later tested, rather than
abusing setjmp(3)/longjmp(3).
* Use "volatile sig_atomic_t" as the type of variables modified by sig handlers.
* Use sigaction(3) instead of signal(3) to set the signal handlers.
* Only set the main SIGALRM handler once. If we need to change it,
cache the old handler and restore appropriately...
* Remove a bunch of signal races by improving the signal handlers.
* Fix memory leak with 'ESPV ALL'.

My stuff:
* Clean up the debug message in reply(); use vsnprintf(3) instead of vsyslog(3).
* Rework parsing of OOB commands to _not_ use the yacc parser, since the
latter isn't reentrant and the hacks to work around that are ugly.
We now examine urgflag at appropriate locations and call handleoobcmd()
if it's set. Since the only OOB commands we currently implement are
ABOR and STAT, this isn't an issue. (I also can't find the reference in
RFC2228 where MIC, CONF & ENC are OOB-only commands. Go figure.)
I could clean up the is_oob stuff some more, but the remaining stuff
in ftpcmd.y is harmless and it's unnecessary churn right this moment.
 1.49 07-Aug-2003  agc branches: 1.49.2;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.48 30-Jun-2003  tacha Add ftpd_loginx() and ftpd_logwtmpx() and use them to hold wtmpx file
open while a session.

Close bin/21692 by bqt@Krille.Update.UU.SE.
 1.47 23-Feb-2003  lukem rename local copies of login(), logout() and logwtmp() to
ftpd_login(), ftpd_logout() and ftpd_logwtmp() respectively.
(makes utmp support much easier in tnftpd).

per suggestion in mail from Mike Heffner <mheffner@vt.edu>, who
forwarded patch from Michael Ranner <mranner@inode.at>.
 1.46 19-Feb-2003  matt gidlist is nolonger an array.
 1.45 29-Nov-2002  lukem - convert to using libc's strsuftoll(3)
- use LLT (aka 'long long type') for all numeric class parameters
- improve description of various ftpd.conf(5) options
- statcmd(): print out: mmapsize readsize writesize sendbufsize sendlowat
 1.44 30-May-2002  enami Add optional mmap(2)/write(2) support for binary file transfer.
The default is read(2)/write(2). Note that the sosend_loan needs
some more work for better performance when a file isn't cached.
 1.43 04-Dec-2001  lukem branches: 1.43.2;
Add two new ftpd.conf(5) directives:
- 'denyquick'; deny a connection so tagged by ftpusers(5) after the USER
command instead of the PASS command. whilst this might provide some
info leakage of accounts names if you have some `real' or `chroot'
users enabled and not others, it does prevent accidental entering of
such passwords if you have all such users denied. This option is
strongly recommended on anonymous-only servers.
Functionality requested by Rob Windsor in [bin/12602]
- 'private'; don't display class related information in the output of STAT.
For paranoid admins.
 1.42 13-Jul-2001  lukem use __NetBSD__ instead of BSD4_4 to determine if we should automatically
define HAVE_SETPROCTITLE and HAVE_SOCKADDR_SA_LEN, because certain
operating systems from a vendor which claims to be the biggest unix
vendor as of two months ago #define BSD4_4 and THEN REMOVE BITS OF THE
4.4BSD API!

anyway, this won't affect other systems which use lukemftpd (e.g,
other 4.4BSD derived systems), because autoconf will set HAVE_SETPROCTITLE
as appropriate. the point of this little code fragment is to remove the
need to have -DHAVE_SETPROCTITLE ... in our libexec/ftpd/Makefile

</rant>
 1.41 25-Apr-2001  lukem crank copyrights of files changed this year
remove superfluous byte_count update in send_file_list
crank version
 1.40 01-Apr-2001  aidan add 'noreturn' attribute to ftp_loop, to fix a cc warning.
 1.39 01-Apr-2001  aidan As threatened, handle OOB commands from within ftpcmd.y.
This involved changing the yacc syntax to be line-oriented, rather than
having it run against the entire input at once, and adding a flag to
struct tab, to indicate if or not it's acceptable for a command to occur
OOB.
 1.38 04-Feb-2001  christos fix redundant declarations.
 1.37 18-Dec-2000  lukem Features:

* Add ftpd.conf(5) directive `advertise'; change the address that is
advertised to the client for PASV transfers. this may be useful in
certain firewall/NAT environments.

Feature requested in [bin/9606] by Scott Presnell.

* Add -X option; syslog wu-ftpd style xferlog messages, prefixed with
`xferlog: '. An example line from syslog (wrapped):
Dec 16 18:50:24 odysseus ftpd[571]: xferlog: Sat Dec 16 18:50:24 2000
2 localhost 3747328 /pub/WLW2K601.EXE b _ o a lukem@ FTP 0 * c

These messages can be converted to a wu-ftpd style xferlog file
suitable for parsing with third-party tools with something like:
grep 'xferlog: ' /var/log/xferlog | \
sed -e 's/^.*xferlog: //' >wuxferlog

The format is the same as the wu-ftpd xferlog entries (with the leading
syslog stuff), but different from the wu-ftpd syslogged xferlog entries
because the latter is not as easy to convert into the standard xferlog
file format.

The choice to only syslog the xferlog messages rather than append to
a /var/log/xferlog file was made because the latter doesn't work to
well in the situation where the logfile is rotated and compressed and
a long-running ftpd still has a file-descriptor to the now nonexistant
xferlog file, and the log message will then get lost.

Feature requested in [bin/11651] by Hubert Feyrer.


Fixes:

* In ftpd(8), clarify the -a and -c options.

* More clarifications in ftpd.conf(5).

* Ensure that all ftpd.conf commands set a parameter back to sane defaults
if an argument of `none' or bad settings are given.

* Support the `chroot' directive for `REAL' users too (for consistency).

* For `GUEST' users, store the supplied password in pw->pw_passwd for use
later in the xferlog.

* If show_chdir_messages() is given a code of -1, flush the cache of
visited directories. Invoke show_chdir_messages(-1) in end_login().

* Only syslog session stats if logging is requested.

* Rename logcmd() -> logxfer(), and dolog() -> logremotehost().

* Use cprintf() instead of fprintf() where appropriate.

* Minor KNF, and make a couple of functions static that were declared static.
 1.36 30-Nov-2000  lukem - move password checking into separate valid_passwd() function, to assist
in porting to other systems.
- don't syslog() or setproctitle() "ACCT" lines (as per "PASS")
- replace #ifdef HASSETPROCTITLE with #if HAVE_SETPROCTITLE, and set the
latter #ifdef BSD4_4
- don't compile in internal `ls' #ifdef NO_INTERNAL_LS. will need Makefile
support if this is to be used on NetBSD.
 1.35 16-Nov-2000  lukem - new ftpd.conf directives:
maxfilesize set the maximum size of uploaded files
sanenames if set, only permit uploaded filenames that contain
characters from the set "-+,._A-Za-z0-9" and that
don't start with `.'

- new/changed command line options:
-e emailaddr define email address for %E (see below)
-P dataport use dataport as the dataport (instead of ctrlport-1)
-q use pid files to count users [default]
-Q don't use pid files to count users
-u write entries to utmp
-U don't write entries to utmp [default]
-w write entries to wtmp [default]
-W don't write entries to wtmp

NOTE: -U used to mean `write utmp entries'. Its meaning has changed
so that it's orthogonal with -q/-Q and -w/-W. This isn't
considered a major problem, because using -U isn't going to
enable something you don't want, but will disable something
you did want (which is safer).

- new display file escape sequences:
%E email address
%s literal `s' if the previous %M or %N wasn't ``1''.
%S literal `S' if the previous %M or %N wasn't ``1''.

- expand the description of building ~ftp/incoming to cover the
appropriate ftpd.conf(5) directives (which are defaults, but it pays
to explicitly explain them)

- replace strsuftoi() with strsuftoll(), which returns a long long if
supported, otherwise a long

- rework the way that check_modify and check_upload are done in the yacc
parser; they're merged into a common check_write() function which is
called explicitly

- merge all ftpclass `flag variables' into a single bitfield-based flag element

- move various common bits of parse_conf() into a couple of macros

- clean up some comments
 1.34 15-Nov-2000  lukem changes to improve portability:
* replace union sockunion {} with struct sockinet {}, and modify the code
accordingly. this is possibly more portable, as it doesn't rely upon
the structure alignment within the union for our own stuff. uses local
su_len unless HAVE_SOCKADDR_SA_LEN is defined (set ifdef BSD4_4)
(XXX: haven't tested the ipv6 stuff)
* always use getaddrinfo() and getnameinfo() instead of maintaining two code
paths. (lukemftpd will provide replacements for these on older systems)
* use lockf() instead of open(.., O_EXLOCK) to lock the pid file
* minor KNF
* clean up long long support: create helper #defines and use as appropriate:
#define NO_LONG_LONG ! NO_LONG_LONG
------- ------------ --------------
LLF "%ld" "%lld"
LLFP(x) "%" x "ld" "%" x "lld"
LLT long long long
ULLF "%lu" "%llu"
ULLFP(x) "%" x "lu" "%" x "llu"
ULLT unsigned long unsigned long long
STRTOLL(x,y,z) strtol(x,y,z) strtoll(x,y,z)
 1.33 13-Nov-2000  itojun - improve RFC2428 conformance.
return 522 on unknown protocol identifier on EPRT.
- clarify EPSV/EPRT/LPSV/LPRT behavior.
- repair memory leak and lack of boundary check on EPRT.
- make sure we do not resolve DNS on EPRT.
sync with kame.
 1.32 15-Sep-2000  christos Make this compile again without -DINET6 and without get{addr,name}info(3)
This ftpd now compiles and runs on NetBSD/1.4.2 with:

CPPFLAGS+= \
'-Dstrlcpy(a,b,c)=(strncpy(a,b,c),strlen(a))' \
'-Dstrlcat=strncat' \
'-Dsl_add(a,b)=(sl_add(a,b),0)'
 1.31 23-Jul-2000  lukem * make checkportcmd the default. this breaks third-party proxy ftp but
prevents the ftp bounce attack, and we should be secure out of the
box, not require users to tweak obscure stuff.
* allow the version string reported to clients to be changed with '-V vers'.
if vers is empty or `-', don't report a version.
* if -r is given, permanently drop root privs
* if not a REAL user (i.e, GUEST or CHROOT), and ftpd is running on a port
> IPPORT_RESERVED+1, permanently drop root privs
* don't bother reverting to root privs to logout of wtmp/utmp; since the
file descriptor is already open this isn't necessary.
* fix the binding of the port for the PORT/LPRT/EPRT connection to be the
ctrl_addr.su_port-1, not hardcoded to `20' (this was broken in the ipv6
merge). if root privs have been dropped, and this would be a port <
IPPORT_RESERVED, use a random port instead (which isn't RFC959 compliant
but it doesn't appear that many clients care).
* prevent login of a new user if privs have been dropped and already logged
in as a REAL user (existing check already stops GUEST & CHROOT users).
* move the port check stuff into a separate port_check() function, and use
for PORT, LPRT, and EPRT checks. inspired by freebsd
* minor KNF
* minor man page cleanup
 1.30 17-Jul-2000  lukem * add two new ftpd.conf(5) directives:
chroot specify dir to chroot to for GUEST and CHROOT users, to
override -a anondir or the user's homedir.
homedir specify dir to change to upon login; also used for ~ expansion
and $HOME for subprocesses)
both of these can take % escapes: %u (username), %d (homedir), %c (class).
* fix NLST to take a pathname not a STRING, so that ~ expansion works
* modify CWD to use the homedir parsed from curclass.homedir
* implement format_path(dst, src), to parse src expanding % escapes (see above)
into dst.
* rename format_file() to display_file()
 1.29 08-Jul-2000  sommerfeld More format paranoia.
 1.28 19-Jun-2000  lukem branches: 1.28.2;
various fixes suggested by Robert Elz:
* implement closedataconn() and use appropriately (including in mlsd())
* only put leading space in front of MLST output (not MLSD output)
* MLSD: only output pdir and cdir entries when the type fact is requested.
* change error code for giving MLSD a non-directory from 550 to 501
* remove MLSx Type fact support for UNIX.* for now; it's not standardised yet.
* do a check_login when MLSD and MLST are given no args
* detect & complain about null facts in OPTS MLST
* cache getgroups() at login instead of calling each time in fact_perm()

other mods:
* implement cprintf(); as per fprintf() but increments total_bytes{,_out}
* implement CPUTC(); as per putc() but increments total_bytes{,_out}
* implement base64_encode()
* fact_unique() display base64 encoding of dev_t and ino_t rather than
hex output; should scale if size of those changes
* change reply() so that a negative code acts as the initial line in a reply,
code == 0 prefixes the line with 4 spaces, and code > 0 works as before.
deprecate lreply(code, ) and lreply(0, ) in favour of reply(-code, ) and
reply(0, ) respectively.
* use cprintf() and CPUTC() appropriately (often instead of printf(),
lreply(-2, ) or lreply(-1, ).
now we actually account for the data sent by MLST and MLSD.
* remove DEBUG support for sending MLSD output to control connection instead
of data connection (my ftp client now supports MLSD :-)
 1.27 14-Jun-2000  lukem major overhaul (just before netbsd 1.5 :-):

* implement draft-ietf-ftpext-mlst-10 commands, especially MLST and MLSD.
we already supported SIZE and MDTM. add the appropriate FEAT output lines.

* migrate a lot of the command code from ftpcmd.y and ftpd.c to cmds.c

* make dataconn(), feat(), lookup(), opts() and sizecmd() public

* modify struct tab so that it has a `flags' instead of `implemented' element,
and remove the `hasopts' element. If flags == 1, the command is implemented.
if flags == 2, the command is implemented and takes options

* add macros ISDOTDIR(x) (is x ".") and ISDOTDOTDIR(x) (is x "..")

* modify lreply() so that lreply(-2, ...) just outputs the given info without
a prefix or trailing \r\n. this saves doing b = printf(); total_* += b;

* enhance statcmd(). still needs work in the LPRT status stuff.

* crank version
 1.26 20-May-2000  lukem branches: 1.26.2;
convert to ANSI C as per style guide
 1.25 05-Mar-2000  lukem * don't bother with a version[] string, just use the macro as appropriate
* clean some more of the GLOBAL stuff
* fix unused var if -UHASSETPROCTITLE
 1.24 13-Jan-2000  lukem suppress verbose messages from CWD and post-login if the first
character of the anonymous password is `-'.
 1.23 12-Jan-2000  lukem * add ftpd.conf directive `portrange class min max', which allows specification
of the port range used by passive connections. based on work in [bin/9158]
from Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
* change the way global variables are defined and extern-ed to be more
consistent.
 1.22 08-Jan-2000  lukem features:
* add connection limits (`limit' keyword in ftpd.conf)
* move initialisation of curclass from parse_conf() to new function
init_curclass()
* implement count_users(), which determines the number of users in a given
class. a file - /var/run/ftpd.pids-<class> - is used to store a list
of pids in use (effectively an array of pid_t's), and its size is reduced
as necessary.
* new % modifiers in format_file:
%c class
%M maximum connection count
%N current connection count
* always end_login()s, even for refused connections

bugs fixed:
* remove \n from %T output
* fix some inconsistencies in the man pages
* ensure that both `ftp' *and* `anonymous' are allowed in ftpusers.
(this was accidently broken in a recent commit to be ``or'' not ``and'')
* use MAXPATHLEN not MAXPATHLEN+1
* crank copyright date on modified files
* crank version
 1.21 12-Dec-1999  lukem * change format of /etc/ftpusers lines from
userglob [allow|deny]
to
userglob[@host] [allow|deny [classname]]
where class is a userdefined classname.
- if host is given it may either be a CIDR address (e.g, `1.2.3.0/24') or a
hostglob (e.g, `*.foo.com'), and the remote host is matched against that.
- if classname is given, use that to match entries in ftpd.conf (defaults
to `guest' for `anonymous'/`ftp' logins, `chroot' for users found in
/etc/ftpchroot, and `real' for everyone else.

* implement new /etc/ftpd.conf directives:
classtype classname type set type of classname to GUEST, CHROOT, or REAL
motd classname file file to use instead of /etc/motd
rateget classname rate set rateget throttle to rate
rateput classname rate set rateput throttle to rate
upload classname allow/deny uploads (STOU, STOR, APPE). if
denied, also acts as `modify deny'.

* implement new `SITE' commands:
RATEGET as per /etc/ftpd.conf rateget, but cannot exceed that
RATEPUT as per /etc/ftpd.conf rateput, but cannot exceed that

* implement format_file(), which outputs a file to the user, parsing %
escapes. use to print /etc/ftpwelcome, /etc/motd, and the `display' file.

* implement strsuftoi() (from ftp(1)), which parses a number and
optional suffix (for use with rateget, etc)

* don't bother seteuid(0) ; bind(...) ; seteuid(pw->pw_uid), since
we don't need reserved ports (at wasn't getting them anyway).

* update & reorder copyrights

* use strlcpy() as appropriate
 1.20 07-Dec-1999  lukem * change ftpd_popen() to take char *argv[] instead of char *cmd.
the string tokenisation must be performed by the caller (which is
generally easy because it's almost always a static command).
* change do_conversion() to return a char *argv[] instead of char *cmd.
tokenisation of the command is done internally.
* change retrieve() to take char *argv[] instead of char *cmd.
(to take advantage of the above changes). fixes [bin/8173]
* use fparseln() instead of fgetln()
* store conversions in listed order (rather than reverse order)
* use stringlists instead of handrolling code to manage an argv.
 1.19 02-Jul-1999  itojun branches: 1.19.4;
dual-stack ftpd. run this from inetd, like:
>>ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -ll
 1.18 24-May-1999  ross Define types for ILP32/LP64-harmonized %q[du] arguments.
 1.17 18-May-1999  lukem * fix a problem in retrieve() where arguments to commands weren't working
(this was broken in the last commit). problem noticed by simonb@
* don't display the stderr output of the internal ls.
* modify usage of lreply so that generally only one `XXX-' code per
`block' is displayed; the rest of the lines have four spaces instead.
i find this easier to read.
* fix a couple places where byte accounting wasn't correct
 1.16 17-May-1999  lukem features/fixes:
* implement xferstats. full stats are displayed for `STAT', and a
summary is displayed upon exit (and syslogged). inspired by wu-ftpd.
* wrap data xfers in {send,receive}_data with alarm() timeouts. this
should remove the majority of the `hanging ftpd' problems that
people were still seeing. inspired by wu-ftpd.
* link with ../../bin/ls, so that bin/ls is not required under a
chroot()ed area for `LIST' to work. based on [bin/4497] from
"Soren S. Jorvang" <soren@t.dk>
* migrate code from util.c into ftpd.c, so that it doesn't conflict
with ls' util.c.
* remove man page comment about ~ftp/bin/ls being necessary.
* bump version to 7.2.0.
* syslog xfer time with xfer stats.
* if appropriate, syslog error message with command.

internal code stuff:
* change arguments of various functions from `char *' to `const char *'.
* define PLURAL(x) macro, which returns `' if x == 1, `s' otherwise.
use macro appropriately
* lreply(): a code of -1 means ``send line as is''. a code of 0
means ``send line with 4 space prefix''. don't print a space after
the `-' for any other code.
* logcmd(): add `const struct timeval *elapsed' and `const char *error'
for more flexible error reporting
 1.15 28-Dec-1998  lukem * replace LOG(CMD|BYTES) macros with logcmd(), which is a cleaner
solution with less code replication. use realpath() in logcmd() so
that all logged filenames are sane.
* support `REST STREAM' in `FEAT' reply (from draft-ietf-ftpext-mlst-05)
* in 'HELP', suffix unimplemented commands with `-' instead of `*'; the
former is easier to differentiate from `+'.
* deprecate curdir() now that logcmd() doesn't use it.
* ensure all filename buffers are at least MAXPATHLEN+1 in size.
* move jmp_buf errcatch out of extern.h, removing need to #include <setjmp.h>
in every file.
 1.14 12-Sep-1998  kleink Make the external declaration of `transflag' match its definition; from R. C.
Dowdeswell <elric@mabelode.imrryr.org> in PR bin/6141.
 1.13 07-Sep-1998  lukem remove nack() - missed in previous work
 1.12 07-Sep-1998  lukem new features:
* implement FEAT and OPTS from RFC2389. FEAT returns SIZE and MDTM.
OPTS only works on NOOP (as a test).
* extend format of /etc/ftpchroot similar to /etc/ftpusers; each entry
can take an optional trailing `yes' or `no' which indicates if
chroot should be done (defaults to `yes').
based on patches from Ty Sarna <tsarna@endicor.com> in [bin/4769]

cleanups/bugs:
* reorder and reformat entries in yacc parser to match cmdtab[].
add a blank line between each rule.
* add short hasopts and char *options to struct tab, to support OPTS.
* deprecate upper(); use strcasecmp() instead of strcmp()
* remove unnecessary for (;;) { } in yylex();
* replace copy() and sgetsave() with xstrdup()
* fix a couple of `hasyyerrored = 1' that were accidently removed.
 1.11 06-Sep-1998  lukem * complete fix for `multiple replies returned for single parse error'
problem; move `hasyyerrored' state flag out of yylex() so that
check_{login,modify} can also set it.
* check result of check_login for PORT command
* set initial timeout before the "setjmp(); for(;;) yyparse()",
otherwise an invalid command after login incorrectly sets the timeout
to 5 minutes (rather than what was set in ftpd.conf)
* replace (char *)0 with NULL
* move yyerror() from ftpd.c to ftpcmd.y
* remove need for -Dunix, by using the version string from ftpd.c
(instead of `BSD-199506')
* move all extern-ed vars into extern.h
 1.10 27-Jul-1998  mycroft const poisoning.
 1.9 27-Jul-1998  mycroft const poisoning.
 1.8 30-Jun-1998  tv Add the ability to disable passive connects in ftpd.conf (breaks RFC1123,
STD3, but needed in some firewall environments).
 1.7 11-Nov-1997  lukem * change checkportcmd syntax to `checkportcmd class [off]' (as per `modify')
* display current setting of checkportcmd in STAT
* ensure that curclass.checkportcmd is initialised to 0
* document default setting of checkportcmd in ftpd(8)
* cleanup code a bit, putting code for "checkportcmd" in alphabetical order
 1.6 11-Nov-1997  mrg add a "checkportcmd <class>" option that stops ftp bounce attacks.
 1.5 23-Sep-1997  lukem branches: 1.5.2;
implement '-c confdir', which allows the specification of an alternate
directory to look for the various configuration files, overriding /etc.
From Matthias Scheler <tron@lyssa.owl.de> in [bin/4133]
 1.4 18-Jun-1997  christos - Pass gcc -Wall
- Fix incorrect const poisoning
- Fix ftpd_popen to dynamically allocate strings to avoid buffer overruns.
 1.3 14-Jun-1997  lukem * implement /etc/ftpd.conf, which adds support for the following features,
controllable on a per class (which is one of: real, chroot, guest,
all or none) basis:
* on-the-fly execution of a command to build the file (a ``conversion''),
providing support for "get dirname.tar" and the like.
* displaying the contents of a file when a directory is entered
for the first time.
* maximum value for timeout (replaces -T).
* control usage of CHMOD, DELE, MKD, RMD, UMASK; replacing -DINSECURE_GUEST.
* notifying the user of the existance of a files matching a glob
pattern when a directory is entered for the first time.
* default value for timeout (replaces -t).
* default umask (replaces -DGUEST_CMASK and -u).
The conversion, display, and notify functionality was based on code by
Simon Burge <simonb@telstra.com.au>.
* clean up and re-order parts of the man page into subsections.
* STAT displays the settings defined for the class of the current user.
* bump version from 6.00 to 7.00, because of ftpd.conf.
* deprecate -DGUEST_CMASK and -DINSECURE_GUEST in the Makefile, and
-t, -T and -u, as ftpd.conf allows finer control of these.
* add "nostderr" argument to ftpd_popen(), because you don't want the
stderr stream mixing with the stdout stream during a conversion,
as this can corrupt the stream.
 1.2 11-Apr-1995  cgd clean up RCS Id's and a couple of stype nits.
Also, fix bug 947 (reported by Luke Mewburn, extraneous vers.c)
 1.1 29-Jun-1994  deraadt branches: 1.1.1;
4.4-lite, plus our local changes
 1.1.1.1 29-Mar-1997  cjs Lite-1 Import.
 1.5.2.2 11-Nov-1997  mrg pull up from trunk: cleanup and a fix to previous (from lukem).
 1.5.2.1 11-Nov-1997  mrg pull up from trunk: add a "checkportcmd <class>" option that stops ftp bounce attacks.
 1.19.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.26.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.28.2.3 26-Aug-2004  jmc Pullup rev 1.39-1.50 + patch (requested by he in ticket #158)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.28.2.2 29-Mar-2001  lukem sync ftpd to -current with the following revisions (for lukem/christos):
Makefile 1.43-1.44
cmds.c 1.7-1.8, 1.10-1.12
conf.c 1.35-1.40
extern.h 1.32-1.38
ftpcmd.y 1.53-1.59
ftpd.8 1.58-1.63
ftpd.c 1.102-1.104, 1.106-1.122
ftpd.conf.5 1.12-1.15
ftpusers.5 1.8
logwtmp.c 1.16
popen.c 1.23-1.25
version.h 1.28

a quick summary of user-visible changes;
- fix glob DoS by using GLOB_LIMIT
- add ftpd.conf directives `advertise', `maxfilesize', `sanenames'
- add flags: -P dataport, -X - wuftpd style log entries,
-q/-Q - (en|dis)able pidfiles, -u/-U - (en|dis)able utmp,
-w/-W - (en|dis)able wtmp
 1.28.2.1 25-Jul-2000  lukem user visible changes (besides checking the cvs log):
* make checkportcmd the default
* add -r; force permanent drop of root privs after login
* add -V vers; change version string to vers
* add -H; act as -h `hostname`
* permanently drop root privs if it makes sense to do so (e.g; logging in as
guest/chroot user on a port > 1024)
* fix reference to draft-ietf-ftpext-mlst-11
* add ftpd.conf directives: chroot, homedir
* fix base64_encode() and generation of the unique fact
* crank version to 20000723
 1.43.2.1 31-Aug-2004  jmc Pullup rev 1.44-1.50 + patch (requested by he in ticket #1739)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.49.2.1 12-Aug-2004  jmc Pullup rev 1.50 (requested by lukem in ticket #757)

* Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary.
* Fix SIGURG handler to set an urgflag that's later tested, rather than
abusing setjmp(3)/longjmp(3).
* Use "volatile sig_atomic_t" as the type of variables modified by sig handlers.
* Use sigaction(3) instead of signal(3) to set the signal handlers.
* Only set the main SIGALRM handler once. If we need to change it,
cache the old handler and restore appropriately...
* Remove a bunch of signal races by improving the signal handlers.
* Fix memory leak with 'ESPV ALL'.
* Clean up the debug message in reply(); use vsnprintf(3) instead of vsyslog(3).
* Rework parsing of OOB commands to _not_ use the yacc parser, since the
latter isn't reentrant and the hacks to work around that are ugly.
We now examine urgflag at appropriate locations and call handleoobcmd()
if it's set. Since the only OOB commands we currently implement are
ABOR and STAT, this isn't an issue.
 1.52.6.1 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1964):
libexec/ftpd/ftpd.c: revision 1.187 via patch
libexec/ftpd/extern.h: revision 1.58 via patch
libexec/ftpd/ftpcmd.y: revision 1.88 via patch
libexec/ftpd/version.h: patch
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>
 1.52.4.1 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1964):
libexec/ftpd/ftpd.c: revision 1.187 via patch
libexec/ftpd/extern.h: revision 1.58 via patch
libexec/ftpd/ftpcmd.y: revision 1.88 via patch
libexec/ftpd/version.h: patch
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>
 1.52.2.1 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1964):
libexec/ftpd/ftpd.c: revision 1.187 via patch
libexec/ftpd/extern.h: revision 1.58 via patch
libexec/ftpd/ftpcmd.y: revision 1.88 via patch
libexec/ftpd/version.h: patch
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>
 1.55.8.1 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1202):
libexec/ftpd/ftpd.c: revision 1.187
libexec/ftpd/extern.h: revision 1.58
libexec/ftpd/version.h: patch
libexec/ftpd/ftpcmd.y: revision 1.88
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>
 1.55.4.1 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1202):
libexec/ftpd/ftpd.c: revision 1.187
libexec/ftpd/extern.h: revision 1.58
libexec/ftpd/version.h: patch
libexec/ftpd/ftpcmd.y: revision 1.88
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>
 1.56.12.2 22-Jul-2007  lukem Rename HAVE_SOCKADDR_SA_LEN to HAVE_STRUCT_SOCKADDR_SA_LEN.
Use defined(HAVE_foo) instead of just testing HAVE_foo.
 1.56.12.1 22-Jul-2007  lukem file extern.h was added on branch matt-mips64 on 2007-07-22 05:06:46 +0000
 1.56.10.1 18-May-2008  yamt sync with head.
 1.57.2.1 24-Sep-2008  wrstuden Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
 1.59.2.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.62.8.1 23-Jun-2013  tls resync from head
 1.62.2.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.63.28.1 25-Jun-2018  pgoyette Sync with HEAD
 1.63.22.1 03-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #1901):

libexec/ftpd/extern.h: revision 1.65
libexec/ftpd/ftpd.c: revision 1.205

bump sizes
 1.64.4.1 02-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #1737):

libexec/ftpd/extern.h: revision 1.65
libexec/ftpd/ftpd.c: revision 1.205

bump sizes
 1.64.2.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.96 16-Feb-2024  jkoshy Remove obsolete code.

Per src/doc/CHANGES.prev support for the NI_WITHSCOPEID flag was removed
in NetBSD 1.6.
 1.95 22-Sep-2023  shm Add missing check_login checks for MLST and MLSD
 1.94 10-Aug-2015  shm branches: 1.94.8; 1.94.18; 1.94.26;
Use explicit_memset(3) instead of memset(3) to clear password
 1.93 16-Sep-2011  plunky NULL does not need a cast, here
 1.92 01-Jul-2011  joerg Fix memcpy usage.
 1.91 14-Jan-2011  christos PR/44390: Paul Koning: make code gcc-4.5.1 friendly.
 1.90 13-Jul-2009  roy Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.89 15-Mar-2009  lukem Fix WARNS=4 issues (const & sign mismatches, etc)
Ensure various ftpd.conf values can't exceed their underlying types.
 1.88 13-Sep-2008  lukem branches: 1.88.6;
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.org>
 1.87 28-Apr-2008  martin branches: 1.87.2;
Remove clause 3 and 4 from TNF licenses
 1.86 22-Jul-2007  lukem branches: 1.86.10; 1.86.12;
Rename HAVE_SOCKADDR_SA_LEN to HAVE_STRUCT_SOCKADDR_SA_LEN.
Use defined(HAVE_foo) instead of just testing HAVE_foo.
 1.85 10-May-2007  lukem Replace references from draft-ietf-ftpext-mlst-NN to RFC 3659.
 1.84 01-Feb-2006  christos branches: 1.84.4; 1.84.8;
debug -> ftpd_debug
xstrdup -> ftpd_strdup
 1.83 03-Mar-2005  ginsbach branches: 1.83.2; 1.83.4; 1.83.6;
* Add hidesymlinks configuration option
This adds a -L to all ls command arguments so that the file or directory
the link references is listed rather than the link itself. This was
inspired by IRIX ftpd's -S option.
[Discussed with lukem some time ago.]
* Crank version.h [right Luke? :-)]
 1.82 05-Jan-2005  lukem Reorder some declarations so that parsers generated by bison can compile.
Fix from Michael Richardson.
 1.81 05-Nov-2004  dsl Add (unsigned char) cast to ctype functions
 1.80 09-Aug-2004  lukem Fixes from (or inspired by) OpenBSD:
* Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary.
* Fix SIGURG handler to set an urgflag that's later tested, rather than
abusing setjmp(3)/longjmp(3).
* Use "volatile sig_atomic_t" as the type of variables modified by sig handlers.
* Use sigaction(3) instead of signal(3) to set the signal handlers.
* Only set the main SIGALRM handler once. If we need to change it,
cache the old handler and restore appropriately...
* Remove a bunch of signal races by improving the signal handlers.
* Fix memory leak with 'ESPV ALL'.

My stuff:
* Clean up the debug message in reply(); use vsnprintf(3) instead of vsyslog(3).
* Rework parsing of OOB commands to _not_ use the yacc parser, since the
latter isn't reentrant and the hacks to work around that are ugly.
We now examine urgflag at appropriate locations and call handleoobcmd()
if it's set. Since the only OOB commands we currently implement are
ABOR and STAT, this isn't an issue. (I also can't find the reference in
RFC2228 where MIC, CONF & ENC are OOB-only commands. Go figure.)
I could clean up the is_oob stuff some more, but the remaining stuff
in ftpcmd.y is harmless and it's unnecessary churn right this moment.
 1.79 16-Jul-2004  lukem Correctly clamp illegal "SITE CHMOD" mode values. From OpenBSD.
 1.78 16-Jul-2004  lukem Fix minor memory leak with fromname. Inspired by OpenBSD.
 1.77 07-Aug-2003  agc branches: 1.77.2;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.76 03-Mar-2003  lukem Don't declare "yylex()" static; AFAICT it shouldn't be, and it causes
build problems with the output of some versions of yacc.
 1.75 03-Mar-2003  lukem Fix typos accidentally introduced in rev 1.70 as part of the large
number support.
(NetBSD yacc didn't barf on these, although Solaris and HP/UX's did...)
 1.74 24-Feb-2003  lukem use LLT and STRTOLL() instead of off_t and strtoull() for parsing the
"larger than int" arguments from commands. improves portability.
 1.73 22-Jan-2003  lukem Fixes from Dmitry Sivachenko <demon@freebsd.org>:
- always set "curname" to something appropriate (even when logging is
not in effect).
- fix usage for "PORT" command
 1.72 29-Nov-2002  lukem - convert to using libc's strsuftoll(3)
- use LLT (aka 'long long type') for all numeric class parameters
- improve description of various ftpd.conf(5) options
- statcmd(): print out: mmapsize readsize writesize sendbufsize sendlowat
 1.71 12-Oct-2002  darrenr * enclose unknown command strings inside a pair of 's to clearly mark the
text as being the 'whole' part received.
* change a HELP reply from 214 to 504 when there is an error looking for
help on a command.
 1.70 02-Jul-2002  lukem - Change lexer to support numbers > 2^31-1 (stored in an off_t), and allow
RESTart to use the larger numbers.
Fix from Maxim Konovalov <maxim@freebsd.org>
- Update version
- Minor whitespace changes
 1.69 30-Jun-2002  tv We really, actually, positively want to apply the ftpd.conf "passive"
option to all possible *PSV commands. Some ftp servers are simply not
capable of passive connections, hence the option....
 1.68 15-Jun-2002  lukem crank copyright
 1.67 15-Jun-2002  lukem Implement "SITE UMASK" `enabled command' check with (modified)
check_write(), so that a user who has modify disabled gets an error
message rather than a hung connection.
Noted by M.J. Rutter <mjr19@cus.cam.ac.uk> in private email.
 1.66 01-Dec-2001  lukem branches: 1.66.2;
- enable case insensitive fnmatch(3)ing for hostname globs in ftpusers(5)
- enable WARNS=2
 1.65 25-Apr-2001  lukem crank copyrights of files changed this year
remove superfluous byte_count update in send_file_list
crank version
 1.64 17-Apr-2001  lukem use own code instead of bother with glob() to do ~ expansion in pathname;
there's no need to support glob wildcards in this case when it's not expanded
here in the non-~ case
 1.63 17-Apr-2001  lukem limit the number of matches in a ~ pathname glob, and complain if more
than one path is matched.
 1.62 12-Apr-2001  lukem minor knf post aidan's oob rototill
 1.61 10-Apr-2001  itojun make checkportcmd address family independent, and correct IPv4 case. PR 12558.
 1.60 01-Apr-2001  aidan As threatened, handle OOB commands from within ftpcmd.y.
This involved changing the yacc syntax to be line-oriented, rather than
having it run against the entire input at once, and adding a flag to
struct tab, to indicate if or not it's acceptable for a command to occur
OOB.
 1.59 18-Dec-2000  lukem Features:

* Add ftpd.conf(5) directive `advertise'; change the address that is
advertised to the client for PASV transfers. this may be useful in
certain firewall/NAT environments.

Feature requested in [bin/9606] by Scott Presnell.

* Add -X option; syslog wu-ftpd style xferlog messages, prefixed with
`xferlog: '. An example line from syslog (wrapped):
Dec 16 18:50:24 odysseus ftpd[571]: xferlog: Sat Dec 16 18:50:24 2000
2 localhost 3747328 /pub/WLW2K601.EXE b _ o a lukem@ FTP 0 * c

These messages can be converted to a wu-ftpd style xferlog file
suitable for parsing with third-party tools with something like:
grep 'xferlog: ' /var/log/xferlog | \
sed -e 's/^.*xferlog: //' >wuxferlog

The format is the same as the wu-ftpd xferlog entries (with the leading
syslog stuff), but different from the wu-ftpd syslogged xferlog entries
because the latter is not as easy to convert into the standard xferlog
file format.

The choice to only syslog the xferlog messages rather than append to
a /var/log/xferlog file was made because the latter doesn't work to
well in the situation where the logfile is rotated and compressed and
a long-running ftpd still has a file-descriptor to the now nonexistant
xferlog file, and the log message will then get lost.

Feature requested in [bin/11651] by Hubert Feyrer.


Fixes:

* In ftpd(8), clarify the -a and -c options.

* More clarifications in ftpd.conf(5).

* Ensure that all ftpd.conf commands set a parameter back to sane defaults
if an argument of `none' or bad settings are given.

* Support the `chroot' directive for `REAL' users too (for consistency).

* For `GUEST' users, store the supplied password in pw->pw_passwd for use
later in the xferlog.

* If show_chdir_messages() is given a code of -1, flush the cache of
visited directories. Invoke show_chdir_messages(-1) in end_login().

* Only syslog session stats if logging is requested.

* Rename logcmd() -> logxfer(), and dolog() -> logremotehost().

* Use cprintf() instead of fprintf() where appropriate.

* Minor KNF, and make a couple of functions static that were declared static.
 1.58 30-Nov-2000  lukem - move password checking into separate valid_passwd() function, to assist
in porting to other systems.
- don't syslog() or setproctitle() "ACCT" lines (as per "PASS")
- replace #ifdef HASSETPROCTITLE with #if HAVE_SETPROCTITLE, and set the
latter #ifdef BSD4_4
- don't compile in internal `ls' #ifdef NO_INTERNAL_LS. will need Makefile
support if this is to be used on NetBSD.
 1.57 28-Nov-2000  lukem - ensure all uses of AF_INET6 are wrapped in #ifdef INET6
- don't define `ALL' as a token twice in the grammar
 1.56 16-Nov-2000  lukem - new ftpd.conf directives:
maxfilesize set the maximum size of uploaded files
sanenames if set, only permit uploaded filenames that contain
characters from the set "-+,._A-Za-z0-9" and that
don't start with `.'

- new/changed command line options:
-e emailaddr define email address for %E (see below)
-P dataport use dataport as the dataport (instead of ctrlport-1)
-q use pid files to count users [default]
-Q don't use pid files to count users
-u write entries to utmp
-U don't write entries to utmp [default]
-w write entries to wtmp [default]
-W don't write entries to wtmp

NOTE: -U used to mean `write utmp entries'. Its meaning has changed
so that it's orthogonal with -q/-Q and -w/-W. This isn't
considered a major problem, because using -U isn't going to
enable something you don't want, but will disable something
you did want (which is safer).

- new display file escape sequences:
%E email address
%s literal `s' if the previous %M or %N wasn't ``1''.
%S literal `S' if the previous %M or %N wasn't ``1''.

- expand the description of building ~ftp/incoming to cover the
appropriate ftpd.conf(5) directives (which are defaults, but it pays
to explicitly explain them)

- replace strsuftoi() with strsuftoll(), which returns a long long if
supported, otherwise a long

- rework the way that check_modify and check_upload are done in the yacc
parser; they're merged into a common check_write() function which is
called explicitly

- merge all ftpclass `flag variables' into a single bitfield-based flag element

- move various common bits of parse_conf() into a couple of macros

- clean up some comments
 1.55 15-Nov-2000  lukem changes to improve portability:
* replace union sockunion {} with struct sockinet {}, and modify the code
accordingly. this is possibly more portable, as it doesn't rely upon
the structure alignment within the union for our own stuff. uses local
su_len unless HAVE_SOCKADDR_SA_LEN is defined (set ifdef BSD4_4)
(XXX: haven't tested the ipv6 stuff)
* always use getaddrinfo() and getnameinfo() instead of maintaining two code
paths. (lukemftpd will provide replacements for these on older systems)
* use lockf() instead of open(.., O_EXLOCK) to lock the pid file
* minor KNF
* clean up long long support: create helper #defines and use as appropriate:
#define NO_LONG_LONG ! NO_LONG_LONG
------- ------------ --------------
LLF "%ld" "%lld"
LLFP(x) "%" x "ld" "%" x "lld"
LLT long long long
ULLF "%lu" "%llu"
ULLFP(x) "%" x "lu" "%" x "llu"
ULLT unsigned long unsigned long long
STRTOLL(x,y,z) strtol(x,y,z) strtoll(x,y,z)
 1.54 13-Nov-2000  itojun - improve RFC2428 conformance.
return 522 on unknown protocol identifier on EPRT.
- clarify EPSV/EPRT/LPSV/LPRT behavior.
- repair memory leak and lack of boundary check on EPRT.
- make sure we do not resolve DNS on EPRT.
sync with kame.
 1.53 15-Sep-2000  christos Make this compile again without -DINET6 and without get{addr,name}info(3)
This ftpd now compiles and runs on NetBSD/1.4.2 with:

CPPFLAGS+= \
'-Dstrlcpy(a,b,c)=(strncpy(a,b,c),strlen(a))' \
'-Dstrlcat=strncat' \
'-Dsl_add(a,b)=(sl_add(a,b),0)'
 1.52 23-Jul-2000  lukem * make checkportcmd the default. this breaks third-party proxy ftp but
prevents the ftp bounce attack, and we should be secure out of the
box, not require users to tweak obscure stuff.
* allow the version string reported to clients to be changed with '-V vers'.
if vers is empty or `-', don't report a version.
* if -r is given, permanently drop root privs
* if not a REAL user (i.e, GUEST or CHROOT), and ftpd is running on a port
> IPPORT_RESERVED+1, permanently drop root privs
* don't bother reverting to root privs to logout of wtmp/utmp; since the
file descriptor is already open this isn't necessary.
* fix the binding of the port for the PORT/LPRT/EPRT connection to be the
ctrl_addr.su_port-1, not hardcoded to `20' (this was broken in the ipv6
merge). if root privs have been dropped, and this would be a port <
IPPORT_RESERVED, use a random port instead (which isn't RFC959 compliant
but it doesn't appear that many clients care).
* prevent login of a new user if privs have been dropped and already logged
in as a REAL user (existing check already stops GUEST & CHROOT users).
* move the port check stuff into a separate port_check() function, and use
for PORT, LPRT, and EPRT checks. inspired by freebsd
* minor KNF
* minor man page cleanup
 1.51 17-Jul-2000  lukem * add two new ftpd.conf(5) directives:
chroot specify dir to chroot to for GUEST and CHROOT users, to
override -a anondir or the user's homedir.
homedir specify dir to change to upon login; also used for ~ expansion
and $HOME for subprocesses)
both of these can take % escapes: %u (username), %d (homedir), %c (class).
* fix NLST to take a pathname not a STRING, so that ~ expansion works
* modify CWD to use the homedir parsed from curclass.homedir
* implement format_path(dst, src), to parse src expanding % escapes (see above)
into dst.
* rename format_file() to display_file()
 1.50 15-Jul-2000  lukem * add -H, which acts like -h `hostname`. (requested by kim@)
* refer to draft-ietf-ftpext-mlst-11 instead of -10
 1.49 08-Jul-2000  sommerfeld More format paranoia.
 1.48 19-Jun-2000  lukem branches: 1.48.2;
various fixes suggested by Robert Elz:
* implement closedataconn() and use appropriately (including in mlsd())
* only put leading space in front of MLST output (not MLSD output)
* MLSD: only output pdir and cdir entries when the type fact is requested.
* change error code for giving MLSD a non-directory from 550 to 501
* remove MLSx Type fact support for UNIX.* for now; it's not standardised yet.
* do a check_login when MLSD and MLST are given no args
* detect & complain about null facts in OPTS MLST
* cache getgroups() at login instead of calling each time in fact_perm()

other mods:
* implement cprintf(); as per fprintf() but increments total_bytes{,_out}
* implement CPUTC(); as per putc() but increments total_bytes{,_out}
* implement base64_encode()
* fact_unique() display base64 encoding of dev_t and ino_t rather than
hex output; should scale if size of those changes
* change reply() so that a negative code acts as the initial line in a reply,
code == 0 prefixes the line with 4 spaces, and code > 0 works as before.
deprecate lreply(code, ) and lreply(0, ) in favour of reply(-code, ) and
reply(0, ) respectively.
* use cprintf() and CPUTC() appropriately (often instead of printf(),
lreply(-2, ) or lreply(-1, ).
now we actually account for the data sent by MLST and MLSD.
* remove DEBUG support for sending MLSD output to control connection instead
of data connection (my ftp client now supports MLSD :-)
 1.47 14-Jun-2000  lukem major overhaul (just before netbsd 1.5 :-):

* implement draft-ietf-ftpext-mlst-10 commands, especially MLST and MLSD.
we already supported SIZE and MDTM. add the appropriate FEAT output lines.

* migrate a lot of the command code from ftpcmd.y and ftpd.c to cmds.c

* make dataconn(), feat(), lookup(), opts() and sizecmd() public

* modify struct tab so that it has a `flags' instead of `implemented' element,
and remove the `hasopts' element. If flags == 1, the command is implemented.
if flags == 2, the command is implemented and takes options

* add macros ISDOTDIR(x) (is x ".") and ISDOTDOTDIR(x) (is x "..")

* modify lreply() so that lreply(-2, ...) just outputs the given info without
a prefix or trailing \r\n. this saves doing b = printf(); total_* += b;

* enhance statcmd(). still needs work in the LPRT status stuff.

* crank version
 1.46 20-May-2000  lukem branches: 1.46.2;
convert to ANSI C as per style guide
 1.45 05-Mar-2000  lukem * don't bother with a version[] string, just use the macro as appropriate
* clean some more of the GLOBAL stuff
* fix unused var if -UHASSETPROCTITLE
 1.44 12-Jan-2000  lukem * add ftpd.conf directive `portrange class min max', which allows specification
of the port range used by passive connections. based on work in [bin/9158]
from Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
* change the way global variables are defined and extern-ed to be more
consistent.
 1.43 21-Dec-1999  lukem trivial simplification
 1.42 18-Dec-1999  lukem * move version to separate header file
* use .Dv and .Tn in the man pages as appropriate
* KNF a bit

The following were inspired by similar changes in openbsd, but may
have additional improvements by me:
* add more check_login tests to the parser rules
* nuke a few memory leaks in the parser rules
* clear passwords before free()ing them, for safety
* don't display \r\n in setproctitle() output
* add support for -U, which enables managing /var/run/utmp entries for
connections. solves [bin/2217] by Jason Downs <downsj@teeny.org>
* fix oob handling for STAT command
* use SIG_ERR instead of -1
 1.41 12-Dec-1999  lukem * change format of /etc/ftpusers lines from
userglob [allow|deny]
to
userglob[@host] [allow|deny [classname]]
where class is a userdefined classname.
- if host is given it may either be a CIDR address (e.g, `1.2.3.0/24') or a
hostglob (e.g, `*.foo.com'), and the remote host is matched against that.
- if classname is given, use that to match entries in ftpd.conf (defaults
to `guest' for `anonymous'/`ftp' logins, `chroot' for users found in
/etc/ftpchroot, and `real' for everyone else.

* implement new /etc/ftpd.conf directives:
classtype classname type set type of classname to GUEST, CHROOT, or REAL
motd classname file file to use instead of /etc/motd
rateget classname rate set rateget throttle to rate
rateput classname rate set rateput throttle to rate
upload classname allow/deny uploads (STOU, STOR, APPE). if
denied, also acts as `modify deny'.

* implement new `SITE' commands:
RATEGET as per /etc/ftpd.conf rateget, but cannot exceed that
RATEPUT as per /etc/ftpd.conf rateput, but cannot exceed that

* implement format_file(), which outputs a file to the user, parsing %
escapes. use to print /etc/ftpwelcome, /etc/motd, and the `display' file.

* implement strsuftoi() (from ftp(1)), which parses a number and
optional suffix (for use with rateget, etc)

* don't bother seteuid(0) ; bind(...) ; seteuid(pw->pw_uid), since
we don't need reserved ports (at wasn't getting them anyway).

* update & reorder copyrights

* use strlcpy() as appropriate
 1.40 07-Dec-1999  lukem * change ftpd_popen() to take char *argv[] instead of char *cmd.
the string tokenisation must be performed by the caller (which is
generally easy because it's almost always a static command).
* change do_conversion() to return a char *argv[] instead of char *cmd.
tokenisation of the command is done internally.
* change retrieve() to take char *argv[] instead of char *cmd.
(to take advantage of the above changes). fixes [bin/8173]
* use fparseln() instead of fgetln()
* store conversions in listed order (rather than reverse order)
* use stringlists instead of handrolling code to manage an argv.
 1.39 04-Oct-1999  tron Don't use undefined C expression. Patch supplied by David A. Holland
in PR bin/8534.
 1.38 06-Sep-1999  simonb branches: 1.38.2;
In the command table, remove a trailing comma and make white space
consistant.
 1.37 01-Sep-1999  itojun ftpd(8): Copy sin6_scope_id from control connection to active data
connection destination, hoping this to help ftpd's behavior with
scoped IPv6 addresses.
I'm not sure if it is the right way, but it is the best way available to us.
LPRT or EPRT command gives no information about which interface (or scope)
to be used for new data connection.

ftp(1): On data connection establishment, warn if scoped address is used.
If peer (ftp daemon) does not handle scoped address, data connection
may not work right.

This seems to be sort of protocol spec hole, not implementation issue.
 1.36 25-Aug-1999  christos Make this compile with krb5.
 1.35 11-Jul-1999  itojun more sanity check on LPRT.
 1.34 11-Jul-1999  itojun make LPRT on IPv4 work.
make LPSV on IPv6 work.
 1.33 02-Jul-1999  itojun close data socket when new EPRT command comes.
 1.32 02-Jul-1999  itojun dual-stack ftpd. run this from inetd, like:
>>ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -ll
 1.31 26-May-1999  lukem move stuff around, so the `thank you' message is counted in the
syslogged bytecount.
 1.30 24-May-1999  ross * Cast %q[ud] arguments to fix ILP32/LP64 off_t variation.
* Fix bug in 213 reply: correct ordering of format string args.
 1.29 24-May-1999  ross LP64ize %q use.
 1.28 18-May-1999  lukem * fix a problem in retrieve() where arguments to commands weren't working
(this was broken in the last commit). problem noticed by simonb@
* don't display the stderr output of the internal ls.
* modify usage of lreply so that generally only one `XXX-' code per
`block' is displayed; the rest of the lines have four spaces instead.
i find this easier to read.
* fix a couple places where byte accounting wasn't correct
 1.27 17-May-1999  lukem features/fixes:
* implement xferstats. full stats are displayed for `STAT', and a
summary is displayed upon exit (and syslogged). inspired by wu-ftpd.
* wrap data xfers in {send,receive}_data with alarm() timeouts. this
should remove the majority of the `hanging ftpd' problems that
people were still seeing. inspired by wu-ftpd.
* link with ../../bin/ls, so that bin/ls is not required under a
chroot()ed area for `LIST' to work. based on [bin/4497] from
"Soren S. Jorvang" <soren@t.dk>
* migrate code from util.c into ftpd.c, so that it doesn't conflict
with ls' util.c.
* remove man page comment about ~ftp/bin/ls being necessary.
* bump version to 7.2.0.
* syslog xfer time with xfer stats.
* if appropriate, syslog error message with command.

internal code stuff:
* change arguments of various functions from `char *' to `const char *'.
* define PLURAL(x) macro, which returns `' if x == 1, `s' otherwise.
use macro appropriately
* lreply(): a code of -1 means ``send line as is''. a code of 0
means ``send line with 4 space prefix''. don't print a space after
the `-' for any other code.
* logcmd(): add `const struct timeval *elapsed' and `const char *error'
for more flexible error reporting
 1.26 24-Feb-1999  explorer branches: 1.26.2;
Make this build with KERBEROS5 defined.
 1.25 05-Feb-1999  lukem * actually commit the changes which add support for recognising RFC 2228
commands (even if we don't do anything with them)
* in logcmd(), syslog why realpath() failed (if it did).
 1.24 28-Dec-1998  lukem * replace LOG(CMD|BYTES) macros with logcmd(), which is a cleaner
solution with less code replication. use realpath() in logcmd() so
that all logged filenames are sane.
* support `REST STREAM' in `FEAT' reply (from draft-ietf-ftpext-mlst-05)
* in 'HELP', suffix unimplemented commands with `-' instead of `*'; the
former is easier to differentiate from `+'.
* deprecate curdir() now that logcmd() doesn't use it.
* ensure all filename buffers are at least MAXPATHLEN+1 in size.
* move jmp_buf errcatch out of extern.h, removing need to #include <setjmp.h>
in every file.
 1.23 07-Sep-1998  lukem new features:
* implement FEAT and OPTS from RFC2389. FEAT returns SIZE and MDTM.
OPTS only works on NOOP (as a test).
* extend format of /etc/ftpchroot similar to /etc/ftpusers; each entry
can take an optional trailing `yes' or `no' which indicates if
chroot should be done (defaults to `yes').
based on patches from Ty Sarna <tsarna@endicor.com> in [bin/4769]

cleanups/bugs:
* reorder and reformat entries in yacc parser to match cmdtab[].
add a blank line between each rule.
* add short hasopts and char *options to struct tab, to support OPTS.
* deprecate upper(); use strcasecmp() instead of strcmp()
* remove unnecessary for (;;) { } in yylex();
* replace copy() and sgetsave() with xstrdup()
* fix a couple of `hasyyerrored = 1' that were accidently removed.
 1.22 06-Sep-1998  lukem * complete fix for `multiple replies returned for single parse error'
problem; move `hasyyerrored' state flag out of yylex() so that
check_{login,modify} can also set it.
* check result of check_login for PORT command
* set initial timeout before the "setjmp(); for(;;) yyparse()",
otherwise an invalid command after login incorrectly sets the timeout
to 5 minutes (rather than what was set in ftpd.conf)
* replace (char *)0 with NULL
* move yyerror() from ftpd.c to ftpcmd.y
* remove need for -Dunix, by using the version string from ftpd.c
(instead of `BSD-199506')
* move all extern-ed vars into extern.h
 1.21 05-Sep-1998  lukem * implement NOARGS state, for commands which don't take any arguments.
fixes long standing ftpd bug where two replies would be returned
to the client if a command was flagged as accepting `ARGS' but the
parser didn't know how to cope. obvious symptom of this would be
ftp client is always one error message `behind' the server.
* consistently refer to the RFC as `RFC 959' not `RFC959' or `RFC-959',
and replace refs to RFC 765 with RFC 959.
* change order of commands in cmdtab[] to: RFC 959, BSD extras, and obsolete.
* whitespace police, deprecate register, replace malloc/strcpy with strdup
 1.20 30-Jun-1998  tv Add the ability to disable passive connects in ftpd.conf (breaks RFC1123,
STD3, but needed in some firewall environments).
 1.19 21-Jun-1998  kleink GLOB_QUOTE is gone; per POSIX, backslash quoting of special characters being
enabled is the default behaviour.
 1.18 21-May-1998  lukem use TM_YEAR_BASE (not 1900) - not that we expect it to change in any case :)
 1.17 13-Feb-1998  cjs Disable RNFR command for guest users so that they can't rename (and thus
also overwrite!) files.
 1.16 11-Nov-1997  mrg oops, missed this bit in previous change.
 1.15 11-Nov-1997  mrg add a "checkportcmd <class>" option that stops ftp bounce attacks.
 1.14 24-Jun-1997  hannken branches: 1.14.2;
Add missing braces. `check_modify' returns 0 without a reply. See PR #3779.
 1.13 18-Jun-1997  christos - Pass gcc -Wall
- Fix incorrect const poisoning
- Fix ftpd_popen to dynamically allocate strings to avoid buffer overruns.
 1.12 14-Jun-1997  lukem * implement /etc/ftpd.conf, which adds support for the following features,
controllable on a per class (which is one of: real, chroot, guest,
all or none) basis:
* on-the-fly execution of a command to build the file (a ``conversion''),
providing support for "get dirname.tar" and the like.
* displaying the contents of a file when a directory is entered
for the first time.
* maximum value for timeout (replaces -T).
* control usage of CHMOD, DELE, MKD, RMD, UMASK; replacing -DINSECURE_GUEST.
* notifying the user of the existance of a files matching a glob
pattern when a directory is entered for the first time.
* default value for timeout (replaces -t).
* default umask (replaces -DGUEST_CMASK and -u).
The conversion, display, and notify functionality was based on code by
Simon Burge <simonb@telstra.com.au>.
* clean up and re-order parts of the man page into subsections.
* STAT displays the settings defined for the class of the current user.
* bump version from 6.00 to 7.00, because of ftpd.conf.
* deprecate -DGUEST_CMASK and -DINSECURE_GUEST in the Makefile, and
-t, -T and -u, as ftpd.conf allows finer control of these.
* add "nostderr" argument to ftpd_popen(), because you don't want the
stderr stream mixing with the stdout stream during a conversion,
as this can corrupt the stream.
 1.11 23-May-1997  cjs Allow setting the directory to which anonymous users chdir from
the command line. Document -u option. A couple of minor cleanups.
 1.10 17-May-1997  pk NULL => 0 (Arne Juul; PR#3629)
 1.9 27-Apr-1997  lukem * fix "cd ~" so that it works (from Simon Burge <simonb@telstra.com.au>
* move resetting of CFLAGS on powerpc to before optional CFLAGS settings
* minor code & man page cleanups
 1.8 30-Mar-1997  cjs Changes to make anonymous uploads more secure. For anonymous users:
* Set umask to 707;
* Disable UMASK, CHMOD, DELE, RMD and MKD commands.
Compile-time options let you change that umask and go back to the
old, insecure way if you like.
 1.7 08-Apr-1996  jtc Changed to use 1900 + tm_year instead of hardcoding "19" as the century.
From PR #2308 by Stephen J. Roznowski <sjr@zombie.ncsc.mil>.
 1.6 03-Jun-1995  mycroft Fill in sin_len.
 1.5 11-Apr-1995  cgd clean up RCS Id's and a couple of stype nits.
Also, fix bug 947 (reported by Luke Mewburn, extraneous vers.c)
 1.4 29-Jun-1994  deraadt 4.4-lite, plus our local changes
 1.3 14-Apr-1994  cgd use setproctitle
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Mar-1997  cjs Lite-1 Import.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.14.2.3 14-Feb-1998  mellon Fix RNFR exploit
 1.14.2.2 11-Nov-1997  mrg weird. fix error in previous.
 1.14.2.1 11-Nov-1997  mrg pull up from trunk: add a "checkportcmd <class>" option that stops ftp bounce attacks.
 1.26.2.1 05-Oct-1999  he Pull up revision 1.39 (requested by tron):
Don't use an undefined C expression, fixing PR#8534.
 1.38.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.46.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.48.2.3 26-Aug-2004  jmc Pullup rev 1.60-1.80 (requested by he in ticket #158)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.48.2.2 29-Mar-2001  lukem sync ftpd to -current with the following revisions (for lukem/christos):
Makefile 1.43-1.44
cmds.c 1.7-1.8, 1.10-1.12
conf.c 1.35-1.40
extern.h 1.32-1.38
ftpcmd.y 1.53-1.59
ftpd.8 1.58-1.63
ftpd.c 1.102-1.104, 1.106-1.122
ftpd.conf.5 1.12-1.15
ftpusers.5 1.8
logwtmp.c 1.16
popen.c 1.23-1.25
version.h 1.28

a quick summary of user-visible changes;
- fix glob DoS by using GLOB_LIMIT
- add ftpd.conf directives `advertise', `maxfilesize', `sanenames'
- add flags: -P dataport, -X - wuftpd style log entries,
-q/-Q - (en|dis)able pidfiles, -u/-U - (en|dis)able utmp,
-w/-W - (en|dis)able wtmp
 1.48.2.1 25-Jul-2000  lukem user visible changes (besides checking the cvs log):
* make checkportcmd the default
* add -r; force permanent drop of root privs after login
* add -V vers; change version string to vers
* add -H; act as -h `hostname`
* permanently drop root privs if it makes sense to do so (e.g; logging in as
guest/chroot user on a port > 1024)
* fix reference to draft-ietf-ftpext-mlst-11
* add ftpd.conf directives: chroot, homedir
* fix base64_encode() and generation of the unique fact
* crank version to 20000723
 1.66.2.3 31-Aug-2004  jmc Pullup rev 1.68,1.70-1.80 (requested by he in ticket #1739)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.66.2.2 06-Nov-2002  tron Pull up revision 1.69 (requested by tv in ticket #418):
We really, actually, positively want to apply the ftpd.conf "passive"
option to all possible *PSV commands. Some ftp servers are simply not
capable of passive connections, hence the option....
 1.66.2.1 15-Jun-2002  lukem Pull up revision 1.67 (requested by lukem in ticket #282):
Implement "SITE UMASK" `enabled command' check with (modified)
check_write(), so that a user who has modify disabled gets an error
message rather than a hung connection.
Noted by M.J. Rutter <mjr19@cus.cam.ac.uk> in private email.
 1.77.2.3 12-Aug-2004  jmc Pullup rev 1.80 (requested by lukem in ticket #757)

* Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary.
* Fix SIGURG handler to set an urgflag that's later tested, rather than
abusing setjmp(3)/longjmp(3).
* Use "volatile sig_atomic_t" as the type of variables modified by sig handlers.
* Use sigaction(3) instead of signal(3) to set the signal handlers.
* Only set the main SIGALRM handler once. If we need to change it,
cache the old handler and restore appropriately...
* Remove a bunch of signal races by improving the signal handlers.
* Fix memory leak with 'ESPV ALL'.
* Clean up the debug message in reply(); use vsnprintf(3) instead of vsyslog(3).
* Rework parsing of OOB commands to _not_ use the yacc parser, since the
latter isn't reentrant and the hacks to work around that are ugly.
We now examine urgflag at appropriate locations and call handleoobcmd()
if it's set. Since the only OOB commands we currently implement are
ABOR and STAT, this isn't an issue.
 1.77.2.2 12-Aug-2004  jmc Pullup rev 1.79 (requested by lukem in ticket #756)

Correctly clamp illegal "SITE CHMOD" mode values.
 1.77.2.1 12-Aug-2004  jmc Pullup rev 1.78 (requested by lukem in ticket #755)

Fix minor memory leak with fromname.
 1.83.6.1 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1964):
libexec/ftpd/ftpd.c: revision 1.187 via patch
libexec/ftpd/extern.h: revision 1.58 via patch
libexec/ftpd/ftpcmd.y: revision 1.88 via patch
libexec/ftpd/version.h: patch
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>
 1.83.4.1 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1964):
libexec/ftpd/ftpd.c: revision 1.187 via patch
libexec/ftpd/extern.h: revision 1.58 via patch
libexec/ftpd/ftpcmd.y: revision 1.88 via patch
libexec/ftpd/version.h: patch
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>
 1.83.2.1 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1964):
libexec/ftpd/ftpd.c: revision 1.187 via patch
libexec/ftpd/extern.h: revision 1.58 via patch
libexec/ftpd/ftpcmd.y: revision 1.88 via patch
libexec/ftpd/version.h: patch
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>
 1.84.8.1 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1202):
libexec/ftpd/ftpd.c: revision 1.187
libexec/ftpd/extern.h: revision 1.58
libexec/ftpd/version.h: patch
libexec/ftpd/ftpcmd.y: revision 1.88
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>
 1.84.4.1 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1202):
libexec/ftpd/ftpd.c: revision 1.187
libexec/ftpd/extern.h: revision 1.58
libexec/ftpd/version.h: patch
libexec/ftpd/ftpcmd.y: revision 1.88
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>
 1.86.12.2 22-Jul-2007  lukem Rename HAVE_SOCKADDR_SA_LEN to HAVE_STRUCT_SOCKADDR_SA_LEN.
Use defined(HAVE_foo) instead of just testing HAVE_foo.
 1.86.12.1 22-Jul-2007  lukem file ftpcmd.y was added on branch matt-mips64 on 2007-07-22 05:06:46 +0000
 1.86.10.1 18-May-2008  yamt sync with head.
 1.87.2.1 24-Sep-2008  wrstuden Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
 1.88.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.94.26.1 02-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #386):

libexec/ftpd/ftpcmd.y: revision 1.95

Add missing check_login checks for MLST and MLSD
 1.94.18.1 02-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #1740):

libexec/ftpd/ftpcmd.y: revision 1.95

Add missing check_login checks for MLST and MLSD
 1.94.8.1 03-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #1904):

libexec/ftpd/ftpcmd.y: revision 1.95

Add missing check_login checks for MLST and MLSD
 1.87 28-Apr-2018  riastradh Add -f option to ftpd to stay in foreground with -D.

From nia in PR bin/53221.
 1.86 03-Jul-2017  wiz branches: 1.86.4;
Remove workaround for ancient HTML generation code.
 1.85 01-May-2009  wiz branches: 1.85.38;
Drop trailing whitespace.
 1.84 01-May-2009  lukem Simplify the example command used to extract a wu-ftpd compatible xferlog.
 1.83 15-Mar-2009  joerg Declare all columns.
 1.82 21-Sep-2008  lukem branches: 1.82.6;
Use passwd(5) instead of /etc/pwd.db as the name of the "password data base".
 1.81 16-Sep-2008  lukem Enhance -C to support an optional @host ('-C user[@host]'):
checks whether user as connecting from host would be granted
access by ftpusers(5).

Support IPv6 in the host directive of ftpusers(5).
(May resolve PR 26555)

Both features from Rudolf Cejka <cejkar@fit.vutbr.cz>
(FreeBSD's tnftpd port maintainer).
 1.80 02-May-2008  martin branches: 1.80.2;
Move TNF licenses to 2 clause form
 1.79 30-Jan-2008  lukem branches: 1.79.4;
Explicitly note the unsupported requests from RFC 2228.
Improvements from FreeBSD:
* Document `ftp-chroot' from login.conf(5).
* Document that SIZE is prevented for files > 10240 bytes via ASCII transfers.
 1.78 10-Jun-2007  christos branches: 1.78.4;
PR/36468: Andreas Wrede: ftpd(8) always logs hostnames. Add -n option to display
addresses.
 1.77 10-May-2007  lukem Replace references from draft-ietf-ftpext-mlst-NN to RFC 3659.
 1.76 07-Aug-2005  wiz Sort options.
 1.75 04-Aug-2005  peter Implement option "-D", for running ftpd in standalone mode (daemon).
ftpd will listen on the default FTP port for incoming connections and fork
a child for each connection. This is lower overhead than starting ftpd from
inetd(8) and thus might be useful on busy servers to reduce load.

Inspired by FreeBSD.
Reviewed by lukem@.
 1.74 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.73 28-Feb-2003  lukem it's actually 2003 ...
 1.72 26-Feb-2003  lukem Add '-L xferlogfile', to write xferlog entries there rather than syslog them.
Based on work from Dmitry Sivachenko.
 1.71 04-Feb-2003  perry "Utilize" has exactly the same meaning as "use," but it is more
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
 1.70 26-Oct-2002  lukem tweak reference to me
 1.69 08-Feb-2002  ross branches: 1.69.2;
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
 1.68 15-Jan-2002  wiz Drop some unnecessary .Pps, sort SEE ALSO, whitespace nits.
 1.67 13-Oct-2001  lukem set "upload guest on" in incoming example, even though it is the default
 1.66 31-Aug-2001  lukem Expand description of shells(5) requirement.
Per PR [misc/13814] from Alexander Sorg.
 1.65 08-Jul-2001  lukem Alan Barrett informs me that "advertise" (instead of "advertize") is
the norm even in American English.
 1.64 26-Jun-2001  lukem s/tise/tize/ in docco, add "advertize" as synonym for "advertise"
 1.63 18-Dec-2000  lukem Features:

* Add ftpd.conf(5) directive `advertise'; change the address that is
advertised to the client for PASV transfers. this may be useful in
certain firewall/NAT environments.

Feature requested in [bin/9606] by Scott Presnell.

* Add -X option; syslog wu-ftpd style xferlog messages, prefixed with
`xferlog: '. An example line from syslog (wrapped):
Dec 16 18:50:24 odysseus ftpd[571]: xferlog: Sat Dec 16 18:50:24 2000
2 localhost 3747328 /pub/WLW2K601.EXE b _ o a lukem@ FTP 0 * c

These messages can be converted to a wu-ftpd style xferlog file
suitable for parsing with third-party tools with something like:
grep 'xferlog: ' /var/log/xferlog | \
sed -e 's/^.*xferlog: //' >wuxferlog

The format is the same as the wu-ftpd xferlog entries (with the leading
syslog stuff), but different from the wu-ftpd syslogged xferlog entries
because the latter is not as easy to convert into the standard xferlog
file format.

The choice to only syslog the xferlog messages rather than append to
a /var/log/xferlog file was made because the latter doesn't work to
well in the situation where the logfile is rotated and compressed and
a long-running ftpd still has a file-descriptor to the now nonexistant
xferlog file, and the log message will then get lost.

Feature requested in [bin/11651] by Hubert Feyrer.


Fixes:

* In ftpd(8), clarify the -a and -c options.

* More clarifications in ftpd.conf(5).

* Ensure that all ftpd.conf commands set a parameter back to sane defaults
if an argument of `none' or bad settings are given.

* Support the `chroot' directive for `REAL' users too (for consistency).

* For `GUEST' users, store the supplied password in pw->pw_passwd for use
later in the xferlog.

* If show_chdir_messages() is given a code of -1, flush the cache of
visited directories. Invoke show_chdir_messages(-1) in end_login().

* Only syslog session stats if logging is requested.

* Rename logcmd() -> logxfer(), and dolog() -> logremotehost().

* Use cprintf() instead of fprintf() where appropriate.

* Minor KNF, and make a couple of functions static that were declared static.
 1.62 01-Dec-2000  lukem fix typo
 1.61 16-Nov-2000  lukem - new ftpd.conf directives:
maxfilesize set the maximum size of uploaded files
sanenames if set, only permit uploaded filenames that contain
characters from the set "-+,._A-Za-z0-9" and that
don't start with `.'

- new/changed command line options:
-e emailaddr define email address for %E (see below)
-P dataport use dataport as the dataport (instead of ctrlport-1)
-q use pid files to count users [default]
-Q don't use pid files to count users
-u write entries to utmp
-U don't write entries to utmp [default]
-w write entries to wtmp [default]
-W don't write entries to wtmp

NOTE: -U used to mean `write utmp entries'. Its meaning has changed
so that it's orthogonal with -q/-Q and -w/-W. This isn't
considered a major problem, because using -U isn't going to
enable something you don't want, but will disable something
you did want (which is safer).

- new display file escape sequences:
%E email address
%s literal `s' if the previous %M or %N wasn't ``1''.
%S literal `S' if the previous %M or %N wasn't ``1''.

- expand the description of building ~ftp/incoming to cover the
appropriate ftpd.conf(5) directives (which are defaults, but it pays
to explicitly explain them)

- replace strsuftoi() with strsuftoll(), which returns a long long if
supported, otherwise a long

- rework the way that check_modify and check_upload are done in the yacc
parser; they're merged into a common check_write() function which is
called explicitly

- merge all ftpclass `flag variables' into a single bitfield-based flag element

- move various common bits of parse_conf() into a couple of macros

- clean up some comments
 1.60 28-Jul-2000  lukem wtmp is in /var/log not /var/run ...
 1.59 26-Jul-2000  lukem add support for -W; don't log to wtmp (orthogonal of -U which logs to utmp).
inspired by similar option in wuftpd.
 1.58 26-Jul-2000  lukem document /var/run/[uw]tmp, /var/run/ftpd.pids-CLASS
 1.57 23-Jul-2000  lukem * make checkportcmd the default. this breaks third-party proxy ftp but
prevents the ftp bounce attack, and we should be secure out of the
box, not require users to tweak obscure stuff.
* allow the version string reported to clients to be changed with '-V vers'.
if vers is empty or `-', don't report a version.
* if -r is given, permanently drop root privs
* if not a REAL user (i.e, GUEST or CHROOT), and ftpd is running on a port
> IPPORT_RESERVED+1, permanently drop root privs
* don't bother reverting to root privs to logout of wtmp/utmp; since the
file descriptor is already open this isn't necessary.
* fix the binding of the port for the PORT/LPRT/EPRT connection to be the
ctrl_addr.su_port-1, not hardcoded to `20' (this was broken in the ipv6
merge). if root privs have been dropped, and this would be a port <
IPPORT_RESERVED, use a random port instead (which isn't RFC959 compliant
but it doesn't appear that many clients care).
* prevent login of a new user if privs have been dropped and already logged
in as a REAL user (existing check already stops GUEST & CHROOT users).
* move the port check stuff into a separate port_check() function, and use
for PORT, LPRT, and EPRT checks. inspired by freebsd
* minor KNF
* minor man page cleanup
 1.56 17-Jul-2000  lukem * add two new ftpd.conf(5) directives:
chroot specify dir to chroot to for GUEST and CHROOT users, to
override -a anondir or the user's homedir.
homedir specify dir to change to upon login; also used for ~ expansion
and $HOME for subprocesses)
both of these can take % escapes: %u (username), %d (homedir), %c (class).
* fix NLST to take a pathname not a STRING, so that ~ expansion works
* modify CWD to use the homedir parsed from curclass.homedir
* implement format_path(dst, src), to parse src expanding % escapes (see above)
into dst.
* rename format_file() to display_file()
 1.55 15-Jul-2000  lukem * add -H, which acts like -h `hostname`. (requested by kim@)
* refer to draft-ietf-ftpext-mlst-11 instead of -10
 1.54 20-Jun-2000  lukem fix problems noted by <dogcow@redback.com> in [bin/10390] and private email:
* fix RATE{GET,PUT} under some situations when the client is slower than
the server (something i missed when migrating the rate limiting code
i wrote in ftp(1) to ftpd(8))
* document what units RATE{GET,PUT} use
 1.53 19-Jun-2000  lukem branches: 1.53.2;
various fixes suggested by Robert Elz:
* implement closedataconn() and use appropriately (including in mlsd())
* only put leading space in front of MLST output (not MLSD output)
* MLSD: only output pdir and cdir entries when the type fact is requested.
* change error code for giving MLSD a non-directory from 550 to 501
* remove MLSx Type fact support for UNIX.* for now; it's not standardised yet.
* do a check_login when MLSD and MLST are given no args
* detect & complain about null facts in OPTS MLST
* cache getgroups() at login instead of calling each time in fact_perm()

other mods:
* implement cprintf(); as per fprintf() but increments total_bytes{,_out}
* implement CPUTC(); as per putc() but increments total_bytes{,_out}
* implement base64_encode()
* fact_unique() display base64 encoding of dev_t and ino_t rather than
hex output; should scale if size of those changes
* change reply() so that a negative code acts as the initial line in a reply,
code == 0 prefixes the line with 4 spaces, and code > 0 works as before.
deprecate lreply(code, ) and lreply(0, ) in favour of reply(-code, ) and
reply(0, ) respectively.
* use cprintf() and CPUTC() appropriately (often instead of printf(),
lreply(-2, ) or lreply(-1, ).
now we actually account for the data sent by MLST and MLSD.
* remove DEBUG support for sending MLSD output to control connection instead
of data connection (my ftp client now supports MLSD :-)
 1.52 14-Jun-2000  lukem major overhaul (just before netbsd 1.5 :-):

* implement draft-ietf-ftpext-mlst-10 commands, especially MLST and MLSD.
we already supported SIZE and MDTM. add the appropriate FEAT output lines.

* migrate a lot of the command code from ftpcmd.y and ftpd.c to cmds.c

* make dataconn(), feat(), lookup(), opts() and sizecmd() public

* modify struct tab so that it has a `flags' instead of `implemented' element,
and remove the `hasopts' element. If flags == 1, the command is implemented.
if flags == 2, the command is implemented and takes options

* add macros ISDOTDIR(x) (is x ".") and ISDOTDOTDIR(x) (is x "..")

* modify lreply() so that lreply(-2, ...) just outputs the given info without
a prefix or trailing \r\n. this saves doing b = printf(); total_* += b;

* enhance statcmd(). still needs work in the LPRT status stuff.

* crank version
 1.51 16-May-2000  itojun branches: 1.51.2;
move IPv6 considerations into BUGS section
 1.50 13-Jan-2000  lukem suppress verbose messages from CWD and post-login if the first
character of the anonymous password is `-'.
 1.49 08-Jan-2000  lukem features:
* add connection limits (`limit' keyword in ftpd.conf)
* move initialisation of curclass from parse_conf() to new function
init_curclass()
* implement count_users(), which determines the number of users in a given
class. a file - /var/run/ftpd.pids-<class> - is used to store a list
of pids in use (effectively an array of pid_t's), and its size is reduced
as necessary.
* new % modifiers in format_file:
%c class
%M maximum connection count
%N current connection count
* always end_login()s, even for refused connections

bugs fixed:
* remove \n from %T output
* fix some inconsistencies in the man pages
* ensure that both `ftp' *and* `anonymous' are allowed in ftpusers.
(this was accidently broken in a recent commit to be ``or'' not ``and'')
* use MAXPATHLEN not MAXPATHLEN+1
* crank copyright date on modified files
* crank version
 1.48 19-Dec-1999  lukem * add back support for `-h hostname'; it still may be useful to override
the name advertised to the client, even if ftpd can determine it from
the ip address that ftpd is bound to. requested by mrg.
* remove -4/-6; they were effectively no-ops since itojun's change in 1.75.
* crank version
 1.47 18-Dec-1999  lukem deprecate -h hostname in favour of automatic determination of local hostname.
this is a much cleaner solution for supporting multihomed virtual servers.
from Geoff C. Wing <gcw@pobox.com> in [bin/8137].
 1.46 18-Dec-1999  lukem * move version to separate header file
* use .Dv and .Tn in the man pages as appropriate
* KNF a bit

The following were inspired by similar changes in openbsd, but may
have additional improvements by me:
* add more check_login tests to the parser rules
* nuke a few memory leaks in the parser rules
* clear passwords before free()ing them, for safety
* don't display \r\n in setproctitle() output
* add support for -U, which enables managing /var/run/utmp entries for
connections. solves [bin/2217] by Jason Downs <downsj@teeny.org>
* fix oob handling for STAT command
* use SIG_ERR instead of -1
 1.45 16-Dec-1999  lukem install ftpusers(5) as ftpchroot(5). more cleanups
 1.44 16-Dec-1999  lukem * add support for `-h hostname', which defines the hostname to advertise
as (useful for virtual ftp servers in conjunction with inetd.conf(5)'s
ability to bind to a specific address).
if this option is used, add `hostname' to the syslog messages.
* improve documentation of command-line options
* don't allow class names of `all' or `none' in ftpusers
 1.43 16-Dec-1999  lukem separate ftpd.conf(5) and ftpusers(5) out from ftpd(8).

xxx: still needs a bit of work
 1.42 12-Dec-1999  lukem * change format of /etc/ftpusers lines from
userglob [allow|deny]
to
userglob[@host] [allow|deny [classname]]
where class is a userdefined classname.
- if host is given it may either be a CIDR address (e.g, `1.2.3.0/24') or a
hostglob (e.g, `*.foo.com'), and the remote host is matched against that.
- if classname is given, use that to match entries in ftpd.conf (defaults
to `guest' for `anonymous'/`ftp' logins, `chroot' for users found in
/etc/ftpchroot, and `real' for everyone else.

* implement new /etc/ftpd.conf directives:
classtype classname type set type of classname to GUEST, CHROOT, or REAL
motd classname file file to use instead of /etc/motd
rateget classname rate set rateget throttle to rate
rateput classname rate set rateput throttle to rate
upload classname allow/deny uploads (STOU, STOR, APPE). if
denied, also acts as `modify deny'.

* implement new `SITE' commands:
RATEGET as per /etc/ftpd.conf rateget, but cannot exceed that
RATEPUT as per /etc/ftpd.conf rateput, but cannot exceed that

* implement format_file(), which outputs a file to the user, parsing %
escapes. use to print /etc/ftpwelcome, /etc/motd, and the `display' file.

* implement strsuftoi() (from ftp(1)), which parses a number and
optional suffix (for use with rateget, etc)

* don't bother seteuid(0) ; bind(...) ; seteuid(pw->pw_uid), since
we don't need reserved ports (at wasn't getting them anyway).

* update & reorder copyrights

* use strlcpy() as appropriate
 1.41 02-Aug-1999  hubertf branches: 1.41.4;
Document setup of "ftp-only" non-anonymous accounts.

Suggested by Thilo Manske <Thilo.Manske@HEH.Uni-Oldenburg.DE>,
approved by Luke Mewburn <lukem@netbsd.org>
 1.40 27-Jul-1999  itojun handle IPv4 TCP control connection, toward AF_INET6 socket.
this happens when you have the following line in inetd.conf,
but not with tcp4 line:
>>>ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -ll
 1.39 11-Jul-1999  itojun make LPRT on IPv4 work.
make LPSV on IPv6 work.
 1.38 02-Jul-1999  itojun typo fix: s/LPSV/LPRT/
 1.37 02-Jul-1999  itojun dual-stack ftpd. run this from inetd, like:
>>ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -ll
 1.36 17-May-1999  lukem features/fixes:
* implement xferstats. full stats are displayed for `STAT', and a
summary is displayed upon exit (and syslogged). inspired by wu-ftpd.
* wrap data xfers in {send,receive}_data with alarm() timeouts. this
should remove the majority of the `hanging ftpd' problems that
people were still seeing. inspired by wu-ftpd.
* link with ../../bin/ls, so that bin/ls is not required under a
chroot()ed area for `LIST' to work. based on [bin/4497] from
"Soren S. Jorvang" <soren@t.dk>
* migrate code from util.c into ftpd.c, so that it doesn't conflict
with ls' util.c.
* remove man page comment about ~ftp/bin/ls being necessary.
* bump version to 7.2.0.
* syslog xfer time with xfer stats.
* if appropriate, syslog error message with command.

internal code stuff:
* change arguments of various functions from `char *' to `const char *'.
* define PLURAL(x) macro, which returns `' if x == 1, `s' otherwise.
use macro appropriately
* lreply(): a code of -1 means ``send line as is''. a code of 0
means ``send line with 4 space prefix''. don't print a space after
the `-' for any other code.
* logcmd(): add `const struct timeval *elapsed' and `const char *error'
for more flexible error reporting
 1.35 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.34 05-Feb-1999  lukem * actually commit the changes which add support for recognising RFC 2228
commands (even if we don't do anything with them)
* in logcmd(), syslog why realpath() failed (if it did).
 1.33 18-Nov-1998  hubertf Fix typo, per PR 6457 by Geoff C. Wing <gcw@pobox.com>
 1.32 17-Nov-1998  msaitoh s/a a/a/
 1.31 07-Sep-1998  lukem new features:
* implement FEAT and OPTS from RFC2389. FEAT returns SIZE and MDTM.
OPTS only works on NOOP (as a test).
* extend format of /etc/ftpchroot similar to /etc/ftpusers; each entry
can take an optional trailing `yes' or `no' which indicates if
chroot should be done (defaults to `yes').
based on patches from Ty Sarna <tsarna@endicor.com> in [bin/4769]

cleanups/bugs:
* reorder and reformat entries in yacc parser to match cmdtab[].
add a blank line between each rule.
* add short hasopts and char *options to struct tab, to support OPTS.
* deprecate upper(); use strcasecmp() instead of strcmp()
* remove unnecessary for (;;) { } in yylex();
* replace copy() and sgetsave() with xstrdup()
* fix a couple of `hasyyerrored = 1' that were accidently removed.
 1.30 05-Sep-1998  lukem * implement NOARGS state, for commands which don't take any arguments.
fixes long standing ftpd bug where two replies would be returned
to the client if a command was flagged as accepting `ARGS' but the
parser didn't know how to cope. obvious symptom of this would be
ftp client is always one error message `behind' the server.
* consistently refer to the RFC as `RFC 959' not `RFC959' or `RFC-959',
and replace refs to RFC 765 with RFC 959.
* change order of commands in cmdtab[] to: RFC 959, BSD extras, and obsolete.
* whitespace police, deprecate register, replace malloc/strcpy with strdup
 1.29 13-Jul-1998  lukem remove Extraneous .El call which caused formatting problem
 1.28 30-Jun-1998  tv Add the ability to disable passive connects in ftpd.conf (breaks RFC1123,
STD3, but needed in some firewall environments).
 1.27 26-Jun-1998  msaitoh add "-s" flag (like telnetd and login)
 1.26 08-Jun-1998  lukem Implement a new manual page category ``SECURITY CONSIDERATIONS''
(suggested by mycroft)
 1.25 08-Jun-1998  lukem support displaying the stderr output from a LIST or a conversion to
the user at the end of a transfer.
this generates a file in /tmp, so anonymous requires a
writable ~ftp/tmp, which you may not want to do (because it may
allow people to unwanted upload files).

XXX: a better method of storing the stderr output would be nice, but
is a lot more effort to implement. this feature can at least be
used temporarily whilst debugging why an ftp conversion doesn't
work.
 1.24 29-Apr-1998  fair fix bad .Xr references
 1.23 28-Apr-1998  fair Change occurrences of "UNIX" to .Ux or .At as appropriate.
 1.22 13-Feb-1998  cjs Disable RNFR command for guest users so that they can't rename (and thus
also overwrite!) files.
 1.21 23-Jan-1998  mrg expand on the checkportcmd option.
 1.20 31-Dec-1997  lukem clarify /etc/ftpwelcome is shown *before* login
 1.19 11-Nov-1997  lukem * change checkportcmd syntax to `checkportcmd class [off]' (as per `modify')
* display current setting of checkportcmd in STAT
* ensure that curclass.checkportcmd is initialised to 0
* document default setting of checkportcmd in ftpd(8)
* cleanup code a bit, putting code for "checkportcmd" in alphabetical order
 1.18 11-Nov-1997  mrg add a "checkportcmd <class>" option that stops ftp bounce attacks.
 1.17 23-Sep-1997  lukem branches: 1.17.2;
- add '-C user', which runs checkaccess(user) and exits with the result
(0 == user allowed in /etc/ftpusers, 1 == user denied in /etc/ftpusers).
from Jim Bernard <jbernard@tater.mines.edu> in [security/4061] with mods
- getopt returns -1 not EOF
- in lostcon(), call dologout(1) not dologout(-1);
 1.16 23-Sep-1997  lukem implement '-c confdir', which allows the specification of an alternate
directory to look for the various configuration files, overriding /etc.
From Matthias Scheler <tron@lyssa.owl.de> in [bin/4133]
 1.15 21-Sep-1997  cjs Mention that if the user's shell is null, it's assumed to be /bin/sh.
(Pointed out by Jim Bernard <jbernard@tater.mines.edu>.)
 1.14 14-Jun-1997  lukem * implement /etc/ftpd.conf, which adds support for the following features,
controllable on a per class (which is one of: real, chroot, guest,
all or none) basis:
* on-the-fly execution of a command to build the file (a ``conversion''),
providing support for "get dirname.tar" and the like.
* displaying the contents of a file when a directory is entered
for the first time.
* maximum value for timeout (replaces -T).
* control usage of CHMOD, DELE, MKD, RMD, UMASK; replacing -DINSECURE_GUEST.
* notifying the user of the existance of a files matching a glob
pattern when a directory is entered for the first time.
* default value for timeout (replaces -t).
* default umask (replaces -DGUEST_CMASK and -u).
The conversion, display, and notify functionality was based on code by
Simon Burge <simonb@telstra.com.au>.
* clean up and re-order parts of the man page into subsections.
* STAT displays the settings defined for the class of the current user.
* bump version from 6.00 to 7.00, because of ftpd.conf.
* deprecate -DGUEST_CMASK and -DINSECURE_GUEST in the Makefile, and
-t, -T and -u, as ftpd.conf allows finer control of these.
* add "nostderr" argument to ftpd_popen(), because you don't want the
stderr stream mixing with the stdout stream during a conversion,
as this can corrupt the stream.
 1.13 23-May-1997  cjs Allow setting the directory to which anonymous users chdir from
the command line. Document -u option. A couple of minor cleanups.
 1.12 29-Apr-1997  cjs /etc/ftpusers now matches globs against the username. mycroft suggested this.
 1.11 27-Apr-1997  lukem * fix "cd ~" so that it works (from Simon Burge <simonb@telstra.com.au>
* move resetting of CFLAGS on powerpc to before optional CFLAGS settings
* minor code & man page cleanups
 1.10 06-Apr-1997  cjs Change the syntax of /etc/ftpusers to have both allow and deny
information in the same file by following the username with `allow'
or `deny'. Also, the user `*' can be used to set the default for
users not listed in the file. This is entirely backward compatable
with old /etc/ftpusers files.
Also, do the /etc/ftpusers and the valid login shell checks after
the password is verified, rather than before, so as not to give away
whether or not a particular user ID is present on the system.
 1.9 30-Mar-1997  cjs Changes to make anonymous uploads more secure. For anonymous users:
* Set umask to 707;
* Disable UMASK, CHMOD, DELE, RMD and MKD commands.
Compile-time options let you change that umask and go back to the
old, insecure way if you like.
 1.8 14-Jan-1996  thorpej Correct the instructions regarding the password database in
~ftp/etc, from Rob Windsor <windsor@ksu.ksu.edu> in PR #544.
 1.7 11-Apr-1995  cgd clean up RCS Id's and a couple of stype nits.
Also, fix bug 947 (reported by Luke Mewburn, extraneous vers.c)
 1.6 17-Feb-1995  jtc Change mention of /etc/passwd to /etc/pwd.db, as reported by PR #556.
 1.5 29-Jun-1994  deraadt 4.4-lite, plus our local changes
 1.4 24-May-1994  deraadt add skey support
 1.3 06-Apr-1994  cgd Jarle.F.Greipsland@idt.unit.no's changes to allow for password-protected
chrooted ftp logins.
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.3 29-Mar-1997  cjs 4.4BSD-lite2 import.
 1.1.1.2 29-Mar-1997  cjs Lite-1 Import.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.17.2.5 14-Feb-1998  mellon Fix RNFR exploit
 1.17.2.4 29-Jan-1998  mellon Pull up 1.20 (lukem) and 1.21 (mrg)
 1.17.2.3 17-Nov-1997  mrg pull up from trunk: fixes from lukem.
 1.17.2.2 11-Nov-1997  mrg pull up from trunk: cleanup and a fix to previous (from lukem).
 1.17.2.1 11-Nov-1997  mrg pull up from trunk: add a "checkportcmd <class>" option that stops ftp bounce attacks.
 1.41.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.51.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.53.2.4 26-Aug-2004  jmc Pullup rev 1.64-1.74 (requested by he in ticket #158)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.53.2.3 29-Mar-2001  lukem sync ftpd to -current with the following revisions (for lukem/christos):
Makefile 1.43-1.44
cmds.c 1.7-1.8, 1.10-1.12
conf.c 1.35-1.40
extern.h 1.32-1.38
ftpcmd.y 1.53-1.59
ftpd.8 1.58-1.63
ftpd.c 1.102-1.104, 1.106-1.122
ftpd.conf.5 1.12-1.15
ftpusers.5 1.8
logwtmp.c 1.16
popen.c 1.23-1.25
version.h 1.28

a quick summary of user-visible changes;
- fix glob DoS by using GLOB_LIMIT
- add ftpd.conf directives `advertise', `maxfilesize', `sanenames'
- add flags: -P dataport, -X - wuftpd style log entries,
-q/-Q - (en|dis)able pidfiles, -u/-U - (en|dis)able utmp,
-w/-W - (en|dis)able wtmp
 1.53.2.2 25-Jul-2000  lukem user visible changes (besides checking the cvs log):
* make checkportcmd the default
* add -r; force permanent drop of root privs after login
* add -V vers; change version string to vers
* add -H; act as -h `hostname`
* permanently drop root privs if it makes sense to do so (e.g; logging in as
guest/chroot user on a port > 1024)
* fix reference to draft-ietf-ftpext-mlst-11
* add ftpd.conf directives: chroot, homedir
* fix base64_encode() and generation of the unique fact
* crank version to 20000723
 1.53.2.1 22-Jun-2000  lukem Pull up revision 1.54:
- fix RATE{GET,PUT} when the client is slower than the rate limit
- document units RATE{GET,PUT} use
Fixes PR#10390
 1.69.2.1 31-Aug-2004  jmc Pullup rev 1.70-1.74 (requested by he in ticket #1739)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.78.4.1 23-Mar-2008  matt sync with HEAD
 1.79.4.1 18-May-2008  yamt sync with head.
 1.80.2.1 24-Sep-2008  wrstuden Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
 1.82.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.85.38.1 03-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #1900):

libexec/ftpd/ftpd.8: revision 1.87
libexec/ftpd/ftpd.c: revision 1.204

Add -f option to ftpd to stay in foreground with -D.

From nia in PR bin/53221.
 1.86.4.1 02-May-2018  pgoyette Synch with HEAD
 1.211 27-Jun-2025  andvar Grammar and spelling fixes, mainly in comments. A few in documentation,
logging, test description, and SCSI ASC/ASCQ assignment descriptions.
 1.210 19-May-2025  andvar spelling and grammar fixes in comments.
 1.209 26-Mar-2025  christos PR/59213: jlduran: Allow the nfail counter to be reset once a valid login occurs
 1.208 30-Sep-2023  shm branches: 1.208.2;
pam_set_item PAM_SOCKADDR expects sockaddr_storage structure

Instead, internal struct sockinet was used. Because it's length is shorter
than sockaddr_storage, libpam was copying also memory outside of sockinet
struct.
 1.207 02-Sep-2023  lukem ftpd: improve seteuid error handling

Handle seteuid() failures. Per suggestion by Simon Josefsson.
Consistent logging and fatal exit if uid/gid switching fails.
Log correct errno if dataconn() fails.
 1.206 03-Jul-2021  christos branches: 1.206.2;
Treat failed chdir/chroot for guest and chroot accounts as fatal.
Also treat failed set{e,}(u,g}id calls as fatal.
Addresses CVE-2020-7468, via FreeBSD.
 1.205 15-Oct-2019  christos bump sizes
 1.204 28-Apr-2018  riastradh branches: 1.204.2; 1.204.4;
Add -f option to ftpd to stay in foreground with -D.

From nia in PR bin/53221.
 1.203 19-Jul-2016  shm branches: 1.203.6; 1.203.12;
CID 603440: ensure that closing socket exists
 1.202 10-Aug-2015  shm branches: 1.202.2;
Fix directory stream leaks
 1.201 25-Jan-2015  christos blacklist hooks
 1.200 31-Jul-2013  christos branches: 1.200.4;
fstat returns -1 on error (Maxime Villard)
also while (1) -> for (;;)
 1.199 03-Jul-2013  christos remove unneeded initialization.
 1.198 19-Jun-2012  dholland branches: 1.198.2;
Pass WARNS=5
 1.197 16-Sep-2011  plunky branches: 1.197.2;
NULL does not need a cast, here
 1.196 04-Sep-2011  lukem Reduce priority of syslog message if getpeername returns ENOTCONN.
PR bin/18934 by Greg A. Woods (with supplied fix).
 1.195 29-Aug-2011  joerg Use __dead
 1.194 13-Jul-2009  roy Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.193 15-Mar-2009  lukem Fix WARNS=4 issues (const & sign mismatches, etc)
Ensure various ftpd.conf values can't exceed their underlying types.
 1.192 02-Mar-2009  lukem Use LLF (et al) instead of "%lld" (et al).
 1.191 08-Jan-2009  christos branches: 1.191.2;
PR/40339: Ed Ravin: make ftpd log both the hostname and numeric address.
 1.190 29-Dec-2008  christos fix for 64 bit time_t and dev_t
 1.189 28-Oct-2008  lukem Constify.
Rework an expression to make it easier to conditionally compile.
 1.188 16-Sep-2008  lukem Enhance -C to support an optional @host ('-C user[@host]'):
checks whether user as connecting from host would be granted
access by ftpusers(5).

Support IPv6 in the host directive of ftpusers(5).
(May resolve PR 26555)

Both features from Rudolf Cejka <cejkar@fit.vutbr.cz>
(FreeBSD's tnftpd port maintainer).
 1.187 13-Sep-2008  lukem Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.org>
 1.186 20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
 1.185 09-Jun-2008  lukem Don't use non-standard "u_<foo>" types.
Strip trailing whitespace (as well as ':'s) off PAM password prompts.
Improve some debug logging related to PAM.
 1.184 28-Apr-2008  martin branches: 1.184.2;
Remove clause 3 and 4 from TNF licenses
 1.183 27-Mar-2008  lukem branches: 1.183.2;
Reorganize USE_PAM support so that the reply(331,) from USER is
performed by the pam_conv (PAM conversation) callback, which then
getline()s the PASS reply internally. This involves calling
auth_pam() from user() and caching the result to use later in pass().
This allows the PAM modules to present a different password prompt
dialog if necesary. For example:
Name (localhost:lukem):
331 User lukem accepted, provide password [ otp-md4 89 xxxx12345 ].
versus
Name (localhost:lukem): root
331 User root accepted, provide password.

This is independent of (and effectively exclusive to) USE_SKEY support.

Previously ftpd with USE_SKEY=yes would provide the skey prompt
if the user had an skey configured, even if /etc/pam.d/ftpd didn't
have pam_skey in use.
I.e., ftpd shouldn't need special support for custom password prompts
(such as skey) if PAM is in use.
 1.182 23-Jul-2007  lukem branches: 1.182.10;
Rename cred_t to ftpd_cred_t; the former causes a nameclash on Solaris.
 1.181 22-Jul-2007  lukem Rename HAVE_SOCKADDR_SA_LEN to HAVE_STRUCT_SOCKADDR_SA_LEN.
Use defined(HAVE_foo) instead of just testing HAVE_foo.
 1.180 10-Jun-2007  christos PR/36468: Andreas Wrede: ftpd(8) always logs hostnames. Add -n option to display
addresses.
 1.179 20-Jan-2007  christos PR/35449: Shigeya Suzuki: ftpd does not register socket address into PAM +FIX
 1.178 17-Dec-2006  christos fix volatile and initialization issues, from Anon Ymous
 1.177 26-Sep-2006  lukem branches: 1.177.2; 1.177.6;
Fix -ULOGIN_CAP compile.
 1.176 09-May-2006  mrg change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
 1.175 17-Mar-2006  peter Remove unreachable code (res could never be NULL here).

Fixes Coverity CID 712.
Ok by lukem@.
 1.174 17-Mar-2006  peter Set file to NULL after calling fclose().

Fixes Coverity CID 2669.
Ok by lukem@.
 1.173 17-Mar-2006  peter Make sure that "su" is initialized before dereferencing it.

Fixes Coverity CID 1075.
Ok by lukem@.
 1.172 25-Feb-2006  wiz Fix some typos.
 1.171 01-Feb-2006  christos debug -> ftpd_debug
xstrdup -> ftpd_strdup
 1.170 24-Nov-2005  lukem NLST should return 450 instead of 550 upon error, per RFC 959.
 1.169 03-Oct-2005  lukem logxfer(): don't use the same buffer to store the results of two separate
concurrent realpath(3)s, otherwise we'll log the wrong information
for a rename.
Noted by Dmitry Sivachenko in private mail.
 1.168 24-Aug-2005  ginsbach * Add recvbufsize configuration option
This allows for setting the passive socket's SO_RCVBUF. Option works
similarly to the current sendbufsize configuration option.
* Change how recveive_data() works
When reading data from the socket for passive transfers to the server,
receive_data() now works very similar to send_data_with_read(). Reads
from the network are now done using either the filesystem block size or
the configuration option readsize chunks.
* Crank version.h
[Changes discussed with lukem.]
 1.167 04-Aug-2005  peter Implement option "-D", for running ftpd in standalone mode (daemon).
ftpd will listen on the default FTP port for incoming connections and fork
a child for each connection. This is lower overhead than starting ftpd from
inetd(8) and thus might be useful on busy servers to reduce load.

Inspired by FreeBSD.
Reviewed by lukem@.
 1.166 23-Jun-2005  christos cleanup utmp and utmpx support.
- make them symmetric
- add a function to open the wtmp file explicitly very early in the game
 1.165 10-Apr-2005  christos s/getpwnam/sgetpwnam/ Found by John Nemeth.
 1.164 20-Feb-2005  christos branches: 1.164.2;
Add PAM and LOGIN_CAP support. Mostly from FreeBSD. If pam is defined,
then we don't fall back to other authentications even if PAM fails due
to a system error (e.g. configuration problem).
 1.163 11-Dec-2004  christos change _PATH_FOO to _NAME_FOO where FOO is not a path. I'll discuss with
luke what is the best way to fix this.
 1.162 09-Dec-2004  ginsbach Fix inverted test for expired passwords. Mea culpa.
 1.161 19-Nov-2004  ginsbach * Don't allow accounts with age expired passwords to login. Any account
that is required to change their password will not be allowed FTP
access. Inspired by similar functionality in other FTP daemons.
(approved by lukem)

* Crank version to 20041119 per lukem's request.
 1.160 11-Nov-2004  christos Don't write trash in ut_ss; either initialize it to 0, or put in the proper
information.
 1.159 05-Nov-2004  dsl Add (unsigned char) cast to ctype functions
 1.158 09-Aug-2004  lukem Fixes from (or inspired by) OpenBSD:
* Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary.
* Fix SIGURG handler to set an urgflag that's later tested, rather than
abusing setjmp(3)/longjmp(3).
* Use "volatile sig_atomic_t" as the type of variables modified by sig handlers.
* Use sigaction(3) instead of signal(3) to set the signal handlers.
* Only set the main SIGALRM handler once. If we need to change it,
cache the old handler and restore appropriately...
* Remove a bunch of signal races by improving the signal handlers.
* Fix memory leak with 'ESPV ALL'.

My stuff:
* Clean up the debug message in reply(); use vsnprintf(3) instead of vsyslog(3).
* Rework parsing of OOB commands to _not_ use the yacc parser, since the
latter isn't reentrant and the hacks to work around that are ugly.
We now examine urgflag at appropriate locations and call handleoobcmd()
if it's set. Since the only OOB commands we currently implement are
ABOR and STAT, this isn't an issue. (I also can't find the reference in
RFC2228 where MIC, CONF & ENC are OOB-only commands. Go figure.)
I could clean up the is_oob stuff some more, but the remaining stuff
in ftpcmd.y is harmless and it's unnecessary churn right this moment.
 1.157 10-Dec-2003  lukem branches: 1.157.2;
Use sysconf(_SC_LOGIN_NAME_MAX) to determine the length of login
names, rather than assuming LOGIN_NAME_MAX.
Based on patch from Garrett Wollman via David O'Brien (both at FreeBSD.org)
 1.156 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.155 30-Jun-2003  tacha Add ftpd_loginx() and ftpd_logwtmpx() and use them to hold wtmpx file
open while a session.

Close bin/21692 by bqt@Krille.Update.UU.SE.
 1.154 26-Feb-2003  lukem Add '-L xferlogfile', to write xferlog entries there rather than syslog them.
Based on work from Dmitry Sivachenko.
 1.153 24-Feb-2003  erh Fix uninitialized variable "notglob" in send_file_list() that was causing
transfers to fail due to an abort in free().
 1.152 23-Feb-2003  lukem rename local copies of login(), logout() and logwtmp() to
ftpd_login(), ftpd_logout() and ftpd_logwtmp() respectively.
(makes utmp support much easier in tnftpd).

per suggestion in mail from Mike Heffner <mheffner@vt.edu>, who
forwarded patch from Michael Ranner <mranner@inode.at>.
 1.151 19-Feb-2003  dsl Stop ftpd changing inetd's 'logname'
Stop buffer overrun if {NGROUPS_MAX} is greater than the compile time
NGROUPS_MAX.
(approved by christos)
 1.150 22-Jan-2003  lukem Apply DoS fix as described by Crist J. Clark <crist.clark@attbi.com>
on <security@freebsd.org>, and subsequently in FreeBSD's cvs repository
as libexec/ftpd/ftpd.c rev 1.133:

The FTP daemon was vulnerable to a DoS where an attacker could bind()
up port 20 for an extended period of time and thus lock out all other
users from establishing PORT data connections. Don't hold on to the
bind() while we loop around waiting to see if we can make our
connection.

Bump version to 20030122.
 1.149 22-Jan-2003  lukem Fixes from Dmitry Sivachenko <demon@freebsd.org>:
- always set "curname" to something appropriate (even when logging is
not in effect).
- fix usage for "PORT" command
 1.148 06-Dec-2002  thorpej Avoid conflict with reserved identifier "log".
 1.147 29-Nov-2002  lukem - convert to using libc's strsuftoll(3)
- use LLT (aka 'long long type') for all numeric class parameters
- improve description of various ftpd.conf(5) options
- statcmd(): print out: mmapsize readsize writesize sendbufsize sendlowat
 1.146 16-Nov-2002  itojun audit use of strto* - beware of ERANGE, as well as typecast on result.
 1.145 07-Oct-2002  lukem Change arguments of login_utmp(line, name, host) (to be consistent
with logwtmp(3)/logwtmpx(3)), and call correctly.
Resolves [bin/18498] by Geoff Wing, who identified that the previous
version was being called incorrectly, albiet in a different manner.
 1.144 13-Sep-2002  itojun revert previous. wtmp{,x} entries need not be \0-terminated, so
strncpy is more proper.
 1.143 12-Sep-2002  itojun use strl*, not strn*.
 1.142 12-Sep-2002  lukem Use LOGIN_NAME_MAX instead of `10' for the size of the curname[] buffer.
Allows /etc/ftpchroot to work correctly for usernames > 9 characters.

Noted by Max Khon in the freebsd-stable mailing list, via Thomas Vogt in
private email.
 1.141 20-Aug-2002  christos Disable UTMPX support for now, because ftpd might chroot and we need
to keep files open.
 1.140 20-Aug-2002  christos utmpx support
 1.139 30-May-2002  enami Add optional mmap(2)/write(2) support for binary file transfer.
The default is read(2)/write(2). Note that the sosend_loan needs
some more work for better performance when a file isn't cached.
 1.138 11-Feb-2002  lukem branches: 1.138.2;
Don't log an xferlog-style entry if bytes == -1.
Per suggestion by Kimmo Suominen and observation of wu-ftpd in similar
circumstances.
 1.137 01-Feb-2002  lukem fix previous, and ensure that closedataconn() is only called after dataconn()
and with a non-NULL file pointer. active transfers now work correctly again,
passive transfers work, and the data stream is only closed after a PASV or
EPSV if a successful connection was initiated with dataconn().
 1.136 21-Jan-2002  lukem in closedataconn(), only close the passive data fd if the main data
descriptor was set by dataconn(). this fixes a problem for clients (such
as lynx and netscape) that only sent PASV/EPSV after a transfer (RETR, LIST,
STOR) started and returned 150. certain command sequences could return 550
(etc) before setting up the dataconn(), and would run into this bug. netbsd's
ftp didn't hit this bug because it always sends PASV/EPSV before a new
transfer command.
 1.135 12-Dec-2001  lukem remove extraneous ": " from message
 1.134 06-Dec-2001  lukem Fix skey password challenge. Problem reported in [bin/14848] by John F. Woods.
 1.133 04-Dec-2001  lukem Add two new ftpd.conf(5) directives:
- 'denyquick'; deny a connection so tagged by ftpusers(5) after the USER
command instead of the PASS command. whilst this might provide some
info leakage of accounts names if you have some `real' or `chroot'
users enabled and not others, it does prevent accidental entering of
such passwords if you have all such users denied. This option is
strongly recommended on anonymous-only servers.
Functionality requested by Rob Windsor in [bin/12602]
- 'private'; don't display class related information in the output of STAT.
For paranoid admins.
 1.132 01-Dec-2001  lukem - enable case insensitive fnmatch(3)ing for hostname globs in ftpusers(5)
- enable WARNS=2
 1.131 27-Nov-2001  lukem - Don't try and use the motd if it's empty.
Problem reported in [bin/14751] by Kimmo Suominen
- Display conffilename() version of limitfile and motd in status output
 1.130 24-Sep-2001  wiz va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
 1.129 19-Sep-2001  lukem a few changes from Mike Heffner <mheffner@vt.edu> in private email:
- totally clear a glob buffer before use, because FreeBSD depends on
some of the other fields being cleared (other than just gl_offs)
- in strend(), ensure that the source string isn't too large
- remove unnecessarily complicated sizing of proctitle, since snprintf()
will truncate it anyway
 1.128 08-Jul-2001  lukem Alan Barrett informs me that "advertise" (instead of "advertize") is
the norm even in American English.
 1.127 26-Jun-2001  lukem s/tise/tize/ in docco, add "advertize" as synonym for "advertise"
 1.126 11-Jun-2001  wiz Fix various misspellings of compatible/compatibility.
 1.125 25-Apr-2001  lukem crank copyrights of files changed this year
remove superfluous byte_count update in send_file_list
crank version
 1.124 12-Apr-2001  lukem minor knf post aidan's oob rototill
 1.123 01-Apr-2001  aidan As threatened, handle OOB commands from within ftpcmd.y.
This involved changing the yacc syntax to be line-oriented, rather than
having it run against the entire input at once, and adding a flag to
struct tab, to indicate if or not it's acceptable for a command to occur
OOB.
 1.122 16-Mar-2001  christos Use GLOB_LIMIT. Also fix a bug where gl_offs was not initialized and could
contain trash.
 1.121 04-Feb-2001  christos fix redundant declarations.
 1.120 16-Jan-2001  cgd comment or delete text after CPP directives.
 1.119 10-Jan-2001  lukem consistently use syslog priorities
 1.118 18-Dec-2000  lukem Features:

* Add ftpd.conf(5) directive `advertise'; change the address that is
advertised to the client for PASV transfers. this may be useful in
certain firewall/NAT environments.

Feature requested in [bin/9606] by Scott Presnell.

* Add -X option; syslog wu-ftpd style xferlog messages, prefixed with
`xferlog: '. An example line from syslog (wrapped):
Dec 16 18:50:24 odysseus ftpd[571]: xferlog: Sat Dec 16 18:50:24 2000
2 localhost 3747328 /pub/WLW2K601.EXE b _ o a lukem@ FTP 0 * c

These messages can be converted to a wu-ftpd style xferlog file
suitable for parsing with third-party tools with something like:
grep 'xferlog: ' /var/log/xferlog | \
sed -e 's/^.*xferlog: //' >wuxferlog

The format is the same as the wu-ftpd xferlog entries (with the leading
syslog stuff), but different from the wu-ftpd syslogged xferlog entries
because the latter is not as easy to convert into the standard xferlog
file format.

The choice to only syslog the xferlog messages rather than append to
a /var/log/xferlog file was made because the latter doesn't work to
well in the situation where the logfile is rotated and compressed and
a long-running ftpd still has a file-descriptor to the now nonexistant
xferlog file, and the log message will then get lost.

Feature requested in [bin/11651] by Hubert Feyrer.


Fixes:

* In ftpd(8), clarify the -a and -c options.

* More clarifications in ftpd.conf(5).

* Ensure that all ftpd.conf commands set a parameter back to sane defaults
if an argument of `none' or bad settings are given.

* Support the `chroot' directive for `REAL' users too (for consistency).

* For `GUEST' users, store the supplied password in pw->pw_passwd for use
later in the xferlog.

* If show_chdir_messages() is given a code of -1, flush the cache of
visited directories. Invoke show_chdir_messages(-1) in end_login().

* Only syslog session stats if logging is requested.

* Rename logcmd() -> logxfer(), and dolog() -> logremotehost().

* Use cprintf() instead of fprintf() where appropriate.

* Minor KNF, and make a couple of functions static that were declared static.
 1.117 30-Nov-2000  lukem initialise confdir to _DEFAULT_CONFDIR again, so that -C works...
 1.116 30-Nov-2000  lukem - rename valid_passwd() -> checkpassword()
- move check for expired accounts from pass() into checkpassword()
 1.115 30-Nov-2000  lukem - move password checking into separate valid_passwd() function, to assist
in porting to other systems.
- don't syslog() or setproctitle() "ACCT" lines (as per "PASS")
- replace #ifdef HASSETPROCTITLE with #if HAVE_SETPROCTITLE, and set the
latter #ifdef BSD4_4
- don't compile in internal `ls' #ifdef NO_INTERNAL_LS. will need Makefile
support if this is to be used on NetBSD.
 1.114 28-Nov-2000  lukem modify dolog() to take a struct sockinet * instead of struct sockaddr *
 1.113 28-Nov-2000  lukem - ensure all uses of AF_INET6 are wrapped in #ifdef INET6
- don't define `ALL' as a token twice in the grammar
 1.112 24-Nov-2000  itojun cope with 2292bis-01 getaddrinfo (no NI_WITHSCOPEID, always attach
scope identifier).
always check error result from getnameinfo.
 1.111 16-Nov-2000  lukem - new ftpd.conf directives:
maxfilesize set the maximum size of uploaded files
sanenames if set, only permit uploaded filenames that contain
characters from the set "-+,._A-Za-z0-9" and that
don't start with `.'

- new/changed command line options:
-e emailaddr define email address for %E (see below)
-P dataport use dataport as the dataport (instead of ctrlport-1)
-q use pid files to count users [default]
-Q don't use pid files to count users
-u write entries to utmp
-U don't write entries to utmp [default]
-w write entries to wtmp [default]
-W don't write entries to wtmp

NOTE: -U used to mean `write utmp entries'. Its meaning has changed
so that it's orthogonal with -q/-Q and -w/-W. This isn't
considered a major problem, because using -U isn't going to
enable something you don't want, but will disable something
you did want (which is safer).

- new display file escape sequences:
%E email address
%s literal `s' if the previous %M or %N wasn't ``1''.
%S literal `S' if the previous %M or %N wasn't ``1''.

- expand the description of building ~ftp/incoming to cover the
appropriate ftpd.conf(5) directives (which are defaults, but it pays
to explicitly explain them)

- replace strsuftoi() with strsuftoll(), which returns a long long if
supported, otherwise a long

- rework the way that check_modify and check_upload are done in the yacc
parser; they're merged into a common check_write() function which is
called explicitly

- merge all ftpclass `flag variables' into a single bitfield-based flag element

- move various common bits of parse_conf() into a couple of macros

- clean up some comments
 1.110 15-Nov-2000  itojun we can assume presense of getaddrinfo.
use NI_MAXHOST for the hostname buffer used with getnameinfo.
 1.109 15-Nov-2000  lukem changes to improve portability:
* replace union sockunion {} with struct sockinet {}, and modify the code
accordingly. this is possibly more portable, as it doesn't rely upon
the structure alignment within the union for our own stuff. uses local
su_len unless HAVE_SOCKADDR_SA_LEN is defined (set ifdef BSD4_4)
(XXX: haven't tested the ipv6 stuff)
* always use getaddrinfo() and getnameinfo() instead of maintaining two code
paths. (lukemftpd will provide replacements for these on older systems)
* use lockf() instead of open(.., O_EXLOCK) to lock the pid file
* minor KNF
* clean up long long support: create helper #defines and use as appropriate:
#define NO_LONG_LONG ! NO_LONG_LONG
------- ------------ --------------
LLF "%ld" "%lld"
LLFP(x) "%" x "ld" "%" x "lld"
LLT long long long
ULLF "%lu" "%llu"
ULLFP(x) "%" x "lu" "%" x "llu"
ULLT unsigned long unsigned long long
STRTOLL(x,y,z) strtol(x,y,z) strtoll(x,y,z)
 1.108 13-Nov-2000  itojun correct result code on invalid port number against EPRT.
 1.107 13-Nov-2000  itojun plug memory leak
 1.106 13-Nov-2000  itojun - improve RFC2428 conformance.
return 522 on unknown protocol identifier on EPRT.
- clarify EPSV/EPRT/LPSV/LPRT behavior.
- repair memory leak and lack of boundary check on EPRT.
- make sure we do not resolve DNS on EPRT.
sync with kame.
 1.105 28-Sep-2000  jdolecek call setlogin() before dropping root privileges, so that process
would have correct p_login value
 1.104 15-Sep-2000  christos Make this compile again without -DINET6 and without get{addr,name}info(3)
This ftpd now compiles and runs on NetBSD/1.4.2 with:

CPPFLAGS+= \
'-Dstrlcpy(a,b,c)=(strncpy(a,b,c),strlen(a))' \
'-Dstrlcat=strncat' \
'-Dsl_add(a,b)=(sl_add(a,b),0)'
 1.103 29-Jul-2000  martin Fixed s/key compile bug.
 1.102 26-Jul-2000  lukem add support for -W; don't log to wtmp (orthogonal of -U which logs to utmp).
inspired by similar option in wuftpd.
 1.101 23-Jul-2000  lukem * make checkportcmd the default. this breaks third-party proxy ftp but
prevents the ftp bounce attack, and we should be secure out of the
box, not require users to tweak obscure stuff.
* allow the version string reported to clients to be changed with '-V vers'.
if vers is empty or `-', don't report a version.
* if -r is given, permanently drop root privs
* if not a REAL user (i.e, GUEST or CHROOT), and ftpd is running on a port
> IPPORT_RESERVED+1, permanently drop root privs
* don't bother reverting to root privs to logout of wtmp/utmp; since the
file descriptor is already open this isn't necessary.
* fix the binding of the port for the PORT/LPRT/EPRT connection to be the
ctrl_addr.su_port-1, not hardcoded to `20' (this was broken in the ipv6
merge). if root privs have been dropped, and this would be a port <
IPPORT_RESERVED, use a random port instead (which isn't RFC959 compliant
but it doesn't appear that many clients care).
* prevent login of a new user if privs have been dropped and already logged
in as a REAL user (existing check already stops GUEST & CHROOT users).
* move the port check stuff into a separate port_check() function, and use
for PORT, LPRT, and EPRT checks. inspired by freebsd
* minor KNF
* minor man page cleanup
 1.100 17-Jul-2000  lukem * add two new ftpd.conf(5) directives:
chroot specify dir to chroot to for GUEST and CHROOT users, to
override -a anondir or the user's homedir.
homedir specify dir to change to upon login; also used for ~ expansion
and $HOME for subprocesses)
both of these can take % escapes: %u (username), %d (homedir), %c (class).
* fix NLST to take a pathname not a STRING, so that ~ expansion works
* modify CWD to use the homedir parsed from curclass.homedir
* implement format_path(dst, src), to parse src expanding % escapes (see above)
into dst.
* rename format_file() to display_file()
 1.99 15-Jul-2000  lukem * add -H, which acts like -h `hostname`. (requested by kim@)
* refer to draft-ietf-ftpext-mlst-11 instead of -10
 1.98 08-Jul-2000  sommerfeld More format paranoia.
 1.97 05-Jul-2000  itojun setproctitle(), and for any other printf variants, it is not a good idea
to pass variable directly like foo(x). use foo("%s", x) to avoid misuse.
from: openbsd
 1.96 20-Jun-2000  lukem fix problems noted by <dogcow@redback.com> in [bin/10390] and private email:
* fix RATE{GET,PUT} under some situations when the client is slower than
the server (something i missed when migrating the rate limiting code
i wrote in ftp(1) to ftpd(8))
* document what units RATE{GET,PUT} use
 1.95 19-Jun-2000  lukem branches: 1.95.2;
various fixes suggested by Robert Elz:
* implement closedataconn() and use appropriately (including in mlsd())
* only put leading space in front of MLST output (not MLSD output)
* MLSD: only output pdir and cdir entries when the type fact is requested.
* change error code for giving MLSD a non-directory from 550 to 501
* remove MLSx Type fact support for UNIX.* for now; it's not standardised yet.
* do a check_login when MLSD and MLST are given no args
* detect & complain about null facts in OPTS MLST
* cache getgroups() at login instead of calling each time in fact_perm()

other mods:
* implement cprintf(); as per fprintf() but increments total_bytes{,_out}
* implement CPUTC(); as per putc() but increments total_bytes{,_out}
* implement base64_encode()
* fact_unique() display base64 encoding of dev_t and ino_t rather than
hex output; should scale if size of those changes
* change reply() so that a negative code acts as the initial line in a reply,
code == 0 prefixes the line with 4 spaces, and code > 0 works as before.
deprecate lreply(code, ) and lreply(0, ) in favour of reply(-code, ) and
reply(0, ) respectively.
* use cprintf() and CPUTC() appropriately (often instead of printf(),
lreply(-2, ) or lreply(-1, ).
now we actually account for the data sent by MLST and MLSD.
* remove DEBUG support for sending MLSD output to control connection instead
of data connection (my ftp client now supports MLSD :-)
 1.94 14-Jun-2000  itojun correct LPSV/LPRT display on STAT command.
(did not crank the version since the change is on the same day)
 1.93 14-Jun-2000  lukem major overhaul (just before netbsd 1.5 :-):

* implement draft-ietf-ftpext-mlst-10 commands, especially MLST and MLSD.
we already supported SIZE and MDTM. add the appropriate FEAT output lines.

* migrate a lot of the command code from ftpcmd.y and ftpd.c to cmds.c

* make dataconn(), feat(), lookup(), opts() and sizecmd() public

* modify struct tab so that it has a `flags' instead of `implemented' element,
and remove the `hasopts' element. If flags == 1, the command is implemented.
if flags == 2, the command is implemented and takes options

* add macros ISDOTDIR(x) (is x ".") and ISDOTDOTDIR(x) (is x "..")

* modify lreply() so that lreply(-2, ...) just outputs the given info without
a prefix or trailing \r\n. this saves doing b = printf(); total_* += b;

* enhance statcmd(). still needs work in the LPRT status stuff.

* crank version
 1.92 02-Jun-2000  explorer make this compile with KERBEROS5 defined. Note: only one of KERBEROS or KERBEROS5 may be defined in this file...
 1.91 02-Jun-2000  fredb Make this build again with crypto-us, after recent changes to k{,5}login.c.
 1.90 30-May-2000  itojun add comment on IPv4 mapped address twist
 1.89 20-May-2000  lukem branches: 1.89.2;
- Always close(pdata) if it was a valid filedescriptor before setting it to -1.
Problem noted in [bin/9642] by Takahiro Kambe <taca@sky.yamashina.kyoto.jp>,
(part of which already had been solved by itojun a while ago), and provided
patch covered most of the fixes needed. (Thanks Takahiro!)
- Consistently indent goto labels by one space.
 1.88 20-May-2000  lukem convert to ANSI C as per style guide
 1.87 05-Mar-2000  lukem * don't bother with a version[] string, just use the macro as appropriate
* clean some more of the GLOBAL stuff
* fix unused var if -UHASSETPROCTITLE
 1.86 14-Feb-2000  aidan Move include/kerberosIV/com_err.h to include/com_err.h
 1.85 13-Jan-2000  lukem suppress verbose messages from CWD and post-login if the first
character of the anonymous password is `-'.
 1.84 12-Jan-2000  lukem * add ftpd.conf directive `portrange class min max', which allows specification
of the port range used by passive connections. based on work in [bin/9158]
from Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
* change the way global variables are defined and extern-ed to be more
consistent.
 1.83 08-Jan-2000  lukem missing "." on reply
 1.82 08-Jan-2000  lukem features:
* add connection limits (`limit' keyword in ftpd.conf)
* move initialisation of curclass from parse_conf() to new function
init_curclass()
* implement count_users(), which determines the number of users in a given
class. a file - /var/run/ftpd.pids-<class> - is used to store a list
of pids in use (effectively an array of pid_t's), and its size is reduced
as necessary.
* new % modifiers in format_file:
%c class
%M maximum connection count
%N current connection count
* always end_login()s, even for refused connections

bugs fixed:
* remove \n from %T output
* fix some inconsistencies in the man pages
* ensure that both `ftp' *and* `anonymous' are allowed in ftpusers.
(this was accidently broken in a recent commit to be ``or'' not ``and'')
* use MAXPATHLEN not MAXPATHLEN+1
* crank copyright date on modified files
* crank version
 1.81 21-Dec-1999  lukem * add support for optional groupglob in ftpuser entry. the syntax is now:
userglob[:groupglob][@host] [directive [class]]
* append ``(class: CLASSNAME, type: TYPE)'' to the syslogged login messages
 1.80 19-Dec-1999  lukem * add back support for `-h hostname'; it still may be useful to override
the name advertised to the client, even if ftpd can determine it from
the ip address that ftpd is bound to. requested by mrg.
* remove -4/-6; they were effectively no-ops since itojun's change in 1.75.
* crank version
 1.79 18-Dec-1999  lukem deprecate -h hostname in favour of automatic determination of local hostname.
this is a much cleaner solution for supporting multihomed virtual servers.
from Geoff C. Wing <gcw@pobox.com> in [bin/8137].
 1.78 18-Dec-1999  lukem * move version to separate header file
* use .Dv and .Tn in the man pages as appropriate
* KNF a bit

The following were inspired by similar changes in openbsd, but may
have additional improvements by me:
* add more check_login tests to the parser rules
* nuke a few memory leaks in the parser rules
* clear passwords before free()ing them, for safety
* don't display \r\n in setproctitle() output
* add support for -U, which enables managing /var/run/utmp entries for
connections. solves [bin/2217] by Jason Downs <downsj@teeny.org>
* fix oob handling for STAT command
* use SIG_ERR instead of -1
 1.77 16-Dec-1999  lukem crank version
 1.76 16-Dec-1999  lukem * add support for `-h hostname', which defines the hostname to advertise
as (useful for virtual ftp servers in conjunction with inetd.conf(5)'s
ability to bind to a specific address).
if this option is used, add `hostname' to the syslog messages.
* improve documentation of command-line options
* don't allow class names of `all' or `none' in ftpusers
 1.75 13-Dec-1999  itojun do not perform setsockopt(IP_TOS) on mapped connections (IPv4 connection
toward AF_INET6 socket).
 1.74 13-Dec-1999  itojun avoid use of s6_addr32, as it is non-standard.
(sync with KAME)
 1.73 12-Dec-1999  lukem * change format of /etc/ftpusers lines from
userglob [allow|deny]
to
userglob[@host] [allow|deny [classname]]
where class is a userdefined classname.
- if host is given it may either be a CIDR address (e.g, `1.2.3.0/24') or a
hostglob (e.g, `*.foo.com'), and the remote host is matched against that.
- if classname is given, use that to match entries in ftpd.conf (defaults
to `guest' for `anonymous'/`ftp' logins, `chroot' for users found in
/etc/ftpchroot, and `real' for everyone else.

* implement new /etc/ftpd.conf directives:
classtype classname type set type of classname to GUEST, CHROOT, or REAL
motd classname file file to use instead of /etc/motd
rateget classname rate set rateget throttle to rate
rateput classname rate set rateput throttle to rate
upload classname allow/deny uploads (STOU, STOR, APPE). if
denied, also acts as `modify deny'.

* implement new `SITE' commands:
RATEGET as per /etc/ftpd.conf rateget, but cannot exceed that
RATEPUT as per /etc/ftpd.conf rateput, but cannot exceed that

* implement format_file(), which outputs a file to the user, parsing %
escapes. use to print /etc/ftpwelcome, /etc/motd, and the `display' file.

* implement strsuftoi() (from ftp(1)), which parses a number and
optional suffix (for use with rateget, etc)

* don't bother seteuid(0) ; bind(...) ; seteuid(pw->pw_uid), since
we don't need reserved ports (at wasn't getting them anyway).

* update & reorder copyrights

* use strlcpy() as appropriate
 1.72 09-Dec-1999  itojun close pdata when it is kept opened till call to {,long_}passive().
 1.71 07-Dec-1999  lukem * change ftpd_popen() to take char *argv[] instead of char *cmd.
the string tokenisation must be performed by the caller (which is
generally easy because it's almost always a static command).
* change do_conversion() to return a char *argv[] instead of char *cmd.
tokenisation of the command is done internally.
* change retrieve() to take char *argv[] instead of char *cmd.
(to take advantage of the above changes). fixes [bin/8173]
* use fparseln() instead of fgetln()
* store conversions in listed order (rather than reverse order)
* use stringlists instead of handrolling code to manage an argv.
 1.70 30-Sep-1999  tron Avoid segmention fault if there is an empty line in "/etc/ftpusers".
Problem noted by Emmanuel Dreyfus in PR bin/8504.
 1.69 25-Aug-1999  christos branches: 1.69.2;
Make this compile with krb5.
 1.68 27-Jul-1999  itojun handle IPv4 TCP control connection, toward AF_INET6 socket.
this happens when you have the following line in inetd.conf,
but not with tcp4 line:
>>>ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -ll
 1.67 02-Jul-1999  itojun dual-stack ftpd. run this from inetd, like:
>>ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -ll
 1.66 05-Jun-1999  briggs Set keepalives on the sockets to force logouts on connections that have
disappeared.
 1.65 24-May-1999  ross * Cast %q[ud] arguments to fix ILP32/LP64 off_t variation.
* Fix bug in 213 reply: correct ordering of format string args.
 1.64 19-May-1999  thorpej Cast away a const for now; const poisoning kerberos #0.
 1.63 18-May-1999  lukem * fix a problem in retrieve() where arguments to commands weren't working
(this was broken in the last commit). problem noticed by simonb@
* don't display the stderr output of the internal ls.
* modify usage of lreply so that generally only one `XXX-' code per
`block' is displayed; the rest of the lines have four spaces instead.
i find this easier to read.
* fix a couple places where byte accounting wasn't correct
 1.62 17-May-1999  lukem features/fixes:
* implement xferstats. full stats are displayed for `STAT', and a
summary is displayed upon exit (and syslogged). inspired by wu-ftpd.
* wrap data xfers in {send,receive}_data with alarm() timeouts. this
should remove the majority of the `hanging ftpd' problems that
people were still seeing. inspired by wu-ftpd.
* link with ../../bin/ls, so that bin/ls is not required under a
chroot()ed area for `LIST' to work. based on [bin/4497] from
"Soren S. Jorvang" <soren@t.dk>
* migrate code from util.c into ftpd.c, so that it doesn't conflict
with ls' util.c.
* remove man page comment about ~ftp/bin/ls being necessary.
* bump version to 7.2.0.
* syslog xfer time with xfer stats.
* if appropriate, syslog error message with command.

internal code stuff:
* change arguments of various functions from `char *' to `const char *'.
* define PLURAL(x) macro, which returns `' if x == 1, `s' otherwise.
use macro appropriately
* lreply(): a code of -1 means ``send line as is''. a code of 0
means ``send line with 4 space prefix''. don't print a space after
the `-' for any other code.
* logcmd(): add `const struct timeval *elapsed' and `const char *error'
for more flexible error reporting
 1.61 28-Dec-1998  lukem branches: 1.61.2;
* replace LOG(CMD|BYTES) macros with logcmd(), which is a cleaner
solution with less code replication. use realpath() in logcmd() so
that all logged filenames are sane.
* support `REST STREAM' in `FEAT' reply (from draft-ietf-ftpext-mlst-05)
* in 'HELP', suffix unimplemented commands with `-' instead of `*'; the
former is easier to differentiate from `+'.
* deprecate curdir() now that logcmd() doesn't use it.
* ensure all filename buffers are at least MAXPATHLEN+1 in size.
* move jmp_buf errcatch out of extern.h, removing need to #include <setjmp.h>
in every file.
 1.60 07-Sep-1998  lukem bump version from 7.03 to 7.1.0 (new commands available)
 1.59 07-Sep-1998  lukem remove nack() - missed in previous work
 1.58 07-Sep-1998  lukem new features:
* implement FEAT and OPTS from RFC2389. FEAT returns SIZE and MDTM.
OPTS only works on NOOP (as a test).
* extend format of /etc/ftpchroot similar to /etc/ftpusers; each entry
can take an optional trailing `yes' or `no' which indicates if
chroot should be done (defaults to `yes').
based on patches from Ty Sarna <tsarna@endicor.com> in [bin/4769]

cleanups/bugs:
* reorder and reformat entries in yacc parser to match cmdtab[].
add a blank line between each rule.
* add short hasopts and char *options to struct tab, to support OPTS.
* deprecate upper(); use strcasecmp() instead of strcmp()
* remove unnecessary for (;;) { } in yylex();
* replace copy() and sgetsave() with xstrdup()
* fix a couple of `hasyyerrored = 1' that were accidently removed.
 1.57 06-Sep-1998  lukem * complete fix for `multiple replies returned for single parse error'
problem; move `hasyyerrored' state flag out of yylex() so that
check_{login,modify} can also set it.
* check result of check_login for PORT command
* set initial timeout before the "setjmp(); for(;;) yyparse()",
otherwise an invalid command after login incorrectly sets the timeout
to 5 minutes (rather than what was set in ftpd.conf)
* replace (char *)0 with NULL
* move yyerror() from ftpd.c to ftpcmd.y
* remove need for -Dunix, by using the version string from ftpd.c
(instead of `BSD-199506')
* move all extern-ed vars into extern.h
 1.56 05-Sep-1998  lukem replace malloc/strcpy with strdup
 1.55 27-Jul-1998  mycroft const poisoning.
 1.54 27-Jul-1998  mycroft const poisoning.
 1.53 26-Jul-1998  mycroft const poisoning.
 1.52 06-Jul-1998  mrg - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
 1.51 26-Jun-1998  msaitoh add "-s" flag (SecureID).
 1.50 19-Jun-1998  kleink GLOB_QUOTE is dead; per POSIX, backslash quoting of special characters being
enabled is the default behaviour.
 1.49 08-Jun-1998  lukem support displaying the stderr output from a LIST or a conversion to
the user at the end of a transfer.
this generates a file in /tmp, so anonymous requires a
writable ~ftp/tmp, which you may not want to do (because it may
allow people to unwanted upload files).

XXX: a better method of storing the stderr output would be nice, but
is a lot more effort to implement. this feature can at least be
used temporarily whilst debugging why an ftp conversion doesn't
work.
 1.48 03-Jun-1998  mouse Show/log the strerror(errno) string when getcwd fails
 1.47 03-Jun-1998  hubertf Fix some problems with failed getcwd commands, reported in PR bin/5531
by Saitoh Masanobu <msaitoh@spa.is.uec.ac.jp>.
 1.46 23-Feb-1998  cjs Send back an error message rather than dumping core when an invalid
username is entered. The latter, while effective, does not appear to
me to be an appropriate response.
 1.45 01-Feb-1998  christos - #endif foo -> #endif /* foo */
- #if __STDC__ -> #ifdef __STDC__
- Don't allow expired accounts to login.
 1.44 28-Dec-1997  lukem set $HOME to "/" for guest or chroot users, pw->pw_dir otherwise.
fixes expansion of `~/...' pathnames.
 1.43 28-Nov-1997  lukem use 300 seconds (as per login(1)) for initial timeout, rather than 900 secs
 1.42 28-Nov-1997  lukem * initialise curclass.timeout to 900 in main(), so that operations that
want to timeout using this value that are executed before the conf file
is parsed will work. fixes ``stale ftpd stuck in connection phase''
* in PASV mode, wrap accept() in an alarm timeout. fixes ``stale ftpd because
of client disappearing in pasv mode (usually browsers)''
* main() doesn't need envp argument
 1.41 11-Nov-1997  lukem * change checkportcmd syntax to `checkportcmd class [off]' (as per `modify')
* display current setting of checkportcmd in STAT
* ensure that curclass.checkportcmd is initialised to 0
* document default setting of checkportcmd in ftpd(8)
* cleanup code a bit, putting code for "checkportcmd" in alphabetical order
 1.40 11-Nov-1997  mrg increment version.
 1.39 19-Oct-1997  mycroft branches: 1.39.2;
Use remove(3) rather than stat(2)ing the file, yadda yadda.
Simpler, and DTRT for symlinks.
 1.38 12-Oct-1997  mycroft Add some krb5 hooks, though it probably doesn't work yet.
 1.37 12-Oct-1997  mycroft Actually, do Kerberos first, since we want to get a TGT if possible.
Also, clean up some minor cruft.
 1.36 12-Oct-1997  mycroft Format police.
Also, try s/key before Kerberos.
 1.35 23-Sep-1997  lukem - add '-C user', which runs checkaccess(user) and exits with the result
(0 == user allowed in /etc/ftpusers, 1 == user denied in /etc/ftpusers).
from Jim Bernard <jbernard@tater.mines.edu> in [security/4061] with mods
- getopt returns -1 not EOF
- in lostcon(), call dologout(1) not dologout(-1);
 1.34 23-Sep-1997  lukem implement '-c confdir', which allows the specification of an alternate
directory to look for the various configuration files, overriding /etc.
From Matthias Scheler <tron@lyssa.owl.de> in [bin/4133]
 1.33 18-Sep-1997  lukem - ensure 257 reply codes from PWD and MKD are RFC959 compliant:
257 "dirname" some message
(any "s in dirname should be doubled, per the RFC)
- don't put an extra / in the output of NLST if the last char in the
directory is a /
- bump the version to 7.01 because of these fixes
 1.32 26-Aug-1997  lukem fix grammo
 1.31 25-Aug-1997  kleink Lseek(2) usage cleanup: the use of L_SET/L_INCR/L_XTND is deprecated,
use SEEK_SET/SEEK_CUR/SEEK_END instead.
 1.30 14-Aug-1997  lukem * don't depend upon buffer returned by fgetln() to remain. fix mainly
from Tatoku Ogaito <tacha@tera.fukui-med.ac.jp> in [bin/3967]
* fgetln() doesn't \0 terminate its string. look for the \n and replace
it with \0 (if no \n, ignore the line - it's most likely corrupt)
* more intensive checks on strdup() returns (not a current mem leak,
but depended upon code elsewhere to cleanup - not good)
* cleanup some syslog error messages
 1.29 21-Jul-1997  mrg be safe with some buffers.
 1.28 22-Jun-1997  christos missed some warnings.
 1.27 21-Jun-1997  cjs %qd wants long long. Thus, if you're going to turn on warnings for
printf format strings, you've got to make sure you cast quantities
passed to %qd to long long because on 64-bit machines they're often
just long, which is not the same, even when it's the same size.
 1.26 21-Jun-1997  mellon Need prototype for klogin() - probably ought to go in a header file, but klogin probably ought to go in a library first
 1.25 18-Jun-1997  christos - Pass gcc -Wall
- Fix incorrect const poisoning
- Fix ftpd_popen to dynamically allocate strings to avoid buffer overruns.
 1.24 14-Jun-1997  lukem * implement /etc/ftpd.conf, which adds support for the following features,
controllable on a per class (which is one of: real, chroot, guest,
all or none) basis:
* on-the-fly execution of a command to build the file (a ``conversion''),
providing support for "get dirname.tar" and the like.
* displaying the contents of a file when a directory is entered
for the first time.
* maximum value for timeout (replaces -T).
* control usage of CHMOD, DELE, MKD, RMD, UMASK; replacing -DINSECURE_GUEST.
* notifying the user of the existance of a files matching a glob
pattern when a directory is entered for the first time.
* default value for timeout (replaces -t).
* default umask (replaces -DGUEST_CMASK and -u).
The conversion, display, and notify functionality was based on code by
Simon Burge <simonb@telstra.com.au>.
* clean up and re-order parts of the man page into subsections.
* STAT displays the settings defined for the class of the current user.
* bump version from 6.00 to 7.00, because of ftpd.conf.
* deprecate -DGUEST_CMASK and -DINSECURE_GUEST in the Makefile, and
-t, -T and -u, as ftpd.conf allows finer control of these.
* add "nostderr" argument to ftpd_popen(), because you don't want the
stderr stream mixing with the stdout stream during a conversion,
as this can corrupt the stream.
 1.23 29-May-1997  lukem * don't log failed usernames to ftp.notice; use authpriv.notice instead.
closes [bin/1571]
* don't quit if "PASV" is received without the user being logged in.
closes [bin/2401], albiet with a modified test.
 1.22 23-May-1997  cjs Allow setting the directory to which anonymous users chdir from
the command line. Document -u option. A couple of minor cleanups.
 1.21 29-Apr-1997  cjs /etc/ftpusers now matches globs against the username. mycroft suggested this.
 1.20 27-Apr-1997  lukem * fix "cd ~" so that it works (from Simon Burge <simonb@telstra.com.au>
* move resetting of CFLAGS on powerpc to before optional CFLAGS settings
* minor code & man page cleanups
 1.19 06-Apr-1997  cjs Change the syntax of /etc/ftpusers to have both allow and deny
information in the same file by following the username with `allow'
or `deny'. Also, the user `*' can be used to set the default for
users not listed in the file. This is entirely backward compatable
with old /etc/ftpusers files.
Also, do the /etc/ftpusers and the valid login shell checks after
the password is verified, rather than before, so as not to give away
whether or not a particular user ID is present on the system.
 1.18 30-Mar-1997  cjs Changes to make anonymous uploads more secure. For anonymous users:
* Set umask to 707;
* Disable UMASK, CHMOD, DELE, RMD and MKD commands.
Compile-time options let you change that umask and go back to the
old, insecure way if you like.
 1.17 28-Mar-1997  cjs 4.4lite2 update. (The one minor bugfix between 4.4lite and 4.4lite2
was already in our sources, thus just the sccsid line is changed.)
 1.16 23-Jan-1997  mrg set transflag to 0 in dologout, to prevent a SIGURG taking us back to the main loop.
 1.15 03-Jun-1995  mycroft branches: 1.15.6;
Fill in sin_len.
 1.14 11-Apr-1995  cgd typo.
 1.13 11-Apr-1995  cgd clean up RCS Id's and a couple of stype nits.
Also, fix bug 947 (reported by Luke Mewburn, extraneous vers.c)
 1.12 22-Mar-1995  mycroft Use IPTOS_THROUGHPUT for passive mode data connection.
 1.11 08-Mar-1995  brezak Fill in ttyname for cred file uniquifier under KERBEROS (From Michael Graff)
 1.10 23-Dec-1994  cgd be a bit more careful with types, casts, and and function declarations.
 1.9 20-Sep-1994  jtc Fix PR #491, what could have been a big security hole
 1.8 29-Jun-1994  deraadt branches: 1.8.2;
4.4-lite, plus our local changes
 1.7 24-May-1994  deraadt add skey support
 1.6 14-Apr-1994  cgd use setproctitle
 1.5 06-Apr-1994  cgd Jarle.F.Greipsland@idt.unit.no's changes to allow for password-protected
chrooted ftp logins.
 1.4 30-Mar-1994  cgd some changes to make Kerberos a bit easier to use. from
Michael Graff <explorer@vorpal.com>, with some work by myself...
 1.3 01-Aug-1993  mycroft Add RCS identifiers.
 1.2 26-Apr-1993  cgd changed to use new libcrypt scheme.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.3 29-Mar-1997  cjs 4.4BSD-lite2 import.
 1.1.1.2 29-Mar-1997  cjs Lite-1 Import.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8.2.1 25-Sep-1994  cgd from trunk, per mycroft
 1.15.6.1 23-Jan-1997  mrg from trunk: set transflag to 0 in dologout, to prevent a SIGURG taking us back to the main loop.
 1.39.2.4 29-Jan-1998  mellon Pull up 1.44 (lukem)
 1.39.2.3 01-Dec-1997  mellon Pull rev 1.42 and 1.43 up from trunk (lukem) (reviewed by mellon)
 1.39.2.2 17-Nov-1997  mrg pull up from trunk: fixes from lukem.
 1.39.2.1 11-Nov-1997  mrg pull up from trunk: increment version.
 1.61.2.5 01-Apr-2001  he Pull up revision 1.122 (requested by christos):
Fixes buffer overflow problems in glob(3). Adds and uses GLOB_LIMIT
to prevent denial of service attacks.
 1.61.2.4 14-Dec-2000  he Apply patch (requested by bouyer):
Fix a one-byte buffer overrun.
Bump version to 7.1.0a.
 1.61.2.3 08-Jul-2000  he Pull up revision 1.97 (requested by itojun):
Do not use user-supplied data as format string to setproctitle().
 1.61.2.2 11-May-2000  he Apply patch (requested by sommerfeld):
Back out unnecessary half of revision 1.70 which breaks parsing
of /etc/ftpchroot.
 1.61.2.1 01-Oct-1999  he Pull up revision 1.70 (requested by tron):
Avoid segmentation fault if there is an empty line in /etc/ftpusers,
fixing PR#8504.
 1.69.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.89.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.95.2.6 26-Aug-2004  jmc Pullup rev 1.123-1.158 (requested by he in ticket #158)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.95.2.5 29-Mar-2001  lukem sync ftpd to -current with the following revisions (for lukem/christos):
Makefile 1.43-1.44
cmds.c 1.7-1.8, 1.10-1.12
conf.c 1.35-1.40
extern.h 1.32-1.38
ftpcmd.y 1.53-1.59
ftpd.8 1.58-1.63
ftpd.c 1.102-1.104, 1.106-1.122
ftpd.conf.5 1.12-1.15
ftpusers.5 1.8
logwtmp.c 1.16
popen.c 1.23-1.25
version.h 1.28

a quick summary of user-visible changes;
- fix glob DoS by using GLOB_LIMIT
- add ftpd.conf directives `advertise', `maxfilesize', `sanenames'
- add flags: -P dataport, -X - wuftpd style log entries,
-q/-Q - (en|dis)able pidfiles, -u/-U - (en|dis)able utmp,
-w/-W - (en|dis)able wtmp
 1.95.2.4 28-Sep-2000  jdolecek pullup rev. 1.105 from trunk (approved by thorpej):
call setlogin() before dropping root privileges, so that process
would have correct p_login value
 1.95.2.3 25-Jul-2000  lukem user visible changes (besides checking the cvs log):
* make checkportcmd the default
* add -r; force permanent drop of root privs after login
* add -V vers; change version string to vers
* add -H; act as -h `hostname`
* permanently drop root privs if it makes sense to do so (e.g; logging in as
guest/chroot user on a port > 1024)
* fix reference to draft-ietf-ftpext-mlst-11
* add ftpd.conf directives: chroot, homedir
* fix base64_encode() and generation of the unique fact
* crank version to 20000723
 1.95.2.2 07-Jul-2000  itojun pullup, approved by releng-1-5
udit setproctitle() - don't use variable alone, use with "%s".
from openbsd

usr.sbin/faithd/faithd.c 1.12 -> 1.13
libexec/ftpd/ftpd.c 1.96 -> 1.97
usr.sbin/rpc.lockd/lockd_lock.c 1.2 -> 1.3
 1.95.2.1 22-Jun-2000  lukem Pull up revision 1.96:
- fix RATE{GET,PUT} when the client is slower than the rate limit
- document units RATE{GET,PUT} use
Fixes PR#10390
 1.138.2.3 31-Aug-2004  jmc Pullup rev 1.139-1.158 (requested by he in ticket #1739)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.138.2.2 23-Jul-2004  tron Apply patch (requested by dbj in ticket 1724):
Fix problems when building the netbsd-1-6 branch with GCC 3.3.3.
 1.138.2.1 30-Sep-2002  lukem Pull up revision 1.142 (requested by lukem in ticket #843):
Use LOGIN_NAME_MAX instead of `10' for the size of the curname[] buffer.
Allows /etc/ftpchroot to work correctly for usernames > 9 characters.
Noted by Max Khon in the freebsd-stable mailing list, via Thomas Vogt in
private email.
 1.157.2.1 12-Aug-2004  jmc Pullup rev 1.158 (requested by lukem in ticket #757)

* Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary.
* Fix SIGURG handler to set an urgflag that's later tested, rather than
abusing setjmp(3)/longjmp(3).
* Use "volatile sig_atomic_t" as the type of variables modified by sig handlers.
* Use sigaction(3) instead of signal(3) to set the signal handlers.
* Only set the main SIGALRM handler once. If we need to change it,
cache the old handler and restore appropriately...
* Remove a bunch of signal races by improving the signal handlers.
* Fix memory leak with 'ESPV ALL'.
* Clean up the debug message in reply(); use vsnprintf(3) instead of vsyslog(3).
* Rework parsing of OOB commands to _not_ use the yacc parser, since the
latter isn't reentrant and the hacks to work around that are ugly.
We now examine urgflag at appropriate locations and call handleoobcmd()
if it's set. Since the only OOB commands we currently implement are
ABOR and STAT, this isn't an issue.
 1.164.2.8 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1964):
libexec/ftpd/ftpd.c: revision 1.187 via patch
libexec/ftpd/extern.h: revision 1.58 via patch
libexec/ftpd/ftpcmd.y: revision 1.88 via patch
libexec/ftpd/version.h: patch
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>
 1.164.2.7 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1963):
libexec/ftpd/ftpd.c: revision 1.179
PR/35449: Shigeya Suzuki: ftpd does not register socket address into PAM +FIX
 1.164.2.6 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1962):
libexec/ftpd/ftpd.c: revision 1.175
Remove unreachable code (res could never be NULL here).
Fixes Coverity CID 712.
Ok by lukem@.
 1.164.2.5 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1961):
libexec/ftpd/ftpd.c: revision 1.174
Set file to NULL after calling fclose().
Fixes Coverity CID 2669.
Ok by lukem@.
 1.164.2.4 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1960):
libexec/ftpd/ftpd.c: revision 1.173
Make sure that "su" is initialized before dereferencing it.
Fixes Coverity CID 1075.
Ok by lukem@.
 1.164.2.3 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1959):
libexec/ftpd/ftpd.c: revision 1.170
NLST should return 450 instead of 550 upon error, per RFC 959.
 1.164.2.2 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1958):
libexec/ftpd/ftpd.c: revision 1.169
logxfer(): don't use the same buffer to store the results of two separate
concurrent realpath(3)s, otherwise we'll log the wrong information
for a rename.
Noted by Dmitry Sivachenko in private mail.
 1.164.2.1 05-Jul-2005  tron branches: 1.164.2.1.2; 1.164.2.1.4;
Pull up revision 1.165 (requested by lukem in ticket #538):
s/getpwnam/sgetpwnam/ Found by John Nemeth.
 1.164.2.1.4.7 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1964):
libexec/ftpd/ftpd.c: revision 1.187 via patch
libexec/ftpd/extern.h: revision 1.58 via patch
libexec/ftpd/ftpcmd.y: revision 1.88 via patch
libexec/ftpd/version.h: patch
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>
 1.164.2.1.4.6 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1963):
libexec/ftpd/ftpd.c: revision 1.179
PR/35449: Shigeya Suzuki: ftpd does not register socket address into PAM +FIX
 1.164.2.1.4.5 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1962):
libexec/ftpd/ftpd.c: revision 1.175
Remove unreachable code (res could never be NULL here).
Fixes Coverity CID 712.
Ok by lukem@.
 1.164.2.1.4.4 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1961):
libexec/ftpd/ftpd.c: revision 1.174
Set file to NULL after calling fclose().
Fixes Coverity CID 2669.
Ok by lukem@.
 1.164.2.1.4.3 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1960):
libexec/ftpd/ftpd.c: revision 1.173
Make sure that "su" is initialized before dereferencing it.
Fixes Coverity CID 1075.
Ok by lukem@.
 1.164.2.1.4.2 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1959):
libexec/ftpd/ftpd.c: revision 1.170
NLST should return 450 instead of 550 upon error, per RFC 959.
 1.164.2.1.4.1 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1958):
libexec/ftpd/ftpd.c: revision 1.169
logxfer(): don't use the same buffer to store the results of two separate
concurrent realpath(3)s, otherwise we'll log the wrong information
for a rename.
Noted by Dmitry Sivachenko in private mail.
 1.164.2.1.2.7 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1964):
libexec/ftpd/ftpd.c: revision 1.187 via patch
libexec/ftpd/extern.h: revision 1.58 via patch
libexec/ftpd/ftpcmd.y: revision 1.88 via patch
libexec/ftpd/version.h: patch
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>
 1.164.2.1.2.6 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1963):
libexec/ftpd/ftpd.c: revision 1.179
PR/35449: Shigeya Suzuki: ftpd does not register socket address into PAM +FIX
 1.164.2.1.2.5 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1962):
libexec/ftpd/ftpd.c: revision 1.175
Remove unreachable code (res could never be NULL here).
Fixes Coverity CID 712.
Ok by lukem@.
 1.164.2.1.2.4 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1961):
libexec/ftpd/ftpd.c: revision 1.174
Set file to NULL after calling fclose().
Fixes Coverity CID 2669.
Ok by lukem@.
 1.164.2.1.2.3 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1960):
libexec/ftpd/ftpd.c: revision 1.173
Make sure that "su" is initialized before dereferencing it.
Fixes Coverity CID 1075.
Ok by lukem@.
 1.164.2.1.2.2 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1959):
libexec/ftpd/ftpd.c: revision 1.170
NLST should return 450 instead of 550 upon error, per RFC 959.
 1.164.2.1.2.1 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1958):
libexec/ftpd/ftpd.c: revision 1.169
logxfer(): don't use the same buffer to store the results of two separate
concurrent realpath(3)s, otherwise we'll log the wrong information
for a rename.
Noted by Dmitry Sivachenko in private mail.
 1.177.6.4 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1202):
libexec/ftpd/ftpd.c: revision 1.187
libexec/ftpd/extern.h: revision 1.58
libexec/ftpd/version.h: patch
libexec/ftpd/ftpcmd.y: revision 1.88
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>
 1.177.6.3 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1201):
libexec/ftpd/ftpd.c: revision 1.183
libexec/ftpd/Makefile: revision 1.58
libexec/ftpd/version.h: revision 1.66
Reorganize USE_PAM support so that the reply(331,) from USER is
performed by the pam_conv (PAM conversation) callback, which then
getline()s the PASS reply internally. This involves calling
auth_pam() from user() and caching the result to use later in pass().
This allows the PAM modules to present a different password prompt
dialog if necesary. For example:
Name (localhost:lukem):
331 User lukem accepted, provide password [ otp-md4 89 xxxx12345 ].
versus
Name (localhost:lukem): root
331 User root accepted, provide password.
This is independent of (and effectively exclusive to) USE_SKEY support.
Previously ftpd with USE_SKEY=yes would provide the skey prompt
if the user had an skey configured, even if /etc/pam.d/ftpd didn't
have pam_skey in use.
I.e., ftpd shouldn't need special support for custom password prompts
(such as skey) if PAM is in use.
 1.177.6.2 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1200):
libexec/ftpd/ftpd.c: revision 1.182
Rename cred_t to ftpd_cred_t; the former causes a nameclash on Solaris.
 1.177.6.1 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1199):
libexec/ftpd/ftpd.c: revision 1.179
PR/35449: Shigeya Suzuki: ftpd does not register socket address into PAM +FIX
 1.177.2.4 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1202):
libexec/ftpd/ftpd.c: revision 1.187
libexec/ftpd/extern.h: revision 1.58
libexec/ftpd/version.h: patch
libexec/ftpd/ftpcmd.y: revision 1.88
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>
 1.177.2.3 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1201):
libexec/ftpd/ftpd.c: revision 1.183
libexec/ftpd/Makefile: revision 1.58
libexec/ftpd/version.h: revision 1.66
Reorganize USE_PAM support so that the reply(331,) from USER is
performed by the pam_conv (PAM conversation) callback, which then
getline()s the PASS reply internally. This involves calling
auth_pam() from user() and caching the result to use later in pass().
This allows the PAM modules to present a different password prompt
dialog if necesary. For example:
Name (localhost:lukem):
331 User lukem accepted, provide password [ otp-md4 89 xxxx12345 ].
versus
Name (localhost:lukem): root
331 User root accepted, provide password.
This is independent of (and effectively exclusive to) USE_SKEY support.
Previously ftpd with USE_SKEY=yes would provide the skey prompt
if the user had an skey configured, even if /etc/pam.d/ftpd didn't
have pam_skey in use.
I.e., ftpd shouldn't need special support for custom password prompts
(such as skey) if PAM is in use.
 1.177.2.2 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1200):
libexec/ftpd/ftpd.c: revision 1.182
Rename cred_t to ftpd_cred_t; the former causes a nameclash on Solaris.
 1.177.2.1 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1199):
libexec/ftpd/ftpd.c: revision 1.179
PR/35449: Shigeya Suzuki: ftpd does not register socket address into PAM +FIX
 1.182.10.2 23-Jul-2007  lukem Rename cred_t to ftpd_cred_t; the former causes a nameclash on Solaris.
 1.182.10.1 23-Jul-2007  lukem file ftpd.c was added on branch matt-mips64 on 2007-07-23 10:41:06 +0000
 1.183.2.2 17-Jun-2008  yamt sync with head.
 1.183.2.1 18-May-2008  yamt sync with head.
 1.184.2.3 24-Sep-2008  wrstuden Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
 1.184.2.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.184.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.191.2.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.197.2.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.197.2.1 30-Oct-2012  yamt sync with head
 1.198.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.200.4.1 30-Apr-2015  riz Pull up blacklistd(8), requested by christos in ticket #711:
crypto/external/bsd/openssh/dist/moduli-gen/Makefile up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli-gen.sh up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.1024 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.1536 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.2048 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.3072 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.4096 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.6144 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.7680 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.8192 up to 1.1.1.1
crypto/external/bsd/openssh/dist/bcrypt_pbkdf.c up to 1.2
crypto/external/bsd/openssh/dist/kexc25519.c up to 1.3
crypto/external/bsd/openssh/dist/smult_curve25519_ref.c up to 1.3
crypto/external/bsd/openssh/dist/bitmap.c up to 1.2 plus patch
crypto/external/bsd/openssh/dist/PROTOCOL.chacha20poly1305 up to 1.1.1.1
crypto/external/bsd/openssh/dist/PROTOCOL.key up to 1.1.1.1
crypto/external/bsd/openssh/dist/blf.h up to 1.1
crypto/external/bsd/openssh/dist/blocks.c up to 1.3
crypto/external/bsd/openssh/dist/blowfish.c up to 1.2
crypto/external/bsd/openssh/dist/chacha.c up to 1.3
crypto/external/bsd/openssh/dist/chacha.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/cipher-aesctr.c up to 1.1.1.2
crypto/external/bsd/openssh/dist/cipher-aesctr.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/cipher-chachapoly.c up to 1.3
crypto/external/bsd/openssh/dist/cipher-chachapoly.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/crypto_api.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/digest-libc.c up to 1.3
crypto/external/bsd/openssh/dist/digest-openssl.c up to 1.3
crypto/external/bsd/openssh/dist/digest.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/ed25519.c up to 1.3
crypto/external/bsd/openssh/dist/fe25519.c up to 1.3
crypto/external/bsd/openssh/dist/fe25519.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/ge25519.c up to 1.3
crypto/external/bsd/openssh/dist/ge25519.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/ge25519_base.data up to 1.1.1.1
crypto/external/bsd/openssh/dist/hash.c up to 1.3
crypto/external/bsd/openssh/dist/hmac.c up to 1.3
crypto/external/bsd/openssh/dist/hmac.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/kexc25519c.c up to 1.3
crypto/external/bsd/openssh/dist/kexc25519s.c up to 1.3
crypto/external/bsd/openssh/dist/poly1305.c up to 1.3
crypto/external/bsd/openssh/dist/poly1305.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/rijndael.c up to 1.1.1.2
crypto/external/bsd/openssh/dist/rijndael.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/sc25519.c up to 1.3
crypto/external/bsd/openssh/dist/sc25519.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/ssh-ed25519.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf-getput-basic.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf-getput-crypto.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf-misc.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf.h up to 1.4
crypto/external/bsd/openssh/dist/ssherr.c up to 1.3
crypto/external/bsd/openssh/dist/ssherr.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/sshkey.c up to 1.3
crypto/external/bsd/openssh/dist/sshkey.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/verify.c up to 1.3
crypto/external/bsd/openssh/dist/opacket.c up to 1.2
crypto/external/bsd/openssh/dist/umac128.c up to 1.1
crypto/external/bsd/openssh/dist/pfilter.c up to 1.2
crypto/external/bsd/openssh/dist/pfilter.h up to 1.1
crypto/external/bsd/openssh/dist/bitmap.h up to 1.2
crypto/external/bsd/openssh/dist/opacket.h up to 1.2
crypto/external/bsd/openssh/dist/ssh_api.c up to 1.2
crypto/external/bsd/openssh/dist/ssh_api.h up to 1.2
crypto/external/bsd/openssh/dist/auth2-jpake.c delete
crypto/external/bsd/openssh/dist/compress.c delete
crypto/external/bsd/openssh/dist/compress.h delete
crypto/external/bsd/openssh/dist/jpake.c delete
crypto/external/bsd/openssh/dist/jpake.h delete
crypto/external/bsd/openssh/dist/schnorr.c delete
crypto/external/bsd/openssh/dist/schnorr.h delete
crypto/external/bsd/openssh/dist/strtonum.c 1.1
crypto/external/bsd/openssh/Makefile.inc up to 1.8
crypto/external/bsd/openssh/bin/Makefile.inc up to 1.3
crypto/external/bsd/openssh/bin/ssh-keyscan/Makefile up to 1.2
crypto/external/bsd/openssh/bin/sshd/Makefile up to 1.12
crypto/external/bsd/openssh/dist/PROTOCOL up to 1.5
crypto/external/bsd/openssh/dist/PROTOCOL.krl up to 1.1.1.2
crypto/external/bsd/openssh/dist/addrmatch.c up to 1.8
crypto/external/bsd/openssh/dist/atomicio.c up to 1.6
crypto/external/bsd/openssh/dist/auth-bsdauth.c up to 1.4
crypto/external/bsd/openssh/dist/auth-chall.c up to 1.6
crypto/external/bsd/openssh/dist/auth-krb5.c up to 1.7
crypto/external/bsd/openssh/dist/auth-options.c up to 1.9
crypto/external/bsd/openssh/dist/auth-options.h up to 1.6
crypto/external/bsd/openssh/dist/auth-passwd.c up to 1.4
crypto/external/bsd/openssh/dist/auth-rh-rsa.c up to 1.6
crypto/external/bsd/openssh/dist/auth-rhosts.c up to 1.5
crypto/external/bsd/openssh/dist/auth-rsa.c up to 1.10
crypto/external/bsd/openssh/dist/auth.c up to 1.12
crypto/external/bsd/openssh/dist/auth.h up to 1.10
crypto/external/bsd/openssh/dist/auth1.c up to 1.11
crypto/external/bsd/openssh/dist/auth2-chall.c up to 1.7
crypto/external/bsd/openssh/dist/auth2-gss.c up to 1.8
crypto/external/bsd/openssh/dist/auth2-hostbased.c up to 1.7
crypto/external/bsd/openssh/dist/auth2-kbdint.c up to 1.5
crypto/external/bsd/openssh/dist/auth2-krb5.c up to 1.4
crypto/external/bsd/openssh/dist/auth2-none.c up to 1.5
crypto/external/bsd/openssh/dist/auth2-passwd.c up to 1.5
crypto/external/bsd/openssh/dist/auth2-pubkey.c up to 1.11
crypto/external/bsd/openssh/dist/auth2.c up to 1.11
crypto/external/bsd/openssh/dist/authfd.c up to 1.8
crypto/external/bsd/openssh/dist/authfd.h up to 1.5
crypto/external/bsd/openssh/dist/authfile.c up to 1.10
crypto/external/bsd/openssh/dist/authfile.h up to 1.6
crypto/external/bsd/openssh/dist/bufaux.c up to 1.7
crypto/external/bsd/openssh/dist/bufbn.c up to 1.5
crypto/external/bsd/openssh/dist/bufec.c up to 1.5
crypto/external/bsd/openssh/dist/buffer.c up to 1.6
crypto/external/bsd/openssh/dist/buffer.h up to 1.7
crypto/external/bsd/openssh/dist/canohost.c up to 1.8
crypto/external/bsd/openssh/dist/channels.c up to 1.13
crypto/external/bsd/openssh/dist/channels.h up to 1.10
crypto/external/bsd/openssh/dist/cipher-3des1.c up to 1.7
crypto/external/bsd/openssh/dist/cipher-bf1.c up to 1.6
crypto/external/bsd/openssh/dist/cipher.c up to 1.7
crypto/external/bsd/openssh/dist/cipher.h up to 1.7
crypto/external/bsd/openssh/dist/clientloop.c up to 1.13
crypto/external/bsd/openssh/dist/compat.c up to 1.9
crypto/external/bsd/openssh/dist/compat.h up to 1.6
crypto/external/bsd/openssh/dist/deattack.c up to 1.4
crypto/external/bsd/openssh/dist/deattack.h up to 1.4
crypto/external/bsd/openssh/dist/dh.c up to 1.8
crypto/external/bsd/openssh/dist/dh.h up to 1.4
crypto/external/bsd/openssh/dist/dispatch.c up to 1.5
crypto/external/bsd/openssh/dist/dispatch.h up to 1.4
crypto/external/bsd/openssh/dist/dns.c up to 1.11
crypto/external/bsd/openssh/dist/dns.h up to 1.6
crypto/external/bsd/openssh/dist/groupaccess.c up to 1.5
crypto/external/bsd/openssh/dist/gss-genr.c up to 1.7
crypto/external/bsd/openssh/dist/gss-serv-krb5.c up to 1.8
crypto/external/bsd/openssh/dist/gss-serv.c up to 1.7
crypto/external/bsd/openssh/dist/hostfile.c up to 1.7
crypto/external/bsd/openssh/dist/hostfile.h up to 1.7
crypto/external/bsd/openssh/dist/includes.h up to 1.4
crypto/external/bsd/openssh/dist/kex.c up to 1.10
crypto/external/bsd/openssh/dist/kex.h up to 1.9
crypto/external/bsd/openssh/dist/kexdh.c up to 1.4
crypto/external/bsd/openssh/dist/kexdhc.c up to 1.6
crypto/external/bsd/openssh/dist/kexdhs.c up to 1.8
crypto/external/bsd/openssh/dist/kexecdh.c up to 1.5
crypto/external/bsd/openssh/dist/kexecdhc.c up to 1.5
crypto/external/bsd/openssh/dist/kexecdhs.c up to 1.5
crypto/external/bsd/openssh/dist/kexgex.c up to 1.4
crypto/external/bsd/openssh/dist/kexgexc.c up to 1.6
crypto/external/bsd/openssh/dist/kexgexs.c up to 1.8
crypto/external/bsd/openssh/dist/key.c up to 1.16
crypto/external/bsd/openssh/dist/key.h up to 1.9
crypto/external/bsd/openssh/dist/krl.c up to 1.5
crypto/external/bsd/openssh/dist/krl.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/mac.c up to 1.11
crypto/external/bsd/openssh/dist/mac.h up to 1.5
crypto/external/bsd/openssh/dist/match.c up to 1.5
crypto/external/bsd/openssh/dist/misc.c up to 1.10
crypto/external/bsd/openssh/dist/misc.h up to 1.9 plus patch
crypto/external/bsd/openssh/dist/moduli.c up to 1.8
crypto/external/bsd/openssh/dist/monitor.c up to 1.14
crypto/external/bsd/openssh/dist/monitor.h up to 1.7
crypto/external/bsd/openssh/dist/monitor_fdpass.c up to 1.5
crypto/external/bsd/openssh/dist/monitor_mm.c up to 1.6
crypto/external/bsd/openssh/dist/monitor_mm.h up to 1.4
crypto/external/bsd/openssh/dist/monitor_wrap.c up to 1.11
crypto/external/bsd/openssh/dist/monitor_wrap.h up to 1.8
crypto/external/bsd/openssh/dist/msg.c up to 1.4
crypto/external/bsd/openssh/dist/msg.h up to 1.4
crypto/external/bsd/openssh/dist/mux.c up to 1.11
crypto/external/bsd/openssh/dist/myproposal.h up to 1.10
crypto/external/bsd/openssh/dist/namespace.h up to 1.5
crypto/external/bsd/openssh/dist/packet.c up to 1.18
crypto/external/bsd/openssh/dist/packet.h up to 1.11
crypto/external/bsd/openssh/dist/pathnames.h up to 1.9
crypto/external/bsd/openssh/dist/pkcs11.h up to 1.4
crypto/external/bsd/openssh/dist/progressmeter.c up to 1.7
crypto/external/bsd/openssh/dist/progressmeter.h up to 1.4
crypto/external/bsd/openssh/dist/reallocarray.c new
crypto/external/bsd/openssh/dist/readconf.c up to 1.13
crypto/external/bsd/openssh/dist/readconf.h up to 1.12
crypto/external/bsd/openssh/dist/readpass.c up to 1.6
crypto/external/bsd/openssh/dist/roaming_client.c up to 1.7
crypto/external/bsd/openssh/dist/roaming_common.c up to 1.9
crypto/external/bsd/openssh/dist/roaming_dummy.c up to 1.4
crypto/external/bsd/openssh/dist/rsa.c up to 1.5
crypto/external/bsd/openssh/dist/rsa.h up to 1.4
crypto/external/bsd/openssh/dist/sandbox-systrace.c up to 1.1.1.5
crypto/external/bsd/openssh/dist/scp.1 up to 1.9
crypto/external/bsd/openssh/dist/scp.c up to 1.11
crypto/external/bsd/openssh/dist/servconf.c up to 1.17
crypto/external/bsd/openssh/dist/servconf.h up to 1.11
crypto/external/bsd/openssh/dist/serverloop.c up to 1.12
crypto/external/bsd/openssh/dist/session.c up to 1.14
crypto/external/bsd/openssh/dist/session.h up to 1.4
crypto/external/bsd/openssh/dist/sftp-client.c up to 1.13
crypto/external/bsd/openssh/dist/sftp-client.h up to 1.7
crypto/external/bsd/openssh/dist/sftp-common.c up to 1.7
crypto/external/bsd/openssh/dist/sftp-common.h up to 1.5
crypto/external/bsd/openssh/dist/sftp-glob.c up to 1.8
crypto/external/bsd/openssh/dist/sftp-server.8 up to 1.9
crypto/external/bsd/openssh/dist/sftp-server.c up to 1.11
crypto/external/bsd/openssh/dist/sftp.1 up to 1.11
crypto/external/bsd/openssh/dist/sftp.c up to 1.15
crypto/external/bsd/openssh/dist/ssh-add.1 up to 1.9
crypto/external/bsd/openssh/dist/ssh-add.c up to 1.10
crypto/external/bsd/openssh/dist/ssh-agent.1 up to 1.8
crypto/external/bsd/openssh/dist/ssh-agent.c up to 1.14
crypto/external/bsd/openssh/dist/ssh-dss.c up to 1.7
crypto/external/bsd/openssh/dist/ssh-ecdsa.c up to 1.6
crypto/external/bsd/openssh/dist/ssh-gss.h up to 1.5
crypto/external/bsd/openssh/dist/ssh-keygen.1 up to 1.13
crypto/external/bsd/openssh/dist/ssh-keygen.c up to 1.16
crypto/external/bsd/openssh/dist/ssh-keyscan.1 up to 1.10
crypto/external/bsd/openssh/dist/ssh-keyscan.c up to 1.13
crypto/external/bsd/openssh/dist/ssh-keysign.8 up to 1.9
crypto/external/bsd/openssh/dist/ssh-keysign.c up to 1.8
crypto/external/bsd/openssh/dist/ssh-pkcs11-client.c up to 1.6
crypto/external/bsd/openssh/dist/ssh-pkcs11-helper.c up to 1.8
crypto/external/bsd/openssh/dist/ssh-pkcs11.c up to 1.7
crypto/external/bsd/openssh/dist/ssh-pkcs11.h up to 1.4
crypto/external/bsd/openssh/dist/ssh-rsa.c up to 1.7
crypto/external/bsd/openssh/dist/ssh.1 up to 1.14
crypto/external/bsd/openssh/dist/ssh.c up to 1.16
crypto/external/bsd/openssh/dist/ssh2.h up to 1.6
crypto/external/bsd/openssh/dist/ssh_config up to 1.8
crypto/external/bsd/openssh/dist/ssh_config.5 up to 1.13
crypto/external/bsd/openssh/dist/sshconnect.c up to 1.11
crypto/external/bsd/openssh/dist/sshconnect.h up to 1.6
crypto/external/bsd/openssh/dist/sshconnect1.c up to 1.6
crypto/external/bsd/openssh/dist/sshconnect2.c up to 1.19
crypto/external/bsd/openssh/dist/sshd.8 up to 1.13
crypto/external/bsd/openssh/dist/sshd.c up to 1.18
crypto/external/bsd/openssh/dist/sshd_config up to 1.13
crypto/external/bsd/openssh/dist/sshd_config.5 up to 1.17
crypto/external/bsd/openssh/dist/sshlogin.c up to 1.6
crypto/external/bsd/openssh/dist/sshpty.c up to 1.4
crypto/external/bsd/openssh/dist/uidswap.c up to 1.4
crypto/external/bsd/openssh/dist/umac.c up to 1.9
crypto/external/bsd/openssh/dist/version.h up to 1.14
crypto/external/bsd/openssh/dist/xmalloc.c up to 1.5
crypto/external/bsd/openssh/lib/Makefile up to 1.17 plus patch
crypto/external/bsd/openssh/lib/shlib_version up to 1.13
distrib/sets/lists/base/ad.aarch64 patch
distrib/sets/lists/base/ad.arm patch
distrib/sets/lists/base/ad.mips patch
distrib/sets/lists/base/ad.powerpc patch
distrib/sets/lists/base/md.amd64 patch
distrib/sets/lists/base/md.sparc64 patch
distrib/sets/lists/base/mi patch
distrib/sets/lists/base/shl.mi patch
distrib/sets/lists/comp/ad.aarch64 patch
distrib/sets/lists/comp/ad.arm patch
distrib/sets/lists/comp/ad.mips patch
distrib/sets/lists/comp/ad.powerpc patch
distrib/sets/lists/comp/md.amd64 patch
distrib/sets/lists/comp/md.sparc64 patch
distrib/sets/lists/comp/mi patch
distrib/sets/lists/comp/shl.mi patch
distrib/sets/lists/debug/ad.aarch64 patch
distrib/sets/lists/debug/ad.arm patch
distrib/sets/lists/debug/ad.mips patch
distrib/sets/lists/debug/ad.powerpc patch
distrib/sets/lists/debug/md.amd64 patch
distrib/sets/lists/debug/md.sparc64 patch
distrib/sets/lists/debug/shl.mi patch
distrib/sets/lists/etc/mi patch
distrib/sets/lists/man/mi patch
etc/defaults/rc.conf 1.130
etc/mtree/NetBSD.dist.base 1.142
external/bsd/Makefile up to 1.48
external/bsd/blacklist/bin/Makefile up to 1.11 plus patch
external/bsd/blacklist/bin/blacklistctl.8 up to 1.6
external/bsd/blacklist/bin/blacklistctl.c up to 1.17
external/bsd/blacklist/bin/blacklistd.8 up to 1.10
external/bsd/blacklist/bin/blacklistd.c up to 1.32
external/bsd/blacklist/bin/blacklistd.conf.5 up to 1.2
external/bsd/blacklist/bin/conf.c up to 1.18
external/bsd/blacklist/bin/conf.h up to 1.6
external/bsd/blacklist/bin/internal.c up to 1.5
external/bsd/blacklist/bin/internal.h up to 1.12
external/bsd/blacklist/bin/run.c up to 1.12
external/bsd/blacklist/bin/run.h up to 1.5
external/bsd/blacklist/bin/state.c up to 1.15
external/bsd/blacklist/bin/state.h up to 1.5
external/bsd/blacklist/bin/support.c up to 1.6
external/bsd/blacklist/bin/support.h up to 1.5
external/bsd/blacklist/etc/rc.d/Makefile up to 1.1
external/bsd/blacklist/etc/rc.d/blacklistd up to 1.1
external/bsd/blacklist/etc/Makefile up to 1.3
external/bsd/blacklist/etc/blacklistd.conf up to 1.3
external/bsd/blacklist/etc/npf.conf up to 1.1
external/bsd/blacklist/Makefile up to 1.2
external/bsd/blacklist/Makefile.inc up to 1.3
external/bsd/blacklist/README up to 1.7
external/bsd/blacklist/TODO up to 1.7
external/bsd/blacklist/diff/ftpd.diff up to 1.1
external/bsd/blacklist/diff/named.diff up to 1.6
external/bsd/blacklist/diff/ssh.diff up to 1.6
external/bsd/blacklist/include/Makefile up to 1.1
external/bsd/blacklist/include/bl.h up to 1.12
external/bsd/blacklist/include/blacklist.h up to 1.3
external/bsd/blacklist/include/config.h new
external/bsd/blacklist/lib/Makefile up to 1.3
external/bsd/blacklist/lib/bl.c up to 1.24
external/bsd/blacklist/lib/blacklist.c up to 1.5
external/bsd/blacklist/lib/libblacklist.3 up to 1.3
external/bsd/blacklist/lib/shlib_version up to 1.1
external/bsd/blacklist/libexec/Makefile up to 1.1
external/bsd/blacklist/libexec/blacklistd-helper up to 1.4
external/bsd/blacklist/port/m4/.cvsignore up to 1.1
external/bsd/blacklist/port/Makefile.am up to 1.4
external/bsd/blacklist/port/_strtoi.h up to 1.1
external/bsd/blacklist/port/clock_gettime.c up to 1.2
external/bsd/blacklist/port/configure.ac up to 1.7
external/bsd/blacklist/port/fgetln.c up to 1.1
external/bsd/blacklist/port/fparseln.c up to 1.1
external/bsd/blacklist/port/getprogname.c up to 1.4
external/bsd/blacklist/port/pidfile.c up to 1.1
external/bsd/blacklist/port/popenve.c up to 1.2
external/bsd/blacklist/port/port.h up to 1.6
external/bsd/blacklist/port/sockaddr_snprintf.c up to 1.9
external/bsd/blacklist/port/strlcat.c up to 1.2
external/bsd/blacklist/port/strlcpy.c up to 1.2
external/bsd/blacklist/port/strtoi.c up to 1.3
external/bsd/blacklist/test/Makefile up to 1.2
external/bsd/blacklist/test/cltest.c up to 1.6
external/bsd/blacklist/test/srvtest.c up to 1.9
lib/libpam/modules/pam_ssh/pam_ssh.c up to 1.23
libexec/ftpd/pfilter.c up to 1.1
libexec/ftpd/pfilter.h up to 1.1
libexec/ftpd/Makefile up to 1.64
libexec/ftpd/ftpd.c up to 1.201

Add blacklistd(8), a daemon to block and release network ports
on demand to mitigate abuse, and related changes to system daemons
to support it.
[christos, ticket #711]
 1.202.2.1 26-Jul-2016  pgoyette Sync with HEAD
 1.203.12.1 02-May-2018  pgoyette Synch with HEAD
 1.203.6.5 03-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #1906):

libexec/ftpd/ftpd.c: revision 1.208

pam_set_item PAM_SOCKADDR expects sockaddr_storage structure

Instead, internal struct sockinet was used. Because it's length is shorter
than sockaddr_storage, libpam was copying also memory outside of sockinet
struct.
 1.203.6.4 03-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #1903):

libexec/ftpd/ftpd.c: revision 1.207
libexec/ftpd/version.h: revision 1.78

ftpd: improve seteuid error handling

Handle seteuid() failures. Per suggestion by Simon Josefsson.

Consistent logging and fatal exit if uid/gid switching fails.

Log correct errno if dataconn() fails.
 1.203.6.3 03-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #1902):

libexec/ftpd/ftpd.c: revision 1.206

Treat failed chdir/chroot for guest and chroot accounts as fatal.

Also treat failed set{e,}(u,g}id calls as fatal.

Addresses CVE-2020-7468, via FreeBSD.
 1.203.6.2 03-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #1901):

libexec/ftpd/extern.h: revision 1.65
libexec/ftpd/ftpd.c: revision 1.205

bump sizes
 1.203.6.1 03-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #1900):

libexec/ftpd/ftpd.8: revision 1.87
libexec/ftpd/ftpd.c: revision 1.204

Add -f option to ftpd to stay in foreground with -D.

From nia in PR bin/53221.
 1.204.4.4 02-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #1742):

libexec/ftpd/ftpd.c: revision 1.208

pam_set_item PAM_SOCKADDR expects sockaddr_storage structure

Instead, internal struct sockinet was used. Because it's length is shorter
than sockaddr_storage, libpam was copying also memory outside of sockinet
struct.
 1.204.4.3 02-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #1739):

libexec/ftpd/ftpd.c: revision 1.207
libexec/ftpd/version.h: revision 1.78

ftpd: improve seteuid error handling

Handle seteuid() failures. Per suggestion by Simon Josefsson.
Consistent logging and fatal exit if uid/gid switching fails.
Log correct errno if dataconn() fails.
 1.204.4.2 02-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #1738):

libexec/ftpd/ftpd.c: revision 1.206

Treat failed chdir/chroot for guest and chroot accounts as fatal.

Also treat failed set{e,}(u,g}id calls as fatal.

Addresses CVE-2020-7468, via FreeBSD.
 1.204.4.1 02-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #1737):

libexec/ftpd/extern.h: revision 1.65
libexec/ftpd/ftpd.c: revision 1.205

bump sizes
 1.204.2.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.206.2.2 02-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #389):

libexec/ftpd/ftpd.c: revision 1.208

pam_set_item PAM_SOCKADDR expects sockaddr_storage structure

Instead, internal struct sockinet was used. Because it's length is shorter
than sockaddr_storage, libpam was copying also memory outside of sockinet
struct.
 1.206.2.1 02-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #385):

libexec/ftpd/ftpd.c: revision 1.207
libexec/ftpd/version.h: revision 1.78

ftpd: improve seteuid error handling

Handle seteuid() failures. Per suggestion by Simon Josefsson.
Consistent logging and fatal exit if uid/gid switching fails.
Log correct errno if dataconn() fails.
 1.208.2.1 02-Aug-2025  perseant Sync with HEAD
 1.38 22-Aug-2020  lukem ftpd.conf(5): remove duplicate "be"

Two be or not two be.
Noted by SAITOH Masanobu in private mail.
 1.37 09-Apr-2009  joerg Don't use .Xo/.Xc or .Oo/.Oc over .It lines to work around the macro
argument limit in ancient groff versions.
 1.36 13-Sep-2008  lukem branches: 1.36.6;
Crank copyright dates
 1.35 30-Apr-2008  martin branches: 1.35.2;
Convert TNF licenses to new 2 clause variant
 1.34 02-Dec-2007  wiz branches: 1.34.6;
filetypes -> file types.
 1.33 13-Apr-2007  lukem branches: 1.33.4;
Expand documentation on numeric argument suffix parsing, and convert
to IEC 60027-2 prefixes for 2^n multiples ("KiB" instead of "KB", etc.)
 1.32 11-Sep-2005  wiz Remove duplicate line. From YOMURA Masanori in private mail.
 1.31 10-Sep-2005  wiz Fix typo.
 1.30 24-Aug-2005  ginsbach * Add recvbufsize configuration option
This allows for setting the passive socket's SO_RCVBUF. Option works
similarly to the current sendbufsize configuration option.
* Change how recveive_data() works
When reading data from the socket for passive transfers to the server,
receive_data() now works very similar to send_data_with_read(). Reads
from the network are now done using either the filesystem block size or
the configuration option readsize chunks.
* Crank version.h
[Changes discussed with lukem.]
 1.29 03-Mar-2005  ginsbach * Add hidesymlinks configuration option
This adds a -L to all ls command arguments so that the file or directory
the link references is listed rather than the link itself. This was
inspired by IRIX ftpd's -S option.
[Discussed with lukem some time ago.]
* Crank version.h [right Luke? :-)]
 1.28 27-Jun-2003  wiz Add Ns.
 1.27 31-Mar-2003  perry behaviour->behavior
I actually really like the UK spelling on this, but consistency among
our man pages is also a virtue.
 1.26 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.25 29-Nov-2002  wiz -1 -> \-1.
 1.24 29-Nov-2002  lukem - convert to using libc's strsuftoll(3)
- use LLT (aka 'long long type') for all numeric class parameters
- improve description of various ftpd.conf(5) options
- statcmd(): print out: mmapsize readsize writesize sendbufsize sendlowat
 1.23 02-Oct-2002  wiz especially and interpretation instead of espcially and intrepretation.
By Adrian Mrva.
 1.22 29-Sep-2002  wiz Begin new sentences on new lines.
Patch from Robert Elz (kre at munnari oz au).
 1.21 31-May-2002  wiz Grammar fixes in last.
 1.20 30-May-2002  enami Add optional mmap(2)/write(2) support for binary file transfer.
The default is read(2)/write(2). Note that the sosend_loan needs
some more work for better performance when a file isn't cached.
 1.19 15-Jan-2002  wiz branches: 1.19.2;
Whitespace nits.
 1.18 04-Dec-2001  lukem Add two new ftpd.conf(5) directives:
- 'denyquick'; deny a connection so tagged by ftpusers(5) after the USER
command instead of the PASS command. whilst this might provide some
info leakage of accounts names if you have some `real' or `chroot'
users enabled and not others, it does prevent accidental entering of
such passwords if you have all such users denied. This option is
strongly recommended on anonymous-only servers.
Functionality requested by Rob Windsor in [bin/12602]
- 'private'; don't display class related information in the output of STAT.
For paranoid admins.
 1.17 08-Jul-2001  lukem Alan Barrett informs me that "advertise" (instead of "advertize") is
the norm even in American English.
 1.16 26-Jun-2001  lukem s/tise/tize/ in docco, add "advertize" as synonym for "advertise"
 1.15 18-Dec-2000  lukem Features:

* Add ftpd.conf(5) directive `advertise'; change the address that is
advertised to the client for PASV transfers. this may be useful in
certain firewall/NAT environments.

Feature requested in [bin/9606] by Scott Presnell.

* Add -X option; syslog wu-ftpd style xferlog messages, prefixed with
`xferlog: '. An example line from syslog (wrapped):
Dec 16 18:50:24 odysseus ftpd[571]: xferlog: Sat Dec 16 18:50:24 2000
2 localhost 3747328 /pub/WLW2K601.EXE b _ o a lukem@ FTP 0 * c

These messages can be converted to a wu-ftpd style xferlog file
suitable for parsing with third-party tools with something like:
grep 'xferlog: ' /var/log/xferlog | \
sed -e 's/^.*xferlog: //' >wuxferlog

The format is the same as the wu-ftpd xferlog entries (with the leading
syslog stuff), but different from the wu-ftpd syslogged xferlog entries
because the latter is not as easy to convert into the standard xferlog
file format.

The choice to only syslog the xferlog messages rather than append to
a /var/log/xferlog file was made because the latter doesn't work to
well in the situation where the logfile is rotated and compressed and
a long-running ftpd still has a file-descriptor to the now nonexistant
xferlog file, and the log message will then get lost.

Feature requested in [bin/11651] by Hubert Feyrer.


Fixes:

* In ftpd(8), clarify the -a and -c options.

* More clarifications in ftpd.conf(5).

* Ensure that all ftpd.conf commands set a parameter back to sane defaults
if an argument of `none' or bad settings are given.

* Support the `chroot' directive for `REAL' users too (for consistency).

* For `GUEST' users, store the supplied password in pw->pw_passwd for use
later in the xferlog.

* If show_chdir_messages() is given a code of -1, flush the cache of
visited directories. Invoke show_chdir_messages(-1) in end_login().

* Only syslog session stats if logging is requested.

* Rename logcmd() -> logxfer(), and dolog() -> logremotehost().

* Use cprintf() instead of fprintf() where appropriate.

* Minor KNF, and make a couple of functions static that were declared static.
 1.14 16-Nov-2000  lukem - new ftpd.conf directives:
maxfilesize set the maximum size of uploaded files
sanenames if set, only permit uploaded filenames that contain
characters from the set "-+,._A-Za-z0-9" and that
don't start with `.'

- new/changed command line options:
-e emailaddr define email address for %E (see below)
-P dataport use dataport as the dataport (instead of ctrlport-1)
-q use pid files to count users [default]
-Q don't use pid files to count users
-u write entries to utmp
-U don't write entries to utmp [default]
-w write entries to wtmp [default]
-W don't write entries to wtmp

NOTE: -U used to mean `write utmp entries'. Its meaning has changed
so that it's orthogonal with -q/-Q and -w/-W. This isn't
considered a major problem, because using -U isn't going to
enable something you don't want, but will disable something
you did want (which is safer).

- new display file escape sequences:
%E email address
%s literal `s' if the previous %M or %N wasn't ``1''.
%S literal `S' if the previous %M or %N wasn't ``1''.

- expand the description of building ~ftp/incoming to cover the
appropriate ftpd.conf(5) directives (which are defaults, but it pays
to explicitly explain them)

- replace strsuftoi() with strsuftoll(), which returns a long long if
supported, otherwise a long

- rework the way that check_modify and check_upload are done in the yacc
parser; they're merged into a common check_write() function which is
called explicitly

- merge all ftpclass `flag variables' into a single bitfield-based flag element

- move various common bits of parse_conf() into a couple of macros

- clean up some comments
 1.13 07-Nov-2000  lukem slight rework
 1.12 07-Nov-2000  lukem reorganise slightly to make it more obvious what the actual syntax of
a configuration line is.
 1.11 23-Jul-2000  lukem * make checkportcmd the default. this breaks third-party proxy ftp but
prevents the ftp bounce attack, and we should be secure out of the
box, not require users to tweak obscure stuff.
* allow the version string reported to clients to be changed with '-V vers'.
if vers is empty or `-', don't report a version.
* if -r is given, permanently drop root privs
* if not a REAL user (i.e, GUEST or CHROOT), and ftpd is running on a port
> IPPORT_RESERVED+1, permanently drop root privs
* don't bother reverting to root privs to logout of wtmp/utmp; since the
file descriptor is already open this isn't necessary.
* fix the binding of the port for the PORT/LPRT/EPRT connection to be the
ctrl_addr.su_port-1, not hardcoded to `20' (this was broken in the ipv6
merge). if root privs have been dropped, and this would be a port <
IPPORT_RESERVED, use a random port instead (which isn't RFC959 compliant
but it doesn't appear that many clients care).
* prevent login of a new user if privs have been dropped and already logged
in as a REAL user (existing check already stops GUEST & CHROOT users).
* move the port check stuff into a separate port_check() function, and use
for PORT, LPRT, and EPRT checks. inspired by freebsd
* minor KNF
* minor man page cleanup
 1.10 17-Jul-2000  lukem * add two new ftpd.conf(5) directives:
chroot specify dir to chroot to for GUEST and CHROOT users, to
override -a anondir or the user's homedir.
homedir specify dir to change to upon login; also used for ~ expansion
and $HOME for subprocesses)
both of these can take % escapes: %u (username), %d (homedir), %c (class).
* fix NLST to take a pathname not a STRING, so that ~ expansion works
* modify CWD to use the homedir parsed from curclass.homedir
* implement format_path(dst, src), to parse src expanding % escapes (see above)
into dst.
* rename format_file() to display_file()
 1.9 20-Jun-2000  lukem fix problems noted by <dogcow@redback.com> in [bin/10390] and private email:
* fix RATE{GET,PUT} under some situations when the client is slower than
the server (something i missed when migrating the rate limiting code
i wrote in ftp(1) to ftpd(8))
* document what units RATE{GET,PUT} use
 1.8 12-Jan-2000  lukem branches: 1.8.4;
* add ftpd.conf directive `portrange class min max', which allows specification
of the port range used by passive connections. based on work in [bin/9158]
from Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
* change the way global variables are defined and extern-ed to be more
consistent.
 1.7 09-Jan-2000  lukem * new ftpd.conf directive:
template class [refclass]
following directives for refclass will apply to class as well.
this makes setting up a `template' class with many default settings
easy, whilst allowing for class-specific overrides
* prevent crash when the optional limitfile wasn't given to limit
* document count_users()
* document default setting of limit in ftpd.conf(5)
* crank version
 1.6 08-Jan-2000  lukem features:
* add connection limits (`limit' keyword in ftpd.conf)
* move initialisation of curclass from parse_conf() to new function
init_curclass()
* implement count_users(), which determines the number of users in a given
class. a file - /var/run/ftpd.pids-<class> - is used to store a list
of pids in use (effectively an array of pid_t's), and its size is reduced
as necessary.
* new % modifiers in format_file:
%c class
%M maximum connection count
%N current connection count
* always end_login()s, even for refused connections

bugs fixed:
* remove \n from %T output
* fix some inconsistencies in the man pages
* ensure that both `ftp' *and* `anonymous' are allowed in ftpusers.
(this was accidently broken in a recent commit to be ``or'' not ``and'')
* use MAXPATHLEN not MAXPATHLEN+1
* crank copyright date on modified files
* crank version
 1.5 26-Dec-1999  lukem branches: 1.5.2;
* document all classtype defaults
* xref /usr/share/examples/ftpd/ftpd.conf
 1.4 18-Dec-1999  lukem * move version to separate header file
* use .Dv and .Tn in the man pages as appropriate
* KNF a bit

The following were inspired by similar changes in openbsd, but may
have additional improvements by me:
* add more check_login tests to the parser rules
* nuke a few memory leaks in the parser rules
* clear passwords before free()ing them, for safety
* don't display \r\n in setproctitle() output
* add support for -U, which enables managing /var/run/utmp entries for
connections. solves [bin/2217] by Jason Downs <downsj@teeny.org>
* fix oob handling for STAT command
* use SIG_ERR instead of -1
 1.3 16-Dec-1999  lukem install ftpusers(5) as ftpchroot(5). more cleanups
 1.2 16-Dec-1999  lukem cleanup
 1.1 16-Dec-1999  lukem separate ftpd.conf(5) and ftpusers(5) out from ftpd(8).

xxx: still needs a bit of work
 1.5.2.2 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.5.2.1 26-Dec-1999  wrstuden file ftpd.conf.5 was added on branch wrstuden-devbsize on 1999-12-27 18:30:12 +0000
 1.8.4.4 26-Aug-2004  jmc Pullup rev 1.16-1.28 (requested by he in ticket #158)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.8.4.3 29-Mar-2001  lukem sync ftpd to -current with the following revisions (for lukem/christos):
Makefile 1.43-1.44
cmds.c 1.7-1.8, 1.10-1.12
conf.c 1.35-1.40
extern.h 1.32-1.38
ftpcmd.y 1.53-1.59
ftpd.8 1.58-1.63
ftpd.c 1.102-1.104, 1.106-1.122
ftpd.conf.5 1.12-1.15
ftpusers.5 1.8
logwtmp.c 1.16
popen.c 1.23-1.25
version.h 1.28

a quick summary of user-visible changes;
- fix glob DoS by using GLOB_LIMIT
- add ftpd.conf directives `advertise', `maxfilesize', `sanenames'
- add flags: -P dataport, -X - wuftpd style log entries,
-q/-Q - (en|dis)able pidfiles, -u/-U - (en|dis)able utmp,
-w/-W - (en|dis)able wtmp
 1.8.4.2 25-Jul-2000  lukem user visible changes (besides checking the cvs log):
* make checkportcmd the default
* add -r; force permanent drop of root privs after login
* add -V vers; change version string to vers
* add -H; act as -h `hostname`
* permanently drop root privs if it makes sense to do so (e.g; logging in as
guest/chroot user on a port > 1024)
* fix reference to draft-ietf-ftpext-mlst-11
* add ftpd.conf directives: chroot, homedir
* fix base64_encode() and generation of the unique fact
* crank version to 20000723
 1.8.4.1 22-Jun-2000  lukem Pull up revision 1.9:
- fix RATE{GET,PUT} when the client is slower than the rate limit
- document units RATE{GET,PUT} use
Fixes PR#10390
 1.19.2.1 31-Aug-2004  jmc Pullup rev 1.20-1.28 (requested by he in ticket #1739)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.33.4.1 09-Jan-2008  matt sync with HEAD
 1.34.6.1 18-May-2008  yamt sync with head.
 1.35.2.1 24-Sep-2008  wrstuden Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
 1.36.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.17 13-Sep-2008  lukem Crank copyright dates
 1.16 30-Apr-2008  martin branches: 1.16.2;
Convert TNF licenses to new 2 clause variant
 1.15 26-Jul-2003  salo branches: 1.15.30;
netbsd.org->NetBSD.org
 1.14 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.13 01-Dec-2001  wiz branches: 1.13.2;
Improve FILES section.
 1.12 01-Dec-2001  lukem clarify glob type of hostname glob
 1.11 11-Jun-2001  wiz Fix various misspellings of compatible/compatibility.
 1.10 25-Apr-2001  lukem crank copyrights of files changed this year
remove superfluous byte_count update in send_file_list
crank version
 1.9 04-Apr-2001  wiz ftpd.conf(8) -> (5), and a whitespace nit.
 1.8 07-Nov-2000  lukem slight cleanup of line syntax
 1.7 17-Jul-2000  lukem * add two new ftpd.conf(5) directives:
chroot specify dir to chroot to for GUEST and CHROOT users, to
override -a anondir or the user's homedir.
homedir specify dir to change to upon login; also used for ~ expansion
and $HOME for subprocesses)
both of these can take % escapes: %u (username), %d (homedir), %c (class).
* fix NLST to take a pathname not a STRING, so that ~ expansion works
* modify CWD to use the homedir parsed from curclass.homedir
* implement format_path(dst, src), to parse src expanding % escapes (see above)
into dst.
* rename format_file() to display_file()
 1.6 30-May-2000  lukem branches: 1.6.2;
Clarify the meaning of `directive', as requested in [security/10229]
by Klaus Klein <kleink@uni-trier.de>
 1.5 08-Jan-2000  lukem branches: 1.5.2;
reference usr/share/examples/ftpd/ftpusers
 1.4 21-Dec-1999  lukem branches: 1.4.2;
* add support for optional groupglob in ftpuser entry. the syntax is now:
userglob[:groupglob][@host] [directive [class]]
* append ``(class: CLASSNAME, type: TYPE)'' to the syslogged login messages
 1.3 18-Dec-1999  lukem * move version to separate header file
* use .Dv and .Tn in the man pages as appropriate
* KNF a bit

The following were inspired by similar changes in openbsd, but may
have additional improvements by me:
* add more check_login tests to the parser rules
* nuke a few memory leaks in the parser rules
* clear passwords before free()ing them, for safety
* don't display \r\n in setproctitle() output
* add support for -U, which enables managing /var/run/utmp entries for
connections. solves [bin/2217] by Jason Downs <downsj@teeny.org>
* fix oob handling for STAT command
* use SIG_ERR instead of -1
 1.2 16-Dec-1999  lukem install ftpusers(5) as ftpchroot(5). more cleanups
 1.1 16-Dec-1999  lukem separate ftpd.conf(5) and ftpusers(5) out from ftpd(8).

xxx: still needs a bit of work
 1.4.2.2 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.4.2.1 21-Dec-1999  wrstuden file ftpusers.5 was added on branch wrstuden-devbsize on 1999-12-27 18:30:12 +0000
 1.5.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.6.2.4 26-Aug-2004  jmc Pullup rev 1.10-1.15 (requested by he in ticket #158)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.6.2.3 26-Apr-2001  he Pull up revision 1.9 (requested by wiz):
Correct ftpd.conf to ftpd.conf(5), and a whitespace fix.
 1.6.2.2 29-Mar-2001  lukem sync ftpd to -current with the following revisions (for lukem/christos):
Makefile 1.43-1.44
cmds.c 1.7-1.8, 1.10-1.12
conf.c 1.35-1.40
extern.h 1.32-1.38
ftpcmd.y 1.53-1.59
ftpd.8 1.58-1.63
ftpd.c 1.102-1.104, 1.106-1.122
ftpd.conf.5 1.12-1.15
ftpusers.5 1.8
logwtmp.c 1.16
popen.c 1.23-1.25
version.h 1.28

a quick summary of user-visible changes;
- fix glob DoS by using GLOB_LIMIT
- add ftpd.conf directives `advertise', `maxfilesize', `sanenames'
- add flags: -P dataport, -X - wuftpd style log entries,
-q/-Q - (en|dis)able pidfiles, -u/-U - (en|dis)able utmp,
-w/-W - (en|dis)able wtmp
 1.6.2.1 25-Jul-2000  lukem user visible changes (besides checking the cvs log):
* make checkportcmd the default
* add -r; force permanent drop of root privs after login
* add -V vers; change version string to vers
* add -H; act as -h `hostname`
* permanently drop root privs if it makes sense to do so (e.g; logging in as
guest/chroot user on a port > 1024)
* fix reference to draft-ietf-ftpext-mlst-11
* add ftpd.conf directives: chroot, homedir
* fix base64_encode() and generation of the unique fact
* crank version to 20000723
 1.13.2.1 31-Aug-2004  jmc Pullup rev 1.14-1.15 (requested by he in ticket #1739)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.15.30.1 18-May-2008  yamt sync with head.
 1.16.2.1 24-Sep-2008  wrstuden Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
 1.12 16-Sep-2011  plunky NULL does not need a cast, here
 1.11 09-Jun-2008  lukem Add missing RCSID.
 1.10 04-Dec-2006  jdolecek branches: 1.10.10; 1.10.12;
allow compilation without SUPPORT_UTMP
 1.9 23-Jun-2005  christos cleanup utmp and utmpx support.
- make them symmetric
- add a function to open the wtmp file explicitly very early in the game
 1.8 09-Aug-2004  lukem Fixes from (or inspired by) OpenBSD:
* Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary.
* Fix SIGURG handler to set an urgflag that's later tested, rather than
abusing setjmp(3)/longjmp(3).
* Use "volatile sig_atomic_t" as the type of variables modified by sig handlers.
* Use sigaction(3) instead of signal(3) to set the signal handlers.
* Only set the main SIGALRM handler once. If we need to change it,
cache the old handler and restore appropriately...
* Remove a bunch of signal races by improving the signal handlers.
* Fix memory leak with 'ESPV ALL'.

My stuff:
* Clean up the debug message in reply(); use vsnprintf(3) instead of vsyslog(3).
* Rework parsing of OOB commands to _not_ use the yacc parser, since the
latter isn't reentrant and the hacks to work around that are ugly.
We now examine urgflag at appropriate locations and call handleoobcmd()
if it's set. Since the only OOB commands we currently implement are
ABOR and STAT, this isn't an issue. (I also can't find the reference in
RFC2228 where MIC, CONF & ENC are OOB-only commands. Go figure.)
I could clean up the is_oob stuff some more, but the remaining stuff
in ftpcmd.y is harmless and it's unnecessary churn right this moment.
 1.7 13-Oct-2003  agc branches: 1.7.2;
Move Jason Downs's code from a 4-clause to a 3-clause licence by
removing the advertising clause. Diffs provided in PR 22410 by Joel
Baker, confirmed to the board by Jason Downs.

With additional thanks to Jason Thorpe.
 1.6 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.5 30-Jun-2003  tacha Add ftpd_loginx() and ftpd_logwtmpx() and use them to hold wtmpx file
open while a session.

Close bin/21692 by bqt@Krille.Update.UU.SE.
 1.4 23-Feb-2003  lukem rename local copies of login(), logout() and logwtmp() to
ftpd_login(), ftpd_logout() and ftpd_logwtmp() respectively.
(makes utmp support much easier in tnftpd).

per suggestion in mail from Mike Heffner <mheffner@vt.edu>, who
forwarded patch from Michael Ranner <mranner@inode.at>.
 1.3 29-Nov-2002  lukem - convert to using libc's strsuftoll(3)
- use LLT (aka 'long long type') for all numeric class parameters
- improve description of various ftpd.conf(5) options
- statcmd(): print out: mmapsize readsize writesize sendbufsize sendlowat
 1.2 20-May-2000  lukem branches: 1.2.4; 1.2.6;
convert to ANSI C as per style guide
 1.1 18-Dec-1999  lukem branches: 1.1.2;
* move version to separate header file
* use .Dv and .Tn in the man pages as appropriate
* KNF a bit

The following were inspired by similar changes in openbsd, but may
have additional improvements by me:
* add more check_login tests to the parser rules
* nuke a few memory leaks in the parser rules
* clear passwords before free()ing them, for safety
* don't display \r\n in setproctitle() output
* add support for -U, which enables managing /var/run/utmp entries for
connections. solves [bin/2217] by Jason Downs <downsj@teeny.org>
* fix oob handling for STAT command
* use SIG_ERR instead of -1
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.2.6.1 31-Aug-2004  jmc Pullup rev 1.3-1.8 (requested by he in ticket #1739)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.2.4.1 26-Aug-2004  jmc Pullup rev 1.3-1.8 (requested by he in ticket #158)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.7.2.1 12-Aug-2004  jmc Pullup rev 1.8 (requested by lukem in ticket #757)

* Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary.
* Fix SIGURG handler to set an urgflag that's later tested, rather than
abusing setjmp(3)/longjmp(3).
* Use "volatile sig_atomic_t" as the type of variables modified by sig handlers.
* Use sigaction(3) instead of signal(3) to set the signal handlers.
* Only set the main SIGALRM handler once. If we need to change it,
cache the old handler and restore appropriately...
* Remove a bunch of signal races by improving the signal handlers.
* Fix memory leak with 'ESPV ALL'.
* Clean up the debug message in reply(); use vsnprintf(3) instead of vsyslog(3).
* Rework parsing of OOB commands to _not_ use the yacc parser, since the
latter isn't reentrant and the hacks to work around that are ugly.
We now examine urgflag at appropriate locations and call handleoobcmd()
if it's set. Since the only OOB commands we currently implement are
ABOR and STAT, this isn't an issue.
 1.10.12.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.10.10.1 17-Jun-2008  yamt sync with head.
 1.27 09-Aug-2015  shm Removed unnecessary memset(3) call
 1.26 09-Aug-2015  shm Clear utmpx struct before writing it to wtmpx files
 1.25 23-Sep-2006  xtraeme branches: 1.25.24; 1.25.42; 1.25.60;
Apply patch from PR bin/33261 sent by FUKAOMI Naoki:
"ftpd does not update wtmpx".

Thanks.
 1.24 23-Jun-2005  christos cleanup utmp and utmpx support.
- make them symmetric
- add a function to open the wtmp file explicitly very early in the game
 1.23 11-Nov-2004  christos Don't write trash in ut_ss; either initialize it to 0, or put in the proper
information.
 1.22 09-Aug-2004  lukem Fixes from (or inspired by) OpenBSD:
* Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary.
* Fix SIGURG handler to set an urgflag that's later tested, rather than
abusing setjmp(3)/longjmp(3).
* Use "volatile sig_atomic_t" as the type of variables modified by sig handlers.
* Use sigaction(3) instead of signal(3) to set the signal handlers.
* Only set the main SIGALRM handler once. If we need to change it,
cache the old handler and restore appropriately...
* Remove a bunch of signal races by improving the signal handlers.
* Fix memory leak with 'ESPV ALL'.

My stuff:
* Clean up the debug message in reply(); use vsnprintf(3) instead of vsyslog(3).
* Rework parsing of OOB commands to _not_ use the yacc parser, since the
latter isn't reentrant and the hacks to work around that are ugly.
We now examine urgflag at appropriate locations and call handleoobcmd()
if it's set. Since the only OOB commands we currently implement are
ABOR and STAT, this isn't an issue. (I also can't find the reference in
RFC2228 where MIC, CONF & ENC are OOB-only commands. Go figure.)
I could clean up the is_oob stuff some more, but the remaining stuff
in ftpcmd.y is harmless and it's unnecessary churn right this moment.
 1.21 07-Aug-2003  agc branches: 1.21.2;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.20 30-Jun-2003  tacha Add ftpd_loginx() and ftpd_logwtmpx() and use them to hold wtmpx file
open while a session.

Close bin/21692 by bqt@Krille.Update.UU.SE.
 1.19 23-Feb-2003  lukem rename local copies of login(), logout() and logwtmp() to
ftpd_login(), ftpd_logout() and ftpd_logwtmp() respectively.
(makes utmp support much easier in tnftpd).

per suggestion in mail from Mike Heffner <mheffner@vt.edu>, who
forwarded patch from Michael Ranner <mranner@inode.at>.
 1.18 13-Sep-2002  itojun revert previous. wtmp{,x} entries need not be \0-terminated, so
strncpy is more proper.
 1.17 12-Sep-2002  itojun use strl*, not strn*.
 1.16 04-Feb-2001  christos branches: 1.16.2;
fix redundant declarations.
 1.15 20-May-2000  lukem branches: 1.15.4;
convert to ANSI C as per style guide
 1.14 05-Mar-2000  lukem * don't bother with a version[] string, just use the macro as appropriate
* clean some more of the GLOBAL stuff
* fix unused var if -UHASSETPROCTITLE
 1.13 12-Jan-2000  lukem * add ftpd.conf directive `portrange class min max', which allows specification
of the port range used by passive connections. based on work in [bin/9158]
from Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
* change the way global variables are defined and extern-ed to be more
consistent.
 1.12 25-Aug-1999  christos more kerberos5 fixes
 1.11 24-Feb-1999  explorer Make this build with KERBEROS5 defined.
 1.10 28-Dec-1998  lukem * replace LOG(CMD|BYTES) macros with logcmd(), which is a cleaner
solution with less code replication. use realpath() in logcmd() so
that all logged filenames are sane.
* support `REST STREAM' in `FEAT' reply (from draft-ietf-ftpext-mlst-05)
* in 'HELP', suffix unimplemented commands with `-' instead of `*'; the
former is easier to differentiate from `+'.
* deprecate curdir() now that logcmd() doesn't use it.
* ensure all filename buffers are at least MAXPATHLEN+1 in size.
* move jmp_buf errcatch out of extern.h, removing need to #include <setjmp.h>
in every file.
 1.9 12-Sep-1998  kleink Need <signal.h> for sig_atomic_t.
 1.8 06-Sep-1998  lukem * complete fix for `multiple replies returned for single parse error'
problem; move `hasyyerrored' state flag out of yylex() so that
check_{login,modify} can also set it.
* check result of check_login for PORT command
* set initial timeout before the "setjmp(); for(;;) yyparse()",
otherwise an invalid command after login incorrectly sets the timeout
to 5 minutes (rather than what was set in ftpd.conf)
* replace (char *)0 with NULL
* move yyerror() from ftpd.c to ftpcmd.y
* remove need for -Dunix, by using the version string from ftpd.c
(instead of `BSD-199506')
* move all extern-ed vars into extern.h
 1.7 27-Jul-1998  mycroft const poisoning.
 1.6 01-Apr-1998  kleink Need <time.h> for time() prototype.
 1.5 18-Jun-1997  christos - Pass gcc -Wall
- Fix incorrect const poisoning
- Fix ftpd_popen to dynamically allocate strings to avoid buffer overruns.
 1.4 11-Apr-1995  cgd clean up RCS Id's and a couple of stype nits.
Also, fix bug 947 (reported by Luke Mewburn, extraneous vers.c)
 1.3 29-Jun-1994  deraadt 4.4-lite, plus our local changes
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Mar-1997  cjs Lite-1 Import.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.15.4.2 26-Aug-2004  jmc Pullup rev 1.17-1.22 (requested by he in ticket #158)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.15.4.1 29-Mar-2001  lukem sync ftpd to -current with the following revisions (for lukem/christos):
Makefile 1.43-1.44
cmds.c 1.7-1.8, 1.10-1.12
conf.c 1.35-1.40
extern.h 1.32-1.38
ftpcmd.y 1.53-1.59
ftpd.8 1.58-1.63
ftpd.c 1.102-1.104, 1.106-1.122
ftpd.conf.5 1.12-1.15
ftpusers.5 1.8
logwtmp.c 1.16
popen.c 1.23-1.25
version.h 1.28

a quick summary of user-visible changes;
- fix glob DoS by using GLOB_LIMIT
- add ftpd.conf directives `advertise', `maxfilesize', `sanenames'
- add flags: -P dataport, -X - wuftpd style log entries,
-q/-Q - (en|dis)able pidfiles, -u/-U - (en|dis)able utmp,
-w/-W - (en|dis)able wtmp
 1.16.2.1 31-Aug-2004  jmc Pullup rev 1.17-1.22 (requested by he in ticket #1739)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.21.2.1 12-Aug-2004  jmc Pullup rev 1.22 (requested by lukem in ticket #757)

* Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary.
* Fix SIGURG handler to set an urgflag that's later tested, rather than
abusing setjmp(3)/longjmp(3).
* Use "volatile sig_atomic_t" as the type of variables modified by sig handlers.
* Use sigaction(3) instead of signal(3) to set the signal handlers.
* Only set the main SIGALRM handler once. If we need to change it,
cache the old handler and restore appropriately...
* Remove a bunch of signal races by improving the signal handlers.
* Fix memory leak with 'ESPV ALL'.
* Clean up the debug message in reply(); use vsnprintf(3) instead of vsyslog(3).
* Rework parsing of OOB commands to _not_ use the yacc parser, since the
latter isn't reentrant and the hacks to work around that are ugly.
We now examine urgflag at appropriate locations and call handleoobcmd()
if it's set. Since the only OOB commands we currently implement are
ABOR and STAT, this isn't an issue.
 1.25.60.1 04-Nov-2015  riz Pull up following revision(s) (requested by shm in ticket #944):
libexec/ftpd/logwtmp.c: revision 1.26
libexec/ftpd/logwtmp.c: revision 1.27
Removed unnecessary memset(3) call
Clear utmpx struct before writing it to wtmpx files
 1.25.42.1 15-Nov-2015  bouyer Pull up following revision(s) (requested by shm in ticket #1321):
libexec/ftpd/logwtmp.c: revision 1.26
libexec/ftpd/logwtmp.c: revision 1.27
Removed unnecessary memset(3) call
Clear utmpx struct before writing it to wtmpx files
 1.25.24.1 07-Nov-2015  snj Pull up following revision(s) (requested by shm in ticket #1975):
libexec/ftpd/logwtmp.c: revision 1.26
libexec/ftpd/logwtmp.c: revision 1.27
Removed unnecessary memset(3) call
--
Clear utmpx struct before writing it to wtmpx files
 1.12 11-Dec-2004  christos change _PATH_FOO to _NAME_FOO where FOO is not a path. I'll discuss with
luke what is the best way to fix this.
 1.11 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.10 06-Mar-2000  lukem branches: 1.10.4; 1.10.6;
only define _DEFAULT_CONFDIR if not set. (allows compile-time override)
 1.9 08-Jan-2000  lukem features:
* add connection limits (`limit' keyword in ftpd.conf)
* move initialisation of curclass from parse_conf() to new function
init_curclass()
* implement count_users(), which determines the number of users in a given
class. a file - /var/run/ftpd.pids-<class> - is used to store a list
of pids in use (effectively an array of pid_t's), and its size is reduced
as necessary.
* new % modifiers in format_file:
%c class
%M maximum connection count
%N current connection count
* always end_login()s, even for refused connections

bugs fixed:
* remove \n from %T output
* fix some inconsistencies in the man pages
* ensure that both `ftp' *and* `anonymous' are allowed in ftpusers.
(this was accidently broken in a recent commit to be ``or'' not ``and'')
* use MAXPATHLEN not MAXPATHLEN+1
* crank copyright date on modified files
* crank version
 1.8 08-Jun-1998  lukem support displaying the stderr output from a LIST or a conversion to
the user at the end of a transfer.
this generates a file in /tmp, so anonymous requires a
writable ~ftp/tmp, which you may not want to do (because it may
allow people to unwanted upload files).

XXX: a better method of storing the stderr output would be nice, but
is a lot more effort to implement. this feature can at least be
used temporarily whilst debugging why an ftp conversion doesn't
work.
 1.7 23-Sep-1997  lukem implement '-c confdir', which allows the specification of an alternate
directory to look for the various configuration files, overriding /etc.
From Matthias Scheler <tron@lyssa.owl.de> in [bin/4133]
 1.6 14-Jun-1997  lukem * implement /etc/ftpd.conf, which adds support for the following features,
controllable on a per class (which is one of: real, chroot, guest,
all or none) basis:
* on-the-fly execution of a command to build the file (a ``conversion''),
providing support for "get dirname.tar" and the like.
* displaying the contents of a file when a directory is entered
for the first time.
* maximum value for timeout (replaces -T).
* control usage of CHMOD, DELE, MKD, RMD, UMASK; replacing -DINSECURE_GUEST.
* notifying the user of the existance of a files matching a glob
pattern when a directory is entered for the first time.
* default value for timeout (replaces -t).
* default umask (replaces -DGUEST_CMASK and -u).
The conversion, display, and notify functionality was based on code by
Simon Burge <simonb@telstra.com.au>.
* clean up and re-order parts of the man page into subsections.
* STAT displays the settings defined for the class of the current user.
* bump version from 6.00 to 7.00, because of ftpd.conf.
* deprecate -DGUEST_CMASK and -DINSECURE_GUEST in the Makefile, and
-t, -T and -u, as ftpd.conf allows finer control of these.
* add "nostderr" argument to ftpd_popen(), because you don't want the
stderr stream mixing with the stdout stream during a conversion,
as this can corrupt the stream.
 1.5 11-Apr-1995  cgd clean up RCS Id's and a couple of stype nits.
Also, fix bug 947 (reported by Luke Mewburn, extraneous vers.c)
 1.4 29-Jun-1994  deraadt 4.4-lite, plus our local changes
 1.3 06-Apr-1994  cgd Jarle.F.Greipsland@idt.unit.no's changes to allow for password-protected
chrooted ftp logins.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Mar-1997  cjs 4.4BSD-lite2 import.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.10.6.1 31-Aug-2004  jmc Pullup rev 1.11 (requested by he in ticket #1739)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.10.4.1 26-Aug-2004  jmc Pullup rev 1.11 (requested by he in ticket #158)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.4 04-Jul-2020  lukem add missing RCSIDs

(copyrights could be added too - that's up to christos@)
 1.3 15-Jun-2020  christos Rename blacklist -> blocklist
 1.2 29-Jan-2019  lukem clarify the fd used for blacklisting.

Use STDIN_FILENO instead of 0 as the fd to blacklist_r(),
since we use the former in ftpd.c
 1.1 25-Jan-2015  christos branches: 1.1.2; 1.1.18;
blacklist hooks
 1.1.18.1 10-Jun-2019  christos Sync with HEAD
 1.1.2.2 30-Apr-2015  riz Pull up blacklistd(8), requested by christos in ticket #711:
crypto/external/bsd/openssh/dist/moduli-gen/Makefile up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli-gen.sh up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.1024 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.1536 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.2048 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.3072 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.4096 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.6144 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.7680 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.8192 up to 1.1.1.1
crypto/external/bsd/openssh/dist/bcrypt_pbkdf.c up to 1.2
crypto/external/bsd/openssh/dist/kexc25519.c up to 1.3
crypto/external/bsd/openssh/dist/smult_curve25519_ref.c up to 1.3
crypto/external/bsd/openssh/dist/bitmap.c up to 1.2 plus patch
crypto/external/bsd/openssh/dist/PROTOCOL.chacha20poly1305 up to 1.1.1.1
crypto/external/bsd/openssh/dist/PROTOCOL.key up to 1.1.1.1
crypto/external/bsd/openssh/dist/blf.h up to 1.1
crypto/external/bsd/openssh/dist/blocks.c up to 1.3
crypto/external/bsd/openssh/dist/blowfish.c up to 1.2
crypto/external/bsd/openssh/dist/chacha.c up to 1.3
crypto/external/bsd/openssh/dist/chacha.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/cipher-aesctr.c up to 1.1.1.2
crypto/external/bsd/openssh/dist/cipher-aesctr.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/cipher-chachapoly.c up to 1.3
crypto/external/bsd/openssh/dist/cipher-chachapoly.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/crypto_api.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/digest-libc.c up to 1.3
crypto/external/bsd/openssh/dist/digest-openssl.c up to 1.3
crypto/external/bsd/openssh/dist/digest.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/ed25519.c up to 1.3
crypto/external/bsd/openssh/dist/fe25519.c up to 1.3
crypto/external/bsd/openssh/dist/fe25519.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/ge25519.c up to 1.3
crypto/external/bsd/openssh/dist/ge25519.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/ge25519_base.data up to 1.1.1.1
crypto/external/bsd/openssh/dist/hash.c up to 1.3
crypto/external/bsd/openssh/dist/hmac.c up to 1.3
crypto/external/bsd/openssh/dist/hmac.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/kexc25519c.c up to 1.3
crypto/external/bsd/openssh/dist/kexc25519s.c up to 1.3
crypto/external/bsd/openssh/dist/poly1305.c up to 1.3
crypto/external/bsd/openssh/dist/poly1305.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/rijndael.c up to 1.1.1.2
crypto/external/bsd/openssh/dist/rijndael.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/sc25519.c up to 1.3
crypto/external/bsd/openssh/dist/sc25519.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/ssh-ed25519.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf-getput-basic.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf-getput-crypto.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf-misc.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf.h up to 1.4
crypto/external/bsd/openssh/dist/ssherr.c up to 1.3
crypto/external/bsd/openssh/dist/ssherr.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/sshkey.c up to 1.3
crypto/external/bsd/openssh/dist/sshkey.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/verify.c up to 1.3
crypto/external/bsd/openssh/dist/opacket.c up to 1.2
crypto/external/bsd/openssh/dist/umac128.c up to 1.1
crypto/external/bsd/openssh/dist/pfilter.c up to 1.2
crypto/external/bsd/openssh/dist/pfilter.h up to 1.1
crypto/external/bsd/openssh/dist/bitmap.h up to 1.2
crypto/external/bsd/openssh/dist/opacket.h up to 1.2
crypto/external/bsd/openssh/dist/ssh_api.c up to 1.2
crypto/external/bsd/openssh/dist/ssh_api.h up to 1.2
crypto/external/bsd/openssh/dist/auth2-jpake.c delete
crypto/external/bsd/openssh/dist/compress.c delete
crypto/external/bsd/openssh/dist/compress.h delete
crypto/external/bsd/openssh/dist/jpake.c delete
crypto/external/bsd/openssh/dist/jpake.h delete
crypto/external/bsd/openssh/dist/schnorr.c delete
crypto/external/bsd/openssh/dist/schnorr.h delete
crypto/external/bsd/openssh/dist/strtonum.c 1.1
crypto/external/bsd/openssh/Makefile.inc up to 1.8
crypto/external/bsd/openssh/bin/Makefile.inc up to 1.3
crypto/external/bsd/openssh/bin/ssh-keyscan/Makefile up to 1.2
crypto/external/bsd/openssh/bin/sshd/Makefile up to 1.12
crypto/external/bsd/openssh/dist/PROTOCOL up to 1.5
crypto/external/bsd/openssh/dist/PROTOCOL.krl up to 1.1.1.2
crypto/external/bsd/openssh/dist/addrmatch.c up to 1.8
crypto/external/bsd/openssh/dist/atomicio.c up to 1.6
crypto/external/bsd/openssh/dist/auth-bsdauth.c up to 1.4
crypto/external/bsd/openssh/dist/auth-chall.c up to 1.6
crypto/external/bsd/openssh/dist/auth-krb5.c up to 1.7
crypto/external/bsd/openssh/dist/auth-options.c up to 1.9
crypto/external/bsd/openssh/dist/auth-options.h up to 1.6
crypto/external/bsd/openssh/dist/auth-passwd.c up to 1.4
crypto/external/bsd/openssh/dist/auth-rh-rsa.c up to 1.6
crypto/external/bsd/openssh/dist/auth-rhosts.c up to 1.5
crypto/external/bsd/openssh/dist/auth-rsa.c up to 1.10
crypto/external/bsd/openssh/dist/auth.c up to 1.12
crypto/external/bsd/openssh/dist/auth.h up to 1.10
crypto/external/bsd/openssh/dist/auth1.c up to 1.11
crypto/external/bsd/openssh/dist/auth2-chall.c up to 1.7
crypto/external/bsd/openssh/dist/auth2-gss.c up to 1.8
crypto/external/bsd/openssh/dist/auth2-hostbased.c up to 1.7
crypto/external/bsd/openssh/dist/auth2-kbdint.c up to 1.5
crypto/external/bsd/openssh/dist/auth2-krb5.c up to 1.4
crypto/external/bsd/openssh/dist/auth2-none.c up to 1.5
crypto/external/bsd/openssh/dist/auth2-passwd.c up to 1.5
crypto/external/bsd/openssh/dist/auth2-pubkey.c up to 1.11
crypto/external/bsd/openssh/dist/auth2.c up to 1.11
crypto/external/bsd/openssh/dist/authfd.c up to 1.8
crypto/external/bsd/openssh/dist/authfd.h up to 1.5
crypto/external/bsd/openssh/dist/authfile.c up to 1.10
crypto/external/bsd/openssh/dist/authfile.h up to 1.6
crypto/external/bsd/openssh/dist/bufaux.c up to 1.7
crypto/external/bsd/openssh/dist/bufbn.c up to 1.5
crypto/external/bsd/openssh/dist/bufec.c up to 1.5
crypto/external/bsd/openssh/dist/buffer.c up to 1.6
crypto/external/bsd/openssh/dist/buffer.h up to 1.7
crypto/external/bsd/openssh/dist/canohost.c up to 1.8
crypto/external/bsd/openssh/dist/channels.c up to 1.13
crypto/external/bsd/openssh/dist/channels.h up to 1.10
crypto/external/bsd/openssh/dist/cipher-3des1.c up to 1.7
crypto/external/bsd/openssh/dist/cipher-bf1.c up to 1.6
crypto/external/bsd/openssh/dist/cipher.c up to 1.7
crypto/external/bsd/openssh/dist/cipher.h up to 1.7
crypto/external/bsd/openssh/dist/clientloop.c up to 1.13
crypto/external/bsd/openssh/dist/compat.c up to 1.9
crypto/external/bsd/openssh/dist/compat.h up to 1.6
crypto/external/bsd/openssh/dist/deattack.c up to 1.4
crypto/external/bsd/openssh/dist/deattack.h up to 1.4
crypto/external/bsd/openssh/dist/dh.c up to 1.8
crypto/external/bsd/openssh/dist/dh.h up to 1.4
crypto/external/bsd/openssh/dist/dispatch.c up to 1.5
crypto/external/bsd/openssh/dist/dispatch.h up to 1.4
crypto/external/bsd/openssh/dist/dns.c up to 1.11
crypto/external/bsd/openssh/dist/dns.h up to 1.6
crypto/external/bsd/openssh/dist/groupaccess.c up to 1.5
crypto/external/bsd/openssh/dist/gss-genr.c up to 1.7
crypto/external/bsd/openssh/dist/gss-serv-krb5.c up to 1.8
crypto/external/bsd/openssh/dist/gss-serv.c up to 1.7
crypto/external/bsd/openssh/dist/hostfile.c up to 1.7
crypto/external/bsd/openssh/dist/hostfile.h up to 1.7
crypto/external/bsd/openssh/dist/includes.h up to 1.4
crypto/external/bsd/openssh/dist/kex.c up to 1.10
crypto/external/bsd/openssh/dist/kex.h up to 1.9
crypto/external/bsd/openssh/dist/kexdh.c up to 1.4
crypto/external/bsd/openssh/dist/kexdhc.c up to 1.6
crypto/external/bsd/openssh/dist/kexdhs.c up to 1.8
crypto/external/bsd/openssh/dist/kexecdh.c up to 1.5
crypto/external/bsd/openssh/dist/kexecdhc.c up to 1.5
crypto/external/bsd/openssh/dist/kexecdhs.c up to 1.5
crypto/external/bsd/openssh/dist/kexgex.c up to 1.4
crypto/external/bsd/openssh/dist/kexgexc.c up to 1.6
crypto/external/bsd/openssh/dist/kexgexs.c up to 1.8
crypto/external/bsd/openssh/dist/key.c up to 1.16
crypto/external/bsd/openssh/dist/key.h up to 1.9
crypto/external/bsd/openssh/dist/krl.c up to 1.5
crypto/external/bsd/openssh/dist/krl.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/mac.c up to 1.11
crypto/external/bsd/openssh/dist/mac.h up to 1.5
crypto/external/bsd/openssh/dist/match.c up to 1.5
crypto/external/bsd/openssh/dist/misc.c up to 1.10
crypto/external/bsd/openssh/dist/misc.h up to 1.9 plus patch
crypto/external/bsd/openssh/dist/moduli.c up to 1.8
crypto/external/bsd/openssh/dist/monitor.c up to 1.14
crypto/external/bsd/openssh/dist/monitor.h up to 1.7
crypto/external/bsd/openssh/dist/monitor_fdpass.c up to 1.5
crypto/external/bsd/openssh/dist/monitor_mm.c up to 1.6
crypto/external/bsd/openssh/dist/monitor_mm.h up to 1.4
crypto/external/bsd/openssh/dist/monitor_wrap.c up to 1.11
crypto/external/bsd/openssh/dist/monitor_wrap.h up to 1.8
crypto/external/bsd/openssh/dist/msg.c up to 1.4
crypto/external/bsd/openssh/dist/msg.h up to 1.4
crypto/external/bsd/openssh/dist/mux.c up to 1.11
crypto/external/bsd/openssh/dist/myproposal.h up to 1.10
crypto/external/bsd/openssh/dist/namespace.h up to 1.5
crypto/external/bsd/openssh/dist/packet.c up to 1.18
crypto/external/bsd/openssh/dist/packet.h up to 1.11
crypto/external/bsd/openssh/dist/pathnames.h up to 1.9
crypto/external/bsd/openssh/dist/pkcs11.h up to 1.4
crypto/external/bsd/openssh/dist/progressmeter.c up to 1.7
crypto/external/bsd/openssh/dist/progressmeter.h up to 1.4
crypto/external/bsd/openssh/dist/reallocarray.c new
crypto/external/bsd/openssh/dist/readconf.c up to 1.13
crypto/external/bsd/openssh/dist/readconf.h up to 1.12
crypto/external/bsd/openssh/dist/readpass.c up to 1.6
crypto/external/bsd/openssh/dist/roaming_client.c up to 1.7
crypto/external/bsd/openssh/dist/roaming_common.c up to 1.9
crypto/external/bsd/openssh/dist/roaming_dummy.c up to 1.4
crypto/external/bsd/openssh/dist/rsa.c up to 1.5
crypto/external/bsd/openssh/dist/rsa.h up to 1.4
crypto/external/bsd/openssh/dist/sandbox-systrace.c up to 1.1.1.5
crypto/external/bsd/openssh/dist/scp.1 up to 1.9
crypto/external/bsd/openssh/dist/scp.c up to 1.11
crypto/external/bsd/openssh/dist/servconf.c up to 1.17
crypto/external/bsd/openssh/dist/servconf.h up to 1.11
crypto/external/bsd/openssh/dist/serverloop.c up to 1.12
crypto/external/bsd/openssh/dist/session.c up to 1.14
crypto/external/bsd/openssh/dist/session.h up to 1.4
crypto/external/bsd/openssh/dist/sftp-client.c up to 1.13
crypto/external/bsd/openssh/dist/sftp-client.h up to 1.7
crypto/external/bsd/openssh/dist/sftp-common.c up to 1.7
crypto/external/bsd/openssh/dist/sftp-common.h up to 1.5
crypto/external/bsd/openssh/dist/sftp-glob.c up to 1.8
crypto/external/bsd/openssh/dist/sftp-server.8 up to 1.9
crypto/external/bsd/openssh/dist/sftp-server.c up to 1.11
crypto/external/bsd/openssh/dist/sftp.1 up to 1.11
crypto/external/bsd/openssh/dist/sftp.c up to 1.15
crypto/external/bsd/openssh/dist/ssh-add.1 up to 1.9
crypto/external/bsd/openssh/dist/ssh-add.c up to 1.10
crypto/external/bsd/openssh/dist/ssh-agent.1 up to 1.8
crypto/external/bsd/openssh/dist/ssh-agent.c up to 1.14
crypto/external/bsd/openssh/dist/ssh-dss.c up to 1.7
crypto/external/bsd/openssh/dist/ssh-ecdsa.c up to 1.6
crypto/external/bsd/openssh/dist/ssh-gss.h up to 1.5
crypto/external/bsd/openssh/dist/ssh-keygen.1 up to 1.13
crypto/external/bsd/openssh/dist/ssh-keygen.c up to 1.16
crypto/external/bsd/openssh/dist/ssh-keyscan.1 up to 1.10
crypto/external/bsd/openssh/dist/ssh-keyscan.c up to 1.13
crypto/external/bsd/openssh/dist/ssh-keysign.8 up to 1.9
crypto/external/bsd/openssh/dist/ssh-keysign.c up to 1.8
crypto/external/bsd/openssh/dist/ssh-pkcs11-client.c up to 1.6
crypto/external/bsd/openssh/dist/ssh-pkcs11-helper.c up to 1.8
crypto/external/bsd/openssh/dist/ssh-pkcs11.c up to 1.7
crypto/external/bsd/openssh/dist/ssh-pkcs11.h up to 1.4
crypto/external/bsd/openssh/dist/ssh-rsa.c up to 1.7
crypto/external/bsd/openssh/dist/ssh.1 up to 1.14
crypto/external/bsd/openssh/dist/ssh.c up to 1.16
crypto/external/bsd/openssh/dist/ssh2.h up to 1.6
crypto/external/bsd/openssh/dist/ssh_config up to 1.8
crypto/external/bsd/openssh/dist/ssh_config.5 up to 1.13
crypto/external/bsd/openssh/dist/sshconnect.c up to 1.11
crypto/external/bsd/openssh/dist/sshconnect.h up to 1.6
crypto/external/bsd/openssh/dist/sshconnect1.c up to 1.6
crypto/external/bsd/openssh/dist/sshconnect2.c up to 1.19
crypto/external/bsd/openssh/dist/sshd.8 up to 1.13
crypto/external/bsd/openssh/dist/sshd.c up to 1.18
crypto/external/bsd/openssh/dist/sshd_config up to 1.13
crypto/external/bsd/openssh/dist/sshd_config.5 up to 1.17
crypto/external/bsd/openssh/dist/sshlogin.c up to 1.6
crypto/external/bsd/openssh/dist/sshpty.c up to 1.4
crypto/external/bsd/openssh/dist/uidswap.c up to 1.4
crypto/external/bsd/openssh/dist/umac.c up to 1.9
crypto/external/bsd/openssh/dist/version.h up to 1.14
crypto/external/bsd/openssh/dist/xmalloc.c up to 1.5
crypto/external/bsd/openssh/lib/Makefile up to 1.17 plus patch
crypto/external/bsd/openssh/lib/shlib_version up to 1.13
distrib/sets/lists/base/ad.aarch64 patch
distrib/sets/lists/base/ad.arm patch
distrib/sets/lists/base/ad.mips patch
distrib/sets/lists/base/ad.powerpc patch
distrib/sets/lists/base/md.amd64 patch
distrib/sets/lists/base/md.sparc64 patch
distrib/sets/lists/base/mi patch
distrib/sets/lists/base/shl.mi patch
distrib/sets/lists/comp/ad.aarch64 patch
distrib/sets/lists/comp/ad.arm patch
distrib/sets/lists/comp/ad.mips patch
distrib/sets/lists/comp/ad.powerpc patch
distrib/sets/lists/comp/md.amd64 patch
distrib/sets/lists/comp/md.sparc64 patch
distrib/sets/lists/comp/mi patch
distrib/sets/lists/comp/shl.mi patch
distrib/sets/lists/debug/ad.aarch64 patch
distrib/sets/lists/debug/ad.arm patch
distrib/sets/lists/debug/ad.mips patch
distrib/sets/lists/debug/ad.powerpc patch
distrib/sets/lists/debug/md.amd64 patch
distrib/sets/lists/debug/md.sparc64 patch
distrib/sets/lists/debug/shl.mi patch
distrib/sets/lists/etc/mi patch
distrib/sets/lists/man/mi patch
etc/defaults/rc.conf 1.130
etc/mtree/NetBSD.dist.base 1.142
external/bsd/Makefile up to 1.48
external/bsd/blacklist/bin/Makefile up to 1.11 plus patch
external/bsd/blacklist/bin/blacklistctl.8 up to 1.6
external/bsd/blacklist/bin/blacklistctl.c up to 1.17
external/bsd/blacklist/bin/blacklistd.8 up to 1.10
external/bsd/blacklist/bin/blacklistd.c up to 1.32
external/bsd/blacklist/bin/blacklistd.conf.5 up to 1.2
external/bsd/blacklist/bin/conf.c up to 1.18
external/bsd/blacklist/bin/conf.h up to 1.6
external/bsd/blacklist/bin/internal.c up to 1.5
external/bsd/blacklist/bin/internal.h up to 1.12
external/bsd/blacklist/bin/run.c up to 1.12
external/bsd/blacklist/bin/run.h up to 1.5
external/bsd/blacklist/bin/state.c up to 1.15
external/bsd/blacklist/bin/state.h up to 1.5
external/bsd/blacklist/bin/support.c up to 1.6
external/bsd/blacklist/bin/support.h up to 1.5
external/bsd/blacklist/etc/rc.d/Makefile up to 1.1
external/bsd/blacklist/etc/rc.d/blacklistd up to 1.1
external/bsd/blacklist/etc/Makefile up to 1.3
external/bsd/blacklist/etc/blacklistd.conf up to 1.3
external/bsd/blacklist/etc/npf.conf up to 1.1
external/bsd/blacklist/Makefile up to 1.2
external/bsd/blacklist/Makefile.inc up to 1.3
external/bsd/blacklist/README up to 1.7
external/bsd/blacklist/TODO up to 1.7
external/bsd/blacklist/diff/ftpd.diff up to 1.1
external/bsd/blacklist/diff/named.diff up to 1.6
external/bsd/blacklist/diff/ssh.diff up to 1.6
external/bsd/blacklist/include/Makefile up to 1.1
external/bsd/blacklist/include/bl.h up to 1.12
external/bsd/blacklist/include/blacklist.h up to 1.3
external/bsd/blacklist/include/config.h new
external/bsd/blacklist/lib/Makefile up to 1.3
external/bsd/blacklist/lib/bl.c up to 1.24
external/bsd/blacklist/lib/blacklist.c up to 1.5
external/bsd/blacklist/lib/libblacklist.3 up to 1.3
external/bsd/blacklist/lib/shlib_version up to 1.1
external/bsd/blacklist/libexec/Makefile up to 1.1
external/bsd/blacklist/libexec/blacklistd-helper up to 1.4
external/bsd/blacklist/port/m4/.cvsignore up to 1.1
external/bsd/blacklist/port/Makefile.am up to 1.4
external/bsd/blacklist/port/_strtoi.h up to 1.1
external/bsd/blacklist/port/clock_gettime.c up to 1.2
external/bsd/blacklist/port/configure.ac up to 1.7
external/bsd/blacklist/port/fgetln.c up to 1.1
external/bsd/blacklist/port/fparseln.c up to 1.1
external/bsd/blacklist/port/getprogname.c up to 1.4
external/bsd/blacklist/port/pidfile.c up to 1.1
external/bsd/blacklist/port/popenve.c up to 1.2
external/bsd/blacklist/port/port.h up to 1.6
external/bsd/blacklist/port/sockaddr_snprintf.c up to 1.9
external/bsd/blacklist/port/strlcat.c up to 1.2
external/bsd/blacklist/port/strlcpy.c up to 1.2
external/bsd/blacklist/port/strtoi.c up to 1.3
external/bsd/blacklist/test/Makefile up to 1.2
external/bsd/blacklist/test/cltest.c up to 1.6
external/bsd/blacklist/test/srvtest.c up to 1.9
lib/libpam/modules/pam_ssh/pam_ssh.c up to 1.23
libexec/ftpd/pfilter.c up to 1.1
libexec/ftpd/pfilter.h up to 1.1
libexec/ftpd/Makefile up to 1.64
libexec/ftpd/ftpd.c up to 1.201

Add blacklistd(8), a daemon to block and release network ports
on demand to mitigate abuse, and related changes to system daemons
to support it.
[christos, ticket #711]
 1.1.2.1 25-Jan-2015  riz file pfilter.c was added on branch netbsd-7 on 2015-04-30 06:07:34 +0000
 1.2 04-Jul-2020  lukem add missing RCSIDs

(copyrights could be added too - that's up to christos@)
 1.1 25-Jan-2015  christos branches: 1.1.2;
blacklist hooks
 1.1.2.2 30-Apr-2015  riz Pull up blacklistd(8), requested by christos in ticket #711:
crypto/external/bsd/openssh/dist/moduli-gen/Makefile up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli-gen.sh up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.1024 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.1536 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.2048 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.3072 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.4096 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.6144 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.7680 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.8192 up to 1.1.1.1
crypto/external/bsd/openssh/dist/bcrypt_pbkdf.c up to 1.2
crypto/external/bsd/openssh/dist/kexc25519.c up to 1.3
crypto/external/bsd/openssh/dist/smult_curve25519_ref.c up to 1.3
crypto/external/bsd/openssh/dist/bitmap.c up to 1.2 plus patch
crypto/external/bsd/openssh/dist/PROTOCOL.chacha20poly1305 up to 1.1.1.1
crypto/external/bsd/openssh/dist/PROTOCOL.key up to 1.1.1.1
crypto/external/bsd/openssh/dist/blf.h up to 1.1
crypto/external/bsd/openssh/dist/blocks.c up to 1.3
crypto/external/bsd/openssh/dist/blowfish.c up to 1.2
crypto/external/bsd/openssh/dist/chacha.c up to 1.3
crypto/external/bsd/openssh/dist/chacha.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/cipher-aesctr.c up to 1.1.1.2
crypto/external/bsd/openssh/dist/cipher-aesctr.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/cipher-chachapoly.c up to 1.3
crypto/external/bsd/openssh/dist/cipher-chachapoly.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/crypto_api.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/digest-libc.c up to 1.3
crypto/external/bsd/openssh/dist/digest-openssl.c up to 1.3
crypto/external/bsd/openssh/dist/digest.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/ed25519.c up to 1.3
crypto/external/bsd/openssh/dist/fe25519.c up to 1.3
crypto/external/bsd/openssh/dist/fe25519.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/ge25519.c up to 1.3
crypto/external/bsd/openssh/dist/ge25519.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/ge25519_base.data up to 1.1.1.1
crypto/external/bsd/openssh/dist/hash.c up to 1.3
crypto/external/bsd/openssh/dist/hmac.c up to 1.3
crypto/external/bsd/openssh/dist/hmac.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/kexc25519c.c up to 1.3
crypto/external/bsd/openssh/dist/kexc25519s.c up to 1.3
crypto/external/bsd/openssh/dist/poly1305.c up to 1.3
crypto/external/bsd/openssh/dist/poly1305.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/rijndael.c up to 1.1.1.2
crypto/external/bsd/openssh/dist/rijndael.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/sc25519.c up to 1.3
crypto/external/bsd/openssh/dist/sc25519.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/ssh-ed25519.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf-getput-basic.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf-getput-crypto.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf-misc.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf.h up to 1.4
crypto/external/bsd/openssh/dist/ssherr.c up to 1.3
crypto/external/bsd/openssh/dist/ssherr.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/sshkey.c up to 1.3
crypto/external/bsd/openssh/dist/sshkey.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/verify.c up to 1.3
crypto/external/bsd/openssh/dist/opacket.c up to 1.2
crypto/external/bsd/openssh/dist/umac128.c up to 1.1
crypto/external/bsd/openssh/dist/pfilter.c up to 1.2
crypto/external/bsd/openssh/dist/pfilter.h up to 1.1
crypto/external/bsd/openssh/dist/bitmap.h up to 1.2
crypto/external/bsd/openssh/dist/opacket.h up to 1.2
crypto/external/bsd/openssh/dist/ssh_api.c up to 1.2
crypto/external/bsd/openssh/dist/ssh_api.h up to 1.2
crypto/external/bsd/openssh/dist/auth2-jpake.c delete
crypto/external/bsd/openssh/dist/compress.c delete
crypto/external/bsd/openssh/dist/compress.h delete
crypto/external/bsd/openssh/dist/jpake.c delete
crypto/external/bsd/openssh/dist/jpake.h delete
crypto/external/bsd/openssh/dist/schnorr.c delete
crypto/external/bsd/openssh/dist/schnorr.h delete
crypto/external/bsd/openssh/dist/strtonum.c 1.1
crypto/external/bsd/openssh/Makefile.inc up to 1.8
crypto/external/bsd/openssh/bin/Makefile.inc up to 1.3
crypto/external/bsd/openssh/bin/ssh-keyscan/Makefile up to 1.2
crypto/external/bsd/openssh/bin/sshd/Makefile up to 1.12
crypto/external/bsd/openssh/dist/PROTOCOL up to 1.5
crypto/external/bsd/openssh/dist/PROTOCOL.krl up to 1.1.1.2
crypto/external/bsd/openssh/dist/addrmatch.c up to 1.8
crypto/external/bsd/openssh/dist/atomicio.c up to 1.6
crypto/external/bsd/openssh/dist/auth-bsdauth.c up to 1.4
crypto/external/bsd/openssh/dist/auth-chall.c up to 1.6
crypto/external/bsd/openssh/dist/auth-krb5.c up to 1.7
crypto/external/bsd/openssh/dist/auth-options.c up to 1.9
crypto/external/bsd/openssh/dist/auth-options.h up to 1.6
crypto/external/bsd/openssh/dist/auth-passwd.c up to 1.4
crypto/external/bsd/openssh/dist/auth-rh-rsa.c up to 1.6
crypto/external/bsd/openssh/dist/auth-rhosts.c up to 1.5
crypto/external/bsd/openssh/dist/auth-rsa.c up to 1.10
crypto/external/bsd/openssh/dist/auth.c up to 1.12
crypto/external/bsd/openssh/dist/auth.h up to 1.10
crypto/external/bsd/openssh/dist/auth1.c up to 1.11
crypto/external/bsd/openssh/dist/auth2-chall.c up to 1.7
crypto/external/bsd/openssh/dist/auth2-gss.c up to 1.8
crypto/external/bsd/openssh/dist/auth2-hostbased.c up to 1.7
crypto/external/bsd/openssh/dist/auth2-kbdint.c up to 1.5
crypto/external/bsd/openssh/dist/auth2-krb5.c up to 1.4
crypto/external/bsd/openssh/dist/auth2-none.c up to 1.5
crypto/external/bsd/openssh/dist/auth2-passwd.c up to 1.5
crypto/external/bsd/openssh/dist/auth2-pubkey.c up to 1.11
crypto/external/bsd/openssh/dist/auth2.c up to 1.11
crypto/external/bsd/openssh/dist/authfd.c up to 1.8
crypto/external/bsd/openssh/dist/authfd.h up to 1.5
crypto/external/bsd/openssh/dist/authfile.c up to 1.10
crypto/external/bsd/openssh/dist/authfile.h up to 1.6
crypto/external/bsd/openssh/dist/bufaux.c up to 1.7
crypto/external/bsd/openssh/dist/bufbn.c up to 1.5
crypto/external/bsd/openssh/dist/bufec.c up to 1.5
crypto/external/bsd/openssh/dist/buffer.c up to 1.6
crypto/external/bsd/openssh/dist/buffer.h up to 1.7
crypto/external/bsd/openssh/dist/canohost.c up to 1.8
crypto/external/bsd/openssh/dist/channels.c up to 1.13
crypto/external/bsd/openssh/dist/channels.h up to 1.10
crypto/external/bsd/openssh/dist/cipher-3des1.c up to 1.7
crypto/external/bsd/openssh/dist/cipher-bf1.c up to 1.6
crypto/external/bsd/openssh/dist/cipher.c up to 1.7
crypto/external/bsd/openssh/dist/cipher.h up to 1.7
crypto/external/bsd/openssh/dist/clientloop.c up to 1.13
crypto/external/bsd/openssh/dist/compat.c up to 1.9
crypto/external/bsd/openssh/dist/compat.h up to 1.6
crypto/external/bsd/openssh/dist/deattack.c up to 1.4
crypto/external/bsd/openssh/dist/deattack.h up to 1.4
crypto/external/bsd/openssh/dist/dh.c up to 1.8
crypto/external/bsd/openssh/dist/dh.h up to 1.4
crypto/external/bsd/openssh/dist/dispatch.c up to 1.5
crypto/external/bsd/openssh/dist/dispatch.h up to 1.4
crypto/external/bsd/openssh/dist/dns.c up to 1.11
crypto/external/bsd/openssh/dist/dns.h up to 1.6
crypto/external/bsd/openssh/dist/groupaccess.c up to 1.5
crypto/external/bsd/openssh/dist/gss-genr.c up to 1.7
crypto/external/bsd/openssh/dist/gss-serv-krb5.c up to 1.8
crypto/external/bsd/openssh/dist/gss-serv.c up to 1.7
crypto/external/bsd/openssh/dist/hostfile.c up to 1.7
crypto/external/bsd/openssh/dist/hostfile.h up to 1.7
crypto/external/bsd/openssh/dist/includes.h up to 1.4
crypto/external/bsd/openssh/dist/kex.c up to 1.10
crypto/external/bsd/openssh/dist/kex.h up to 1.9
crypto/external/bsd/openssh/dist/kexdh.c up to 1.4
crypto/external/bsd/openssh/dist/kexdhc.c up to 1.6
crypto/external/bsd/openssh/dist/kexdhs.c up to 1.8
crypto/external/bsd/openssh/dist/kexecdh.c up to 1.5
crypto/external/bsd/openssh/dist/kexecdhc.c up to 1.5
crypto/external/bsd/openssh/dist/kexecdhs.c up to 1.5
crypto/external/bsd/openssh/dist/kexgex.c up to 1.4
crypto/external/bsd/openssh/dist/kexgexc.c up to 1.6
crypto/external/bsd/openssh/dist/kexgexs.c up to 1.8
crypto/external/bsd/openssh/dist/key.c up to 1.16
crypto/external/bsd/openssh/dist/key.h up to 1.9
crypto/external/bsd/openssh/dist/krl.c up to 1.5
crypto/external/bsd/openssh/dist/krl.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/mac.c up to 1.11
crypto/external/bsd/openssh/dist/mac.h up to 1.5
crypto/external/bsd/openssh/dist/match.c up to 1.5
crypto/external/bsd/openssh/dist/misc.c up to 1.10
crypto/external/bsd/openssh/dist/misc.h up to 1.9 plus patch
crypto/external/bsd/openssh/dist/moduli.c up to 1.8
crypto/external/bsd/openssh/dist/monitor.c up to 1.14
crypto/external/bsd/openssh/dist/monitor.h up to 1.7
crypto/external/bsd/openssh/dist/monitor_fdpass.c up to 1.5
crypto/external/bsd/openssh/dist/monitor_mm.c up to 1.6
crypto/external/bsd/openssh/dist/monitor_mm.h up to 1.4
crypto/external/bsd/openssh/dist/monitor_wrap.c up to 1.11
crypto/external/bsd/openssh/dist/monitor_wrap.h up to 1.8
crypto/external/bsd/openssh/dist/msg.c up to 1.4
crypto/external/bsd/openssh/dist/msg.h up to 1.4
crypto/external/bsd/openssh/dist/mux.c up to 1.11
crypto/external/bsd/openssh/dist/myproposal.h up to 1.10
crypto/external/bsd/openssh/dist/namespace.h up to 1.5
crypto/external/bsd/openssh/dist/packet.c up to 1.18
crypto/external/bsd/openssh/dist/packet.h up to 1.11
crypto/external/bsd/openssh/dist/pathnames.h up to 1.9
crypto/external/bsd/openssh/dist/pkcs11.h up to 1.4
crypto/external/bsd/openssh/dist/progressmeter.c up to 1.7
crypto/external/bsd/openssh/dist/progressmeter.h up to 1.4
crypto/external/bsd/openssh/dist/reallocarray.c new
crypto/external/bsd/openssh/dist/readconf.c up to 1.13
crypto/external/bsd/openssh/dist/readconf.h up to 1.12
crypto/external/bsd/openssh/dist/readpass.c up to 1.6
crypto/external/bsd/openssh/dist/roaming_client.c up to 1.7
crypto/external/bsd/openssh/dist/roaming_common.c up to 1.9
crypto/external/bsd/openssh/dist/roaming_dummy.c up to 1.4
crypto/external/bsd/openssh/dist/rsa.c up to 1.5
crypto/external/bsd/openssh/dist/rsa.h up to 1.4
crypto/external/bsd/openssh/dist/sandbox-systrace.c up to 1.1.1.5
crypto/external/bsd/openssh/dist/scp.1 up to 1.9
crypto/external/bsd/openssh/dist/scp.c up to 1.11
crypto/external/bsd/openssh/dist/servconf.c up to 1.17
crypto/external/bsd/openssh/dist/servconf.h up to 1.11
crypto/external/bsd/openssh/dist/serverloop.c up to 1.12
crypto/external/bsd/openssh/dist/session.c up to 1.14
crypto/external/bsd/openssh/dist/session.h up to 1.4
crypto/external/bsd/openssh/dist/sftp-client.c up to 1.13
crypto/external/bsd/openssh/dist/sftp-client.h up to 1.7
crypto/external/bsd/openssh/dist/sftp-common.c up to 1.7
crypto/external/bsd/openssh/dist/sftp-common.h up to 1.5
crypto/external/bsd/openssh/dist/sftp-glob.c up to 1.8
crypto/external/bsd/openssh/dist/sftp-server.8 up to 1.9
crypto/external/bsd/openssh/dist/sftp-server.c up to 1.11
crypto/external/bsd/openssh/dist/sftp.1 up to 1.11
crypto/external/bsd/openssh/dist/sftp.c up to 1.15
crypto/external/bsd/openssh/dist/ssh-add.1 up to 1.9
crypto/external/bsd/openssh/dist/ssh-add.c up to 1.10
crypto/external/bsd/openssh/dist/ssh-agent.1 up to 1.8
crypto/external/bsd/openssh/dist/ssh-agent.c up to 1.14
crypto/external/bsd/openssh/dist/ssh-dss.c up to 1.7
crypto/external/bsd/openssh/dist/ssh-ecdsa.c up to 1.6
crypto/external/bsd/openssh/dist/ssh-gss.h up to 1.5
crypto/external/bsd/openssh/dist/ssh-keygen.1 up to 1.13
crypto/external/bsd/openssh/dist/ssh-keygen.c up to 1.16
crypto/external/bsd/openssh/dist/ssh-keyscan.1 up to 1.10
crypto/external/bsd/openssh/dist/ssh-keyscan.c up to 1.13
crypto/external/bsd/openssh/dist/ssh-keysign.8 up to 1.9
crypto/external/bsd/openssh/dist/ssh-keysign.c up to 1.8
crypto/external/bsd/openssh/dist/ssh-pkcs11-client.c up to 1.6
crypto/external/bsd/openssh/dist/ssh-pkcs11-helper.c up to 1.8
crypto/external/bsd/openssh/dist/ssh-pkcs11.c up to 1.7
crypto/external/bsd/openssh/dist/ssh-pkcs11.h up to 1.4
crypto/external/bsd/openssh/dist/ssh-rsa.c up to 1.7
crypto/external/bsd/openssh/dist/ssh.1 up to 1.14
crypto/external/bsd/openssh/dist/ssh.c up to 1.16
crypto/external/bsd/openssh/dist/ssh2.h up to 1.6
crypto/external/bsd/openssh/dist/ssh_config up to 1.8
crypto/external/bsd/openssh/dist/ssh_config.5 up to 1.13
crypto/external/bsd/openssh/dist/sshconnect.c up to 1.11
crypto/external/bsd/openssh/dist/sshconnect.h up to 1.6
crypto/external/bsd/openssh/dist/sshconnect1.c up to 1.6
crypto/external/bsd/openssh/dist/sshconnect2.c up to 1.19
crypto/external/bsd/openssh/dist/sshd.8 up to 1.13
crypto/external/bsd/openssh/dist/sshd.c up to 1.18
crypto/external/bsd/openssh/dist/sshd_config up to 1.13
crypto/external/bsd/openssh/dist/sshd_config.5 up to 1.17
crypto/external/bsd/openssh/dist/sshlogin.c up to 1.6
crypto/external/bsd/openssh/dist/sshpty.c up to 1.4
crypto/external/bsd/openssh/dist/uidswap.c up to 1.4
crypto/external/bsd/openssh/dist/umac.c up to 1.9
crypto/external/bsd/openssh/dist/version.h up to 1.14
crypto/external/bsd/openssh/dist/xmalloc.c up to 1.5
crypto/external/bsd/openssh/lib/Makefile up to 1.17 plus patch
crypto/external/bsd/openssh/lib/shlib_version up to 1.13
distrib/sets/lists/base/ad.aarch64 patch
distrib/sets/lists/base/ad.arm patch
distrib/sets/lists/base/ad.mips patch
distrib/sets/lists/base/ad.powerpc patch
distrib/sets/lists/base/md.amd64 patch
distrib/sets/lists/base/md.sparc64 patch
distrib/sets/lists/base/mi patch
distrib/sets/lists/base/shl.mi patch
distrib/sets/lists/comp/ad.aarch64 patch
distrib/sets/lists/comp/ad.arm patch
distrib/sets/lists/comp/ad.mips patch
distrib/sets/lists/comp/ad.powerpc patch
distrib/sets/lists/comp/md.amd64 patch
distrib/sets/lists/comp/md.sparc64 patch
distrib/sets/lists/comp/mi patch
distrib/sets/lists/comp/shl.mi patch
distrib/sets/lists/debug/ad.aarch64 patch
distrib/sets/lists/debug/ad.arm patch
distrib/sets/lists/debug/ad.mips patch
distrib/sets/lists/debug/ad.powerpc patch
distrib/sets/lists/debug/md.amd64 patch
distrib/sets/lists/debug/md.sparc64 patch
distrib/sets/lists/debug/shl.mi patch
distrib/sets/lists/etc/mi patch
distrib/sets/lists/man/mi patch
etc/defaults/rc.conf 1.130
etc/mtree/NetBSD.dist.base 1.142
external/bsd/Makefile up to 1.48
external/bsd/blacklist/bin/Makefile up to 1.11 plus patch
external/bsd/blacklist/bin/blacklistctl.8 up to 1.6
external/bsd/blacklist/bin/blacklistctl.c up to 1.17
external/bsd/blacklist/bin/blacklistd.8 up to 1.10
external/bsd/blacklist/bin/blacklistd.c up to 1.32
external/bsd/blacklist/bin/blacklistd.conf.5 up to 1.2
external/bsd/blacklist/bin/conf.c up to 1.18
external/bsd/blacklist/bin/conf.h up to 1.6
external/bsd/blacklist/bin/internal.c up to 1.5
external/bsd/blacklist/bin/internal.h up to 1.12
external/bsd/blacklist/bin/run.c up to 1.12
external/bsd/blacklist/bin/run.h up to 1.5
external/bsd/blacklist/bin/state.c up to 1.15
external/bsd/blacklist/bin/state.h up to 1.5
external/bsd/blacklist/bin/support.c up to 1.6
external/bsd/blacklist/bin/support.h up to 1.5
external/bsd/blacklist/etc/rc.d/Makefile up to 1.1
external/bsd/blacklist/etc/rc.d/blacklistd up to 1.1
external/bsd/blacklist/etc/Makefile up to 1.3
external/bsd/blacklist/etc/blacklistd.conf up to 1.3
external/bsd/blacklist/etc/npf.conf up to 1.1
external/bsd/blacklist/Makefile up to 1.2
external/bsd/blacklist/Makefile.inc up to 1.3
external/bsd/blacklist/README up to 1.7
external/bsd/blacklist/TODO up to 1.7
external/bsd/blacklist/diff/ftpd.diff up to 1.1
external/bsd/blacklist/diff/named.diff up to 1.6
external/bsd/blacklist/diff/ssh.diff up to 1.6
external/bsd/blacklist/include/Makefile up to 1.1
external/bsd/blacklist/include/bl.h up to 1.12
external/bsd/blacklist/include/blacklist.h up to 1.3
external/bsd/blacklist/include/config.h new
external/bsd/blacklist/lib/Makefile up to 1.3
external/bsd/blacklist/lib/bl.c up to 1.24
external/bsd/blacklist/lib/blacklist.c up to 1.5
external/bsd/blacklist/lib/libblacklist.3 up to 1.3
external/bsd/blacklist/lib/shlib_version up to 1.1
external/bsd/blacklist/libexec/Makefile up to 1.1
external/bsd/blacklist/libexec/blacklistd-helper up to 1.4
external/bsd/blacklist/port/m4/.cvsignore up to 1.1
external/bsd/blacklist/port/Makefile.am up to 1.4
external/bsd/blacklist/port/_strtoi.h up to 1.1
external/bsd/blacklist/port/clock_gettime.c up to 1.2
external/bsd/blacklist/port/configure.ac up to 1.7
external/bsd/blacklist/port/fgetln.c up to 1.1
external/bsd/blacklist/port/fparseln.c up to 1.1
external/bsd/blacklist/port/getprogname.c up to 1.4
external/bsd/blacklist/port/pidfile.c up to 1.1
external/bsd/blacklist/port/popenve.c up to 1.2
external/bsd/blacklist/port/port.h up to 1.6
external/bsd/blacklist/port/sockaddr_snprintf.c up to 1.9
external/bsd/blacklist/port/strlcat.c up to 1.2
external/bsd/blacklist/port/strlcpy.c up to 1.2
external/bsd/blacklist/port/strtoi.c up to 1.3
external/bsd/blacklist/test/Makefile up to 1.2
external/bsd/blacklist/test/cltest.c up to 1.6
external/bsd/blacklist/test/srvtest.c up to 1.9
lib/libpam/modules/pam_ssh/pam_ssh.c up to 1.23
libexec/ftpd/pfilter.c up to 1.1
libexec/ftpd/pfilter.h up to 1.1
libexec/ftpd/Makefile up to 1.64
libexec/ftpd/ftpd.c up to 1.201

Add blacklistd(8), a daemon to block and release network ports
on demand to mitigate abuse, and related changes to system daemons
to support it.
[christos, ticket #711]
 1.1.2.1 25-Jan-2015  riz file pfilter.h was added on branch netbsd-7 on 2015-04-30 06:07:34 +0000
 1.38 17-Mar-2016  christos volatile for gcc 5
 1.37 20-Mar-2010  christos PR/43023: Bruce Cran: FTPD bug remote crash
Since we specify NOCHECK, in the NOMATCH case gl_pathv can be NULL.
(From FreeBSD)
 1.36 18-Mar-2009  lukem Fix 'vfork clobber' warning on vax.
Problem noted by and fix confirmed by Olaf 'Rhialto' Seibert.
 1.35 15-Mar-2009  lukem Fix WARNS=4 issues (const & sign mismatches, etc)
Ensure various ftpd.conf values can't exceed their underlying types.
 1.34 13-Sep-2008  lukem branches: 1.34.4; 1.34.6; 1.34.8; 1.34.10;
Crank copyright dates
 1.33 09-Jun-2008  lukem Don't use non-standard "u_<foo>" types.
Strip trailing whitespace (as well as ':'s) off PAM password prompts.
Improve some debug logging related to PAM.
 1.32 28-Apr-2008  martin branches: 1.32.2;
Remove clause 3 and 4 from TNF licenses
 1.31 01-Feb-2006  christos branches: 1.31.4; 1.31.18;
debug -> ftpd_debug
xstrdup -> ftpd_strdup
 1.30 09-Aug-2004  lukem Fixes from (or inspired by) OpenBSD:
* Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary.
* Fix SIGURG handler to set an urgflag that's later tested, rather than
abusing setjmp(3)/longjmp(3).
* Use "volatile sig_atomic_t" as the type of variables modified by sig handlers.
* Use sigaction(3) instead of signal(3) to set the signal handlers.
* Only set the main SIGALRM handler once. If we need to change it,
cache the old handler and restore appropriately...
* Remove a bunch of signal races by improving the signal handlers.
* Fix memory leak with 'ESPV ALL'.

My stuff:
* Clean up the debug message in reply(); use vsnprintf(3) instead of vsyslog(3).
* Rework parsing of OOB commands to _not_ use the yacc parser, since the
latter isn't reentrant and the hacks to work around that are ugly.
We now examine urgflag at appropriate locations and call handleoobcmd()
if it's set. Since the only OOB commands we currently implement are
ABOR and STAT, this isn't an issue. (I also can't find the reference in
RFC2228 where MIC, CONF & ENC are OOB-only commands. Go figure.)
I could clean up the is_oob stuff some more, but the remaining stuff
in ftpcmd.y is harmless and it's unnecessary churn right this moment.
 1.29 07-Aug-2003  agc branches: 1.29.2;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.28 16-Jan-2003  kleink Rename `sigset' locals to avoid symbol shadowing warning.
 1.27 01-Dec-2001  lukem branches: 1.27.2;
- enable case insensitive fnmatch(3)ing for hostname globs in ftpusers(5)
- enable WARNS=2
 1.26 25-Apr-2001  lukem crank copyrights of files changed this year
remove superfluous byte_count update in send_file_list
crank version
 1.25 18-Mar-2001  christos don't leak globbed memory.
 1.24 16-Mar-2001  christos Use GLOB_LIMIT. Also fix a bug where gl_offs was not initialized and could
contain trash.
 1.23 30-Nov-2000  lukem - move password checking into separate valid_passwd() function, to assist
in porting to other systems.
- don't syslog() or setproctitle() "ACCT" lines (as per "PASS")
- replace #ifdef HASSETPROCTITLE with #if HAVE_SETPROCTITLE, and set the
latter #ifdef BSD4_4
- don't compile in internal `ls' #ifdef NO_INTERNAL_LS. will need Makefile
support if this is to be used on NetBSD.
 1.22 20-May-2000  lukem branches: 1.22.4;
- Always close(pdata) if it was a valid filedescriptor before setting it to -1.
Problem noted in [bin/9642] by Takahiro Kambe <taca@sky.yamashina.kyoto.jp>,
(part of which already had been solved by itojun a while ago), and provided
patch covered most of the fixes needed. (Thanks Takahiro!)
- Consistently indent goto labels by one space.
 1.21 20-May-2000  lukem convert to ANSI C as per style guide
 1.20 05-Mar-2000  lukem * don't bother with a version[] string, just use the macro as appropriate
* clean some more of the GLOBAL stuff
* fix unused var if -UHASSETPROCTITLE
 1.19 12-Jan-2000  lukem * add ftpd.conf directive `portrange class min max', which allows specification
of the port range used by passive connections. based on work in [bin/9158]
from Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
* change the way global variables are defined and extern-ed to be more
consistent.
 1.18 12-Dec-1999  lukem * change format of /etc/ftpusers lines from
userglob [allow|deny]
to
userglob[@host] [allow|deny [classname]]
where class is a userdefined classname.
- if host is given it may either be a CIDR address (e.g, `1.2.3.0/24') or a
hostglob (e.g, `*.foo.com'), and the remote host is matched against that.
- if classname is given, use that to match entries in ftpd.conf (defaults
to `guest' for `anonymous'/`ftp' logins, `chroot' for users found in
/etc/ftpchroot, and `real' for everyone else.

* implement new /etc/ftpd.conf directives:
classtype classname type set type of classname to GUEST, CHROOT, or REAL
motd classname file file to use instead of /etc/motd
rateget classname rate set rateget throttle to rate
rateput classname rate set rateput throttle to rate
upload classname allow/deny uploads (STOU, STOR, APPE). if
denied, also acts as `modify deny'.

* implement new `SITE' commands:
RATEGET as per /etc/ftpd.conf rateget, but cannot exceed that
RATEPUT as per /etc/ftpd.conf rateput, but cannot exceed that

* implement format_file(), which outputs a file to the user, parsing %
escapes. use to print /etc/ftpwelcome, /etc/motd, and the `display' file.

* implement strsuftoi() (from ftp(1)), which parses a number and
optional suffix (for use with rateget, etc)

* don't bother seteuid(0) ; bind(...) ; seteuid(pw->pw_uid), since
we don't need reserved ports (at wasn't getting them anyway).

* update & reorder copyrights

* use strlcpy() as appropriate
 1.17 07-Dec-1999  lukem * change ftpd_popen() to take char *argv[] instead of char *cmd.
the string tokenisation must be performed by the caller (which is
generally easy because it's almost always a static command).
* change do_conversion() to return a char *argv[] instead of char *cmd.
tokenisation of the command is done internally.
* change retrieve() to take char *argv[] instead of char *cmd.
(to take advantage of the above changes). fixes [bin/8173]
* use fparseln() instead of fgetln()
* store conversions in listed order (rather than reverse order)
* use stringlists instead of handrolling code to manage an argv.
 1.16 25-Aug-1999  christos branches: 1.16.4;
more kerberos5 fixes
 1.15 18-May-1999  lukem * fix a problem in retrieve() where arguments to commands weren't working
(this was broken in the last commit). problem noticed by simonb@
* don't display the stderr output of the internal ls.
* modify usage of lreply so that generally only one `XXX-' code per
`block' is displayed; the rest of the lines have four spaces instead.
i find this easier to read.
* fix a couple places where byte accounting wasn't correct
 1.14 17-May-1999  lukem features/fixes:
* implement xferstats. full stats are displayed for `STAT', and a
summary is displayed upon exit (and syslogged). inspired by wu-ftpd.
* wrap data xfers in {send,receive}_data with alarm() timeouts. this
should remove the majority of the `hanging ftpd' problems that
people were still seeing. inspired by wu-ftpd.
* link with ../../bin/ls, so that bin/ls is not required under a
chroot()ed area for `LIST' to work. based on [bin/4497] from
"Soren S. Jorvang" <soren@t.dk>
* migrate code from util.c into ftpd.c, so that it doesn't conflict
with ls' util.c.
* remove man page comment about ~ftp/bin/ls being necessary.
* bump version to 7.2.0.
* syslog xfer time with xfer stats.
* if appropriate, syslog error message with command.

internal code stuff:
* change arguments of various functions from `char *' to `const char *'.
* define PLURAL(x) macro, which returns `' if x == 1, `s' otherwise.
use macro appropriately
* lreply(): a code of -1 means ``send line as is''. a code of 0
means ``send line with 4 space prefix''. don't print a space after
the `-' for any other code.
* logcmd(): add `const struct timeval *elapsed' and `const char *error'
for more flexible error reporting
 1.13 24-Feb-1999  explorer branches: 1.13.2;
Make this build with KERBEROS5 defined.
 1.12 28-Dec-1998  lukem * replace LOG(CMD|BYTES) macros with logcmd(), which is a cleaner
solution with less code replication. use realpath() in logcmd() so
that all logged filenames are sane.
* support `REST STREAM' in `FEAT' reply (from draft-ietf-ftpext-mlst-05)
* in 'HELP', suffix unimplemented commands with `-' instead of `*'; the
former is easier to differentiate from `+'.
* deprecate curdir() now that logcmd() doesn't use it.
* ensure all filename buffers are at least MAXPATHLEN+1 in size.
* move jmp_buf errcatch out of extern.h, removing need to #include <setjmp.h>
in every file.
 1.11 06-Sep-1998  lukem * complete fix for `multiple replies returned for single parse error'
problem; move `hasyyerrored' state flag out of yylex() so that
check_{login,modify} can also set it.
* check result of check_login for PORT command
* set initial timeout before the "setjmp(); for(;;) yyparse()",
otherwise an invalid command after login incorrectly sets the timeout
to 5 minutes (rather than what was set in ftpd.conf)
* replace (char *)0 with NULL
* move yyerror() from ftpd.c to ftpcmd.y
* remove need for -Dunix, by using the version string from ftpd.c
(instead of `BSD-199506')
* move all extern-ed vars into extern.h
 1.10 19-Jun-1998  kleink GLOB_QUOTE is dead; per POSIX, backslash quoting of special characters being
enabled is the default behaviour.
 1.9 08-Jun-1998  lukem support displaying the stderr output from a LIST or a conversion to
the user at the end of a transfer.
this generates a file in /tmp, so anonymous requires a
writable ~ftp/tmp, which you may not want to do (because it may
allow people to unwanted upload files).

XXX: a better method of storing the stderr output would be nice, but
is a lot more effort to implement. this feature can at least be
used temporarily whilst debugging why an ftp conversion doesn't
work.
 1.8 18-Jun-1997  christos - Pass gcc -Wall
- Fix incorrect const poisoning
- Fix ftpd_popen to dynamically allocate strings to avoid buffer overruns.
 1.7 14-Jun-1997  lukem * implement /etc/ftpd.conf, which adds support for the following features,
controllable on a per class (which is one of: real, chroot, guest,
all or none) basis:
* on-the-fly execution of a command to build the file (a ``conversion''),
providing support for "get dirname.tar" and the like.
* displaying the contents of a file when a directory is entered
for the first time.
* maximum value for timeout (replaces -T).
* control usage of CHMOD, DELE, MKD, RMD, UMASK; replacing -DINSECURE_GUEST.
* notifying the user of the existance of a files matching a glob
pattern when a directory is entered for the first time.
* default value for timeout (replaces -t).
* default umask (replaces -DGUEST_CMASK and -u).
The conversion, display, and notify functionality was based on code by
Simon Burge <simonb@telstra.com.au>.
* clean up and re-order parts of the man page into subsections.
* STAT displays the settings defined for the class of the current user.
* bump version from 6.00 to 7.00, because of ftpd.conf.
* deprecate -DGUEST_CMASK and -DINSECURE_GUEST in the Makefile, and
-t, -T and -u, as ftpd.conf allows finer control of these.
* add "nostderr" argument to ftpd_popen(), because you don't want the
stderr stream mixing with the stdout stream during a conversion,
as this can corrupt the stream.
 1.6 27-Apr-1997  lukem * fix "cd ~" so that it works (from Simon Burge <simonb@telstra.com.au>
* move resetting of CFLAGS on powerpc to before optional CFLAGS settings
* minor code & man page cleanups
 1.5 11-Apr-1995  cgd clean up RCS Id's and a couple of stype nits.
Also, fix bug 947 (reported by Luke Mewburn, extraneous vers.c)
 1.4 21-Mar-1995  mycroft Use POSIX signals.
 1.3 29-Jun-1994  deraadt 4.4-lite, plus our local changes
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Mar-1997  cjs 4.4BSD-lite2 import.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.13.2.1 01-Apr-2001  he Pull up revision 1.24 (requested by christos):
Fixes buffer overflow problems in glob(3). Adds and uses GLOB_LIMIT
to prevent denial of service attacks.
 1.16.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.22.4.2 26-Aug-2004  jmc Pullup rev 1.26-1.30 (requested by he in ticket #158)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.22.4.1 29-Mar-2001  lukem sync ftpd to -current with the following revisions (for lukem/christos):
Makefile 1.43-1.44
cmds.c 1.7-1.8, 1.10-1.12
conf.c 1.35-1.40
extern.h 1.32-1.38
ftpcmd.y 1.53-1.59
ftpd.8 1.58-1.63
ftpd.c 1.102-1.104, 1.106-1.122
ftpd.conf.5 1.12-1.15
ftpusers.5 1.8
logwtmp.c 1.16
popen.c 1.23-1.25
version.h 1.28

a quick summary of user-visible changes;
- fix glob DoS by using GLOB_LIMIT
- add ftpd.conf directives `advertise', `maxfilesize', `sanenames'
- add flags: -P dataport, -X - wuftpd style log entries,
-q/-Q - (en|dis)able pidfiles, -u/-U - (en|dis)able utmp,
-w/-W - (en|dis)able wtmp
 1.27.2.1 31-Aug-2004  jmc Pullup rev 1.28-1.30 (requested by he in ticket #1739)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.29.2.1 12-Aug-2004  jmc Pullup rev 1.30 (requested by lukem in ticket #757)

* Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary.
* Fix SIGURG handler to set an urgflag that's later tested, rather than
abusing setjmp(3)/longjmp(3).
* Use "volatile sig_atomic_t" as the type of variables modified by sig handlers.
* Use sigaction(3) instead of signal(3) to set the signal handlers.
* Only set the main SIGALRM handler once. If we need to change it,
cache the old handler and restore appropriately...
* Remove a bunch of signal races by improving the signal handlers.
* Fix memory leak with 'ESPV ALL'.
* Clean up the debug message in reply(); use vsnprintf(3) instead of vsyslog(3).
* Rework parsing of OOB commands to _not_ use the yacc parser, since the
latter isn't reentrant and the hacks to work around that are ugly.
We now examine urgflag at appropriate locations and call handleoobcmd()
if it's set. Since the only OOB commands we currently implement are
ABOR and STAT, this isn't an issue.
 1.31.18.2 17-Jun-2008  yamt sync with head.
 1.31.18.1 18-May-2008  yamt sync with head.
 1.31.4.1 13-Jun-2010  riz Pull up following revision(s) (requested by dholland in ticket #1395):
libexec/ftpd/popen.c: revision 1.37
PR/43023: Bruce Cran: FTPD bug remote crash
Since we specify NOCHECK, in the NOMATCH case gl_pathv can be NULL.
(From FreeBSD)
 1.32.2.2 24-Sep-2008  wrstuden Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
 1.32.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.34.10.1 21-Apr-2010  matt sync to netbsd-5
 1.34.8.1 12-Apr-2010  snj Pull up following revision(s) (requested by lukem in ticket #1372):
libexec/ftpd/popen.c: revision 1.37
PR/43023: Bruce Cran: FTPD bug remote crash
Since we specify NOCHECK, in the NOMATCH case gl_pathv can be NULL.
(From FreeBSD)
 1.34.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.34.4.1 12-Apr-2010  snj Pull up following revision(s) (requested by lukem in ticket #1372):
libexec/ftpd/popen.c: revision 1.37
PR/43023: Bruce Cran: FTPD bug remote crash
Since we specify NOCHECK, in the NOMATCH case gl_pathv can be NULL.
(From FreeBSD)
 1.1 26-Aug-2004  jmc branches: 1.1.2; 1.1.4;
file strsuftoll.c was initially added on branch netbsd-1-5.
 1.1.4.1 31-Aug-2004  jmc Pullup rev patch (new) (requested by he in ticket #1739)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.1.2.1 26-Aug-2004  jmc Pullup rev new + patch (requested by he in ticket #158)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.6 17-May-1999  lukem features/fixes:
* implement xferstats. full stats are displayed for `STAT', and a
summary is displayed upon exit (and syslogged). inspired by wu-ftpd.
* wrap data xfers in {send,receive}_data with alarm() timeouts. this
should remove the majority of the `hanging ftpd' problems that
people were still seeing. inspired by wu-ftpd.
* link with ../../bin/ls, so that bin/ls is not required under a
chroot()ed area for `LIST' to work. based on [bin/4497] from
"Soren S. Jorvang" <soren@t.dk>
* migrate code from util.c into ftpd.c, so that it doesn't conflict
with ls' util.c.
* remove man page comment about ~ftp/bin/ls being necessary.
* bump version to 7.2.0.
* syslog xfer time with xfer stats.
* if appropriate, syslog error message with command.

internal code stuff:
* change arguments of various functions from `char *' to `const char *'.
* define PLURAL(x) macro, which returns `' if x == 1, `s' otherwise.
use macro appropriately
* lreply(): a code of -1 means ``send line as is''. a code of 0
means ``send line with 4 space prefix''. don't print a space after
the `-' for any other code.
* logcmd(): add `const struct timeval *elapsed' and `const char *error'
for more flexible error reporting
 1.5 24-Feb-1999  explorer Make this build with KERBEROS5 defined.
 1.4 05-Feb-1999  lukem * actually commit the changes which add support for recognising RFC 2228
commands (even if we don't do anything with them)
* in logcmd(), syslog why realpath() failed (if it did).
 1.3 03-Jan-1999  lukem rcsid police
 1.2 02-Jan-1999  nathanw Fix compile warning on alpha (%qd and off_t lossage).
 1.1 28-Dec-1998  lukem * replace LOG(CMD|BYTES) macros with logcmd(), which is a cleaner
solution with less code replication. use realpath() in logcmd() so
that all logged filenames are sane.
* support `REST STREAM' in `FEAT' reply (from draft-ietf-ftpext-mlst-05)
* in 'HELP', suffix unimplemented commands with `-' instead of `*'; the
former is easier to differentiate from `+'.
* deprecate curdir() now that logcmd() doesn't use it.
* ensure all filename buffers are at least MAXPATHLEN+1 in size.
* move jmp_buf errcatch out of extern.h, removing need to #include <setjmp.h>
in every file.
 1.3 11-Apr-1995  cgd clean up RCS Id's and a couple of stype nits.
Also, fix bug 947 (reported by Luke Mewburn, extraneous vers.c)
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.80 30-Sep-2023  shm NetBSD-ftpd 20230930

Update version to "NetBSD-ftpd 20230930" for changes:
- fix uninitialized memory usage in count_users()
- fix pam_set_item call with proper struct passed as PAM_SOCKADDR
 1.79 22-Sep-2023  lukem version NetBSD-ftpd 20230922 for MLSD/MLST fix
 1.78 02-Sep-2023  lukem ftpd: improve seteuid error handling

Handle seteuid() failures. Per suggestion by Simon Josefsson.
Consistent logging and fatal exit if uid/gid switching fails.
Log correct errno if dataconn() fails.
 1.77 04-Jul-2020  lukem branches: 1.77.6;
NetBSD-ftpd 20200615

Update version to "NetBSD-ftpd 20200615" for changes:
- Increase some buffer sizes.
- Rename blacklist to blocklist.
 1.76 29-Jan-2019  lukem branches: 1.76.2;
NetBSD-ftpd 20180428

Update version to "NetBSD-ftpd 20180428" for changes:
- Fix violations of the sequence point rule.
- Check that stat and fstat succeed.
- Support blacklistd(8) hooks.
- Clear utmpx struct before writing it to wtmpx files.
- Fix directory stream leaks.
- Use explicit_memset(3) instead of memset(3) to clear password.
- Fix scope of variable. PR misc/50665.
- Ensure that closing socket exists. CID 603440.
- Add -f option to ftpd to stay in foreground with -D. PR bin/53221.
 1.75 21-Mar-2013  lukem branches: 1.75.22; 1.75.30;
Update version to 20110904 for the user-visible change I made back then:
Reduce priority of syslog message if getpeername returns ENOTCONN.
PR bin/18934 by Greg A. Woods (with supplied fix).
 1.74 21-Mar-2010  lukem branches: 1.74.6; 1.74.12;
Update version to 20100320 for Christos' commit to popen.c 1.37 for:
PR/43023: Bruce Cran: FTPD bug remote crash
 1.73 07-Nov-2009  lukem NetBSD-ftpd 20091107:
* Fix WARNS=4 issues (const & sign mismatches, etc)
* Ensure various ftpd.conf values can't exceed their underlying types.
* Fix for 64 bit time_t and dev_t
* Rename internal getline() function to get_line() so it does
conflict with the getline(3) libc function.
* Log both the hostname and numeric address.
* Improve man page mdoc formatting
 1.72 15-Mar-2009  lukem Fix WARNS=4 issues (const & sign mismatches, etc)
Ensure various ftpd.conf values can't exceed their underlying types.
 1.71 02-Mar-2009  lukem bump version for remoteloghost & portability changes
 1.70 16-Sep-2008  lukem branches: 1.70.4; 1.70.6; 1.70.8; 1.70.10;
Enhance -C to support an optional @host ('-C user[@host]'):
checks whether user as connecting from host would be granted
access by ftpusers(5).

Support IPv6 in the host directive of ftpusers(5).
(May resolve PR 26555)

Both features from Rudolf Cejka <cejkar@fit.vutbr.cz>
(FreeBSD's tnftpd port maintainer).
 1.69 13-Sep-2008  lukem Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.org>
 1.68 09-Jun-2008  lukem Don't use non-standard "u_<foo>" types.
Strip trailing whitespace (as well as ':'s) off PAM password prompts.
Improve some debug logging related to PAM.
 1.67 28-Apr-2008  martin branches: 1.67.2;
Remove clause 3 and 4 from TNF licenses
 1.66 27-Mar-2008  lukem branches: 1.66.2;
Reorganize USE_PAM support so that the reply(331,) from USER is
performed by the pam_conv (PAM conversation) callback, which then
getline()s the PASS reply internally. This involves calling
auth_pam() from user() and caching the result to use later in pass().
This allows the PAM modules to present a different password prompt
dialog if necesary. For example:
Name (localhost:lukem):
331 User lukem accepted, provide password [ otp-md4 89 xxxx12345 ].
versus
Name (localhost:lukem): root
331 User root accepted, provide password.

This is independent of (and effectively exclusive to) USE_SKEY support.

Previously ftpd with USE_SKEY=yes would provide the skey prompt
if the user had an skey configured, even if /etc/pam.d/ftpd didn't
have pam_skey in use.
I.e., ftpd shouldn't need special support for custom password prompts
(such as skey) if PAM is in use.
 1.65 25-Sep-2006  lukem branches: 1.65.2; 1.65.12;
Update to 20060923 for the following changes:

20060201
debug -> ftpd_debug
xstrdup -> ftpd_strdup

20060317
* Make sure that "su" is initialized before dereferencing it.
Fixes Coverity CID 1075.
* Set file to NULL after calling fclose().
Fixes Coverity CID 2669.
* Remove unreachable code (res could never be NULL here).
Fixes Coverity CID 712.

20060509
change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.

20060923
Apply patch from PR bin/33261 sent by FUKAOMI Naoki:
"ftpd does not update wtmpx".
 1.64 24-Nov-2005  lukem NLST should return 450 instead of 550 upon error, per RFC 959.
 1.63 03-Oct-2005  lukem logxfer(): don't use the same buffer to store the results of two separate
concurrent realpath(3)s, otherwise we'll log the wrong information
for a rename.
Noted by Dmitry Sivachenko in private mail.
 1.62 24-Aug-2005  ginsbach * Add recvbufsize configuration option
This allows for setting the passive socket's SO_RCVBUF. Option works
similarly to the current sendbufsize configuration option.
* Change how recveive_data() works
When reading data from the socket for passive transfers to the server,
receive_data() now works very similar to send_data_with_read(). Reads
from the network are now done using either the filesystem block size or
the configuration option readsize chunks.
* Crank version.h
[Changes discussed with lukem.]
 1.61 04-Aug-2005  peter Implement option "-D", for running ftpd in standalone mode (daemon).
ftpd will listen on the default FTP port for incoming connections and fork
a child for each connection. This is lower overhead than starting ftpd from
inetd(8) and thus might be useful on busy servers to reduce load.

Inspired by FreeBSD.
Reviewed by lukem@.
 1.60 26-Jul-2005  lukem Crank version for Christos' utmpx/wtmpx changes on 20050623
 1.59 03-Mar-2005  ginsbach branches: 1.59.2; 1.59.4; 1.59.6;
* Add hidesymlinks configuration option
This adds a -L to all ls command arguments so that the file or directory
the link references is listed rather than the link itself. This was
inspired by IRIX ftpd's -S option.
[Discussed with lukem some time ago.]
* Crank version.h [right Luke? :-)]
 1.58 19-Nov-2004  ginsbach * Don't allow accounts with age expired passwords to login. Any account
that is required to change their password will not be allowed FTP
access. Inspired by similar functionality in other FTP daemons.
(approved by lukem)

* Crank version to 20041119 per lukem's request.
 1.57 09-Aug-2004  lukem Fixes from (or inspired by) OpenBSD:
* Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary.
* Fix SIGURG handler to set an urgflag that's later tested, rather than
abusing setjmp(3)/longjmp(3).
* Use "volatile sig_atomic_t" as the type of variables modified by sig handlers.
* Use sigaction(3) instead of signal(3) to set the signal handlers.
* Only set the main SIGALRM handler once. If we need to change it,
cache the old handler and restore appropriately...
* Remove a bunch of signal races by improving the signal handlers.
* Fix memory leak with 'ESPV ALL'.

My stuff:
* Clean up the debug message in reply(); use vsnprintf(3) instead of vsyslog(3).
* Rework parsing of OOB commands to _not_ use the yacc parser, since the
latter isn't reentrant and the hacks to work around that are ugly.
We now examine urgflag at appropriate locations and call handleoobcmd()
if it's set. Since the only OOB commands we currently implement are
ABOR and STAT, this isn't an issue. (I also can't find the reference in
RFC2228 where MIC, CONF & ENC are OOB-only commands. Go figure.)
I could clean up the is_oob stuff some more, but the remaining stuff
in ftpcmd.y is harmless and it's unnecessary churn right this moment.
 1.56 10-Dec-2003  lukem branches: 1.56.2;
Use sysconf(_SC_LOGIN_NAME_MAX) to determine the length of login
names, rather than assuming LOGIN_NAME_MAX.
Based on patch from Garrett Wollman via David O'Brien (both at FreeBSD.org)
 1.55 30-Jun-2003  tacha Add ftpd_loginx() and ftpd_logwtmpx() and use them to hold wtmpx file
open while a session.

Close bin/21692 by bqt@Krille.Update.UU.SE.
 1.54 26-Feb-2003  lukem Add '-L xferlogfile', to write xferlog entries there rather than syslog them.
Based on work from Dmitry Sivachenko.
 1.53 24-Feb-2003  lukem use LLT and STRTOLL() instead of off_t and strtoull() for parsing the
"larger than int" arguments from commands. improves portability.
 1.52 23-Feb-2003  lukem rename local copies of login(), logout() and logwtmp() to
ftpd_login(), ftpd_logout() and ftpd_logwtmp() respectively.
(makes utmp support much easier in tnftpd).

per suggestion in mail from Mike Heffner <mheffner@vt.edu>, who
forwarded patch from Michael Ranner <mranner@inode.at>.
 1.51 23-Feb-2003  lukem crank version for:

Stop ftpd changing inetd's 'logname'
Stop buffer overrun if {NGROUPS_MAX} is greater than the compile time
NGROUPS_MAX.
 1.50 22-Jan-2003  lukem Apply DoS fix as described by Crist J. Clark <crist.clark@attbi.com>
on <security@freebsd.org>, and subsequently in FreeBSD's cvs repository
as libexec/ftpd/ftpd.c rev 1.133:

The FTP daemon was vulnerable to a DoS where an attacker could bind()
up port 20 for an extended period of time and thus lock out all other
users from establishing PORT data connections. Don't hold on to the
bind() while we loop around waiting to see if we can make our
connection.

Bump version to 20030122.
 1.49 29-Nov-2002  lukem - convert to using libc's strsuftoll(3)
- use LLT (aka 'long long type') for all numeric class parameters
- improve description of various ftpd.conf(5) options
- statcmd(): print out: mmapsize readsize writesize sendbufsize sendlowat
 1.48 26-Oct-2002  lukem crank version for statfilecmd() 'fix'
 1.47 07-Oct-2002  lukem Change arguments of login_utmp(line, name, host) (to be consistent
with logwtmp(3)/logwtmpx(3)), and call correctly.
Resolves [bin/18498] by Geoff Wing, who identified that the previous
version was being called incorrectly, albiet in a different manner.
 1.46 03-Oct-2002  lukem Enable GLOB_BRACE for ftpd.conf(5)'s `notify' directive.
Now it's much easier to list multiple files...
 1.45 02-Jul-2002  lukem - Change lexer to support numbers > 2^31-1 (stored in an off_t), and allow
RESTart to use the larger numbers.
Fix from Maxim Konovalov <maxim@freebsd.org>
- Update version
- Minor whitespace changes
 1.44 15-Jun-2002  lukem crank copyright
 1.43 15-Jun-2002  lukem Implement "SITE UMASK" `enabled command' check with (modified)
check_write(), so that a user who has modify disabled gets an error
message rather than a hung connection.
Noted by M.J. Rutter <mjr19@cus.cam.ac.uk> in private email.
 1.42 13-Feb-2002  lukem branches: 1.42.2;
Fixes for mlsd/mlst standards conformance issues (noted by Robert Elz):
- mlst shouldn't return cdir or pdir for type, only dir
- mlst should always provide a full path name
- mlsd should provide a full path name for the cdir entry. (providing a
full path name for the pdir entry is optional, and i punted on that).
 1.41 11-Feb-2002  lukem Don't log an xferlog-style entry if bytes == -1.
Per suggestion by Kimmo Suominen and observation of wu-ftpd in similar
circumstances.
 1.40 01-Feb-2002  lukem fix previous, and ensure that closedataconn() is only called after dataconn()
and with a non-NULL file pointer. active transfers now work correctly again,
passive transfers work, and the data stream is only closed after a PASV or
EPSV if a successful connection was initiated with dataconn().
 1.39 21-Jan-2002  lukem in closedataconn(), only close the passive data fd if the main data
descriptor was set by dataconn(). this fixes a problem for clients (such
as lynx and netscape) that only sent PASV/EPSV after a transfer (RETR, LIST,
STOR) started and returned 150. certain command sequences could return 550
(etc) before setting up the dataconn(), and would run into this bug. netbsd's
ftp didn't hit this bug because it always sends PASV/EPSV before a new
transfer command.
 1.38 06-Dec-2001  lukem Fix skey password challenge. Problem reported in [bin/14848] by John F. Woods.
 1.37 04-Dec-2001  lukem Add two new ftpd.conf(5) directives:
- 'denyquick'; deny a connection so tagged by ftpusers(5) after the USER
command instead of the PASS command. whilst this might provide some
info leakage of accounts names if you have some `real' or `chroot'
users enabled and not others, it does prevent accidental entering of
such passwords if you have all such users denied. This option is
strongly recommended on anonymous-only servers.
Functionality requested by Rob Windsor in [bin/12602]
- 'private'; don't display class related information in the output of STAT.
For paranoid admins.
 1.36 01-Dec-2001  lukem - enable case insensitive fnmatch(3)ing for hostname globs in ftpusers(5)
- enable WARNS=2
 1.35 27-Nov-2001  lukem - Don't try and use the motd if it's empty.
Problem reported in [bin/14751] by Kimmo Suominen
- Display conffilename() version of limitfile and motd in status output
 1.34 19-Sep-2001  lukem a few changes from Mike Heffner <mheffner@vt.edu> in private email:
- totally clear a glob buffer before use, because FreeBSD depends on
some of the other fields being cleared (other than just gl_offs)
- in strend(), ensure that the source string isn't too large
- remove unnecessarily complicated sizing of proctitle, since snprintf()
will truncate it anyway
 1.33 26-Jun-2001  lukem s/tise/tize/ in docco, add "advertize" as synonym for "advertise"
 1.32 25-Apr-2001  lukem crank copyrights of files changed this year
remove superfluous byte_count update in send_file_list
crank version
 1.31 17-Apr-2001  lukem use own code instead of bother with glob() to do ~ expansion in pathname;
there's no need to support glob wildcards in this case when it's not expanded
here in the non-~ case
 1.30 17-Apr-2001  lukem limit the number of matches in a ~ pathname glob, and complain if more
than one path is matched.
 1.29 10-Apr-2001  itojun bump version for IPv4 PASV fix. PR 12558
 1.28 29-Mar-2001  lukem crank for GLOB_LIMIT fix
 1.27 18-Dec-2000  lukem Features:

* Add ftpd.conf(5) directive `advertise'; change the address that is
advertised to the client for PASV transfers. this may be useful in
certain firewall/NAT environments.

Feature requested in [bin/9606] by Scott Presnell.

* Add -X option; syslog wu-ftpd style xferlog messages, prefixed with
`xferlog: '. An example line from syslog (wrapped):
Dec 16 18:50:24 odysseus ftpd[571]: xferlog: Sat Dec 16 18:50:24 2000
2 localhost 3747328 /pub/WLW2K601.EXE b _ o a lukem@ FTP 0 * c

These messages can be converted to a wu-ftpd style xferlog file
suitable for parsing with third-party tools with something like:
grep 'xferlog: ' /var/log/xferlog | \
sed -e 's/^.*xferlog: //' >wuxferlog

The format is the same as the wu-ftpd xferlog entries (with the leading
syslog stuff), but different from the wu-ftpd syslogged xferlog entries
because the latter is not as easy to convert into the standard xferlog
file format.

The choice to only syslog the xferlog messages rather than append to
a /var/log/xferlog file was made because the latter doesn't work to
well in the situation where the logfile is rotated and compressed and
a long-running ftpd still has a file-descriptor to the now nonexistant
xferlog file, and the log message will then get lost.

Feature requested in [bin/11651] by Hubert Feyrer.


Fixes:

* In ftpd(8), clarify the -a and -c options.

* More clarifications in ftpd.conf(5).

* Ensure that all ftpd.conf commands set a parameter back to sane defaults
if an argument of `none' or bad settings are given.

* Support the `chroot' directive for `REAL' users too (for consistency).

* For `GUEST' users, store the supplied password in pw->pw_passwd for use
later in the xferlog.

* If show_chdir_messages() is given a code of -1, flush the cache of
visited directories. Invoke show_chdir_messages(-1) in end_login().

* Only syslog session stats if logging is requested.

* Rename logcmd() -> logxfer(), and dolog() -> logremotehost().

* Use cprintf() instead of fprintf() where appropriate.

* Minor KNF, and make a couple of functions static that were declared static.
 1.26 04-Dec-2000  itojun in replydirname(), avoid one-byte overrun.
From: Kristian Vlaardingerbroek <kris@obit.nl> (to bugs@openbsd)
 1.25 30-Nov-2000  lukem - move password checking into separate valid_passwd() function, to assist
in porting to other systems.
- don't syslog() or setproctitle() "ACCT" lines (as per "PASS")
- replace #ifdef HASSETPROCTITLE with #if HAVE_SETPROCTITLE, and set the
latter #ifdef BSD4_4
- don't compile in internal `ls' #ifdef NO_INTERNAL_LS. will need Makefile
support if this is to be used on NetBSD.
 1.24 28-Nov-2000  lukem - ensure all uses of AF_INET6 are wrapped in #ifdef INET6
- don't define `ALL' as a token twice in the grammar
 1.23 24-Nov-2000  itojun cope with 2292bis-01 getaddrinfo (no NI_WITHSCOPEID, always attach
scope identifier).
always check error result from getnameinfo.
 1.22 16-Nov-2000  lukem - new ftpd.conf directives:
maxfilesize set the maximum size of uploaded files
sanenames if set, only permit uploaded filenames that contain
characters from the set "-+,._A-Za-z0-9" and that
don't start with `.'

- new/changed command line options:
-e emailaddr define email address for %E (see below)
-P dataport use dataport as the dataport (instead of ctrlport-1)
-q use pid files to count users [default]
-Q don't use pid files to count users
-u write entries to utmp
-U don't write entries to utmp [default]
-w write entries to wtmp [default]
-W don't write entries to wtmp

NOTE: -U used to mean `write utmp entries'. Its meaning has changed
so that it's orthogonal with -q/-Q and -w/-W. This isn't
considered a major problem, because using -U isn't going to
enable something you don't want, but will disable something
you did want (which is safer).

- new display file escape sequences:
%E email address
%s literal `s' if the previous %M or %N wasn't ``1''.
%S literal `S' if the previous %M or %N wasn't ``1''.

- expand the description of building ~ftp/incoming to cover the
appropriate ftpd.conf(5) directives (which are defaults, but it pays
to explicitly explain them)

- replace strsuftoi() with strsuftoll(), which returns a long long if
supported, otherwise a long

- rework the way that check_modify and check_upload are done in the yacc
parser; they're merged into a common check_write() function which is
called explicitly

- merge all ftpclass `flag variables' into a single bitfield-based flag element

- move various common bits of parse_conf() into a couple of macros

- clean up some comments
 1.21 15-Nov-2000  lukem changes to improve portability:
* replace union sockunion {} with struct sockinet {}, and modify the code
accordingly. this is possibly more portable, as it doesn't rely upon
the structure alignment within the union for our own stuff. uses local
su_len unless HAVE_SOCKADDR_SA_LEN is defined (set ifdef BSD4_4)
(XXX: haven't tested the ipv6 stuff)
* always use getaddrinfo() and getnameinfo() instead of maintaining two code
paths. (lukemftpd will provide replacements for these on older systems)
* use lockf() instead of open(.., O_EXLOCK) to lock the pid file
* minor KNF
* clean up long long support: create helper #defines and use as appropriate:
#define NO_LONG_LONG ! NO_LONG_LONG
------- ------------ --------------
LLF "%ld" "%lld"
LLFP(x) "%" x "ld" "%" x "lld"
LLT long long long
ULLF "%lu" "%llu"
ULLFP(x) "%" x "lu" "%" x "llu"
ULLT unsigned long unsigned long long
STRTOLL(x,y,z) strtol(x,y,z) strtoll(x,y,z)
 1.20 13-Nov-2000  itojun - improve RFC2428 conformance.
return 522 on unknown protocol identifier on EPRT.
- clarify EPSV/EPRT/LPSV/LPRT behavior.
- repair memory leak and lack of boundary check on EPRT.
- make sure we do not resolve DNS on EPRT.
sync with kame.
 1.19 26-Jul-2000  lukem add support for -W; don't log to wtmp (orthogonal of -U which logs to utmp).
inspired by similar option in wuftpd.
 1.18 23-Jul-2000  lukem * make checkportcmd the default. this breaks third-party proxy ftp but
prevents the ftp bounce attack, and we should be secure out of the
box, not require users to tweak obscure stuff.
* allow the version string reported to clients to be changed with '-V vers'.
if vers is empty or `-', don't report a version.
* if -r is given, permanently drop root privs
* if not a REAL user (i.e, GUEST or CHROOT), and ftpd is running on a port
> IPPORT_RESERVED+1, permanently drop root privs
* don't bother reverting to root privs to logout of wtmp/utmp; since the
file descriptor is already open this isn't necessary.
* fix the binding of the port for the PORT/LPRT/EPRT connection to be the
ctrl_addr.su_port-1, not hardcoded to `20' (this was broken in the ipv6
merge). if root privs have been dropped, and this would be a port <
IPPORT_RESERVED, use a random port instead (which isn't RFC959 compliant
but it doesn't appear that many clients care).
* prevent login of a new user if privs have been dropped and already logged
in as a REAL user (existing check already stops GUEST & CHROOT users).
* move the port check stuff into a separate port_check() function, and use
for PORT, LPRT, and EPRT checks. inspired by freebsd
* minor KNF
* minor man page cleanup
 1.17 17-Jul-2000  lukem * add two new ftpd.conf(5) directives:
chroot specify dir to chroot to for GUEST and CHROOT users, to
override -a anondir or the user's homedir.
homedir specify dir to change to upon login; also used for ~ expansion
and $HOME for subprocesses)
both of these can take % escapes: %u (username), %d (homedir), %c (class).
* fix NLST to take a pathname not a STRING, so that ~ expansion works
* modify CWD to use the homedir parsed from curclass.homedir
* implement format_path(dst, src), to parse src expanding % escapes (see above)
into dst.
* rename format_file() to display_file()
 1.16 15-Jul-2000  lukem * add -H, which acts like -h `hostname`. (requested by kim@)
* refer to draft-ietf-ftpext-mlst-11 instead of -10
 1.15 10-Jul-2000  lukem base64_encode(): separate out the special case for the last 2 bytes, and
be a bit safer with signed chars. per discussion with kre.
 1.14 09-Jul-2000  lukem - base64_encode(): fix garbled output due to fencepost error. output now
appears to match that of 'mimencode' (from metamail).
problem noted by kre@munnari.oz.au.
- fact_unique(): encode a combined dev_t+ino_t chunk rather than separate bits
 1.13 09-Jul-2000  lukem setproctitle(), and for any other printf variants, it is not a good idea
to pass variable directly like foo(x). use foo("%s", x) to avoid misuse.
from: openbsd
 1.12 19-Jun-2000  lukem branches: 1.12.2;
various fixes suggested by Robert Elz:
* implement closedataconn() and use appropriately (including in mlsd())
* only put leading space in front of MLST output (not MLSD output)
* MLSD: only output pdir and cdir entries when the type fact is requested.
* change error code for giving MLSD a non-directory from 550 to 501
* remove MLSx Type fact support for UNIX.* for now; it's not standardised yet.
* do a check_login when MLSD and MLST are given no args
* detect & complain about null facts in OPTS MLST
* cache getgroups() at login instead of calling each time in fact_perm()

other mods:
* implement cprintf(); as per fprintf() but increments total_bytes{,_out}
* implement CPUTC(); as per putc() but increments total_bytes{,_out}
* implement base64_encode()
* fact_unique() display base64 encoding of dev_t and ino_t rather than
hex output; should scale if size of those changes
* change reply() so that a negative code acts as the initial line in a reply,
code == 0 prefixes the line with 4 spaces, and code > 0 works as before.
deprecate lreply(code, ) and lreply(0, ) in favour of reply(-code, ) and
reply(0, ) respectively.
* use cprintf() and CPUTC() appropriately (often instead of printf(),
lreply(-2, ) or lreply(-1, ).
now we actually account for the data sent by MLST and MLSD.
* remove DEBUG support for sending MLSD output to control connection instead
of data connection (my ftp client now supports MLSD :-)
 1.11 14-Jun-2000  lukem major overhaul (just before netbsd 1.5 :-):

* implement draft-ietf-ftpext-mlst-10 commands, especially MLST and MLSD.
we already supported SIZE and MDTM. add the appropriate FEAT output lines.

* migrate a lot of the command code from ftpcmd.y and ftpd.c to cmds.c

* make dataconn(), feat(), lookup(), opts() and sizecmd() public

* modify struct tab so that it has a `flags' instead of `implemented' element,
and remove the `hasopts' element. If flags == 1, the command is implemented.
if flags == 2, the command is implemented and takes options

* add macros ISDOTDIR(x) (is x ".") and ISDOTDOTDIR(x) (is x "..")

* modify lreply() so that lreply(-2, ...) just outputs the given info without
a prefix or trailing \r\n. this saves doing b = printf(); total_* += b;

* enhance statcmd(). still needs work in the LPRT status stuff.

* crank version
 1.10 20-May-2000  lukem branches: 1.10.2;
- Always close(pdata) if it was a valid filedescriptor before setting it to -1.
Problem noted in [bin/9642] by Takahiro Kambe <taca@sky.yamashina.kyoto.jp>,
(part of which already had been solved by itojun a while ago), and provided
patch covered most of the fixes needed. (Thanks Takahiro!)
- Consistently indent goto labels by one space.
 1.9 20-May-2000  lukem convert to ANSI C as per style guide
 1.8 05-Mar-2000  lukem * don't bother with a version[] string, just use the macro as appropriate
* clean some more of the GLOBAL stuff
* fix unused var if -UHASSETPROCTITLE
 1.7 13-Jan-2000  lukem suppress verbose messages from CWD and post-login if the first
character of the anonymous password is `-'.
 1.6 12-Jan-2000  lukem * add ftpd.conf directive `portrange class min max', which allows specification
of the port range used by passive connections. based on work in [bin/9158]
from Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
* change the way global variables are defined and extern-ed to be more
consistent.
 1.5 09-Jan-2000  lukem * new ftpd.conf directive:
template class [refclass]
following directives for refclass will apply to class as well.
this makes setting up a `template' class with many default settings
easy, whilst allowing for class-specific overrides
* prevent crash when the optional limitfile wasn't given to limit
* document count_users()
* document default setting of limit in ftpd.conf(5)
* crank version
 1.4 08-Jan-2000  lukem features:
* add connection limits (`limit' keyword in ftpd.conf)
* move initialisation of curclass from parse_conf() to new function
init_curclass()
* implement count_users(), which determines the number of users in a given
class. a file - /var/run/ftpd.pids-<class> - is used to store a list
of pids in use (effectively an array of pid_t's), and its size is reduced
as necessary.
* new % modifiers in format_file:
%c class
%M maximum connection count
%N current connection count
* always end_login()s, even for refused connections

bugs fixed:
* remove \n from %T output
* fix some inconsistencies in the man pages
* ensure that both `ftp' *and* `anonymous' are allowed in ftpusers.
(this was accidently broken in a recent commit to be ``or'' not ``and'')
* use MAXPATHLEN not MAXPATHLEN+1
* crank copyright date on modified files
* crank version
 1.3 21-Dec-1999  lukem branches: 1.3.2;
crank version
 1.2 19-Dec-1999  lukem * add back support for `-h hostname'; it still may be useful to override
the name advertised to the client, even if ftpd can determine it from
the ip address that ftpd is bound to. requested by mrg.
* remove -4/-6; they were effectively no-ops since itojun's change in 1.75.
* crank version
 1.1 18-Dec-1999  lukem * move version to separate header file
* use .Dv and .Tn in the man pages as appropriate
* KNF a bit

The following were inspired by similar changes in openbsd, but may
have additional improvements by me:
* add more check_login tests to the parser rules
* nuke a few memory leaks in the parser rules
* clear passwords before free()ing them, for safety
* don't display \r\n in setproctitle() output
* add support for -U, which enables managing /var/run/utmp entries for
connections. solves [bin/2217] by Jason Downs <downsj@teeny.org>
* fix oob handling for STAT command
* use SIG_ERR instead of -1
 1.3.2.2 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.3.2.1 21-Dec-1999  wrstuden file version.h was added on branch wrstuden-devbsize on 1999-12-27 18:30:13 +0000
 1.10.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.12.2.4 26-Aug-2004  jmc Pullup rev 1.29-1.57 (requested by he in ticket #158)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.12.2.3 29-Mar-2001  lukem sync ftpd to -current with the following revisions (for lukem/christos):
Makefile 1.43-1.44
cmds.c 1.7-1.8, 1.10-1.12
conf.c 1.35-1.40
extern.h 1.32-1.38
ftpcmd.y 1.53-1.59
ftpd.8 1.58-1.63
ftpd.c 1.102-1.104, 1.106-1.122
ftpd.conf.5 1.12-1.15
ftpusers.5 1.8
logwtmp.c 1.16
popen.c 1.23-1.25
version.h 1.28

a quick summary of user-visible changes;
- fix glob DoS by using GLOB_LIMIT
- add ftpd.conf directives `advertise', `maxfilesize', `sanenames'
- add flags: -P dataport, -X - wuftpd style log entries,
-q/-Q - (en|dis)able pidfiles, -u/-U - (en|dis)able utmp,
-w/-W - (en|dis)able wtmp
 1.12.2.2 13-Dec-2000  he Apply patch (requested by he):
Fix a one-byte buffer overrun.
Note by appending an 'a' to the version number,
since we do not here upgrade ftpd wholesale.
 1.12.2.1 25-Jul-2000  lukem user visible changes (besides checking the cvs log):
* make checkportcmd the default
* add -r; force permanent drop of root privs after login
* add -V vers; change version string to vers
* add -H; act as -h `hostname`
* permanently drop root privs if it makes sense to do so (e.g; logging in as
guest/chroot user on a port > 1024)
* fix reference to draft-ietf-ftpext-mlst-11
* add ftpd.conf directives: chroot, homedir
* fix base64_encode() and generation of the unique fact
* crank version to 20000723
 1.42.2.2 31-Aug-2004  jmc Pullup rev 1.44-1.57 (requested by he in ticket #1739)

Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
 1.42.2.1 15-Jun-2002  lukem Pull up revision 1.43 (requested by lukem in ticket #282):
Implement "SITE UMASK" `enabled command' check with (modified)
check_write(), so that a user who has modify disabled gets an error
message rather than a hung connection.
Noted by M.J. Rutter <mjr19@cus.cam.ac.uk> in private email.
 1.56.2.1 12-Aug-2004  jmc Pullup rev 1.57 (requested by lukem in ticket #757)

* Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary.
* Fix SIGURG handler to set an urgflag that's later tested, rather than
abusing setjmp(3)/longjmp(3).
* Use "volatile sig_atomic_t" as the type of variables modified by sig handlers.
* Use sigaction(3) instead of signal(3) to set the signal handlers.
* Only set the main SIGALRM handler once. If we need to change it,
cache the old handler and restore appropriately...
* Remove a bunch of signal races by improving the signal handlers.
* Fix memory leak with 'ESPV ALL'.
* Clean up the debug message in reply(); use vsnprintf(3) instead of vsyslog(3).
* Rework parsing of OOB commands to _not_ use the yacc parser, since the
latter isn't reentrant and the hacks to work around that are ugly.
We now examine urgflag at appropriate locations and call handleoobcmd()
if it's set. Since the only OOB commands we currently implement are
ABOR and STAT, this isn't an issue.
 1.59.6.1 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1964):
libexec/ftpd/ftpd.c: revision 1.187 via patch
libexec/ftpd/extern.h: revision 1.58 via patch
libexec/ftpd/ftpcmd.y: revision 1.88 via patch
libexec/ftpd/version.h: patch
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>
 1.59.4.1 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1964):
libexec/ftpd/ftpd.c: revision 1.187 via patch
libexec/ftpd/extern.h: revision 1.58 via patch
libexec/ftpd/ftpcmd.y: revision 1.88 via patch
libexec/ftpd/version.h: patch
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>
 1.59.2.1 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1964):
libexec/ftpd/ftpd.c: revision 1.187 via patch
libexec/ftpd/extern.h: revision 1.58 via patch
libexec/ftpd/ftpcmd.y: revision 1.88 via patch
libexec/ftpd/version.h: patch
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>
 1.65.12.2 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1202):
libexec/ftpd/ftpd.c: revision 1.187
libexec/ftpd/extern.h: revision 1.58
libexec/ftpd/version.h: patch
libexec/ftpd/ftpcmd.y: revision 1.88
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>
 1.65.12.1 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1201):
libexec/ftpd/ftpd.c: revision 1.183
libexec/ftpd/Makefile: revision 1.58
libexec/ftpd/version.h: revision 1.66
Reorganize USE_PAM support so that the reply(331,) from USER is
performed by the pam_conv (PAM conversation) callback, which then
getline()s the PASS reply internally. This involves calling
auth_pam() from user() and caching the result to use later in pass().
This allows the PAM modules to present a different password prompt
dialog if necesary. For example:
Name (localhost:lukem):
331 User lukem accepted, provide password [ otp-md4 89 xxxx12345 ].
versus
Name (localhost:lukem): root
331 User root accepted, provide password.
This is independent of (and effectively exclusive to) USE_SKEY support.
Previously ftpd with USE_SKEY=yes would provide the skey prompt
if the user had an skey configured, even if /etc/pam.d/ftpd didn't
have pam_skey in use.
I.e., ftpd shouldn't need special support for custom password prompts
(such as skey) if PAM is in use.
 1.65.2.2 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1202):
libexec/ftpd/ftpd.c: revision 1.187
libexec/ftpd/extern.h: revision 1.58
libexec/ftpd/version.h: patch
libexec/ftpd/ftpcmd.y: revision 1.88
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>
 1.65.2.1 18-Sep-2008  bouyer Pull up following revision(s) (requested by lukem in ticket #1201):
libexec/ftpd/ftpd.c: revision 1.183
libexec/ftpd/Makefile: revision 1.58
libexec/ftpd/version.h: revision 1.66
Reorganize USE_PAM support so that the reply(331,) from USER is
performed by the pam_conv (PAM conversation) callback, which then
getline()s the PASS reply internally. This involves calling
auth_pam() from user() and caching the result to use later in pass().
This allows the PAM modules to present a different password prompt
dialog if necesary. For example:
Name (localhost:lukem):
331 User lukem accepted, provide password [ otp-md4 89 xxxx12345 ].
versus
Name (localhost:lukem): root
331 User root accepted, provide password.
This is independent of (and effectively exclusive to) USE_SKEY support.
Previously ftpd with USE_SKEY=yes would provide the skey prompt
if the user had an skey configured, even if /etc/pam.d/ftpd didn't
have pam_skey in use.
I.e., ftpd shouldn't need special support for custom password prompts
(such as skey) if PAM is in use.
 1.66.2.2 17-Jun-2008  yamt sync with head.
 1.66.2.1 18-May-2008  yamt sync with head.
 1.67.2.2 24-Sep-2008  wrstuden Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
 1.67.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.70.10.1 21-Apr-2010  matt sync to netbsd-5
 1.70.8.1 12-Apr-2010  snj Pull up following revision(s) (requested by lukem in ticket #1372):
libexec/ftpd/version.h: revision 1.74
Update version to 20100320 for Christos' commit to popen.c 1.37 for:
PR/43023: Bruce Cran: FTPD bug remote crash
 1.70.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.70.4.1 12-Apr-2010  snj Pull up following revision(s) (requested by lukem in ticket #1372):
libexec/ftpd/version.h: revision 1.74
Update version to 20100320 for Christos' commit to popen.c 1.37 for:
PR/43023: Bruce Cran: FTPD bug remote crash
 1.74.12.1 23-Jun-2013  tls resync from head
 1.74.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.75.30.1 10-Jun-2019  christos Sync with HEAD
 1.75.22.2 03-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #1907):

libexec/ftpd/version.h: revision 1.80

NetBSD-ftpd 20230930

Update version to "NetBSD-ftpd 20230930" for changes:
- fix uninitialized memory usage in count_users()
- fix pam_set_item call with proper struct passed as PAM_SOCKADDR
 1.75.22.1 03-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #1903):

libexec/ftpd/ftpd.c: revision 1.207
libexec/ftpd/version.h: revision 1.78

ftpd: improve seteuid error handling

Handle seteuid() failures. Per suggestion by Simon Josefsson.

Consistent logging and fatal exit if uid/gid switching fails.

Log correct errno if dataconn() fails.
 1.76.2.2 02-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #1743):

libexec/ftpd/version.h: revision 1.80

NetBSD-ftpd 20230930

Update version to "NetBSD-ftpd 20230930" for changes:
- fix uninitialized memory usage in count_users()
- fix pam_set_item call with proper struct passed as PAM_SOCKADDR
 1.76.2.1 02-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #1739):

libexec/ftpd/ftpd.c: revision 1.207
libexec/ftpd/version.h: revision 1.78

ftpd: improve seteuid error handling

Handle seteuid() failures. Per suggestion by Simon Josefsson.
Consistent logging and fatal exit if uid/gid switching fails.
Log correct errno if dataconn() fails.
 1.77.6.2 02-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #390):

libexec/ftpd/version.h: revision 1.80

NetBSD-ftpd 20230930

Update version to "NetBSD-ftpd 20230930" for changes:
- fix uninitialized memory usage in count_users()
- fix pam_set_item call with proper struct passed as PAM_SOCKADDR
 1.77.6.1 02-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #385):

libexec/ftpd/ftpd.c: revision 1.207
libexec/ftpd/version.h: revision 1.78

ftpd: improve seteuid error handling

Handle seteuid() failures. Per suggestion by Simon Josefsson.
Consistent logging and fatal exit if uid/gid switching fails.
Log correct errno if dataconn() fails.
 1.6 01-Nov-1997  mrg add a manual for getNAME. also, change the `default' output to be in
a form much more useful for an apropos(1) database. this will be used
by makewhatis(1) to generate the whatis.db file's now...
 1.5 08-Oct-1997  mrg branches: 1.5.2;
merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.4 07-Oct-1997  mrg WARNS?=1. RCS ids
 1.3 29-Apr-1997  tls Sync to 4.4BSD-Lite2
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.5.2.1 10-Nov-1997  thorpej Sync w/ trunk.
 1.12 29-May-2008  mrg remove clause #3 from my license where there are no other
copyright holders involved.
 1.11 25-Feb-2003  wiz branches: 1.11.30; 1.11.32;
.Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.10 29-Sep-2002  wiz Begin new sentences on new lines.
Patch from Robert Elz (kre at munnari oz au).
 1.9 08-Mar-2002  jdolecek improve description of options - particularily, avoid repeating the option
in the description, and use 'print' instead of 'returns' or 'determines'
 1.8 08-Mar-2002  jdolecek makewhatis(8) doesn't use getNAME(8) nowadays
 1.7 15-Jan-2002  wiz Whitespace nits, sort sections, end sentences with dots.
 1.6 19-Nov-1999  enami Don't pass so many args to .Nd macro. It just overflows.
 1.5 22-Mar-1999  garbled branches: 1.5.6;
More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.4 21-May-1998  christos From chopps: be more picky about handling incorrectly formatted man pages.
Look for .Sh NAME; this breaks internationalized man pages. Someone could
put NLS support for it.
 1.3 04-Dec-1997  mikel edit a bit, and bewail inability to handle compressed manpages
 1.2 02-Nov-1997  lukem branches: 1.2.2;
* use (``foo'') instead of (<em>foo</em>)
* order SEE ALSO on man section then alphabetical
* add -w to usage string
* deprecate register
* minor code move in newman section, to follow style of oldman section
 1.1 01-Nov-1997  mrg add a manual for getNAME. also, change the `default' output to be in
a form much more useful for an apropos(1) database. this will be used
by makewhatis(1) to generate the whatis.db file's now...
 1.2.2.2 10-Nov-1997  thorpej Sync w/ trunk.
 1.2.2.1 02-Nov-1997  thorpej file getNAME.8 was added on branch netbsd-1-3 on 1997-11-10 19:54:39 +0000
 1.5.6.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.11.32.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.11.30.1 04-Jun-2008  yamt sync with head
 1.27 29-Aug-2011  joerg Use __dead
 1.26 20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
 1.25 12-Sep-2006  hubertf branches: 1.25.18;
Handle .br - this makes processing of the netbsd-4
src/dist/bzip2/bzip2.1 file work:

Before:
% getNAME /usr/cvs/src-4/dist/bzip2/bzip2.1
bzip2, bunzip2 (1) - a block-sorting file compressor, v1.0.2 .br bzcat (1) - decompresses files to stdout .br bzip2recover (1) - recovers data from damaged bzip2 files

After:
% getNAME /usr/cvs/src-4/dist/bzip2/bzip2.1
bzip2, bunzip2 (1) - a block-sorting file compressor, v1.0.2
bzcat (1) - decompresses files to stdout
bzip2recover (1) - recovers data from damaged bzip2 files

Verified with code from src/share/man/man0 that nothing else was
broken by this change.
 1.24 20-Mar-2004  christos Oops, put back my copyright.
 1.23 20-Mar-2004  christos - remove my license
- un __P
- de-lint
 1.22 19-Sep-2003  itojun realloc mistake
 1.21 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.20 31-Jan-2002  christos More sanity checks to avoid looking at unitialized memory.
 1.19 19-Feb-2001  cgd convert to use getprogname()
 1.18 04-Feb-2001  christos fix nested extern
 1.17 09-Nov-1999  drochner Since our gcc doesn't warn about NULL format strings anymore, we can
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.
 1.16 08-Feb-1999  augustss branches: 1.16.6;
Get rid of the annoying warning about NAMN not being a proper first .SH.
Do it by adding a table of allowed first SH tags.
 1.15 10-Oct-1998  hubertf Omit "(section)" if either -i or -t are given, print "\n" and insert a
"-" at the right place when -i is given.
 1.14 21-May-1998  christos From chopps: be more picky about handling incorrectly formatted man pages.
Look for .Sh NAME; this breaks internationalized man pages. Someone could
put NLS support for it.
 1.13 10-Apr-1998  fair getNAME now handles [nt]roff comments (.\") correctly.
 1.12 30-Mar-1998  mrg break if ".PP" also
 1.11 03-Feb-1998  perry add <unistd.h> to fix compiler warning
 1.10 22-Dec-1997  christos Overhaul:
- Use fgetln instead of fgets and keep track of line limits.
- Use dynamically allocated buffers instead of fixed length ones.
- Use err/warn
- Don't re-scan strings needlessly.
- Handle extensions properly for page names that contain more than
one period printing:
resolv.conf (5) - resolver configuration file
instead of:
resolv.conf (conf.5) - resolver configuration file

This fixes PR/4738: "Coredump in getNAME" as a side effect.

This program is a hack; it depends on the ``standard format'' of a man page
and can get easily confused. At least now it will not core-dump...
 1.9 02-Nov-1997  lukem * use (``foo'') instead of (<em>foo</em>)
* order SEE ALSO on man section then alphabetical
* add -w to usage string
* deprecate register
* minor code move in newman section, to follow style of oldman section
 1.8 01-Nov-1997  mrg add a manual for getNAME. also, change the `default' output to be in
a form much more useful for an apropos(1) database. this will be used
by makewhatis(1) to generate the whatis.db file's now...
 1.7 20-Oct-1997  enami branches: 1.7.2;
No need to declare optind.
 1.6 08-Oct-1997  enami Put a whitespace after the keyword `switch'.
 1.5 08-Oct-1997  enami Compare a return value of getopt() against -1 instead of EOF.
 1.4 07-Oct-1997  mrg WARNS?=1. RCS ids
 1.3 29-Apr-1997  tls Sync to 4.4BSD-Lite2
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7.2.1 10-Nov-1997  thorpej Sync w/ trunk.
 1.16.6.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.25.18.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.20 11-Aug-2013  dholland Pass WARNS=5.
 1.19 03-Feb-2010  roy branches: 1.19.6; 1.19.12;
Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@
 1.18 16-Mar-2009  lukem Default to WARNS=4
Exceptions that need a lower level are:
getty ld.elf_so lfs_cleanerd makewhatis telnetd tftpd
hpropd ipropd-master ipropd-slave kadmind kpasswdd
 1.17 16-Nov-2006  atatat branches: 1.17.26;
remove stray links
 1.16 16-Nov-2006  christos - remove stray mlinks
- remove gcc4 hacks
 1.15 16-Nov-2006  christos more uucp cleanup
 1.14 11-May-2006  mrg sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.
 1.13 28-Dec-2000  sommerfeld Add new :cs: modifier to gettytab which clears the screen using the
appropriate control sequence from termcap (based on the terminal type
listed in /etc/ttys for the line).
 1.12 28-Mar-1998  cjs Add uugetty manpage link.
 1.11 19-Oct-1997  cjs Add uugetty capability.
 1.10 08-Oct-1997  mrg merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.9 06-Aug-1997  mikel set WARNS?=1
 1.8 31-Jul-1996  thorpej RCS id police.
 1.7 22-Dec-1994  cgd specify man pages the new way.
 1.6 24-Sep-1994  mycroft Minor tweak to aid cross-compiling.
 1.5 17-Aug-1994  pk branches: 1.5.2;
Cleanup import, merge local changes.
 1.4 09-Mar-1994  cgd fix bin/140: use getcap(3) routines
 1.3 08-Mar-1994  mycroft We don't need or want set_ttydefaults().
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 17-Aug-1994  pk Import 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.5.2.2 17-Aug-1994  pk Cleanup import, merge local changes.
 1.5.2.1 17-Aug-1994  pk file Makefile was added on branch netbsd-1-0 on 1994-08-17 20:10:28 +0000
 1.17.26.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.19.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.19.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.7 11-Aug-2013  dholland Pass WARNS=5.
 1.6 07-Aug-2003  agc branches: 1.6.54; 1.6.60;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.5 10-Nov-2001  thorpej ANSI'ify.
 1.4 31-Jul-1996  thorpej RCS id police.
 1.3 15-May-1996  jtc Updated to use <util.h>.
From Greg Hudson <ghudson@MIT.EDU>.
 1.2 17-Aug-1994  pk branches: 1.2.2;
Cleanup import, merge local changes.
 1.1 17-Aug-1994  pk branches: 1.1.1;
Initial revision
 1.1.1.1 17-Aug-1994  pk Import 4.4-Lite version.
 1.2.2.2 17-Aug-1994  pk Cleanup import, merge local changes.
 1.2.2.1 17-Aug-1994  pk file extern.h was added on branch netbsd-1-0 on 1994-08-17 20:10:30 +0000
 1.6.60.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.6.54.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.19 26-Feb-2020  riastradh uugetty is no more
 1.18 29-May-2013  wiz branches: 1.18.28;
- Add the actual binary to `FILES' section;
- bump date.

From Bug Hunting.
 1.17 07-Aug-2003  agc branches: 1.17.54; 1.17.60;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.16 29-Sep-2002  wiz Begin new sentences on new lines.
Patch from Robert Elz (kre at munnari oz au).
 1.15 15-Jan-2002  wiz Whitespace nits, sort sections.
 1.14 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.13 28-Feb-1999  msaitoh sort SEE ALSO section by "sort | sort -n"
 1.12 12-Dec-1998  fair Document (or expand documentation about) the ability of getty(8) to
recognize a PPP bringup sequence and invoke something appropriate, per
PR#6462
 1.11 29-Aug-1998  tsarna Execute ttyaction on termination of rlogind/telnetd sessions.
Also, say a little bit about ttyaction in the getty and login manpages.
 1.10 29-Apr-1998  fair fix bad .Xr references
 1.9 22-Apr-1998  ross Reference ttys(5). (David Brownlee, PR #5339)
 1.8 10-Apr-1998  fair Add .Xr ttyaction 3 per PR#4647
 1.7 20-Oct-1997  enami Fix .Nm usage.
 1.6 19-Oct-1997  cjs Add uugetty capability.
 1.5 31-Jul-1997  perry clean up .Nm entries, and change a silly .Nm gettytab 5 to an .Xr
 1.4 31-Jul-1996  thorpej RCS id police.
 1.3 17-Aug-1994  pk branches: 1.3.2;
Cleanup import, merge local changes.
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 17-Aug-1994  pk Import 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.3.2.2 17-Aug-1994  pk Cleanup import, merge local changes.
 1.3.2.1 17-Aug-1994  pk file getty.8 was added on branch netbsd-1-0 on 1994-08-17 20:10:31 +0000
 1.17.60.1 23-Jun-2013  tls resync from head
 1.17.54.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.18.28.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.40 15-Jul-2019  uwe Tweak markup some more.
 1.39 12-Jul-2019  uwe Improve (hopefully) mark up of the capabilities tables.
 1.38 12-Jul-2019  uwe Use proper markup instead of .Em to refer to capabilities, structure
memebers, etc in the text (but not in the tables yet, as those require
more rework).
 1.37 11-Jul-2019  wiz Merge lines. Fixes display problem noted in PR 54361 by he@
 1.36 21-Apr-2012  roy branches: 1.36.32;
Add capfile(5) to describe the termcap format.
Adjust various man pages and other documentation to point to capfile(5)
instead of termcap(5).
Remove getcap(3) as curses hasn't been building it for a long time.
Punt wrterm.c as tset no longer uses it.
 1.35 13-Oct-2006  wiz branches: 1.35.40;
Fix typo in macro.
 1.34 13-Oct-2006  wiz Sort SEE ALSO.
 1.33 06-Oct-2006  elad PR/13478: Greg A. Woods: some tty-related documentation fixes

Patch applied with "minor tweaks" from me, thanks!
 1.32 21-May-2005  christos Support VEOL2 and VSTATUS
 1.31 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.30 20-May-2003  wiz Bump date for "nn" capability.
 1.29 20-May-2003  thorpej Add a "nn" (no name) capability to getty. If set in gettytab, getty
will not prompt for a login name, and will not pass one along to the
login program. This can be used to accomodate login programs that have
an alternate way of selecting the user to log in.
 1.28 15-Jan-2002  wiz Sort sections and SEE ALSO.
 1.27 04-Apr-2001  wiz Lowercase getty in xref. Whitespace fixes.
 1.26 28-Dec-2000  sommerfeld Add new :cs: modifier to gettytab which clears the screen using the
appropriate control sequence from termcap (based on the terminal type
listed in /etc/ttys for the line).
 1.25 04-Sep-2000  garbled Change "Apart form" to "Apart from".
 1.24 04-Jan-2000  ad branches: 1.24.4;
Oops, fix previous.
 1.23 04-Jan-2000  ad Add two new capabilities to gettytab - idea from FreeBSD:
al - user to auto-login as
if - banner file to display, like /etc/issue
 1.22 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.21 12-Dec-1998  fair Document (or expand documentation about) the ability of getty(8) to
recognize a PPP bringup sequence and invoke something appropriate, per
PR#6462
 1.20 12-Oct-1998  tsarna Add PPP autodetect, based on code from FreeBSD via OpenBSD.
 1.19 22-Apr-1998  ross Reference ttys(5). (David Brownlee, PR #5339)
 1.18 06-Feb-1998  perry macroize BSD, NetBSD, FreeBSD and misc cleanup
 1.17 20-Oct-1997  enami Fix .Nm usage.
 1.16 14-Jul-1997  mikel xref gethostname(3) and uname(3) instead of obsolete gethostname(2)
and uname(2); some other minor cleanup
 1.15 08-Mar-1997  mouse alternate -> alternative, per PR 2643
 1.14 11-Aug-1996  explorer fix extra Ta strings in man page. closes pr bin/2685
 1.13 31-Jul-1996  thorpej RCS id police.
 1.12 24-Sep-1994  mycroft Remove old comment about converting to termios.
 1.11 16-Sep-1994  mycroft Document the % escapes I added, and clean up the description of %h a bit.
 1.10 17-Aug-1994  pk branches: 1.10.2;
The man page says to disable input parity checking if `ap' is on.
 1.9 17-Aug-1994  pk Cleanup import, merge local changes.
 1.8 29-Apr-1994  cgd fix formatting bogon
 1.7 28-Apr-1994  pk Mark a few capabilities as unsupported.
Document some new ones.
 1.6 21-Apr-1994  pk Correct format of `np' item.
 1.5 16-Apr-1994  cgd renamed 'md' to 'mb'
 1.4 16-Apr-1994  cgd quick cut at adding 'md' for MDMBUF
 1.3 12-Apr-1994  cgd document np
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 17-Aug-1994  pk Import 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.10.2.2 17-Aug-1994  pk The man page says to disable input parity checking if `ap' is on.
 1.10.2.1 17-Aug-1994  pk file gettytab.5 was added on branch netbsd-1-0 on 1994-08-17 20:28:00 +0000
 1.24.4.1 15-Nov-2000  tv Pullup 1.25 [hubertf]:
Change "Apart form" to "Apart from".
 1.35.40.1 23-May-2012  yamt sync with head.
 1.36.32.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.4 09-Mar-1994  mycroft Clean up deleted files.
 1.3 07-Dec-1993  mycroft Eliminate two compiler warnings.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.17 11-Aug-2013  dholland Pass WARNS=5.
 1.16 16-Nov-2006  christos branches: 1.16.40; 1.16.46;
pass lint
 1.15 21-May-2005  christos Support VEOL2 and VSTATUS
 1.14 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.13 20-May-2003  thorpej Add a "nn" (no name) capability to getty. If set in gettytab, getty
will not prompt for a login name, and will not pass one along to the
login program. This can be used to accomodate login programs that have
an alternate way of selecting the user to log in.
 1.12 04-Feb-2001  christos remove redundant decls
fix nested extern
 1.11 28-Dec-2000  sommerfeld Add new :cs: modifier to gettytab which clears the screen using the
appropriate control sequence from termcap (based on the terminal type
listed in /etc/ttys for the line).
 1.10 04-Jan-2000  ad Add two new capabilities to gettytab - idea from FreeBSD:
al - user to auto-login as
if - banner file to display, like /etc/issue
 1.9 12-Oct-1998  tsarna Add PPP autodetect, based on code from FreeBSD via OpenBSD.
 1.8 31-Jul-1996  thorpej RCS id police.
 1.7 17-Aug-1994  pk branches: 1.7.2;
Cleanup import, merge local changes.
 1.6 28-Apr-1994  pk Towards termios.
 1.5 16-Apr-1994  cgd renamed 'md' to 'mb'
 1.4 16-Apr-1994  cgd quick cut at adding 'md' for MDMBUF
 1.3 23-Mar-1994  cgd cut-and-paste-o's, pointed out by Andras Olah <olah@cs.utwente.nl>
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 17-Aug-1994  pk Import 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7.2.2 17-Aug-1994  pk Cleanup import, merge local changes.
 1.7.2.1 17-Aug-1994  pk file gettytab.h was added on branch netbsd-1-0 on 1994-08-17 20:10:35 +0000
 1.16.46.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.16.40.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.18 11-Aug-2013  dholland Pass WARNS=5.
 1.17 03-Dec-2007  isaki branches: 1.17.28; 1.17.34;
white space fix.
 1.16 16-Nov-2006  christos branches: 1.16.8;
fix gcc4 sign issues.
 1.15 21-May-2005  christos Support VEOL2 and VSTATUS
 1.14 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.13 20-May-2003  thorpej Add a "nn" (no name) capability to getty. If set in gettytab, getty
will not prompt for a login name, and will not pass one along to the
login program. This can be used to accomodate login programs that have
an alternate way of selecting the user to log in.
 1.12 11-Jul-2002  wiz 'environment', not 'enviroment'
 1.11 28-Dec-2000  sommerfeld Add new :cs: modifier to gettytab which clears the screen using the
appropriate control sequence from termcap (based on the terminal type
listed in /etc/ttys for the line).
 1.10 04-Jan-2000  ad Add two new capabilities to gettytab - idea from FreeBSD:
al - user to auto-login as
if - banner file to display, like /etc/issue
 1.9 12-Oct-1998  tsarna Add PPP autodetect, based on code from FreeBSD via OpenBSD.
 1.8 06-Aug-1997  mikel use <sys/cdefs.h> __COPYRIGHT() and __RCSID() macros
prototype internal functions and eliminate old function declarations
misc cleanup (gcc -Wall) and KNF
 1.7 31-Jul-1996  thorpej RCS id police.
 1.6 17-Aug-1994  pk branches: 1.6.2;
Cleanup import, merge local changes.
 1.5 28-Apr-1994  pk Towards termios.
 1.4 16-Apr-1994  cgd renamed 'md' to 'mb'
 1.3 16-Apr-1994  cgd quick cut at adding 'md' for MDMBUF
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 17-Aug-1994  pk Import 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.2.2 17-Aug-1994  pk Cleanup import, merge local changes.
 1.6.2.1 17-Aug-1994  pk file init.c was added on branch netbsd-1-0 on 1994-08-17 20:10:36 +0000
 1.16.8.1 09-Jan-2008  matt sync with HEAD
 1.17.34.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.17.28.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.68 12-Oct-2021  jmcneill getty: Remove 2 second sleep before opening tty

This (apparently very old!) workaround to ensure that DTR stays down long
enough to be detected is now handled by serial drivers themselves. For
console devices (framebuffer, serial console, etc) this was an unnecessary
2 second penalty that we have all been paying since the beginning of time.
 1.67 26-Feb-2020  riastradh uugetty is no more
 1.66 10-Jan-2017  christos branches: 1.66.14;
need <sys/stat.h> for chmod
 1.65 17-Mar-2016  christos branches: 1.65.2;
Add volatile for gcc 5
 1.64 12-Aug-2013  joerg Use __dead.
 1.63 11-Aug-2013  martin Fix another automatic variable that is life both pre- and post the siglongjmp
(which gcc calls "might be clobbered") by marking it volatile: on some
machines, this value might end up in a register loaded before the sigsetjmp,
but not preserved by the siglongjmp later.
Fixes the VAX build.
 1.62 11-Aug-2013  dholland Use siglongjmp to jump out of signal handlers.
 1.61 11-Aug-2013  dholland Pass WARNS=5.
 1.60 04-Nov-2012  christos remove useless include (sys/stat.h) and add useful one (stdio.h)
 1.59 28-Jun-2012  roy branches: 1.59.2;
Don't attempt to parse a termcap/terminfo string ourselves;
always use tputs(3).
 1.58 03-Feb-2010  roy branches: 1.58.6; 1.58.8;
Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@
 1.57 04-Jul-2009  mbalmer Remove an old workaround from SCCS times (%M% would insert the filename).
 1.56 20-Jul-2008  lukem branches: 1.56.10;
Remove the \n and tabs from the __COPYRIGHT() strings.
 1.55 13-Apr-2008  dholland branches: 1.55.4;
'_' is functionally alphanumeric in many contexts, including login names.
Since it doesn't have case, treat it like a digit. While here, avoid
setting the associated flag variable by incrementing it.
Fixes PR bin/33521; patch based on one from Dieter Roelants.
 1.54 04-Mar-2008  dholland Sort includes, removing duplicate <time.h>.
 1.53 03-Dec-2007  isaki branches: 1.53.4;
white space fix.
 1.52 17-Jan-2007  hubertf branches: 1.52.4;
Remove duplicated #includes and some trailing whitespace while here.
From Slava Semushin <slava.semushin@gmail.com>
 1.51 16-Nov-2006  christos pass lint
 1.50 28-Dec-2005  christos PR/25605: Frank Kardel: getty leaves ttymodes at read login state when
exec-ing pppd. Fixed as suggested.
 1.49 10-Sep-2005  elad Don't chown/unlink uninitialized lockfile if not uugetty.
From Dr. Wolfgang Stukenbrock, PR/31040.
 1.48 01-Jun-2005  lukem Ensure rval is initialized before we try to check it; it won't be set
if AL or NN are in use.
Detected with gcc -Wuninitialized.
 1.47 17-Mar-2005  christos print ptyfs ptys properly.
 1.46 05-Nov-2004  dsl branches: 1.46.2;
Add (unsigned char) cast to ctype functions
 1.45 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.44 20-May-2003  thorpej Add a "nn" (no name) capability to getty. If set in gettytab, getty
will not prompt for a login name, and will not pass one along to the
login program. This can be used to accomodate login programs that have
an alternate way of selecting the user to log in.
 1.43 17-May-2003  itojun use strlcpy
 1.42 14-Dec-2001  christos PR/14941: David Querbach: add support for non-standard MS-Windows PPP client.
 1.41 10-Nov-2001  thorpej ANSI'ify.
 1.40 10-Nov-2001  thorpej Const'ify partab[].
 1.39 02-Nov-2001  christos Update to the new t_agetstr() API.
 1.38 19-Feb-2001  cgd convert to use getprogname()
 1.37 04-Feb-2001  christos remove redundant decls
fix nested extern
 1.36 10-Jan-2001  lukem - don't use LOG_ODELAY; it's the default
- use LOG_WARNING (instead of LOG_ERR) for non-fatal errors
 1.35 28-Dec-2000  sommerfeld Add new :cs: modifier to gettytab which clears the screen using the
appropriate control sequence from termcap (based on the terminal type
listed in /etc/ttys for the line).
 1.34 08-Oct-2000  bjh21 Clean-up of grotty SCCS workaround. It's now almost not grotty at all.
This is the last part of PR bin/10049.
 1.33 08-Oct-2000  bjh21 Don't run over the end of the banner buffer if it ends with '%'.
From PR bin/10049
 1.32 19-Sep-2000  mjl Use strlcpy/strlcat instead of strn* plus manual termination.
Use sizeof() instead of hardcoded length. Clean up NULL vs 0
confusion. sizeof(char) is 1, really.
 1.31 14-Jan-2000  ad branches: 1.31.4;
- Either QVT/Term or the NT 'clipboard' converts tabs to spaces. I pasted in
some code via QVT/Term. Sigh. Fix it.
- Teeny KNF nit.
 1.30 04-Jan-2000  ad Add two new capabilities to gettytab - idea from FreeBSD:
al - user to auto-login as
if - banner file to display, like /etc/issue
 1.29 15-Dec-1999  drochner add one byte to the username character array and make sure the string
passed to "login" is '\0'-terminated
 1.28 15-Jan-1999  kml branches: 1.28.2; 1.28.6;
Ensure that all of the initial message (im=) gets flushed to the
screen; previously, the last buffer worth of text would fail
to be printed.
 1.27 12-Oct-1998  tsarna Add PPP autodetect, based on code from FreeBSD via OpenBSD.
 1.26 06-Jul-1998  mrg - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
 1.25 30-Mar-1998  mrg remove register.
 1.24 18-Nov-1997  thorpej Const'ify some things, rename local puts() to xputs(), since it has
a different prototype than the one in <stdio.h>
 1.23 19-Oct-1997  cjs Add uugetty capability.
 1.22 06-Aug-1997  mikel use <sys/cdefs.h> __COPYRIGHT() and __RCSID() macros
prototype internal functions and eliminate old function declarations
misc cleanup (gcc -Wall) and KNF
 1.21 06-Aug-1997  mikel don't include <signal.h> twice
 1.20 29-Apr-1997  tls fix a couple of unlikely buffer overflows.
 1.19 14-Nov-1996  gwr After the chown(ttyn, 0, 0), call ttyaction(ttyn, "getty", "root")
 1.18 31-Jul-1996  thorpej RCS id police.
 1.17 15-May-1996  jtc Updated to use <util.h>.
From Greg Hudson <ghudson@MIT.EDU>.
 1.16 08-Feb-1996  mycroft Make sure that the user name cannot ever be interpreted as an option to
login(8). Note: This does *not* fix any security holes.
 1.15 13-Aug-1995  cgd log open failure every 10th try (that was the old behaviour) UNLESS
the error is ENXIO and it's already been logged. (this allows people
to leave getty's running on nonexistent devices without filling their
syslog. while it's arguable that that might not be a good idea, i've
found it to be _very_ useful, because it allows me to rdist /etc/ttys.)
 1.14 19-Jun-1995  jtc sys/termios.h -> termios.h
 1.13 18-Sep-1994  mycroft Fix typo in date format.
 1.12 05-Sep-1994  pk Use tcflush().
 1.11 05-Sep-1994  pk Set control flags properly while in read mode.
Supply process ID when syslogging.
 1.10 24-Aug-1994  mycroft Fix pad insertion for termios.
 1.9 24-Aug-1994  mycroft branches: 1.9.2;
Use cfset[io]speed() to set termios speeds, per POSIX.
 1.8 17-Aug-1994  pk Cleanup import, merge local changes.
 1.7 28-Apr-1994  pk Towards termios.
 1.6 17-Mar-1994  pk TIOCFLUSH requires argument
 1.5 09-Mar-1994  cgd fix bin/140: use getcap(3) routines
 1.4 08-Mar-1994  mycroft We don't need or want set_ttydefaults().
 1.3 29-Aug-1993  mycroft Add some more magic cookies for the `im' string to display info from
uname(2):

%s sysname
%r release
%v version
%m machine
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 17-Aug-1994  pk Import 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.9.2.2 24-Aug-1994  mycroft update from trunk
 1.9.2.1 24-Aug-1994  mycroft file main.c was added on branch netbsd-1-0 on 1994-08-24 17:12:38 +0000
 1.28.6.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.28.2.1 20-Dec-1999  he Pull up revision 1.29 (via patch, requested by drochner):
Make room for a terminating '\0' in the username string and make
sure the user name passed to "login" is terminated.
 1.31.4.1 17-Oct-2000  tv Pullup 1.33 [bjh21]:
Don't run over the end of the banner buffer if it ends with '%'.
 1.46.2.2 13-Jun-2005  tron Pull up revision 1.48 (requested by lukem in ticket #398):
Ensure rval is initialized before we try to check it; it won't be set
if AL or NN are in use.
Detected with gcc -Wuninitialized.
 1.46.2.1 19-Mar-2005  tron Pull up revision 1.47 (requested by christos in ticket #24):
print ptyfs ptys properly.
 1.52.4.2 23-Mar-2008  matt sync with HEAD
 1.52.4.1 09-Jan-2008  matt sync with HEAD
 1.53.4.1 24-Mar-2008  keiichi sync with head.
 1.55.4.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.56.10.1 30-Apr-2010  matt Syslog if login_tty fails
 1.58.8.1 05-Jul-2012  riz Pull up following revision(s) (requested by roy in ticket #391):
libexec/getty/main.c: revision 1.59
Don't attempt to parse a termcap/terminfo string ourselves;
always use tputs(3).
 1.58.6.3 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.58.6.2 16-Jan-2013  yamt sync with (a bit old) head
 1.58.6.1 30-Oct-2012  yamt sync with head
 1.59.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.59.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.65.2.1 20-Mar-2017  pgoyette Sync with HEAD
 1.66.14.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.9 04-Feb-2008  christos move gettytab to paths.h
 1.8 07-Aug-2003  agc branches: 1.8.22;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.7 14-Jan-2000  ad Put RCS ID in the right place.
 1.6 06-Jan-1998  perry RCSID Police.
 1.5 19-Oct-1997  cjs Add uugetty capability.
 1.4 31-Jul-1996  thorpej RCS id police.
 1.3 17-Aug-1994  pk branches: 1.3.2;
Cleanup import, merge local changes.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 17-Aug-1994  pk Import 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.3.2.2 17-Aug-1994  pk Cleanup import, merge local changes.
 1.3.2.1 17-Aug-1994  pk file pathnames.h was added on branch netbsd-1-0 on 1994-08-17 20:10:40 +0000
 1.8.22.1 23-Mar-2008  matt sync with HEAD
 1.35 11-Aug-2013  dholland Don't try to estrdup() NULL; thanks martin@
 1.34 11-Aug-2013  dholland Pass WARNS=5.
 1.33 16-Nov-2006  christos branches: 1.33.40; 1.33.46;
pass lint
 1.32 16-Nov-2006  christos fix gcc4 sign issues.
 1.31 21-May-2005  christos Support VEOL2 and VSTATUS
 1.30 23-Apr-2004  christos add const to cgetent arg.
 1.29 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.28 23-Sep-2002  mycroft null commit
 1.27 23-Sep-2002  itojun poll.h, not sys/poll.h
 1.26 18-Sep-2002  mycroft select() -> poll() and nanosleep()
 1.25 10-Nov-2001  thorpej ANSI'ify.
 1.24 19-Sep-2000  mjl Use strlcpy/strlcat instead of strn* plus manual termination.
Use sizeof() instead of hardcoded length. Clean up NULL vs 0
confusion. sizeof(char) is 1, really.
 1.23 30-Mar-1998  mrg remove register.
 1.22 06-Aug-1997  mikel use <sys/cdefs.h> __COPYRIGHT() and __RCSID() macros
prototype internal functions and eliminate old function declarations
misc cleanup (gcc -Wall) and KNF
 1.21 29-Apr-1997  tls fix a couple of unlikely buffer overflows.
 1.20 27-Sep-1996  thorpej Don't truncate long hostnames.
From SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp>, PR #2676.
 1.19 31-Jul-1996  thorpej RCS id police.
 1.18 05-Oct-1995  mycroft Update from kernel source.
 1.17 05-Oct-1995  mycroft Change to use SET(), CLR(), and ISSET() macros. Copy current sgtty->termios
conversion code from kernel.
 1.16 05-Oct-1995  mycroft Fix some other problems created during the termios switch.
 1.15 05-Oct-1995  mycroft Simulate the old newline behaviour better, and make sure OPOST
is set if needed.
 1.14 05-Sep-1994  pk Use tcflush().
 1.13 05-Sep-1994  pk Set control flags properly while in read mode.
Supply process ID when syslogging.
 1.12 24-Aug-1994  mycroft Use _POSIX_VDISABLE, not \377.
 1.11 24-Aug-1994  mycroft branches: 1.11.2;
Use cfset[io]speed() to set termios speeds, per POSIX.
 1.10 17-Aug-1994  pk The man page says to disable input parity checking if `ap' is on.
 1.9 17-Aug-1994  pk Cleanup import, merge local changes.
 1.8 15-Aug-1994  pk Handle parity stuff more sensibly; `ep' and `op' take precedence over `ap'.
Update tty_compat().
 1.7 28-Apr-1994  pk Towards termios.
 1.6 16-Apr-1994  cgd renamed 'md' to 'mb'
 1.5 16-Apr-1994  cgd quick cut at adding 'md' for MDMBUF
 1.4 09-Mar-1994  cgd fix bin/140: use getcap(3) routines
 1.3 01-Aug-1993  mycroft Add RCS identifiers.
 1.2 05-Jun-1993  cgd patch from David Greenman and Rod Grimes (davidg@implode.rain.com and
rgrimes@agora.rain.com) to support 57600 and 115200 baud
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 17-Aug-1994  pk Import 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.11.2.2 24-Aug-1994  mycroft update from trunk
 1.11.2.1 24-Aug-1994  mycroft file subr.c was added on branch netbsd-1-0 on 1994-08-24 17:10:44 +0000
 1.33.46.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.33.40.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3 08-Mar-1994  mycroft Clean up deleted files.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 17-Aug-1994  pk Import 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.24 06-Jul-2024  simonb Use the more BSDish "kill -HUP" rather than alien^Wposix style "kill -s HUP".
 1.23 04-Jul-2024  uwe ttys(5): revert duplicate description of kill -HUP

The old one should be easier to see now.
ok riastradh@
 1.22 03-Jul-2024  uwe ttys(5): touch up markup

Make the original SIGHUP example at the end of the text more visible
by using a display to show it. I will let riastradh@ decide how he
wants to deal with that duplicate. The one at the end also mentions
ttyflags(8) which refers to the flags documented in this manpage, so
it's a bit awkward to move that paragraph to the beginning of the
page.
 1.21 03-Jul-2024  riastradh ttys(5): Note how to effect changes.
 1.20 12-Feb-2015  aymeric branches: 1.20.28;
Fix previous commit by using tty00 as an example of dialin peripheral instead
of dialout dty00.
Thanks to mrg@ for pointing it out.
 1.19 12-Nov-2014  aymeric update the example to use dty00 instead of ttyd0 to reflect a current practice
 1.18 21-Apr-2012  roy branches: 1.18.10;
Add capfile(5) to describe the termcap format.
Adjust various man pages and other documentation to point to capfile(5)
instead of termcap(5).
Remove getcap(3) as curses hasn't been building it for a long time.
Punt wrterm.c as tset no longer uses it.
 1.17 06-Oct-2006  elad branches: 1.17.40;
PR/13478: Greg A. Woods: some tty-related documentation fixes

Patch applied with "minor tweaks" from me, thanks!
 1.16 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.15 15-Jan-2002  wiz Sort sections and fix punctuation nit.
 1.14 07-Nov-2000  lukem provide obvious example of line syntax
 1.13 17-May-2000  fair Deal with PR 9427 - add wording to clarify what sending SIGHUP to init(8)
does and does not do. Also, while we're here, make the list of flags more
readable.
 1.12 15-Jan-1999  tsarna branches: 1.12.2;
Add a "class" entry to ttyent. Closes PR#4638.
 1.11 14-Nov-1998  scottr Grammar police: comprised of -> comprising
 1.10 29-Apr-1998  fair fix bad .Xr references
 1.9 22-Apr-1998  hubertf Add note on how to re-read this file (via PR 5341 by David Brownlee)
 1.8 20-Oct-1997  enami Fix .Nm usage.
 1.7 31-Jul-1996  thorpej RCS id police.
 1.6 17-Aug-1994  pk branches: 1.6.2;
Cleanup import, merge local changes.
 1.5 21-Mar-1994  cgd another flag
 1.4 12-Mar-1994  cgd add some new flags for /etc/ttys
 1.3 07-Aug-1993  cgd merge in changes from netbsd-0-9-ALPHA2
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 17-Aug-1994  pk Import 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd branches: 1.1.1.1.2;
initial import of 386bsd-0.1 sources
 1.1.1.1.2.1 07-Aug-1993  cgd kill extra "The" found by Andreas Schulz <ats@g386bsd.first.gmd.de>
 1.6.2.2 17-Aug-1994  pk Cleanup import, merge local changes.
 1.6.2.1 17-Aug-1994  pk file ttys.5 was added on branch netbsd-1-0 on 1994-08-17 20:10:42 +0000
 1.12.2.1 22-May-2000  he Pull up revision 1.13 (requested by fair):
Fix documentation regarding rtscts/mdmbuf/dtrcts. Fixes PR#9427.
 1.17.40.1 23-May-2012  yamt sync with head.
 1.18.10.2 14-Feb-2015  snj Pull up following revision(s) (requested by aymeric in ticket #510):
libexec/getty/ttys.5: revision 1.20
Fix previous commit by using tty00 as an example of dialin peripheral instead
of dialout dty00.
Thanks to mrg@ for pointing it out.
 1.18.10.1 11-Feb-2015  martin Pull up following revision(s) (requested by aymeric in ticket #508):
libexec/getty/ttys.5: revision 1.19
update the example to use dty00 instead of ttyd0 to reflect a current practice
 1.20.28.1 02-Aug-2025  perseant Sync with HEAD
 1.56 28-Apr-2024  maya Bump bozohttpd version to today for mobile-friendly directory listing
 1.55 26-Jan-2024  mrg add some missing changes and bump the version.
 1.54 02-Nov-2022  andvar branches: 1.54.2;
fix various typos in comments and messages.
 1.53 04-Jan-2022  kim bozohttpd: remove obsolete .bzdirect handling

OK mrg@
 1.52 03-Sep-2021  andvar fix typos in comments, mainly s/extention/extension/ and s/sufficent/sufficient/
 1.51 24-Aug-2021  mrg extend the list of available ciphers to include most of the
openssl "HIGH" with some additional disables. retain the current
list of bad options. should deal with PR#51278.
 1.50 24-Aug-2021  mrg implement tls minimum version setting.

mostly from sunil@nimmagadda.net in PR#55830, though i moved the
member into the main http structure, so that it doesn't trigger
sslinfo being allocated via command line without the rest of the
ssl being setup (which then leads to crashes.)
 1.49 05-May-2021  mrg don't assume host BUFSIZ is sufficent. small BUFSIZ leads to
always happens errors in the testsuite. switch all these buffers
to be 4KiB sized. reported by embr <git@liclac.eu>
 1.48 04-Apr-2021  mrg avoid DoS in initial request size, which is now bounded at 16KiB.
reported by Justin Parrott in PR#56085.
 1.47 27-Feb-2021  mrg changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid
 1.46 27-Feb-2021  mrg belated call version 20210211 after previous memory leak fix.
 1.45 11-Feb-2021  mrg changes in bozohttpd 20210210:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
 1.44 15-Oct-2020  mrg various updates from <henrik@gulbra.net> / freebsd. the list from Henrik:

bozohttpd.8:
o Added -d flag to the man page
o Moved -E flag in man page to keep alphabetic order
o Grammar fix for description of -E flag in man page
o Moved a word in the man description for the -f flag
o Made -f imply -b as a backwards-compatible shortcut
o Updated man description of -n to mention Lua scripts
o Moved -z below -Z to keep the uppercase options first

bozohttpd.c:
o Removed obsolete comment about ~user missing cgi-bin support
o Removed "/* ARGSUSED */" lines; was that a macro or a reminder?
o Added USE_ARG macro call for sig, which was otherwise not used
o Added USE_ARG macro call for msg (only used if debug is enabled)

bozohttpd.h:
o Fixed typo in the include guard (BOZOHTTOPD_H_ -> BOZOHTTPD_H_)
o Renamed have_all to have_core; it didn't mean "all" options

content-bozo.c:
o Added USE_ARG macro call for signo, which was otherwise not used
o Made -f imply -b as a backwards-compatible shortcut

main.c:
o Simplified -b text to be symmetric with that for the -f option
o Updated -C text to make "suffix" explicit; it's better than "arg"
o Changed to only show the -E description if have_user is true
o Always show the -e option, which incorrectly used the -E logic
o Renamed have_all to have_core; it didn't mean "all" options
o Added three missing tabs for the description of the -G option
o Updated -L text to make "prefix" explicit; it's better than "arg"
o Updated -M text to make "suffix" explicit; it's slightly better
o Added a previously missing description for the -n option
o Documented the otherwise obscure valid types for the -T option
o Shortened "username" to "user" to match the actual help text
o Moved handling of -c below that for -C to standardize the order
o Broke the enabling test for -C into two lines for consistency
o Inverted the enabling test for -E; this is what was meant, right?
o Removed the enabling test for -e, which should always be enabled

ssl-bozo.c:
o Added USE_ARG for httpd, which is not used if SSL has been excluded
 1.43 15-Oct-2020  mrg set -D_GNU_SOURCE in Makefile.boot. from hadrien.lacour@posteo.net.
also match %2F as well as %2f. from leah@vuxu.org.
introduce defines for "80" and "443". copyright maint.
 1.42 12-Sep-2020  rhialto bozohttpd: add .m4a and .m4v file extensions.
 1.41 20-Aug-2020  mrg update for recent changes.
 1.40 28-Feb-2019  mrg branches: 1.40.2;
call this bozohttpd 20190228, and merge the CHANGES entries from the
previous release.
 1.39 27-Jan-2019  dholland fix duplicated chunk from merge
 1.38 27-Jan-2019  pgoyette Merge the [pgoyette-compat] branch
 1.37 22-Jan-2019  mrg o don't display special files in the directory index. they aren't
served, but links to them are generated.
 1.36 17-Jan-2019  mrg - call this 20190116
- adjust the directory indexing again:
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
all from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>
 1.35 17-Jan-2019  mrg - fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().

both from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>
 1.34 19-Dec-2018  mrg minor rewording. fix alphabeta ordering of contributors.
 1.33 18-Dec-2018  mrg fix an old spell-o and a new format-o.
 1.32 15-Dec-2018  leot Document last changes and bump version to 20181215

Suggested by <mrg>, thanks! (Possible mistakes are mine though!)
 1.31 04-Dec-2018  mrg use html tables for directory index.
from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>

call this bozohttpd 20181204.
 1.30 25-Nov-2018  mrg normalise some messages.
 1.29 25-Nov-2018  mrg add option fixes here.
 1.28 21-Nov-2018  mrg - move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.
 1.27 20-Nov-2018  mrg from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.


the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.


reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.


clean up option and usage handling some.
 1.26 19-Nov-2018  mrg note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin@netbsd.org
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.
 1.25 31-Jan-2017  mrg branches: 1.25.4; 1.25.10; 1.25.12;
- fix a bug in cgi processing. from Dennis Lindroos.
- add a testcase for this, and expand test-simple to handle additional
args to bozohttpd for eg, cgi-bin setting.
- fix objdir bugs in the testsuite.
 1.24 20-Aug-2016  mrg branches: 1.24.2;
use netbsd rcsid
 1.23 24-May-2016  agc branches: 1.23.2;
As proposed in:

http://mail-index.netbsd.org/tech-userlevel/2016/05/18/msg009999.html

and

https://www.netbsd.org/~agc/bozo-20160517.diff

add a patch to httpd to return the version string of httpd itself, and use the
-G option on the command line to enable this. This gives httpd the ability to
show, from the command line, what version is running.

% /usr/build/obj/x86_64/usr/src/libexec/httpd/bozohttpd -G
bozohttpd version bozohttpd/20160415
%
 1.22 15-Apr-2016  mrg updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.21 28-Oct-2015  shm * add CGI support for ~user translation (-E switch)
* add redirects to ~user translation
* fix bugs around ~user translation
* add schema detection for absolute redirects
* fixed few memory leaks
* bunch of minor tweaks
* removed -r support
* smarter redirects

OK mrg@
 1.20 20-Mar-2015  mrg copyright maintenance, note shm@ in the manual and update the CHANGES
for recent changes. call this 20150320.
 1.19 17-Jul-2014  mrg branches: 1.19.2;
call this 20140717.
 1.18 08-Jul-2014  mrg call this bozohttpd 20140708, and add/fix a couple of CHANGES entries.
 1.17 08-Jul-2014  mrg avoid truncating a directory path when using snprintf(), but instead
detect and return an error.

found and fixed by shm@netbsd.
 1.16 17-May-2014  mrg bump version, note .svg support.
 1.15 02-Feb-2014  mrg branches: 1.15.2;
update for 2014-02-01.
 1.14 02-Jan-2014  mrg - update CHANGES with recent changes
- update version to 20140102
- update copyrights
- use getcwd() over getwd()
- fix lean build (don't include lua)
 1.13 11-Jul-2013  mrg - update CHANGES with recent changes
- export esacpe_html() and use it in directory indexing
- update manual to include recent contributors
 1.12 19-Jul-2012  mrg branches: 1.12.2;
when generating URIs escape various characters as specified in RFC 3986.
this makes, among other things, files/dirs with "?" work with dir indexing.
 1.11 18-Nov-2011  mrg branches: 1.11.2; 1.11.6; 1.11.8;
merge bozohttpd 20111118
 1.10 20-Sep-2010  mrg branches: 1.10.6;
merge bozohttpd 20100920
 1.9 22-Jun-2010  mrg merge bozohttpd 20100621
 1.8 17-Jun-2010  mrg merge bozohttpd 20100617.
 1.7 15-May-2010  mrg merge bozohttpd 20100512
 1.6 10-May-2010  mrg merge bozohttpd 20100509.
 1.5 23-May-2009  mrg merge bozohttpd 20090522
 1.4 18-Apr-2009  mrg merge bozohttpd 20090418. remove a couple of minor do-nothing local
changes that don't need to cause conflicts.
 1.3 18-Apr-2009  mrg re-add a lot of the distribution files
 1.2 16-Oct-2007  tls branches: 1.2.10; 1.2.12; 1.2.16; 1.2.20;
Get httpd ready for inclusion in build.
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.11 18-Nov-2011  mrg update to bozohttpd 20111118. nothing major is missing here but
the changes since the prior import were:

o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well
 1.1.1.10 20-Sep-2010  mrg initial import of bozohttpd 20100920. the only change missing in here is:

o fix dynamic CGI content maps, from rudolf
 1.1.1.9 22-Jun-2010  mrg initial import of bozohttpd 20100621. change include:

o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
 1.1.1.8 17-Jun-2010  mrg initial import of bozohttpd 20100617. recent changes:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour
 1.1.1.7 15-May-2010  mrg import bozohttpd 20100512. it includes these changes:
o fix SSL mode. from rtr.
 1.1.1.6 10-May-2010  mrg import bozohttpd 20100509. it has these changes:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
 1.1.1.5 23-May-2009  mrg import bozohttpd 20090522, which has these changes:
o close more leaking file descriptors for CGI and daemon mode
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child
 1.1.1.4 18-Apr-2009  mrg import bozohttpd 20090418. changes include:

o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet

this covers PR#38489 and PR#40079, as well some some issues reported
privately.
 1.1.1.3 18-Apr-2009  mrg import latest bozohttpd sources. changes include:

o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.2 03-Mar-2008  mrg import latest bozohttpd. changes include:

o fix some cgi header processing, from <thelsdj@gmail.com>
o add simple Range: header processing, from <bad@bsd.de>
o man page fixes, from NetBSD
o clean up various parts, from NetBSD
o prefix some function names with "bozo"
o align directory indexing <hr> markers
o clean up some code GCC4 grumbled about
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.2.20.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.16.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.12.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.10.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.10.6.3 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.10.6.2 30-Oct-2012  yamt sync with head
 1.10.6.1 17-Apr-2012  yamt sync with head
 1.11.8.3 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437:
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.11.8.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.11.8.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.11.6.3 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.11.6.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.11.6.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.11.2.3 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.11.2.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.11.2.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.12.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.15.2.1 10-Aug-2014  tls Rebase.
 1.19.2.8 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.19.2.7 28-Nov-2018  martin Pull up following revision(s) (requested by mrg in ticket #1659):

libexec/httpd/main.c: revision 1.22
libexec/httpd/CHANGES: revision 1.29
libexec/httpd/cgi-bozo.c: revision 1.45
libexec/httpd/bozohttpd.h: revision 1.57
libexec/httpd/CHANGES: revision 1.30
libexec/httpd/bozohttpd.c: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.98
libexec/httpd/bozohttpd.c: revision 1.99

one semicolon is usually enough.

-

appease lint

- add FALLTHROUGH comment
- one return is usually enough.

-

avoid c99ism.

-

fix -X option parsing. noted by Rajeev V. Pillai.

-

add option fixes here.

-

normalise some messages.
 1.19.2.6 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.19.2.5 12-Feb-2017  snj branches: 1.19.2.5.2;
Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.19.2.4 23-Dec-2016  snj Pull up following revision(s) (requested by mrg in ticket #1309):
libexec/httpd/CHANGES: revisions 1.23, 1.24
libexec/httpd/bozohttpd.8: revisions 1.60-1.62
libexec/httpd/bozohttpd.c: revisions 1.81-1.84
libexec/httpd/bozohttpd.h: revision 1.46
libexec/httpd/cgi-bozo.c: revision 1.35
libexec/httpd/content-bozo.c: revision 1.14
libexec/httpd/main.c: revisions 1.14-1.16
libexec/httpd/testsuite/Makefile: revision 1.6
libexec/httpd/testsuite/test-bigfile: revision 1.3
libexec/httpd/testsuite/test-simple: revisions 1.1, 1.2
update bozohttpd to 2016072:
- fix memory leak
- addd -G option to display version
- fix some content type issues
- fix issues in testsuite
 1.19.2.3 15-Apr-2016  snj branches: 1.19.2.3.2;
Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.19.2.2 10-Apr-2016  martin Catch up to -current (via patch), requested by mspo in #1141:

libexec/httpd/CHANGES up to 1.21
libexec/httpd/Makefile up to 1.26
libexec/httpd/auth-bozo.c up to 1.18
libexec/httpd/bozohttpd.8 up to 1.58
libexec/httpd/bozohttpd.c up to 1.79
libexec/httpd/bozohttpd.h up to 1.44
libexec/httpd/cgi-bozo.c up to 1.32
libexec/httpd/content-bozo.c up to 1.13
libexec/httpd/daemon-bozo.c up to 1.17
libexec/httpd/dir-index-bozo.c up to 1.25
libexec/httpd/lua-bozo.c up to 1.14
libexec/httpd/main.c up to 1.13
libexec/httpd/netbsd_queue.h up to 1.1
libexec/httpd/printenv.lua up to 1.3
libexec/httpd/ssl-bozo.c up to 1.22
libexec/httpd/tilde-luzah-bozo.c up to 1.14
libexec/httpd/testsuite/Makefile up to 1.5
libexec/httpd/testsuite/test-bigfile up to 1.2

Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
 1.19.2.1 19-Apr-2015  msaitoh branches: 1.19.2.1.2;
Pull up following revision(s) (requested by mrg in ticket #705):
libexec/httpd/CHANGES: revision 1.20
libexec/httpd/bozohttpd.8: revision 1.49
libexec/httpd/bozohttpd.c: revision 1.62-1.63
don't quote /. it doesn't work. this should fix PR#49765.
copyright maintenance, note shm@ in the manual and update the CHANGES
for recent changes. call this 20150320.
 1.19.2.5.2.3 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.19.2.5.2.2 28-Nov-2018  martin Pull up following revision(s) (requested by mrg in ticket #1659):

libexec/httpd/main.c: revision 1.22
libexec/httpd/CHANGES: revision 1.29
libexec/httpd/cgi-bozo.c: revision 1.45
libexec/httpd/bozohttpd.h: revision 1.57
libexec/httpd/CHANGES: revision 1.30
libexec/httpd/bozohttpd.c: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.98
libexec/httpd/bozohttpd.c: revision 1.99

one semicolon is usually enough.

-

appease lint

- add FALLTHROUGH comment
- one return is usually enough.

-

avoid c99ism.

-

fix -X option parsing. noted by Rajeev V. Pillai.

-

add option fixes here.

-

normalise some messages.
 1.19.2.5.2.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.19.2.3.2.2 13-Mar-2017  skrll Sync with netbsd-7-1-RELEASE
 1.19.2.3.2.1 18-Jan-2017  skrll Sync with netbsd-5
 1.19.2.1.2.6 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.19.2.1.2.5 28-Nov-2018  martin Pull up following revision(s) (requested by mrg in ticket #1659):

libexec/httpd/main.c: revision 1.22
libexec/httpd/CHANGES: revision 1.29
libexec/httpd/cgi-bozo.c: revision 1.45
libexec/httpd/bozohttpd.h: revision 1.57
libexec/httpd/CHANGES: revision 1.30
libexec/httpd/bozohttpd.c: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.98
libexec/httpd/bozohttpd.c: revision 1.99

one semicolon is usually enough.

-

appease lint

- add FALLTHROUGH comment
- one return is usually enough.

-

avoid c99ism.

-

fix -X option parsing. noted by Rajeev V. Pillai.

-

add option fixes here.

-

normalise some messages.
 1.19.2.1.2.4 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.19.2.1.2.3 12-Feb-2017  snj Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.19.2.1.2.2 23-Dec-2016  snj Pull up following revision(s) (requested by mrg in ticket #1309):
libexec/httpd/CHANGES: revisions 1.23, 1.24
libexec/httpd/bozohttpd.8: revisions 1.60-1.62
libexec/httpd/bozohttpd.c: revisions 1.81-1.84
libexec/httpd/bozohttpd.h: revision 1.46
libexec/httpd/cgi-bozo.c: revision 1.35
libexec/httpd/content-bozo.c: revision 1.14
libexec/httpd/main.c: revisions 1.14-1.16
libexec/httpd/testsuite/Makefile: revision 1.6
libexec/httpd/testsuite/test-bigfile: revision 1.3
libexec/httpd/testsuite/test-simple: revisions 1.1, 1.2
update bozohttpd to 2016072:
- fix memory leak
- addd -G option to display version
- fix some content type issues
- fix issues in testsuite
 1.19.2.1.2.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.23.2.1 20-Mar-2017  pgoyette Sync with HEAD
 1.24.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.25.12.1 10-Jun-2019  christos Sync with HEAD
 1.25.10.4 26-Jan-2019  pgoyette Sync with HEAD
 1.25.10.3 18-Jan-2019  pgoyette Synch with HEAD
 1.25.10.2 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.25.10.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.25.4.4 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.25.4.3 12-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1281:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6


Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.25.4.2 28-Nov-2018  martin Pull up following revision(s) (requested by mrg in ticket #1109):

libexec/httpd/main.c: revision 1.22
libexec/httpd/CHANGES: revision 1.29
libexec/httpd/cgi-bozo.c: revision 1.45
libexec/httpd/bozohttpd.h: revision 1.57
libexec/httpd/CHANGES: revision 1.30
libexec/httpd/bozohttpd.c: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.98
libexec/httpd/bozohttpd.c: revision 1.99

one semicolon is usually enough.

-

appease lint

- add FALLTHROUGH comment
- one return is usually enough.

-

avoid c99ism.

-

fix -X option parsing. noted by Rajeev V. Pillai.

-

add option fixes here.

-

normalise some messages.
 1.25.4.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.40.2.1 05-Mar-2021  martin Pull up the following (all via patch), requested by mrg in ticket #1221:

lib/lua/bozohttpd/Makefile (apply patch)
libexec/httpd/Makefile 1.30-1.31
libexec/httpd/Makefile.boot 1.7-1.9
libexec/httpd/auth-bozo.c 1.25-1.26
libexec/httpd/bozohttpd.8 1.80-1.87
libexec/httpd/bozohttpd.c 1.114-1.123,1.125-1.128
libexec/httpd/bozohttpd.h 1.61-1.68
libexec/httpd/cgi-bozo.c 1.49-1.53
libexec/httpd/content-bozo.c 1.17-1.20
libexec/httpd/daemon-bozo.c 1-.22
libexec/httpd/dir-index-bozo.c 1.33-1.34
libexec/httpd/main.c 1.23-1.27
libexec/httpd/printenv.lua 1.4-1.5
libexec/httpd/ssl-bozo.c 1.27-1.29
libexec/httpd/libbozohttpd/libbozohttpd.3 1.5-1.6
libexec/httpd/small/Makefile 1.4
libexec/httpd/testsuite/Makefile 1.14
libexec/httpd/testsuite/t16.in 1.1
libexec/httpd/testsuite/t16.out 1.1
libexec/httpd/testsuite/t17.in 1.1
libexec/httpd/testsuite/t17.out 1.1
libexec/httpd/testsuite/t18.in 1.1
libexec/httpd/testsuite/t18.out 1.1


Update to bozohttpd 20210227.
Apply lua build fix (no blocklist support on this branch).

changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.54.2.1 29-Jul-2025  martin Pull up following revision(s) (requested by mrg in ticket #1139):

libexec/httpd/CHANGES: revision 1.55
libexec/httpd/CHANGES: revision 1.56
libexec/httpd/cgi-bozo.c: revision 1.55
libexec/httpd/cgi-bozo.c: revision 1.56
libexec/httpd/bozohttpd.8: revision 1.93
libexec/httpd/bozohttpd.8: revision 1.94
libexec/httpd/bozohttpd.8: revision 1.95
libexec/httpd/bozohttpd.8: revision 1.96
libexec/httpd/bozohttpd.8: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.143
libexec/httpd/bozohttpd.8: revision 1.100
libexec/httpd/bozohttpd.c: revision 1.144
libexec/httpd/bozohttpd.8: revision 1.99
libexec/httpd/bozohttpd.c: revision 1.145
libexec/httpd/bozohttpd.c: revision 1.146
libexec/httpd/bozohttpd.c: revision 1.147
libexec/httpd/auth-bozo.c: revision 1.28
libexec/httpd/ssl-bozo.c: revision 1.33
libexec/httpd/ssl-bozo.c: revision 1.34
libexec/httpd/content-bozo.c: revision 1.22
libexec/httpd/main.c: revision 1.31

serve .iso as "application/octet-stream". bump version & copyright.

add a note about how to setup http -> https redirection.
bump documented version.

Fix memory leaks in bozo_cleanup

Fix hr_authrealm memory leak
hr_authrealm might be already set, so we need to free it before overwriting
the value

Remove unused variable (bp)

Fix off-by-one in bozo_decode_url_percent

In case of strings that end with '%', debug function was reading past buffer.
Removed unnecessary comment
Thanks leot@ for pointing this out

httpd(8): Add missing newline to `SSL Error' messages.
Matches the pattern in all other printf/syslog calls.

add some missing changes and bump the version.

s/supressing/suppressing/.

note this documents bozohttpd 20240126.

Bump bozohttpd version to today for mobile-friendly directory listing

bozohttpd(8): clarifications and editorial fixes

Clarify that -b also listens on an address and port
(overridden by -i address and/or -I port), as does -f.

If -i isn't given, all addresses are listened to.
Use literal instead of emphasis for Lua, paths, URLs (etc).

Add more cross-references to other options.

Split FILES into a tagged list and subsections describing
the behaviour.

drop duplicate "by default".
 1.37 19-Oct-2025  riastradh openssl: Stop dragging libpthread into every libcrypto user.

With the new _NETBSD_PTHREAD_CREATE_WEAK, libcrypto can have a call
to pthread_create without linking against libpthread, so it is not
necessary to link all libcrypto users against libpthread too.

Applications that link against libcrypto but not libpthread can't use
threaded OpenSSL functionality, of course -- OSSL_set_max_threads
will always fail in such applications.

This reverts all the makefile churn that I found for unnecessary
libpthread linkage since the openssl 3.5 import.

PR lib/59685: libcrypto should not depend on libpthread
 1.36 19-Jul-2025  christos crypto needs pthread
 1.35 10-Apr-2025  rillig jemalloc, httpd: remove now-unnecessary LINTFLAGS
 1.34 06-Apr-2025  rillig all: remove 'constant in conditional context' from LINTFLAGS

Lint no longer emits this message, as it produced too many false
positives.
 1.33 04-Oct-2024  rillig libexec/httpd: fix or suppress lint warnings

No binary change.
 1.32 09-May-2023  christos branches: 1.32.2;
accommodate OpenSSL-3.x
 1.31 28-Feb-2021  mrg branches: 1.31.6;
avoid warnings from the previous when using objdirs.
 1.30 28-Feb-2021  mrg give BOZOVER a default so exporting a distfile is easy.
 1.29 11-Jul-2020  jruoho Add blocklistd(8) support.
 1.28 17-Jan-2019  mrg branches: 1.28.2;
add 'check' target to toplevel makefile.

fix the t11.out output now that CGI parsing works better.
 1.27 21-May-2017  riastradh branches: 1.27.2; 1.27.8; 1.27.10;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.
 1.26 30-Oct-2015  christos - don't use alloca and then check if alloca returns null and then try to
free it. Allocating from the stack does not return null, and freeing it
will have unpredictable results. use malloc instead.
- now we are using malloc remove -Wno-stack-protector kludge
 1.25 30-Oct-2015  tron Fix build with "USE_SSP" set to "yes".
 1.24 05-Aug-2015  mrg on QNX, use nbutil.h.
 1.23 16-Apr-2015  mrg install as bozohttpd/bozohttpd.8 as well as httpd.
 1.22 08-Jul-2014  mrg branches: 1.22.2;
make export-distfile target slightly more stable.
 1.21 02-Feb-2014  mrg branches: 1.21.2;
display the tempdir for exported files as well.
 1.20 02-Feb-2014  mrg call gzip directly for distfile export target; it's usually run outside
of the normal build.
 1.19 27-Jan-2014  apb Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.
 1.18 27-Jan-2014  apb Use ${TOOL_GZIP} instead of just gzip in all Makefiles
outside */dist/* subdirectories.

When USE_PIGZGZIP=yes, bsd.own.mk sets TOOL_GZIP=${TOOL_PIGZ},
so there's no need to test USE_PIGZGZIP in these Makefiles.
 1.17 16-Oct-2013  he Also depend on LIBLUA, and add -lm to allow static linking.
 1.16 12-Oct-2013  mbalmer add Lua scripting support to bozohttpd, see httpd(8) for details
 1.15 12-Oct-2013  mbalmer remove trailing whitespace
 1.14 11-Jul-2013  mrg add a target to export a bozohttpd distfile.
 1.13 11-Jul-2013  mrg merge parts of the release Makefile back in; unused by the netbsd build.
 1.12 20-Sep-2010  mrg branches: 1.12.6; 1.12.8; 1.12.12; 1.12.14; 1.12.20;
merge bozohttpd 20100920
 1.11 10-May-2010  mrg merge bozohttpd 20100509.
 1.10 23-May-2009  mrg fix a merge botch in previous
 1.9 23-May-2009  mrg merge bozohttpd 20090522
 1.8 16-Mar-2009  lukem Default to WARNS=4
Exceptions that need a lower level are:
getty ld.elf_so lfs_cleanerd makewhatis telnetd tftpd
hpropd ipropd-master ipropd-slave kadmind kpasswdd
 1.7 25-Apr-2008  christos branches: 1.7.4; 1.7.6; 1.7.8; 1.7.14;
warns=4
 1.6 03-Mar-2008  mrg branches: 1.6.2;
use BUILDSYMLINKS to not have to rename bozohttpd.8 while still
having this manual installed as httpd.8. now updates from my
repo to bozohttpd.8 will appear in this file.
 1.5 03-Feb-2008  mrg branches: 1.5.2;
support MKCRYPTO=no:
- don't link -lssl -lcrypto
- -DNO_SSL_SUPPORT
 1.4 18-Oct-2007  he branches: 1.4.2;
A build for sun2 reveals that we also need -lcrypt, as auth-bozo.c
otherwise gets an unsatisfied reference to crypt().
 1.3 17-Oct-2007  reed Fix typo on Makefile which causes HTTP Authentication support
to not be used.

Now fix auth-bozo.c to not have warnings "may be used uninitialized"
and pointer targets "differ in signedness".
 1.2 16-Oct-2007  tls Get httpd ready for inclusion in build.
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.4 20-Sep-2010  mrg initial import of bozohttpd 20100920. the only change missing in here is:

o fix dynamic CGI content maps, from rudolf
 1.1.1.3 10-May-2010  mrg import bozohttpd 20100509. it has these changes:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
 1.1.1.2 23-May-2009  mrg import bozohttpd 20090522, which has these changes:
o close more leaking file descriptors for CGI and daemon mode
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.4.2.3 23-Mar-2008  matt sync with HEAD
 1.4.2.2 06-Nov-2007  matt sync with HEAD
 1.4.2.1 18-Oct-2007  matt file Makefile was added on branch matt-armv6 on 2007-11-06 23:12:01 +0000
 1.5.2.1 24-Mar-2008  keiichi sync with head.
 1.6.2.1 18-May-2008  yamt sync with head.
 1.7.14.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.7.8.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.7.6.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.7.4.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.12.20.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.12.20.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.12.14.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.12.14.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.12.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.12.8.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.12.8.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.12.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.21.2.1 10-Aug-2014  tls Rebase.
 1.22.2.4 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.22.2.3 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.22.2.2 10-Apr-2016  martin branches: 1.22.2.2.4;
Catch up to -current (via patch), requested by mspo in #1141:

libexec/httpd/CHANGES up to 1.21
libexec/httpd/Makefile up to 1.26
libexec/httpd/auth-bozo.c up to 1.18
libexec/httpd/bozohttpd.8 up to 1.58
libexec/httpd/bozohttpd.c up to 1.79
libexec/httpd/bozohttpd.h up to 1.44
libexec/httpd/cgi-bozo.c up to 1.32
libexec/httpd/content-bozo.c up to 1.13
libexec/httpd/daemon-bozo.c up to 1.17
libexec/httpd/dir-index-bozo.c up to 1.25
libexec/httpd/lua-bozo.c up to 1.14
libexec/httpd/main.c up to 1.13
libexec/httpd/netbsd_queue.h up to 1.1
libexec/httpd/printenv.lua up to 1.3
libexec/httpd/ssl-bozo.c up to 1.22
libexec/httpd/tilde-luzah-bozo.c up to 1.14
libexec/httpd/testsuite/Makefile up to 1.5
libexec/httpd/testsuite/test-bigfile up to 1.2

Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
 1.22.2.1 23-Apr-2015  snj branches: 1.22.2.1.2;
Pull up following revision(s) (requested by mrg in ticket #715):
distrib/sets/lists/base/mi: revision 1.1100
distrib/sets/lists/man/mi: revision 1.1499 via patch
libexec/httpd/Makefile: revision 1.23
libexec/httpd/bozohttpd.8: revision 1.50
libexec/httpd/cgi-bozo.c: revision 1.26
install as bozohttpd/bozohttpd.8 as well as httpd.
--
Fix deref "command" after "free(file)", from KIYOHARA Takashi
 1.22.2.2.4.2 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.22.2.2.4.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.22.2.1.2.3 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.22.2.1.2.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.22.2.1.2.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.27.10.1 10-Jun-2019  christos Sync with HEAD
 1.27.8.1 18-Jan-2019  pgoyette Synch with HEAD
 1.27.2.2 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.27.2.1 12-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1281:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6


Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.28.2.1 05-Mar-2021  martin Pull up the following (all via patch), requested by mrg in ticket #1221:

lib/lua/bozohttpd/Makefile (apply patch)
libexec/httpd/Makefile 1.30-1.31
libexec/httpd/Makefile.boot 1.7-1.9
libexec/httpd/auth-bozo.c 1.25-1.26
libexec/httpd/bozohttpd.8 1.80-1.87
libexec/httpd/bozohttpd.c 1.114-1.123,1.125-1.128
libexec/httpd/bozohttpd.h 1.61-1.68
libexec/httpd/cgi-bozo.c 1.49-1.53
libexec/httpd/content-bozo.c 1.17-1.20
libexec/httpd/daemon-bozo.c 1-.22
libexec/httpd/dir-index-bozo.c 1.33-1.34
libexec/httpd/main.c 1.23-1.27
libexec/httpd/printenv.lua 1.4-1.5
libexec/httpd/ssl-bozo.c 1.27-1.29
libexec/httpd/libbozohttpd/libbozohttpd.3 1.5-1.6
libexec/httpd/small/Makefile 1.4
libexec/httpd/testsuite/Makefile 1.14
libexec/httpd/testsuite/t16.in 1.1
libexec/httpd/testsuite/t16.out 1.1
libexec/httpd/testsuite/t17.in 1.1
libexec/httpd/testsuite/t17.out 1.1
libexec/httpd/testsuite/t18.in 1.1
libexec/httpd/testsuite/t18.out 1.1


Update to bozohttpd 20210227.
Apply lua build fix (no blocklist support on this branch).

changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.31.6.1 11-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #317):

external/mpl/bind/dist/bin/tests/system/autosign/ns2/Xbar.+013+59973.key up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/autosign/ns2/Xbar.+013+59973.private up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/autosign/ns2/Xbar.+013+60101.key up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/autosign/ns2/Xbar.+013+60101.private up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/autosign/ns2/optout-with-ent.db.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/autosign/ns3/nsec-only.example.db.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/catz/ns3/catalog.example.db.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/catz/ns4/catalog.example.db.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/catz/ns4/named.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/checkconf/dnssec.4 up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/checkconf/bad-kasp-keydir2.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/checkconf/bad-kasp-keydir3.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/checkconf/bad-kasp-keydir4.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/checkconf/bad-kasp-keydir5.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/checkconf/bad-kasp-keydir1.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/checkconf/check-wildcard-no.conf up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/checkconf/check-wildcard.conf up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/checkconf/check-wildcard.db up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/checkds/tests_checkds.py up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/checkzone/zones/bad-tsig.db.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/dialup/ns1/named.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/dialup/ns2/named.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/dialup/ns3/named.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/dnssec/ns4/managed-keys.bind.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/Kexample.com.+010+18240.key up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/Kexample.com.+010+18240.private up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/Kexample.com.+010+28633.key up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/Kexample.com.+010+28633.private up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/dnstap/prereq.sh up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/keymgr/19-old-keys/policy.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/keymgr/18-nonstd-prepub/policy.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/keymgr/policy.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.dirconf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.iso8601-utc.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.pipeconf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.plain.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.plainconf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.symconf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.tsconf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.unlimited.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.iso8601.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.versconf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/named1.args up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/named2.args up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/mkeys/ns1/sub.tld.db up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/mkeys/ns1/tld.db up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/mkeys/ns4/sign.sh up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/mkeys/ns4/sub.foo.db up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/mkeys/ns5/foo.db up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/resolver/ns4/v4only.net.db up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/resolver/ns6/redirect.com.db up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/resolver/ns6/tld1.db up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/resolver/ns7/sub.tld1.db up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/resolver/ns7/tld2.db up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/resolver/ns9/named.args up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/resolver/ns9/named.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/resolver/ns9/named.ipv6-only up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/resolver/ns9/root.hint up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/rpz/ns6/bl.tld2s.db.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/rrl/broken.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns2/Xexample.+008+51650.key up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns2/Xexample.+008+51650.private up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns2/Xexample.+008+52810.key up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns2/Xexample.+008+52810.private up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/serve-stale/ns1/stale.test.db up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/statschannel/tests_json.py up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/statschannel/tests_xml.py up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/stress/ns1/named.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/stress/ns2/named.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/stress/ns3/named.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/stress/ns4/named.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/tcp/tests_tcp.py up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/upforwd/ns3/named1.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/upforwd/ns3/named2.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/wildcard/tests_wildcard.py up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/ttl/prereq.sh up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/ttl/tests_cache_ttl.py up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/kasp/ns3/policies/kasp-fips.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/kasp/ns3/named-fips.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/kasp/ns6/policies/kasp-fips.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/shutdown/tests_shutdown.py up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/nsec3/ns2/named.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/nsec3/ns2/setup.sh up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/nsec3/ns2/template.db.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/timeouts/tests_tcp_timeouts.py up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/get_algorithms.py up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.34.rst up to 1.1.1.1
external/mpl/bind/dist/doc/notes/notes-9.16.35.rst up to 1.1.1.1
external/mpl/bind/dist/doc/notes/notes-9.16.36.rst up to 1.1.1.1
external/mpl/bind/dist/doc/notes/notes-9.16.37.rst up to 1.1.1.1
external/mpl/bind/dist/doc/notes/notes-known-issues.rst up to 1.1.1.1
external/mpl/bind/dist/doc/notes/notes-9.16.38.rst up to 1.1.1.1
external/mpl/bind/dist/doc/notes/notes-9.16.39.rst up to 1.1.1.1
external/mpl/bind/dist/doc/notes/notes-9.16.40.rst up to 1.1.1.1
external/mpl/bind/dist/doc/notes/notes-9.16.41.rst up to 1.1.1.1
external/mpl/bind/dist/doc/notes/notes-9.16.42.rst up to 1.1.1.1
external/mpl/bind/dist/lib/dns/tests/Krsa.+008+29238.key up to 1.1.1.1
external/mpl/bind/dist/sonar-project.properties up to 1.1.1.1
external/mpl/bind/dist/tsan-suppressions.txt delete
external/mpl/bind/dist/bin/tests/system/autosign/ns2/Xbar.+005+30676.key delete
external/mpl/bind/dist/bin/tests/system/autosign/ns2/Xbar.+005+30676.private delete
external/mpl/bind/dist/bin/tests/system/autosign/ns2/Xbar.+005+30804.key delete
external/mpl/bind/dist/bin/tests/system/autosign/ns2/Xbar.+005+30804.private delete
external/mpl/bind/dist/bin/tests/system/autosign/ns3/nsec.example.db.in delete
external/mpl/bind/dist/bin/tests/system/checkconf/bad-kasp-keydir1.conf delete
external/mpl/bind/dist/bin/tests/system/checkconf/bad-kasp-keydir2.conf delete
external/mpl/bind/dist/bin/tests/system/checkconf/bad-kasp-keydir3.conf delete
external/mpl/bind/dist/bin/tests/system/checkconf/bad-kasp-keydir4.conf delete
external/mpl/bind/dist/bin/tests/system/checkconf/bad-kasp-keydir5.conf delete
external/mpl/bind/dist/bin/tests/system/checkds/tests-checkds.py delete
external/mpl/bind/dist/bin/tests/system/checkzone/zones/bad-tsig.db delete
external/mpl/bind/dist/bin/tests/system/common/controls.conf delete
external/mpl/bind/dist/bin/tests/system/delzone/ns1/inlinesec.db delete
external/mpl/bind/dist/bin/tests/system/delzone/ns1/named.conf delete
external/mpl/bind/dist/bin/tests/system/delzone/ns2/added.db delete
external/mpl/bind/dist/bin/tests/system/delzone/ns2/named.args delete
external/mpl/bind/dist/bin/tests/system/delzone/ns2/named.conf delete
external/mpl/bind/dist/bin/tests/system/delzone/ns2/normal.db delete
external/mpl/bind/dist/bin/tests/system/delzone/clean.sh delete
external/mpl/bind/dist/bin/tests/system/delzone/setup.sh delete
external/mpl/bind/dist/bin/tests/system/delzone/tests.sh delete
external/mpl/bind/dist/bin/tests/system/dialup/ns1/named.conf delete
external/mpl/bind/dist/bin/tests/system/dialup/ns2/named.conf delete
external/mpl/bind/dist/bin/tests/system/dialup/ns3/named.conf delete
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/Kexample.com.+005+07065.key delete
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/Kexample.com.+005+07065.private delete
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/Kexample.com.+005+23362.key delete
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/Kexample.com.+005+23362.private delete
external/mpl/bind/dist/bin/tests/system/keymgr/policy.conf delete
external/mpl/bind/dist/bin/tests/system/keymgr/18-nonstd-prepub/policy.conf delete
external/mpl/bind/dist/bin/tests/system/keymgr/19-old-keys/policy.conf delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/controls.conf.in delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.dirconf delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.iso8601 delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.iso8601-utc delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.pipeconf delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.plain delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.plainconf delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.symconf delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.tsconf delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.unlimited delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.versconf delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/rndc.conf.in delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/root.db delete
external/mpl/bind/dist/bin/tests/system/rrl/broken.conf delete
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns2/Xexample.+005+05896.key delete
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns2/Xexample.+005+05896.private delete
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns2/Xexample.+005+51829.key delete
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns2/Xexample.+005+51829.private delete
external/mpl/bind/dist/bin/tests/system/shutdown/tests-shutdown.py delete
external/mpl/bind/dist/bin/tests/system/stress/ns1/named.conf delete
external/mpl/bind/dist/bin/tests/system/stress/ns2/named.conf delete
external/mpl/bind/dist/bin/tests/system/stress/ns3/named.conf delete
external/mpl/bind/dist/bin/tests/system/stress/ns4/named.conf delete
external/mpl/bind/dist/bin/tests/system/statschannel/tests-json.py delete
external/mpl/bind/dist/bin/tests/system/statschannel/tests-xml.py delete
external/mpl/bind/dist/bin/tests/system/tcp/tests-tcp.py delete
external/mpl/bind/dist/bin/tests/system/timeouts/tests-tcp.py delete
external/mpl/bind/dist/bin/tests/system/ttl/tests.sh delete
external/mpl/bind/dist/bin/tests/system/upforwd/ns3/named.conf.in delete
external/mpl/bind/dist/bin/tests/system/wildcard/tests-wildcard.py delete
external/mpl/bind/dist/doc/man/named-compilezone.1in delete
external/mpl/bind/dist/lib/dns/tests/Krsa.+005+29235.key delete
external/mpl/bind/bin/dnssec/dnssec-verify/Makefile up to 1.3
external/mpl/bind/dist/CHANGES up to 1.1.1.15
external/mpl/bind/dist/CONTRIBUTING up to 1.1.1.5
external/mpl/bind/dist/CONTRIBUTING.md up to 1.1.1.6
external/mpl/bind/dist/COPYRIGHT up to 1.1.1.6
external/mpl/bind/dist/config.h.in up to 1.13
external/mpl/bind/dist/configure up to 1.16
external/mpl/bind/dist/configure.ac up to 1.1.1.14
external/mpl/bind/dist/dangerfile.py up to 1.1.1.6
external/mpl/bind/dist/srcid up to 1.1.1.15
external/mpl/bind/dist/version up to 1.1.1.15
external/mpl/bind/dist/bin/check/check-tool.c up to 1.9
external/mpl/bind/dist/bin/check/named-checkconf.c up to 1.9
external/mpl/bind/dist/bin/check/named-checkzone.c up to 1.9
external/mpl/bind/dist/bin/confgen/ddns-confgen.c up to 1.7
external/mpl/bind/dist/bin/delv/delv.c up to 1.12
external/mpl/bind/dist/bin/dig/dig.c up to 1.9
external/mpl/bind/dist/bin/dig/dig.rst up to 1.1.1.5
external/mpl/bind/dist/bin/dig/dighost.c up to 1.15
external/mpl/bind/dist/bin/dig/host.c up to 1.10
external/mpl/bind/dist/bin/dnssec/dnssec-cds.c up to 1.9
external/mpl/bind/dist/bin/dnssec/dnssec-keyfromlabel.c up to 1.8
external/mpl/bind/dist/bin/dnssec/dnssec-keygen.c up to 1.10
external/mpl/bind/dist/bin/dnssec/dnssec-revoke.c up to 1.8
external/mpl/bind/dist/bin/dnssec/dnssec-settime.c up to 1.7
external/mpl/bind/dist/bin/dnssec/dnssec-signzone.c up to 1.10
external/mpl/bind/dist/bin/dnssec/dnssectool.c up to 1.8
external/mpl/bind/dist/bin/named/bind9.xsl up to 1.1.1.8
external/mpl/bind/dist/bin/named/bind9.xsl.h up to 1.9
external/mpl/bind/dist/bin/named/builtin.c up to 1.6
external/mpl/bind/dist/bin/named/config.c up to 1.14
external/mpl/bind/dist/bin/named/controlconf.c up to 1.11
external/mpl/bind/dist/bin/named/logconf.c up to 1.8
external/mpl/bind/dist/bin/named/main.c up to 1.15
external/mpl/bind/dist/bin/named/named.conf.rst up to 1.1.1.6
external/mpl/bind/dist/bin/named/named.rst up to 1.1.1.4
external/mpl/bind/dist/bin/named/server.c up to 1.20
external/mpl/bind/dist/bin/named/statschannel.c up to 1.13
external/mpl/bind/dist/bin/named/tsigconf.c up to 1.7
external/mpl/bind/dist/bin/named/zoneconf.c up to 1.14
external/mpl/bind/dist/bin/named/unix/os.c up to 1.10
external/mpl/bind/dist/bin/nsupdate/nsupdate.c up to 1.13
external/mpl/bind/dist/bin/nsupdate/nsupdate.rst up to 1.1.1.4
external/mpl/bind/dist/bin/pkcs11/pkcs11-keygen.c up to 1.7
external/mpl/bind/dist/bin/plugins/filter-aaaa.c up to 1.8
external/mpl/bind/dist/bin/python/isc/coverage.py.in up to 1.1.1.5
external/mpl/bind/dist/bin/python/isc/dnskey.py.in up to 1.1.1.5
external/mpl/bind/dist/bin/python/isc/keymgr.py.in up to 1.1.1.5
external/mpl/bind/dist/bin/python/isc/keyzone.py.in up to 1.1.1.5
external/mpl/bind/dist/bin/rndc/rndc.c up to 1.10
external/mpl/bind/dist/bin/rndc/rndc.rst up to 1.1.1.5
external/mpl/bind/dist/bin/tests/cfg_test.c up to 1.7
external/mpl/bind/dist/bin/tests/wire_test.c up to 1.8
external/mpl/bind/dist/bin/tests/optional/byaddr_test.c up to 1.8
external/mpl/bind/dist/bin/tests/optional/db_test.c up to 1.7
external/mpl/bind/dist/bin/tests/optional/name_test.c up to 1.7
external/mpl/bind/dist/bin/tests/optional/nsecify.c up to 1.8
external/mpl/bind/dist/bin/tests/optional/ratelimiter_test.c up to 1.7
external/mpl/bind/dist/bin/tests/optional/rbt_test.c up to 1.8
external/mpl/bind/dist/bin/tests/optional/shutdown_test.c up to 1.8
external/mpl/bind/dist/bin/tests/optional/sock_test.c up to 1.7
external/mpl/bind/dist/bin/tests/optional/task_test.c up to 1.7
external/mpl/bind/dist/bin/tests/optional/timer_test.c up to 1.8
external/mpl/bind/dist/bin/tests/optional/zone_test.c up to 1.9
external/mpl/bind/dist/bin/tests/system/ckdnsrps.sh up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/conf.sh.common up to 1.1.1.11
external/mpl/bind/dist/bin/tests/system/conf.sh.in up to 1.1.1.10
external/mpl/bind/dist/bin/tests/system/conf.sh.win32 up to 1.1.1.11
external/mpl/bind/dist/bin/tests/system/feature-test.c up to 1.11
external/mpl/bind/dist/bin/tests/system/kasp.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/pytest_custom_markers.py up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/resolve.c up to 1.4
external/mpl/bind/dist/bin/tests/system/run.sh up to 1.1.1.11
external/mpl/bind/dist/bin/tests/system/start.pl up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/stop.pl up to 1.1.1.9
external/mpl/bind/dist/bin/tests/system/system-test-driver.sh up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/testcrypto.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/acl/tests.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/addzone/tests.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/auth/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/autosign/clean.sh up to 1.1.1.9
external/mpl/bind/dist/bin/tests/system/autosign/tests.sh up to 1.1.1.13
external/mpl/bind/dist/bin/tests/system/autosign/ns1/keygen.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/autosign/ns2/keygen.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/autosign/ns2/named.conf.in up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/autosign/ns3/keygen.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/autosign/ns3/named.conf.in up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/builtin/tests.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/cacheclean/tests.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/case/setup.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/catz/clean.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/catz/setup.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/catz/tests.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/catz/ns1/named.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/catz/ns2/named1.conf.in up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/catz/ns2/named2.conf.in up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/cds/setup.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/cds/tests.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/chain/tests.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/chain/ans4/ans.py up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/chain/ns2/sign.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/checkconf/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/checkconf/deprecated.conf up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/checkconf/good.conf up to 1.1.1.10
external/mpl/bind/dist/bin/tests/system/checkconf/kasp-bad-keylen.conf up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/checkconf/tests.sh up to 1.1.1.10
external/mpl/bind/dist/bin/tests/system/checkds/ns9/setup.sh up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/checknames/setup.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/checkzone/clean.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/checkzone/setup.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/checkzone/tests.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/checkzone/zones/good-svcb.db up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/cookie/clean.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/cookie/ans9/ans.py up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/coverage/setup.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/dialup/clean.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/dialup/tests.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/digdelv/yamlget.py up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/dlzexternal/driver.c up to 1.12
external/mpl/bind/dist/bin/tests/system/dlzexternal/tests.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/dns64/ns1/sign.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/dnssec/clean.sh up to 1.1.1.10
external/mpl/bind/dist/bin/tests/system/dnssec/tests.sh up to 1.1.1.12
external/mpl/bind/dist/bin/tests/system/dnssec/ans10/ans.py up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/bogus-ksk.key up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/bogus-zsk.key up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/test1.zone up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/test2.zone up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/test3.zone up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/test4.zone up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/test5.zone up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/test6.zone up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/test8.zone up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/dnstap/tests.sh up to 1.1.1.9
external/mpl/bind/dist/bin/tests/system/dscp/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/dscp/tests.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/dsdigest/ns1/sign.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/dsdigest/ns2/sign.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/dupsigs/clean.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/dupsigs/setup.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/dupsigs/tests.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/dupsigs/ns1/named.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/dupsigs/ns1/reset_keys.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/dupsigs/ns1/signing.test.db.in up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/dyndb/driver/db.c up to 1.7
external/mpl/bind/dist/bin/tests/system/emptyzones/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/emptyzones/setup.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/formerr/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/forward/clean.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/forward/tests.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/forward/ans11/ans.py up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/idna/tests.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/inline/clean.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/inline/setup.sh up to 1.1.1.10
external/mpl/bind/dist/bin/tests/system/inline/tests.sh up to 1.1.1.9
external/mpl/bind/dist/bin/tests/system/inline/tests_signed_zone_files.py up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/inline/ns1/sign.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/inline/ns3/sign.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/inline/ns7/sign.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/inline/ns8/sign.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/ixfr/tests.sh up to 1.1.1.9
external/mpl/bind/dist/bin/tests/system/journal/clean.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/kasp/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/kasp/kasp.conf up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/kasp/setup.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/kasp/tests.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/kasp/ns3/named.conf.in up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/kasp/ns3/setup.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/kasp/ns3/policies/kasp.conf.in up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/kasp/ns4/named.conf.in up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/kasp/ns6/named.conf.in up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/kasp/ns6/named2.conf.in up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/kasp/ns6/setup.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/kasp/ns6/policies/csk1.conf.in up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/kasp/ns6/policies/kasp.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/keepalive/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/keymgr/clean.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/keymgr/setup.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/keymgr2kasp/clean.sh up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/keymgr2kasp/tests.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/keymgr2kasp/ns3/kasp.conf.in up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/keymgr2kasp/ns3/setup.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/keymgr2kasp/ns4/named.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/keymgr2kasp/ns4/named2.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/keymgr2kasp/ns4/setup.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/legacy/clean.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/legacy/tests.sh up to 1.1.1.11
external/mpl/bind/dist/bin/tests/system/logfileconfig/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/logfileconfig/setup.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/logfileconfig/tests.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/masterformat/tests.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/metadata/setup.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/metadata/tests.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/mirror/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/mirror/tests.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/mirror/ns1/sign.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/mirror/ns2/sign.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/mkeys/clean.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/mkeys/setup.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/mkeys/tests.sh up to 1.1.1.9
external/mpl/bind/dist/bin/tests/system/mkeys/ns1/named1.conf.in up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/mkeys/ns1/named2.conf.in up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/mkeys/ns1/named3.conf.in up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/mkeys/ns1/root.db up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/mkeys/ns1/sign.sh up to 1.1.1.9
external/mpl/bind/dist/bin/tests/system/mkeys/ns3/named.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/mkeys/ns4/named.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/mkeys/ns5/named.conf.in up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/mkeys/ns6/setup.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/names/setup.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/notify/tests.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/nsec3/clean.sh up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/nsec3/setup.sh up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/nsec3/tests.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/nsec3/ns3/named.conf.in up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/nsec3/ns3/named2.conf.in up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/nsec3/ns3/setup.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/nslookup/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/nsupdate/setup.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/nsupdate/tests.sh up to 1.1.1.12
external/mpl/bind/dist/bin/tests/system/nsupdate/krb/setup.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/nsupdate/ns1/named.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/nsupdate/ns3/sign.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/nzd2nzf/prereq.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/nzd2nzf/tests.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/padding/clean.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/pending/ns1/sign.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/pending/ns2/sign.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/qmin/ans3/ans.py up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/redirect/ns1/sign.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/redirect/ns3/sign.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/redirect/ns5/sign.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/resolver/setup.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/resolver/tests.sh up to 1.1.1.9
external/mpl/bind/dist/bin/tests/system/resolver/ans2/ans.pl up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/resolver/ans3/ans.pl up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/resolver/ns1/named.conf.in up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/resolver/ns4/named.conf.in up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/resolver/ns4/tld1.db up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/resolver/ns4/tld2.db up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/resolver/ns6/keygen.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/resolver/ns6/named.conf.in up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/resolver/ns6/root.db up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/resolver/ns7/named1.conf.in up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/resolver/ns7/named2.conf.in up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/rndc/setup.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/rndc/tests.sh up to 1.1.1.10
external/mpl/bind/dist/bin/tests/system/rndc/ns7/named.conf.in up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/rootkeysentinel/ns1/sign.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/rootkeysentinel/ns2/sign.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/rpz/clean.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/rpz/dnsrps.c up to 1.7
external/mpl/bind/dist/bin/tests/system/rpz/qperf.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/rpz/setup.sh up to 1.1.1.9
external/mpl/bind/dist/bin/tests/system/rpz/tests.sh up to 1.1.1.11
external/mpl/bind/dist/bin/tests/system/rpz/ns2/base-tld2s.db up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/rpz/ns2/tld2.db up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/rpz/ns3/named.conf.in up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/rpz/ns6/named.conf.in up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/rpzrecurse/clean.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/rpzrecurse/tests.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/rrchecker/clean.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/rrl/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/rrl/setup.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/rrl/tests.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/rrsetorder/tests.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/rsabigexponent/README.md up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/rsabigexponent/bigkey.c up to 1.8
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns1/sign.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns2/dsset-example.in up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns2/example.db.bad up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns2/sign.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/runtime/tests.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/serve-stale/clean.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/serve-stale/tests.sh up to 1.1.1.13
external/mpl/bind/dist/bin/tests/system/serve-stale/ans2/ans.pl up to 1.1.1.10
external/mpl/bind/dist/bin/tests/system/serve-stale/ns1/named3.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/serve-stale/ns1/root.db up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/serve-stale/ns3/named2.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/serve-stale/ns3/named6.conf.in up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/shutdown/clean.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/shutdown/setup.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/smartsign/tests.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/sortlist/tests.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/spf/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/staticstub/ns3/sign.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/staticstub/ns4/sign.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/statschannel/generic.py up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/statschannel/generic_dnspython.py up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/statschannel/tests.sh up to 1.1.1.11
external/mpl/bind/dist/bin/tests/system/stress/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/stress/setup.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/stress/tests.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/stub/tests.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/synthfromdnssec/ns1/sign.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/synthfromdnssec/ns4/named.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/tsig/setup.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/tsig/tests.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/tsig/ns1/named.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/tsiggss/tests.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/ttl/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/ttl/setup.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/unknown/setup.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/unknown/tests.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/unknown/ns3/sign.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/upforwd/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/upforwd/setup.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/upforwd/tests.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/verify/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/verify/tests.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/verify/zones/genzones.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/views/setup.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/wildcard/tests.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/wildcard/ns1/sign.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/xfer/tests.sh up to 1.1.1.10
external/mpl/bind/dist/bin/tests/system/zero/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/zero/setup.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/zonechecks/setup.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tools/mdig.c up to 1.11
external/mpl/bind/dist/contrib/dlz/bin/dlzbdb/dlzbdb.c up to 1.7
external/mpl/bind/dist/contrib/dlz/drivers/dlz_bdb_driver.c up to 1.6
external/mpl/bind/dist/contrib/dlz/drivers/dlz_bdbhpt_driver.c up to 1.6
external/mpl/bind/dist/contrib/dlz/drivers/dlz_filesystem_driver.c up to 1.8
external/mpl/bind/dist/contrib/dlz/drivers/dlz_odbc_driver.c up to 1.6
external/mpl/bind/dist/contrib/dlz/drivers/dlz_postgres_driver.c up to 1.6
external/mpl/bind/dist/contrib/dlz/modules/bdbhpt/dlz_bdbhpt_dynamic.c up to 1.6
external/mpl/bind/dist/contrib/dlz/modules/filesystem/dlz_filesystem_dynamic.c up to 1.8
external/mpl/bind/dist/contrib/dlz/modules/include/dlz_list.h up to 1.6
external/mpl/bind/dist/contrib/dlz/modules/ldap/dlz_ldap_dynamic.c up to 1.6
external/mpl/bind/dist/contrib/dlz/modules/mysqldyn/dlz_mysqldyn_mod.c up to 1.7
external/mpl/bind/dist/contrib/dlz/modules/perl/Makefile up to 1.1.1.3
external/mpl/bind/dist/contrib/dlz/modules/perl/dlz_perl_driver.c up to 1.5
external/mpl/bind/dist/contrib/dlz/modules/sqlite3/dlz_sqlite3_dynamic.c up to 1.6
external/mpl/bind/dist/contrib/dlz/modules/wildcard/dlz_wildcard_dynamic.c up to 1.7
external/mpl/bind/dist/doc/Makefile.in up to 1.1.1.4
external/mpl/bind/dist/doc/arm/build.rst up to 1.1.1.2
external/mpl/bind/dist/doc/arm/conf.py up to 1.1.1.5
external/mpl/bind/dist/doc/arm/dnssec.inc.rst up to 1.1.1.2
external/mpl/bind/dist/doc/arm/notes.rst up to 1.1.1.7
external/mpl/bind/dist/doc/arm/platforms.rst up to 1.1.1.3
external/mpl/bind/dist/doc/arm/reference.rst up to 1.1.1.7
external/mpl/bind/dist/doc/arm/requirements.txt up to 1.1.1.3
external/mpl/bind/dist/doc/dnssec-guide/introduction.rst up to 1.1.1.3
external/mpl/bind/dist/doc/dnssec-guide/recipes.rst up to 1.1.1.4
external/mpl/bind/dist/doc/dnssec-guide/signing.rst up to 1.1.1.5
external/mpl/bind/dist/doc/dnssec-guide/validation.rst up to 1.1.1.3
external/mpl/bind/dist/doc/man/Makefile.in up to 1.1.1.4
external/mpl/bind/dist/doc/man/arpaname.1in up to 1.1.1.4
external/mpl/bind/dist/doc/man/conf.py up to 1.1.1.5
external/mpl/bind/dist/doc/man/ddns-confgen.8in up to 1.1.1.5
external/mpl/bind/dist/doc/man/delv.1in up to 1.1.1.5
external/mpl/bind/dist/doc/man/dig.1in up to 1.1.1.6
external/mpl/bind/dist/doc/man/dnssec-cds.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/dnssec-checkds.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/dnssec-coverage.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/dnssec-dsfromkey.8in up to 1.1.1.5
external/mpl/bind/dist/doc/man/dnssec-importkey.8in up to 1.1.1.5
external/mpl/bind/dist/doc/man/dnssec-keyfromlabel.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/dnssec-keygen.8in up to 1.1.1.5
external/mpl/bind/dist/doc/man/dnssec-keymgr.8in up to 1.1.1.5
external/mpl/bind/dist/doc/man/dnssec-revoke.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/dnssec-settime.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/dnssec-signzone.8in up to 1.1.1.5
external/mpl/bind/dist/doc/man/dnssec-verify.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/dnstap-read.1in up to 1.1.1.4
external/mpl/bind/dist/doc/man/filter-aaaa.8in up to 1.1.1.5
external/mpl/bind/dist/doc/man/host.1in up to 1.1.1.5
external/mpl/bind/dist/doc/man/mdig.1in up to 1.1.1.5
external/mpl/bind/dist/doc/man/named-checkconf.8in up to 1.1.1.5
external/mpl/bind/dist/doc/man/named-checkzone.8in up to 1.1.1.5
external/mpl/bind/dist/doc/man/named-compilezone.8in up to 1.1.1.3
external/mpl/bind/dist/doc/man/named-journalprint.8in up to 1.1.1.6
external/mpl/bind/dist/doc/man/named-nzd2nzf.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/named-rrchecker.1in up to 1.1.1.4
external/mpl/bind/dist/doc/man/named.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/named.conf.5in up to 1.1.1.6
external/mpl/bind/dist/doc/man/nsec3hash.8in up to 1.1.1.5
external/mpl/bind/dist/doc/man/nslookup.1in up to 1.1.1.4
external/mpl/bind/dist/doc/man/nsupdate.1in up to 1.1.1.4
external/mpl/bind/dist/doc/man/pkcs11-destroy.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/pkcs11-keygen.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/pkcs11-list.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/pkcs11-tokens.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/rndc-confgen.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/rndc.8in up to 1.1.1.6
external/mpl/bind/dist/doc/man/rndc.conf.5in up to 1.1.1.5
external/mpl/bind/dist/doc/man/tsig-keygen.8in up to 1.1.1.3
external/mpl/bind/dist/doc/misc/master.zoneopt up to 1.1.1.6
external/mpl/bind/dist/doc/misc/master.zoneopt.rst up to 1.1.1.5
external/mpl/bind/dist/doc/misc/options up to 1.1.1.12
external/mpl/bind/dist/doc/misc/options.active up to 1.1.1.7
external/mpl/bind/dist/doc/misc/options.grammar.rst up to 1.1.1.5
external/mpl/bind/dist/doc/misc/slave.zoneopt up to 1.1.1.6
external/mpl/bind/dist/doc/misc/slave.zoneopt.rst up to 1.1.1.5
external/mpl/bind/dist/doc/notes/notes-9.16.0.rst up to 1.1.1.5
external/mpl/bind/dist/doc/notes/notes-9.16.1.rst up to 1.1.1.5
external/mpl/bind/dist/doc/notes/notes-9.16.10.rst up to 1.1.1.4
external/mpl/bind/dist/doc/notes/notes-9.16.11.rst up to 1.1.1.4
external/mpl/bind/dist/doc/notes/notes-9.16.12.rst up to 1.1.1.4
external/mpl/bind/dist/doc/notes/notes-9.16.13.rst up to 1.1.1.4
external/mpl/bind/dist/doc/notes/notes-9.16.15.rst up to 1.1.1.4
external/mpl/bind/dist/doc/notes/notes-9.16.16.rst up to 1.1.1.3
external/mpl/bind/dist/doc/notes/notes-9.16.17.rst up to 1.1.1.3
external/mpl/bind/dist/doc/notes/notes-9.16.18.rst up to 1.1.1.3
external/mpl/bind/dist/doc/notes/notes-9.16.19.rst up to 1.1.1.3
external/mpl/bind/dist/doc/notes/notes-9.16.2.rst up to 1.1.1.5
external/mpl/bind/dist/doc/notes/notes-9.16.20.rst up to 1.1.1.3
external/mpl/bind/dist/doc/notes/notes-9.16.21.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.22.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.23.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.24.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.25.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.26.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.27.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.28.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.29.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.3.rst up to 1.1.1.5
external/mpl/bind/dist/doc/notes/notes-9.16.30.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.31.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.32.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.33.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.4.rst up to 1.1.1.5
external/mpl/bind/dist/doc/notes/notes-9.16.5.rst up to 1.1.1.5
external/mpl/bind/dist/doc/notes/notes-9.16.6.rst up to 1.1.1.4
external/mpl/bind/dist/doc/notes/notes-9.16.7.rst up to 1.1.1.4
external/mpl/bind/dist/doc/notes/notes-9.16.8.rst up to 1.1.1.4
external/mpl/bind/dist/doc/notes/notes-9.16.9.rst up to 1.1.1.4
external/mpl/bind/dist/fuzz/fuzz.h up to 1.6
external/mpl/bind/dist/lib/bind9/check.c up to 1.15
external/mpl/bind/dist/lib/bind9/getaddresses.c up to 1.7
external/mpl/bind/dist/lib/dns/adb.c up to 1.10
external/mpl/bind/dist/lib/dns/badcache.c up to 1.7
external/mpl/bind/dist/lib/dns/byaddr.c up to 1.8
external/mpl/bind/dist/lib/dns/cache.c up to 1.10
external/mpl/bind/dist/lib/dns/catz.c up to 1.10
external/mpl/bind/dist/lib/dns/client.c up to 1.12
external/mpl/bind/dist/lib/dns/compress.c up to 1.8
external/mpl/bind/dist/lib/dns/db.c up to 1.9
external/mpl/bind/dist/lib/dns/diff.c up to 1.8
external/mpl/bind/dist/lib/dns/dispatch.c up to 1.9
external/mpl/bind/dist/lib/dns/dnsrps.c up to 1.10
external/mpl/bind/dist/lib/dns/dnssec.c up to 1.13
external/mpl/bind/dist/lib/dns/dst_api.c up to 1.13
external/mpl/bind/dist/lib/dns/dst_parse.c up to 1.10
external/mpl/bind/dist/lib/dns/ecdb.c up to 1.9
external/mpl/bind/dist/lib/dns/ecs.c up to 1.6
external/mpl/bind/dist/lib/dns/forward.c up to 1.8
external/mpl/bind/dist/lib/dns/gen.c up to 1.11
external/mpl/bind/dist/lib/dns/hmac_link.c up to 1.8
external/mpl/bind/dist/lib/dns/journal.c up to 1.11
external/mpl/bind/dist/lib/dns/key.c up to 1.8
external/mpl/bind/dist/lib/dns/keymgr.c up to 1.10
external/mpl/bind/dist/lib/dns/keytable.c up to 1.9
external/mpl/bind/dist/lib/dns/master.c up to 1.11
external/mpl/bind/dist/lib/dns/masterdump.c up to 1.13
external/mpl/bind/dist/lib/dns/message.c up to 1.15
external/mpl/bind/dist/lib/dns/name.c up to 1.12
external/mpl/bind/dist/lib/dns/ncache.c up to 1.8
external/mpl/bind/dist/lib/dns/nsec.c up to 1.9
external/mpl/bind/dist/lib/dns/nsec3.c up to 1.12
external/mpl/bind/dist/lib/dns/nta.c up to 1.9
external/mpl/bind/dist/lib/dns/openssl_link.c up to 1.9
external/mpl/bind/dist/lib/dns/openssldh_link.c up to 1.9
external/mpl/bind/dist/lib/dns/opensslecdsa_link.c up to 1.7
external/mpl/bind/dist/lib/dns/openssleddsa_link.c up to 1.8
external/mpl/bind/dist/lib/dns/opensslrsa_link.c up to 1.10
external/mpl/bind/dist/lib/dns/order.c up to 1.8
external/mpl/bind/dist/lib/dns/peer.c up to 1.10
external/mpl/bind/dist/lib/dns/pkcs11rsa_link.c up to 1.8
external/mpl/bind/dist/lib/dns/private.c up to 1.8
external/mpl/bind/dist/lib/dns/rbt.c up to 1.13
external/mpl/bind/dist/lib/dns/rbtdb.c up to 1.17
external/mpl/bind/dist/lib/dns/rcode.c up to 1.12
external/mpl/bind/dist/lib/dns/rdata.c up to 1.13
external/mpl/bind/dist/lib/dns/rdatalist.c up to 1.7
external/mpl/bind/dist/lib/dns/rdataslab.c up to 1.7
external/mpl/bind/dist/lib/dns/request.c up to 1.8
external/mpl/bind/dist/lib/dns/resolver.c up to 1.17
external/mpl/bind/dist/lib/dns/rootns.c up to 1.7
external/mpl/bind/dist/lib/dns/rpz.c up to 1.13
external/mpl/bind/dist/lib/dns/rriterator.c up to 1.7
external/mpl/bind/dist/lib/dns/rrl.c up to 1.8
external/mpl/bind/dist/lib/dns/sdb.c up to 1.11
external/mpl/bind/dist/lib/dns/sdlz.c up to 1.11
external/mpl/bind/dist/lib/dns/ssu.c up to 1.7
external/mpl/bind/dist/lib/dns/stats.c up to 1.8
external/mpl/bind/dist/lib/dns/tkey.c up to 1.13
external/mpl/bind/dist/lib/dns/tsig.c up to 1.12
external/mpl/bind/dist/lib/dns/update.c up to 1.12
external/mpl/bind/dist/lib/dns/validator.c up to 1.13
external/mpl/bind/dist/lib/dns/view.c up to 1.14
external/mpl/bind/dist/lib/dns/xfrin.c up to 1.13
external/mpl/bind/dist/lib/dns/zone.c up to 1.18
external/mpl/bind/dist/lib/dns/zonekey.c up to 1.7
external/mpl/bind/dist/lib/dns/zoneverify.c up to 1.10
external/mpl/bind/dist/lib/dns/zt.c up to 1.9
external/mpl/bind/dist/lib/dns/include/dns/db.h up to 1.9
external/mpl/bind/dist/lib/dns/include/dns/rdataset.h up to 1.10
external/mpl/bind/dist/lib/dns/include/dns/rdatasetiter.h up to 1.6
external/mpl/bind/dist/lib/dns/include/dns/view.h up to 1.9
external/mpl/bind/dist/lib/dns/include/dns/zone.h up to 1.10
external/mpl/bind/dist/lib/dns/include/dns/zt.h up to 1.8
external/mpl/bind/dist/lib/dns/rdata/any_255/tsig_250.c up to 1.8
external/mpl/bind/dist/lib/dns/rdata/generic/amtrelay_260.c up to 1.6
external/mpl/bind/dist/lib/dns/rdata/generic/caa_257.c up to 1.8
external/mpl/bind/dist/lib/dns/rdata/generic/isdn_20.c up to 1.8
external/mpl/bind/dist/lib/dns/rdata/generic/key_25.c up to 1.11
external/mpl/bind/dist/lib/dns/rdata/generic/loc_29.c up to 1.9
external/mpl/bind/dist/lib/dns/rdata/generic/tkey_249.c up to 1.8
external/mpl/bind/dist/lib/dns/rdata/generic/txt_16.c up to 1.9
external/mpl/bind/dist/lib/dns/rdata/in_1/a_1.c up to 1.9
external/mpl/bind/dist/lib/dns/rdata/in_1/aaaa_28.c up to 1.9
external/mpl/bind/dist/lib/dns/rdata/in_1/svcb_64.c up to 1.3
external/mpl/bind/dist/lib/dns/tests/dbversion_test.c up to 1.10
external/mpl/bind/dist/lib/dns/tests/dnstest.c up to 1.12
external/mpl/bind/dist/lib/dns/tests/rdata_test.c up to 1.12
external/mpl/bind/dist/lib/dns/tests/rsa_test.c up to 1.10
external/mpl/bind/dist/lib/dns/tests/zt_test.c up to 1.10
external/mpl/bind/dist/lib/dns/win32/libdns.def.in up to 1.1.1.12
external/mpl/bind/dist/lib/irs/getaddrinfo.c up to 1.9
external/mpl/bind/dist/lib/irs/getnameinfo.c up to 1.9
external/mpl/bind/dist/lib/irs/resconf.c up to 1.7
external/mpl/bind/dist/lib/irs/win32/resconf.c up to 1.7
external/mpl/bind/dist/lib/isc/app.c up to 1.8
external/mpl/bind/dist/lib/isc/buffer.c up to 1.8
external/mpl/bind/dist/lib/isc/heap.c up to 1.7
external/mpl/bind/dist/lib/isc/ht.c up to 1.8
external/mpl/bind/dist/lib/isc/httpd.c up to 1.8
external/mpl/bind/dist/lib/isc/iterated_hash.c up to 1.7
external/mpl/bind/dist/lib/isc/lex.c up to 1.10
external/mpl/bind/dist/lib/isc/lib.c up to 1.10
external/mpl/bind/dist/lib/isc/log.c up to 1.9
external/mpl/bind/dist/lib/isc/mem.c up to 1.14
external/mpl/bind/dist/lib/isc/netaddr.c up to 1.8
external/mpl/bind/dist/lib/isc/pk11.c up to 1.8
external/mpl/bind/dist/lib/isc/radix.c up to 1.8
external/mpl/bind/dist/lib/isc/ratelimiter.c up to 1.8
external/mpl/bind/dist/lib/isc/rwlock.c up to 1.13
external/mpl/bind/dist/lib/isc/siphash.c up to 1.8
external/mpl/bind/dist/lib/isc/string.c up to 1.7
external/mpl/bind/dist/lib/isc/task.c up to 1.18
external/mpl/bind/dist/lib/isc/timer.c up to 1.12
external/mpl/bind/dist/lib/isc/url.c up to 1.4
external/mpl/bind/dist/lib/isc/utf8.c up to 1.4
external/mpl/bind/dist/lib/isc/include/isc/buffer.h up to 1.8
external/mpl/bind/dist/lib/isc/include/isc/list.h up to 1.8
external/mpl/bind/dist/lib/isc/include/isc/magic.h up to 1.6
external/mpl/bind/dist/lib/isc/include/isc/string.h up to 1.7
external/mpl/bind/dist/lib/isc/include/isc/task.h up to 1.8
external/mpl/bind/dist/lib/isc/include/isc/timer.h up to 1.8
external/mpl/bind/dist/lib/isc/netmgr/netmgr.c up to 1.10
external/mpl/bind/dist/lib/isc/netmgr/tcp.c up to 1.8
external/mpl/bind/dist/lib/isc/netmgr/tcpdns.c up to 1.8
external/mpl/bind/dist/lib/isc/netmgr/udp.c up to 1.11
external/mpl/bind/dist/lib/isc/tests/random_test.c up to 1.11
external/mpl/bind/dist/lib/isc/tests/regex_test.c up to 1.12
external/mpl/bind/dist/lib/isc/tests/socket_test.c up to 1.11
external/mpl/bind/dist/lib/isc/tests/task_test.c up to 1.12
external/mpl/bind/dist/lib/isc/tests/timer_test.c up to 1.10
external/mpl/bind/dist/lib/isc/unix/file.c up to 1.7
external/mpl/bind/dist/lib/isc/unix/socket.c up to 1.25
external/mpl/bind/dist/lib/isc/win32/dir.c up to 1.8
external/mpl/bind/dist/lib/isc/win32/file.c up to 1.9
external/mpl/bind/dist/lib/isc/win32/fsaccess.c up to 1.8
external/mpl/bind/dist/lib/isc/win32/interfaceiter.c up to 1.7
external/mpl/bind/dist/lib/isc/win32/libisc.def.in up to 1.1.1.14
external/mpl/bind/dist/lib/isc/win32/net.c up to 1.8
external/mpl/bind/dist/lib/isc/win32/ntgroups.c up to 1.9
external/mpl/bind/dist/lib/isc/win32/socket.c up to 1.13
external/mpl/bind/dist/lib/isc/win32/include/isc/net.h up to 1.8
external/mpl/bind/dist/lib/isccc/alist.c up to 1.7
external/mpl/bind/dist/lib/isccc/cc.c up to 1.7
external/mpl/bind/dist/lib/isccc/symtab.c up to 1.7
external/mpl/bind/dist/lib/isccfg/aclconf.c up to 1.9
external/mpl/bind/dist/lib/isccfg/namedconf.c up to 1.14
external/mpl/bind/dist/lib/isccfg/parser.c up to 1.13
external/mpl/bind/dist/lib/isccfg/include/isccfg/grammar.h up to 1.8
external/mpl/bind/dist/lib/isccfg/tests/duration_test.c up to 1.7
external/mpl/bind/dist/lib/ns/client.c up to 1.18
external/mpl/bind/dist/lib/ns/hooks.c up to 1.9
external/mpl/bind/dist/lib/ns/interfacemgr.c up to 1.15
external/mpl/bind/dist/lib/ns/query.c up to 1.17
external/mpl/bind/dist/lib/ns/server.c up to 1.8
external/mpl/bind/dist/lib/ns/sortlist.c up to 1.7
external/mpl/bind/dist/lib/ns/update.c up to 1.13
external/mpl/bind/dist/lib/ns/xfrout.c up to 1.13
external/mpl/bind/dist/lib/ns/include/ns/client.h up to 1.14
external/mpl/bind/dist/lib/ns/include/ns/server.h up to 1.7
external/mpl/bind/dist/lib/ns/include/ns/stats.h up to 1.7
external/mpl/bind/dist/lib/ns/tests/nstest.c up to 1.8
external/mpl/bind/dist/lib/ns/win32/libns.def up to 1.1.1.8
external/mpl/bind/include/config.h up to 1.15
external/mpl/bind/include/dns/code.h up to 1.8
external/mpl/bind/include/dns/enumclass.h up to 1.6
external/mpl/bind/include/dns/enumtype.h up to 1.8
external/mpl/bind/include/dns/rdatastruct.h up to 1.10
external/mpl/bind/include/isc/stdatomic.h up to 1.10
external/mpl/bind/lib/libdns/Makefile up to 1.9
external/mpl/bind/lib/libisc/Makefile up to 1.20
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/doxygen.svg up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/doxygen.svg up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/doxygen.svg up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/doxygen.svg up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/doxygen.svg up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/doxygen.svg up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_prepend_error_message.3 up to 1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/doxygen.svg up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/doxygen.svg up to 1.1.1.1
crypto/external/bsd/heimdal/dist/windows/NTMakefile.sdk up to 1.1.1.1
crypto/external/bsd/heimdal/include/hcrypto/ui.h up to 1.2
crypto/external/bsd/heimdal/dist/cf/._ltoptions.m4 delete
crypto/external/bsd/heimdal/dist/cf/._ltsugar.m4 delete
crypto/external/bsd/heimdal/dist/cf/._lt~obsolete.m4 delete
crypto/external/bsd/heimdal/dist/cf/broken-getaddrinfo.m4 delete
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/doxygen.png delete
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/doxygen.png delete
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/doxygen.png delete
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/EVP_hcrypto_md2.3 delete
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/EVP_md2.3 delete
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/doxygen.png delete
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/doxygen.png delete
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/doxygen.png delete
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/doxygen.png delete
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/doxygen.png delete
crypto/external/bsd/heimdal/dist/lib/hcrypto/md2.c delete
crypto/external/bsd/heimdal/dist/lib/hcrypto/md2.h delete
crypto/external/bsd/heimdal/Makefile.inc up to 1.8
crypto/external/bsd/heimdal/bin/Makefile.inc up to 1.6
crypto/external/bsd/heimdal/bin/gsstool/Makefile up to 1.4
crypto/external/bsd/heimdal/bin/hxtool/Makefile up to 1.6
crypto/external/bsd/heimdal/bin/kcc/Makefile up to 1.6
crypto/external/bsd/heimdal/bin/kdestroy/Makefile up to 1.5
crypto/external/bsd/heimdal/bin/kgetcred/Makefile up to 1.5
crypto/external/bsd/heimdal/bin/kinit/Makefile up to 1.5
crypto/external/bsd/heimdal/bin/kpasswd/Makefile up to 1.5
crypto/external/bsd/heimdal/bin/kvno/Makefile up to 1.4
crypto/external/bsd/heimdal/bin/string2key/Makefile up to 1.5
crypto/external/bsd/heimdal/bin/verify_krb5_conf/Makefile up to 1.5
crypto/external/bsd/heimdal/dist/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/NEWS up to 1.4
crypto/external/bsd/heimdal/dist/aclocal.m4 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/compile up to 1.1.1.2
crypto/external/bsd/heimdal/dist/config.guess up to 1.3
crypto/external/bsd/heimdal/dist/config.sub up to 1.1.1.2
crypto/external/bsd/heimdal/dist/configure up to 1.1.1.2
crypto/external/bsd/heimdal/dist/configure.ac up to 1.5
crypto/external/bsd/heimdal/dist/depcomp up to 1.1.1.2
crypto/external/bsd/heimdal/dist/install-sh up to 1.1.1.2
crypto/external/bsd/heimdal/dist/ltmain.sh up to 1.1.1.2
crypto/external/bsd/heimdal/dist/missing up to 1.1.1.2
crypto/external/bsd/heimdal/dist/test-driver up to 1.1.1.2
crypto/external/bsd/heimdal/dist/ylwrap up to 1.1.1.2
crypto/external/bsd/heimdal/dist/admin/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/admin/add.c up to 1.3
crypto/external/bsd/heimdal/dist/admin/change.c up to 1.3
crypto/external/bsd/heimdal/dist/cf/Makefile.am.common up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/broken-realloc.m4 up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/check-var.m4 up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/db.m4 up to 1.1.1.5
crypto/external/bsd/heimdal/dist/cf/krb-ipv6.m4 up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/libtool.m4 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/ltoptions.m4 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/ltsugar.m4 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/ltversion.m4 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/lt~obsolete.m4 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/misc.m4 up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/proto-compat.m4 up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/retsigtype.m4 up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/roken-frag.m4 up to 1.3
crypto/external/bsd/heimdal/dist/cf/w32-hh-toc-from-info.pl up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/with-all.m4 up to 1.1.1.4
crypto/external/bsd/heimdal/dist/doc/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/NTMakefile up to 1.1.1.3
crypto/external/bsd/heimdal/dist/doc/vars.texi up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/doxygen.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/dynsections.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/graph_legend.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/graph_legend.md5 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/graph_legend.png up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/group__heimbase.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/index.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/jquery.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/menu.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/menudata.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/modules.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/tabs.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/man/man3/heimbase.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/manpages up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/doxygen.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/dynsections.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/graph_legend.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/graph_legend.md5 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/graph_legend.png up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/group__gssapi.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/gssapi_mechs_intro.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/gssapi_services_intro.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/index.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/internal_v_smechname.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/jquery.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/menu.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/menudata.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/modules.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/pages.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/tabs.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/man/man3/gssapi.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/man/man3/gssapi_mechs_intro.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/man/man3/gssapi_services_intro.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/man/man3/internal_v_smechname.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/manpages up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/doxygen.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/dynsections.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/example_evp_cipher_8c-example.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/examples.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/graph_legend.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/graph_legend.md5 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/graph_legend.png up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/group__hcrypto__core.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/group__hcrypto__des.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/group__hcrypto__dh.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/group__hcrypto__evp.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/group__hcrypto__misc.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/group__hcrypto__rand.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/group__hcrypto__rsa.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/index.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/jquery.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/menu.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/menudata.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/modules.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/page_des.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/page_dh.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/page_evp.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/page_rand.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/page_rsa.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/pages.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/tabs.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/hcrypto_core.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/hcrypto_des.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/hcrypto_dh.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/hcrypto_evp.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/hcrypto_misc.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/hcrypto_rand.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/hcrypto_rsa.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/page_des.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/page_dh.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/page_evp.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/page_rand.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/page_rsa.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/manpages up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/annotated.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/classes.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/doxygen.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/dynsections.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/functions.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/functions_vars.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/graph_legend.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/graph_legend.md5 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/graph_legend.png up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/index.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/jquery.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/menu.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/menudata.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/struct_h_d_b.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/structhdb__entry__ex.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/tabs.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/man/man3/HDB.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/man/man3/hdb_entry_ex.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/manpages up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/doxygen.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/dynsections.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/graph_legend.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/graph_legend.md5 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/graph_legend.png up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__ca.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__cert.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__cms.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__crypto.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__env.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__error.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__keyset.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__lock.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__misc.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__name.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__peer.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__print.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__query.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__revoke.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__verify.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/index.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/jquery.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/menu.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/menudata.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/modules.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/page_ca.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/page_cert.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/page_cms.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/page_env.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/page_error.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/page_keyset.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/page_lock.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/page_name.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/page_peer.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/page_print.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/page_revoke.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/pages.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/tabs.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_ca.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_cert.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_cms.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_crypto.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_env.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_error.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_keyset.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_lock.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_misc.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_name.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_peer.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_print.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_query.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_revoke.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_verify.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_ca.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_cert.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_cms.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_env.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_error.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_keyset.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_lock.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_name.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_peer.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_print.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_revoke.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/manpages up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/annotated.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/classes.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/doxygen.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/dynsections.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/graph_legend.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/graph_legend.md5 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/graph_legend.png up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__address.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__auth.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__ccache.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__credential.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__crypto.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__deprecated.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__digest.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__error.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__keytab.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__pac.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__principal.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__storage.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__support.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__ticket.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__v4compat.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/index.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/jquery.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/krb5_ccache_intro.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/krb5_fileformats.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/krb5_init_creds_intro.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/krb5_introduction.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/krb5_keytab_intro.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/krb5_principal_intro.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/menu.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/menudata.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/modules.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/pages.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/structkrb5__crypto__iov.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/structkrb5plugin__an2ln__ftable__desc.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/structkrb5plugin__db__ftable__desc.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/structkrb5plugin__kuserok__ftable__desc.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/tabs.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_address.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_auth.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_ccache.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_ccache_intro.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_credential.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_crypto.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_crypto_iov.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_deprecated.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_digest.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_error.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_fileformats.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_init_creds_intro.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_introduction.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_keytab.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_keytab_intro.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_pac.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_principal.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_principal_intro.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_storage.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_support.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_ticket.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_v4compat.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5plugin_an2ln_ftable_desc.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5plugin_db_ftable_desc.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5plugin_kuserok_ftable_desc.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/manpages up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/annotated.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/classes.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/doxygen.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/dynsections.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/examples.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/functions.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/functions_vars.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/graph_legend.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/graph_legend.md5 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/graph_legend.png up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/group__ntlm__core.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/index.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/jquery.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/menu.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/menudata.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/modules.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/structntlm__buf.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/structntlm__type1.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/structntlm__type2.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/structntlm__type2__coll__graph.map up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/structntlm__type2__coll__graph.md5 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/structntlm__type2__coll__graph.png up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/structntlm__type3.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/structntlm__type3__coll__graph.map up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/structntlm__type3__coll__graph.md5 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/structntlm__type3__coll__graph.png up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/tabs.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/test_ntlm_8c-example.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/man/man3/ntlm_buf.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/man/man3/ntlm_core.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/man/man3/ntlm_type1.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/man/man3/ntlm_type2.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/man/man3/ntlm_type3.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/manpages up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/doxygen.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/dynsections.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/graph_legend.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/graph_legend.md5 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/graph_legend.png up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/group__wind.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/index.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/jquery.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/menu.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/menudata.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/modules.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/tabs.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/man/man3/wind.3 up to 1.3
crypto/external/bsd/heimdal/dist/etc/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/include/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/include/bits.c up to 1.4
crypto/external/bsd/heimdal/dist/include/config.h.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/include/config.h.w32 up to 1.1.1.3
crypto/external/bsd/heimdal/dist/include/crypto-headers.h up to 1.6
crypto/external/bsd/heimdal/dist/include/gssapi/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/include/hcrypto/Makefile.am up to 1.1.1.5
crypto/external/bsd/heimdal/dist/include/hcrypto/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/include/kadm5/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kadmin/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kadmin/ank.c up to 1.3
crypto/external/bsd/heimdal/dist/kadmin/cpw.c up to 1.4
crypto/external/bsd/heimdal/dist/kadmin/ext.c up to 1.3
crypto/external/bsd/heimdal/dist/kadmin/kadmind.c up to 1.3
crypto/external/bsd/heimdal/dist/kadmin/mod.c up to 1.3
crypto/external/bsd/heimdal/dist/kadmin/rpc.c up to 1.4
crypto/external/bsd/heimdal/dist/kadmin/stash.c up to 1.3
crypto/external/bsd/heimdal/dist/kcm/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kcm/cache.c up to 1.6
crypto/external/bsd/heimdal/dist/kcm/config.c up to 1.4
crypto/external/bsd/heimdal/dist/kcm/protocol.c up to 1.3
crypto/external/bsd/heimdal/dist/kdc/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kdc/connect.c up to 1.5
crypto/external/bsd/heimdal/dist/kdc/default_config.c up to 1.3
crypto/external/bsd/heimdal/dist/kdc/digest.c up to 1.5
crypto/external/bsd/heimdal/dist/kdc/hpropd.c up to 1.3
crypto/external/bsd/heimdal/dist/kdc/kdc-private.h up to 1.3
crypto/external/bsd/heimdal/dist/kdc/kdc-replay.c up to 1.3
crypto/external/bsd/heimdal/dist/kdc/kdc.8 up to 1.6
crypto/external/bsd/heimdal/dist/kdc/kdc.h up to 1.3
crypto/external/bsd/heimdal/dist/kdc/kerberos5.c up to 1.9
crypto/external/bsd/heimdal/dist/kdc/krb5tgs.c up to 1.4
crypto/external/bsd/heimdal/dist/kdc/kstash.c up to 1.3
crypto/external/bsd/heimdal/dist/kdc/pkinit.c up to 1.6
crypto/external/bsd/heimdal/dist/kdc/windc_plugin.h up to 1.3
crypto/external/bsd/heimdal/dist/kpasswd/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kpasswd/kpasswd.c up to 1.3
crypto/external/bsd/heimdal/dist/kuser/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kuser/kdestroy.c up to 1.3
crypto/external/bsd/heimdal/dist/kuser/kgetcred.c up to 1.4
crypto/external/bsd/heimdal/dist/kuser/kinit.1 up to 1.6
crypto/external/bsd/heimdal/dist/kuser/kinit.c up to 1.5
crypto/external/bsd/heimdal/dist/kuser/kswitch.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/asn1/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1parse.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/asn1parse.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/check-common.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/check-common.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/check-der.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/check-gen.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/check-template.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/der_cmp.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/der_copy.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/der_get.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/der_length.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/der_put.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/gen_copy.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/gen_decode.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/gen_free.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/krb5.asn1 up to 1.1.1.6
crypto/external/bsd/heimdal/dist/lib/asn1/lex.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/base/Makefile.am up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/base/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/base/bsearch.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/base/dll.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/base/heimbase.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/com_err/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/com_err/lex.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/com_err/parse.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/com_err/parse.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_context.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/accept_sec_context.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/acquire_cred.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/arcfour.c up to 1.6
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/cfx.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/decapsulate.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/delete_sec_context.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/display_status.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/get_mic.c up to 1.6
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/gsskrb5-private.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/init_sec_context.c up to 1.5
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/unwrap.c up to 1.5
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/verify_mic.c up to 1.7
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/wrap.c up to 1.5
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_display_status.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_import_name.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_mech_switch.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_pname_to_uid.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gssapi.asn1 up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/mech_locl.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/init_sec_context.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/accept_sec_context.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/Makefile.am up to 1.1.1.5
crypto/external/bsd/heimdal/dist/lib/hcrypto/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/NTMakefile up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/bn.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/des.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/dh.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/engine.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-cc.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-cc.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-hcrypto.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-hcrypto.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-openssl.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-openssl.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-pkcs11.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-pkcs11.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-w32.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-w32.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-wincng.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-wincng.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp.h up to 1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/example_evp_cipher.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/libhcrypto-exports.def up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/mdtest.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/pkcs5.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_bulk.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_cipher.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/ui.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/ui.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/undef.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/version-script.map up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/hdb/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mitdb.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/hdb/keytab.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hx509/Makefile.am up to 1.1.1.5
crypto/external/bsd/heimdal/dist/lib/hx509/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hx509/cert.c up to 1.6
crypto/external/bsd/heimdal/dist/lib/hx509/cms.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/hx509/crypto.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/hx509/file.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hx509/hxtool.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/hx509/ks_file.c up to 1.6
crypto/external/bsd/heimdal/dist/lib/hx509/name.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hx509/softp11.c up to 1.5
crypto/external/bsd/heimdal/dist/lib/hx509/test_nist_pkcs12.in up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/ipc/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/ipc/client.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/Makefile.am up to 1.1.1.5
crypto/external/bsd/heimdal/dist/lib/kadm5/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/get_s.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/init_c.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_master.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_slave.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/kadm5/kadm5-private.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/kadm5_locl.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/libkadm5srv-exports.def up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/log.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/set_keys.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/kadm5/test_pw_quality.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/version-script.map up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/kafs/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/kafs/afskrb5.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/kafs/afssysdefs.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/kafs/rxkad_kdf.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/kdfs/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/krb5/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/krb5/acl.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/addr_families.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/aes-test.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/config_file.c up to 1.5
crypto/external/bsd/heimdal/dist/lib/krb5/context.c up to 1.7
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-aes-sha1.c up to 1.5
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-arcfour.c up to 1.6
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des-common.c up to 1.6
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des.c up to 1.5
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des3.c up to 1.7
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-evp.c up to 1.5
crypto/external/bsd/heimdal/dist/lib/krb5/crypto.h up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/deprecated.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/enomem.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/get_cred.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/init_creds_pw.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/keytab.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/krb5-plugin.7 up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/krb5.conf.5 up to 1.7
crypto/external/bsd/heimdal/dist/lib/krb5/krb5.h up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_ccapi.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/krbhst.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/locate_plugin.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/mcache.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/pac.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/plugin.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/principal.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/rd_req.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/salt-aes-sha2.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/salt-des.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/salt-des3.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/send_to_kdc.c up to 1.9
crypto/external/bsd/heimdal/dist/lib/krb5/send_to_kdc_plugin.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/store_emem.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/test_plugin.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/test_store.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/ticket.c up to 1.6
crypto/external/bsd/heimdal/dist/lib/krb5/transited.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/ntlm/ntlm.c up to 1.5
crypto/external/bsd/heimdal/dist/lib/otp/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/roken/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/roken/getaddrinfo.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/roken/getxxyyy.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/roken/ndbm_wrap.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/roken/net_write.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/roken/roken.h.in up to 1.7
crypto/external/bsd/heimdal/dist/lib/roken/snprintf.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/roken/strtoll.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/roken/strtoull.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/sl/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/sl/sl.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/sl/slc-gram.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/sl/slc-gram.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/sl/slc-lex.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/vers/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/wind/Makefile.am up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/wind/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/wind/bidi_table.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/bidi_table.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/combining_table.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/combining_table.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/errorlist_table.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/errorlist_table.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/idn-lookup.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/map_table.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/map_table.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/normalize.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/normalize_table.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/normalize_table.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/punycode_examples.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/punycode_examples.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/test-normalize.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/utf8.c up to 1.3
crypto/external/bsd/heimdal/dist/packages/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/packages/mac/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/packages/windows/installer/NTMakefile up to 1.1.1.4
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-installer.wxs up to 1.1.1.4
crypto/external/bsd/heimdal/dist/po/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/bin/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/can/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/db/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/gss/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/gss/check-context.in up to 1.1.1.5
crypto/external/bsd/heimdal/dist/tests/java/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-iprop.in up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/kdc/check-kdc.in up to 1.1.1.5
crypto/external/bsd/heimdal/dist/tests/ldap/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/plugin/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tools/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/windows/NTMakefile.version up to 1.1.1.4
crypto/external/bsd/heimdal/dist/windows/NTMakefile.w32 up to 1.1.1.5
crypto/external/bsd/heimdal/include/config.h up to 1.11
crypto/external/bsd/heimdal/include/kdc-private.h up to 1.5
crypto/external/bsd/heimdal/lib/libgssapi/Makefile up to 1.7
crypto/external/bsd/heimdal/lib/libhdb/Makefile up to 1.5
crypto/external/bsd/heimdal/lib/libheimntlm/Makefile up to 1.5
crypto/external/bsd/heimdal/lib/libhx509/Makefile up to 1.10
crypto/external/bsd/heimdal/lib/libkadm5clnt/Makefile up to 1.5
crypto/external/bsd/heimdal/lib/libkadm5srv/Makefile up to 1.6
crypto/external/bsd/heimdal/lib/libkafs/Makefile up to 1.5
crypto/external/bsd/heimdal/lib/libkdc/Makefile up to 1.6
crypto/external/bsd/heimdal/lib/libkrb5/Makefile up to 1.15
crypto/external/bsd/heimdal/lib/libvers/Makefile up to 1.3
crypto/external/bsd/heimdal/libexec/Makefile.inc up to 1.8
crypto/external/bsd/heimdal/libexec/digest-service/Makefile up to 1.5
crypto/external/bsd/heimdal/libexec/hpropd/Makefile up to 1.5
crypto/external/bsd/heimdal/libexec/ipropd-master/Makefile up to 1.5
crypto/external/bsd/heimdal/libexec/ipropd-slave/Makefile up to 1.5
crypto/external/bsd/heimdal/libexec/kadmind/Makefile up to 1.7
crypto/external/bsd/heimdal/libexec/kpasswdd/Makefile up to 1.5
crypto/external/bsd/heimdal/sbin/Makefile.inc up to 1.7
crypto/external/bsd/heimdal/sbin/hprop/Makefile up to 1.5
crypto/external/bsd/heimdal/sbin/iprop-log/Makefile up to 1.5
crypto/external/bsd/heimdal/sbin/kadmin/Makefile up to 1.6
crypto/external/bsd/heimdal/sbin/kcm/Makefile up to 1.5
crypto/external/bsd/heimdal/sbin/kdc/Makefile up to 1.5
crypto/external/bsd/heimdal/sbin/kdigest/Makefile up to 1.6
crypto/external/bsd/heimdal/sbin/kimpersonate/Makefile up to 1.5
crypto/external/bsd/heimdal/sbin/kstash/Makefile up to 1.5
crypto/external/bsd/heimdal/sbin/ktutil/Makefile up to 1.6
crypto/external/bsd/openssl/bin/progs.c up to 1.1
crypto/external/bsd/openssl/lib/engines/dasync/dasync.map up to 1.3
crypto/external/bsd/openssl/lib/engines/ossltest/ossltest.map up to 1.3
crypto/external/bsd/openssl/lib/engines/padlock/padlock.map up to 1.3
crypto/external/bsd/openssl/lib/engines/devcrypto/Makefile up to 1.3
crypto/external/bsd/openssl/lib/engines/devcrypto/devcrypto.map up to 1.3
crypto/external/bsd/openssl/lib/engines/loader_attic/Makefile up to 1.3
crypto/external/bsd/openssl/lib/engines/loader_attic/loader_attic.map up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/aes-gcm-armv8_64.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/alpha/ec.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/aes-gcm-armv8_64.S up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/ec.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/hppa/ec.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/ia64/ec.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/m68k/ec.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/mips/ec.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/ec.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/ecp_nistp521-ppc64.S up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/ppc64-mont-fixed.S up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/ecp_nistp521-ppc64.S up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/ppc64-mont-fixed.S up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/sh3/ec.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/sha256-sparcv9.S up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/vax/ec.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/rsaz-avx512.S up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/riscv32/crypto.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/riscv32/ec.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/riscv64/ec.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/ess.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/libc-sha1.c up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/mkinc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_EXTERN_FUNCS.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_INTEGER_new.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_aux_cb.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_item_d2i_bio.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_item_new.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_item_sign.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_prefix.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_readbuffer.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/ERR_new.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_s_core.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_s_datagram.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_socket_wait.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/BN_mod_exp_mont.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_EncryptedData_decrypt.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_EncryptedData_encrypt.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_EnvelopedData_create.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_data_create.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_digest_create.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/CRYPTO_memcmp.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/ECDSA_sign.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_ASYM_CIPHER-RSA.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_ASYM_CIPHER-SM2.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_ASYM_CIPHER_free.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-AES.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-ARIA.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-BLOWFISH.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-CAMELLIA.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-CAST.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-CHACHA.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-DES.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-IDEA.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-NULL.7 up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-RC2.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-RC4.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-RC5.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-SEED.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-SM4.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER_CTX_get_original_iv.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-HKDF.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-KB.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-KRB5KDF.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-PBKDF1.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-PBKDF2.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-SS.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-PKCS12KDF.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-SCRYPT.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-SSHKDF.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-TLS13_KDF.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-TLS1_PRF.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-X942-ASN1.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-X942-CONCAT.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-X963.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KEM-RSA.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KEM_free.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KEYEXCH-DH.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KEYEXCH-ECDH.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KEYEXCH-X25519.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KEYEXCH_free.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KEYMGMT.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MAC-BLAKE2.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MAC-CMAC.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MAC-GMAC.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MAC-HMAC.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MAC-KMAC.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MAC-Poly1305.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MAC-Siphash.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MAC.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-BLAKE2.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-MD2.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-MD4.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-MD5-SHA1.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-MD5.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-MDC2.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-NULL.7 up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-RIPEMD160.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-SHA1.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-SHA2.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-SHA3.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-SHAKE.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-SM3.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-WHIRLPOOL.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-common.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PBE_CipherInit.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY-DH.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY-DSA.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY-EC.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY-FFC.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY-HMAC.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY-RSA.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY-SM2.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY-X25519.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY2PKCS8.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_CTX_get0_libctx.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_CTX_get0_pkey.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_CTX_set_params.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_check.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_copy_parameters.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_decapsulate.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_digestsign_supports_digest.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_encapsulate.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_fromdata.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_get_field_type.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_get_group_name.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_get_size.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_gettable_params.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_is_a.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_set1_encoded_public_key.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_set_type.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_settable_params.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_todata.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_RAND-CTR-DRBG.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_RAND-HASH-DRBG.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_RAND-HMAC-DRBG.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_RAND-SEED-SRC.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_RAND-TEST-RAND.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_RAND.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_RAND.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_SIGNATURE-DSA.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_SIGNATURE-ECDSA.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_SIGNATURE-ED25519.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_SIGNATURE-HMAC.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_SIGNATURE-RSA.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_SIGNATURE.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_aes_128_gcm.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_aria_128_gcm.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_camellia_128_ecb.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_des_cbc.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_set_default_properties.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/NCONF_new_ex.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_FILE.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_gmtime.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_hexchar2int.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_s390xcap.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_strcasecmp.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_ALGORITHM.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CALLBACK.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CMP_CTX_new.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CMP_HDR_get0_transactionID.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CMP_ITAV_set0.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CMP_MSG_get0_header.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CMP_MSG_http_perform.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CMP_SRV_CTX_new.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CMP_STATUSINFO_new.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CMP_exec_certreq.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CMP_log_open.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CMP_validate_msg.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CORE_MAKE_FUNC.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CRMF_MSG_get0_tmpl.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_DECODER.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CRMF_MSG_set0_validity.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CRMF_MSG_set1_regCtrl_regToken.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CRMF_MSG_set1_regInfo_certReq.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CRMF_pbmp_new.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_DECODER_CTX.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_DECODER_CTX_new_for_pkey.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_DECODER_from_bio.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_DISPATCH.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_ENCODER.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_ENCODER_CTX.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_ENCODER_CTX_new_for_pkey.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_ENCODER_to_bio.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_ESS_check_signing_certs.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_HTTP_REQ_CTX.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_ITEM.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_HTTP_parse_url.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_HTTP_transfer.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_LIB_CTX.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_PARAM.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_PARAM_BLD.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_PARAM_allocate_from_text.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_PARAM_dup.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_PARAM_int.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_PROVIDER-FIPS.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_PROVIDER-base.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_PROVIDER-default.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_PROVIDER-legacy.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_PROVIDER-null.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_PROVIDER.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_SELF_TEST_new.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_SELF_TEST_set_callback.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/X509_cmp.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_STORE_attach.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_trace_enabled.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_trace_get_category_num.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_trace_set_channel.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OpenSSL_version.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PEM_X509_INFO_read_bio_ex.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_PBE_keyivgen.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_SAFEBAG_create_cert.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_SAFEBAG_get0_attrs.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_SAFEBAG_get1_cert.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_add1_attr_by_NID.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_add_CSPName_asc.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_add_cert.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_add_friendlyname_asc.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_add_safe.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_add_localkeyid.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_decrypt_skey.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_gen_mac.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_get_friendlyname.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_init.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_item_decrypt_d2i.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_key_gen_utf8_ex.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_pack_p7encdata.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS5_PBE_keyivgen.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS7_get_octet_string.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS7_type_is_other.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS8_encrypt.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS8_pkey_add1_attr.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/RAND_get0_primary.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/RAND_set_DRBG_type.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SMIME_read_ASN1.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SMIME_write_ASN1.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SRP_Calc_B.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SRP_VBASE_new.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SRP_create_verifier.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SRP_user_pwd_new.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_srp_password.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_tmp_ecdh.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_certificate.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_group_to_name.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_set_async_callback.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_set_retry_verify.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/TS_RESP_CTX_new.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/TS_VERIFY_CTX_set_certs.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/X509V3_set_ctx.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/X509_LOOKUP.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/X509_add_cert.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/X509_check_purpose.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/X509_get0_distinguishing_id.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/X509_load_http.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/X509_verify.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/b2i_PVK_bio_ex.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/d2i_RSAPrivateKey.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/fips_config.5 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/fips_module.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/life_cycle-cipher.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/life_cycle-digest.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/life_cycle-kdf.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/life_cycle-mac.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/life_cycle-pkey.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/life_cycle-rand.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/migration_guide.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/openssl-core.h.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/openssl-core_dispatch.h.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/openssl-core_names.h.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/openssl-env.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/openssl-format-options.1 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/openssl-glossary.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/openssl-namedisplay-options.1 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/openssl-passphrase-options.1 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/openssl-threads.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/openssl-verification-options.1 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/property.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-asym_cipher.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-base.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-cipher.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-decoder.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-digest.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-encoder.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-kdf.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-kem.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-keyexch.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-keymgmt.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-mac.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-object.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-rand.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-signature.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-storemgmt.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/proxy-certificates.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/s2i_ASN1_IA5STRING.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/ffc.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/PROTO.in up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/cmp.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/crmf.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/encode_decode.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/gen up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/http.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/property.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/providers.inc up to 1.1
crypto/external/bsd/openssl/lib/libapps/Makefile up to 1.6
crypto/external/bsd/openssl/lib/libapps/PROTO.in up to 1.1
crypto/external/bsd/openssl/lib/libapps/apps_lib.inc up to 1.1
crypto/external/bsd/openssl/lib/libapps/mkinc up to 1.1
crypto/external/bsd/openssl/lib/libapps/srcs.inc up to 1.1
crypto/external/bsd/openssl/lib/Makefile.subdir up to 1.1
crypto/external/bsd/openssl/lib/libcommon/Makefile up to 1.5
crypto/external/bsd/openssl/lib/libcommon/PROTO.in up to 1.1
crypto/external/bsd/openssl/lib/libcommon/der_digests_gen.c up to 1.1
crypto/external/bsd/openssl/lib/libcommon/der_dsa_gen.c up to 1.1
crypto/external/bsd/openssl/lib/libcommon/der_ec_gen.c up to 1.1
crypto/external/bsd/openssl/lib/libcommon/der_ecx_gen.c up to 1.1
crypto/external/bsd/openssl/lib/libcommon/der_rsa_gen.c up to 1.1
crypto/external/bsd/openssl/lib/libcommon/der_wrap_gen.c up to 1.1
crypto/external/bsd/openssl/lib/libcommon/mkinc up to 1.1
crypto/external/bsd/openssl/lib/libcommon/providers_common.inc up to 1.1
crypto/external/bsd/openssl/lib/libcommon/providers_common_der.inc up to 1.1
crypto/external/bsd/openssl/lib/libcommon/providers_implementations_ciphers.inc up to 1.1
crypto/external/bsd/openssl/lib/libcommon/providers_implementations_digests.inc up to 1.1
crypto/external/bsd/openssl/lib/libcommon/srcs.inc up to 1.1
crypto/external/bsd/openssl/lib/libcommon/ssl_record.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/prov/der_digests.h up to 1.1
crypto/external/bsd/openssl/lib/libdefault/prov/der_dsa.h up to 1.1
crypto/external/bsd/openssl/lib/libdefault/prov/der_ec.h up to 1.1
crypto/external/bsd/openssl/lib/libdefault/prov/der_ecx.h up to 1.1
crypto/external/bsd/openssl/lib/libdefault/prov/der_rsa.h up to 1.1
crypto/external/bsd/openssl/lib/libdefault/prov/der_sm2.h up to 1.1
crypto/external/bsd/openssl/lib/libdefault/prov/der_wrap.h up to 1.1
crypto/external/bsd/openssl/lib/libdefault/Makefile up to 1.6
crypto/external/bsd/openssl/lib/libdefault/PROTO.in up to 1.1
crypto/external/bsd/openssl/lib/libdefault/der_sm2_gen.c up to 1.1
crypto/external/bsd/openssl/lib/libdefault/mkinc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_common.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_common_der.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_asymciphers.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_ciphers.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_digests.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_encode_decode.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_exchange.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_kdfs.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_kem.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_keymgmt.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_macs.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_rands.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_rands_seeding.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_signature.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_storemgmt.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/srcs.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/ssl.inc up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/Makefile up to 1.7
crypto/external/bsd/openssl/lib/liblegacy/PROTO.in up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/crypto.inc up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/crypto_des.inc up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/crypto_md5.inc up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/legacy.map up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/mkinc up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/providers.inc up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/providers_common.inc up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/providers_implementations_ciphers.inc up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/providers_implementations_digests.inc up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/providers_implementations_kdfs.inc up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/srcs.inc up to 1.1
crypto/external/bsd/openssl/dist/AUTHORS.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/CONTRIBUTING.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/FAQ.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/INSTALL.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/LICENSE.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/NEWS.md up to 1.1.1.2
crypto/external/bsd/openssl/dist/README-ENGINES.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/README-FIPS.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/README-PROVIDERS.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/SUPPORT.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/VERSION.dat up to 1.1.1.2
crypto/external/bsd/openssl/dist/configdata.pm.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/platform/BASE.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/platform/AIX.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/platform/Windows/MSVC.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/platform/Windows/cppbuilder.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/platform/Cygwin.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/platform/Unix.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/platform/VMS.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/platform/Windows.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/platform/mingw.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/gentemplate.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/50-cppbuilder.conf up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/50-nonstop.conf up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/50-os390.conf up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/50-vms-x86_64.conf up to 1.1.1.2
crypto/external/bsd/openssl/dist/Configurations/README-design.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/platform.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/asn1parse.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/cmp.c up to 1.3
crypto/external/bsd/openssl/dist/apps/crl2pkcs7.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/app_libctx.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/app_params.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/app_provider.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/app_rand.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/app_x509.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/apps.c up to 1.4
crypto/external/bsd/openssl/dist/apps/lib/apps_ui.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/cmp_mock_srv.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/apps/lib/columns.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/engine.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/engine_loader.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/fmt.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/http_server.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/names.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/opt.c up to 1.2
crypto/external/bsd/openssl/dist/apps/lib/s_cb.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/s_socket.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/tlssrp_depr.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/vms_decc_argv.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/vms_term_sock.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/win32_init.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/info.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/fipsinstall.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/insta.ca.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/__DECC_INCLUDE_EPILOGUE.H up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/__DECC_INCLUDE_PROLOGUE.H up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/app_libctx.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/app_params.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/apps.h up to 1.2
crypto/external/bsd/openssl/dist/apps/include/apps_ui.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/cmp_mock_srv.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/apps/include/ec_common.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/engine_loader.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/fmt.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/function.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/http_server.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/names.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/opt.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/platform.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/s_apps.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/vms_term_sock.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/kdf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/list.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/mac.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/packet.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/params.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/provider.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/cmp/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_asn.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_client.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_ctx.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_err.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_hdr.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_http.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_msg.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_protect.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_server.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_status.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_util.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_vfy.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ess/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ess/ess_asn1.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ess/ess_err.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ess/ess_lib.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/asn1/asn1_parse.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/asn1/d2i_param.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/asn1/i2d_evp.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bio/bf_prefix.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bio/bf_readbuff.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bio/bio_addr.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bio/bio_dump.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bio/bio_print.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bio/bio_sock.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bio/bio_sock2.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bio/bss_core.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bio/ossl_core_bio.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bn/asm/ppc64-mont-fixed.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bn/asm/rsaz-avx512.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bn/rsaz_exp_x2.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bn/bn_conv.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bn/bn_ppc.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bn/bn_rsa_fips186_4.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/bn/bn_sparc.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/chacha/asm/chacha-ia64.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/chacha/chacha_ppc.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/cms/cms_dh.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cms/cms_ec.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cms/cms_rsa.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/dh/dh_backend.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/dh/dh_group_params.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_backend.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_check.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/asm/ecp_nistp521-ppc64.pl up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ec/curve448/arch_32/f_impl32.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/curve448/arch_64/arch_intrinsics.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/curve448/arch_64/f_impl.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/curve448/arch_64/f_impl64.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/ec_backend.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/ec_deprecated.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/ecp_ppc.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/ecp_s390x_nistp.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/ecx_backend.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/ecx_backend.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/ecx_key.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/ecx_s390x.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/engine/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/err/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/err/err_all_legacy.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/err/err_blocks.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/err/err_local.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/mac_lib.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/mac_meth.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/p_legacy.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/pmeth_check.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/signature.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/asymcipher.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/ctrl_params_translate.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/evp/dh_ctrl.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/dh_support.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/dsa_ctrl.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/ec_ctrl.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/evp/ec_support.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/evp_fetch.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/kem.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/evp_rand.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/evp_utils.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/exchange.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/kdf_lib.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/kdf_meth.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/keymgmt_lib.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/keymgmt_meth.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/evp/legacy_blake2.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/legacy_md2.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/legacy_md4.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/legacy_md5.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/legacy_md5_sha1.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/legacy_mdc2.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/legacy_meth.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/legacy_ripemd.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/legacy_sha.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/legacy_wp.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/md5/md5_sha1.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/modes/asm/aes-gcm-armv8_64.pl up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/modes/siv128.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/objects/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/objects/obj_compat.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ocsp/ocsp_http.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/pem/pem_local.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/perlasm/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/perlasm/s390x.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/perlasm/x86_64-support.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/pkcs7/pk7_local.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/poly1305/asm/poly1305-ia64.S up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/poly1305/poly1305_ppc.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/rand/prov_seed.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/rand/rand_deprecated.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/rand/rand_meth.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/rand/rand_pool.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_acvp_test_params.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_backend.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_mp_names.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_schemes.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_sp800_56b_check.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_sp800_56b_gen.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/sha/sha_ppc.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/sha/sha3.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/sm2/sm2_key.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/sm3/legacy_sm3.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/store/store_meth.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/store/store_result.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/by_store.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/ext_dat.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/pcy_cache.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/pcy_data.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/pcy_lib.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/pcy_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/x509/pcy_map.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/pcy_node.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/x509/pcy_tree.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/x509/standard_exts.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_addr.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_admis.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_admis.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_akeya.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_akid.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_asid.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_bcons.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_bitst.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_conf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_cpols.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_crld.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_enum.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_extku.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_genn.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_ia5.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_info.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_int.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_ist.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_lib.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_ncons.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_pci.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_pcia.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_pcons.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_pku.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_pmaps.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_prn.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_purp.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_san.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_skid.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_sxnet.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_tlsf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_utf8.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_utl.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3err.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/x509_trust.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/sparse_array.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/asn1_dsa.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/README-sparse_array.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bsearch.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/context.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/core_algorithm.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/core_fetch.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/core_namemap.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/cpuid.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/der_writer.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/info.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/initthread.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/param_build.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/param_build_set.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/params_dup.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/params_from_text.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/passphrase.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/provider_child.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/provider_conf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/provider_core.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/provider_local.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/provider_predefined.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/punycode.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/self_test_core.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/threads_lib.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/trace.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/crmf/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/crmf/crmf_asn.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/crmf/crmf_err.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/crmf/crmf_lib.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/crmf/crmf_local.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/crmf/crmf_pbm.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/encode_decode/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/encode_decode/decoder_err.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/encode_decode/decoder_lib.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/encode_decode/decoder_meth.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/encode_decode/decoder_pkey.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/encode_decode/encoder_err.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/encode_decode/encoder_lib.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/encode_decode/encoder_local.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/encode_decode/encoder_meth.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/encode_decode/encoder_pkey.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ffc/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ffc/ffc_backend.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ffc/ffc_dh.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ffc/ffc_key_generate.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ffc/ffc_key_validate.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ffc/ffc_params.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ffc/ffc_params_generate.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ffc/ffc_params_validate.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/http/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/http/http_client.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/http/http_err.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/http/http_lib.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/property/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/property/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/property/defn_cache.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/property/property.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/property/property_err.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/property/property_local.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/property/property_parse.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/property/property_query.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/property/property_string.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/bio/README.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/certs/README.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/cipher/Makefile up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/cipher/aesccm.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/cipher/aesgcm.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/cipher/aeskeywrap.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/cipher/ariacbc.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/README.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/digest/BIO_f_md.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/digest/EVP_MD_demo.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/digest/EVP_MD_stdin.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/digest/EVP_MD_xof.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/digest/Makefile up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/encode/Makefile up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/encode/ec_encode.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/encode/rsa_encode.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/kdf/Makefile up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/kdf/hkdf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/kdf/pbkdf2.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/kdf/scrypt.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/keyexch/x25519.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/mac/Makefile up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/mac/cmac-aes256.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/mac/gmac.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/mac/hmac-sha512.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/mac/poly1305.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/mac/siphash.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/pkey/EVP_PKEY_DSA_keygen.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/pkey/EVP_PKEY_DSA_paramfromdata.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/pkey/EVP_PKEY_DSA_paramgen.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/pkey/EVP_PKEY_DSA_paramvalidate.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/pkey/EVP_PKEY_EC_keygen.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/pkey/EVP_PKEY_RSA_keygen.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/pkey/Makefile up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/pkey/dsa.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/signature/EVP_Signature_demo.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/signature/EVP_Signature_demo.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/signature/Makefile up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/signature/rsa_pss.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/signature/rsa_pss_direct.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/signature/rsa_pss_hash.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-asn1parse.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-ca.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-ciphers.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-cmds.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-cmp.pod.in up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man1/openssl-cms.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-crl.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-crl2pkcs7.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-dgst.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-dhparam.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-dsa.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-dsaparam.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-nseq.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-ec.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-ecparam.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-enc.pod.in up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man1/openssl-engine.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-errstr.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-fipsinstall.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-format-options.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-gendsa.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-genpkey.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-genrsa.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-info.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-kdf.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-list.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-mac.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-namedisplay-options.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-ocsp.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-passphrase-options.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-passwd.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-pkcs12.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-pkcs7.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-pkcs8.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-pkey.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-pkeyparam.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-pkeyutl.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-prime.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-rand.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-rehash.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-req.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-rsa.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-rsautl.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-s_client.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-s_server.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-s_time.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-sess_id.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-smime.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-speed.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-spkac.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-srp.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-storeutl.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-ts.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-verification-options.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-verify.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-version.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-x509.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_is_a.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_des_cbc.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/NCONF_new_ex.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_gmtime.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_ITEM.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SMIME_read_ASN1.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SMIME_write_ASN1.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SRP_Calc_B.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SRP_VBASE_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/X509_verify.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/RAND_get0_primary.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/RAND_set_DRBG_type.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_certificate.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SSL_group_to_name.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/ERR_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_todata.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_PARAM.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/ASN1_EXTERN_FUNCS.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/ASN1_INTEGER_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/ASN1_aux_cb.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/BIO_s_core.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/ASN1_item_d2i_bio.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/ASN1_item_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/ASN1_item_sign.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/BIO_f_prefix.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/BIO_f_readbuffer.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/BIO_s_datagram.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/BIO_socket_wait.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/BN_mod_exp_mont.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/CMS_EncryptedData_decrypt.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CMS_EncryptedData_encrypt.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/CMS_EnvelopedData_create.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/CMS_data_create.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/CMS_digest_create.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/ECDSA_sign.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_ASYM_CIPHER_free.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_KDF.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_MAC.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_CIPHER_CTX_get_original_iv.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_KEM_free.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_KEYEXCH_free.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_KEYMGMT.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PBE_CipherInit.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY2PKCS8.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_CTX_get0_libctx.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_CTX_get0_pkey.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_CTX_set_params.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_check.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_copy_parameters.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_decapsulate.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_digestsign_supports_digest.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_encapsulate.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_RAND.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_fromdata.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_get_field_type.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_get_group_name.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_get_size.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_gettable_params.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_set1_encoded_public_key.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_set_type.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_settable_params.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_SIGNATURE.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_aes_128_gcm.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_aria_128_gcm.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_camellia_128_ecb.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_set_default_properties.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_FILE.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_init.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_hexchar2int.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_s390xcap.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_strcasecmp.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_ALGORITHM.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CALLBACK.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CMP_CTX_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CMP_HDR_get0_transactionID.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CMP_ITAV_set0.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CMP_MSG_get0_header.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CMP_MSG_http_perform.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CMP_SRV_CTX_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CMP_STATUSINFO_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CMP_exec_certreq.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CMP_log_open.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CORE_MAKE_FUNC.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CMP_validate_msg.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CRMF_MSG_get0_tmpl.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CRMF_MSG_set0_validity.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CRMF_MSG_set1_regCtrl_regToken.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CRMF_MSG_set1_regInfo_certReq.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CRMF_pbmp_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_DECODER.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_DECODER_CTX.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_DECODER_CTX_new_for_pkey.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_DECODER_from_bio.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/OSSL_DISPATCH.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_ENCODER.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_ENCODER_CTX.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_ENCODER_CTX_new_for_pkey.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_ENCODER_to_bio.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_ESS_check_signing_certs.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_HTTP_REQ_CTX.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_HTTP_parse_url.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_HTTP_transfer.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_LIB_CTX.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_PARAM_BLD.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_PARAM_allocate_from_text.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_PARAM_dup.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_PARAM_int.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/OSSL_PROVIDER.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_SELF_TEST_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_SELF_TEST_set_callback.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_STORE_attach.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_trace_enabled.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_trace_get_category_num.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_trace_set_channel.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OpenSSL_version.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PEM_X509_INFO_read_bio_ex.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_PBE_keyivgen.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_SAFEBAG_create_cert.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_SAFEBAG_get0_attrs.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_SAFEBAG_get1_cert.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_add1_attr_by_NID.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_add_CSPName_asc.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_add_cert.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_add_friendlyname_asc.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_add_localkeyid.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_add_safe.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_decrypt_skey.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_gen_mac.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_get_friendlyname.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_item_decrypt_d2i.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_key_gen_utf8_ex.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_pack_p7encdata.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS5_PBE_keyivgen.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS7_get_octet_string.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS7_type_is_other.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS8_encrypt.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS8_pkey_add1_attr.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SRP_create_verifier.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SRP_user_pwd_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_srp_password.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_tmp_ecdh.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SSL_set_async_callback.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SSL_set_retry_verify.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/TS_RESP_CTX_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/TS_VERIFY_CTX_set_certs.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/X509V3_set_ctx.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/X509_add_cert.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/X509_get0_distinguishing_id.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/X509_load_http.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/b2i_PVK_bio_ex.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/d2i_RSAPrivateKey.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/s2i_ASN1_IA5STRING.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man5/fips_config.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/fips_module.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/life_cycle-cipher.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_ASYM_CIPHER-RSA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_ASYM_CIPHER-SM2.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-AES.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-ARIA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-BLOWFISH.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-CAMELLIA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-CAST.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-CHACHA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-DES.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-IDEA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-NULL.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-RC2.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-RC4.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-RC5.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-SEED.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-SM4.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-HKDF.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-KB.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-KRB5KDF.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-PBKDF1.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-PBKDF2.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-PKCS12KDF.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-SCRYPT.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-SS.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-SSHKDF.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-TLS13_KDF.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-TLS1_PRF.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-X942-ASN1.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-X942-CONCAT.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-X963.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KEM-RSA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KEYEXCH-DH.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KEYEXCH-ECDH.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KEYEXCH-X25519.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MAC-BLAKE2.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MAC-CMAC.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MAC-GMAC.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MAC-HMAC.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MAC-KMAC.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MAC-Poly1305.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MAC-Siphash.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-BLAKE2.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-MD2.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-MD4.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-MD5-SHA1.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-MD5.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-MDC2.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-NULL.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-RIPEMD160.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-SHA1.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-SHA2.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-SHA3.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-SHAKE.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-SM3.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-WHIRLPOOL.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-common.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_PKEY-DH.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_PKEY-DSA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_PKEY-EC.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/EVP_PKEY-FFC.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_PKEY-HMAC.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_PKEY-RSA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_PKEY-SM2.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_PKEY-X25519.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_RAND-CTR-DRBG.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_RAND-HASH-DRBG.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_RAND-HMAC-DRBG.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_RAND-SEED-SRC.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_RAND-TEST-RAND.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_RAND.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_SIGNATURE-DSA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_SIGNATURE-ECDSA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_SIGNATURE-ED25519.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/img/cipher.png up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/img/digest.png up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/img/kdf.png up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/img/mac.png up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/img/pkey.png up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/img/rand.png up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_SIGNATURE-HMAC.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_SIGNATURE-RSA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/OSSL_PROVIDER-FIPS.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/OSSL_PROVIDER-base.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/OSSL_PROVIDER-default.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/OSSL_PROVIDER-legacy.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/OSSL_PROVIDER-null.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/life_cycle-digest.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/life_cycle-kdf.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/life_cycle-mac.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/life_cycle-pkey.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/life_cycle-rand.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/migration_guide.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/openssl-core.h.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/openssl-core_dispatch.h.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/openssl-core_names.h.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/openssl-env.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/openssl-glossary.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/openssl-threads.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/openssl_user_macros.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/property.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/provider-asym_cipher.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/provider-base.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/provider-cipher.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/provider-decoder.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/provider-digest.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/provider-encoder.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/provider-kdf.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/provider-kem.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/provider-keyexch.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/provider-keymgmt.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/provider-mac.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/provider-object.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/provider-rand.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/provider-signature.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/provider-storemgmt.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/provider.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/build.info.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/perlvars.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/images/openssl.svg up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/OPENSSL_SA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/OPTIONS.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/OSSL_DEPRECATED.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/OSSL_METHOD_STORE.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/cms_add1_signing_cert.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/evp_generic_fetch.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/evp_keymgmt_newdata.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/evp_keymgmt_util_export_to_provider.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/evp_md_get_number.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/evp_pkey_export_to_provider.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/evp_pkey_get1_ED25519.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_DER_w_begin_sequence.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_DER_w_bn.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_DER_w_precompiled.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_algorithm_do_all.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_cmp_X509_STORE_add1_certs.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_cmp_asn1_octet_string_set1.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_cmp_certreq_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_cmp_ctx_set1_caPubs.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_cmp_hdr_init.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_cmp_mock_srv_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_cmp_msg_check_update.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_cmp_msg_create.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_cmp_msg_protect.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_cmp_pkisi_get_status.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_cmp_print_log.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_ends_with_dirsep.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_global_properties_no_mirrored.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_init_thread_deregister.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_lib_ctx_get_data.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_method_construct.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_namemap_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_provider_add_conf_module.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_provider_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_punycode_decode.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_rand_get_entropy.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_random_add_conf_module.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_rsa_get0_all_params.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/x509v3_cache_extensions.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man7/DERlib.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man7/EVP_PKEY.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man7/VERSION.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man7/build.info.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man7/deprecation.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/life-cycles/Makefile up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/life-cycles/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/life-cycles/cipher.dot up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/life-cycles/digest.dot up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/life-cycles/kdf.dot up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/life-cycles/lifecycles.ods up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/life-cycles/mac.dot up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/life-cycles/pkey.dot up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/life-cycles/rand.dot up to 1.1.1.1
crypto/external/bsd/openssl/dist/engines/e_devcrypto.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/engines/e_loader_attic.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/engines/e_loader_attic.ec up to 1.1.1.1
crypto/external/bsd/openssl/dist/engines/e_loader_attic.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/engines/e_loader_attic_err.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/engines/e_loader_attic_err.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/MODULES.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/lib/Text/Template/Preprocess.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/lib/Text/Template.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/author-pod-syntax.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/author-signature.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/basic.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/broken.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/delimiters.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/error.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/exported.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/hash.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/inline-comment.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/nested-tags.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/ofh.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/out.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/prepend.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/preprocess.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/rt29928.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/safe.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/safe2.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/safe3.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/strict.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/taint.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/template-encoding.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/warnings.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/Changes up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/INSTALL up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/LICENSE up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/MANIFEST up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/META.json up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/META.yml up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/Makefile.PL up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/README up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/SIGNATURE up to 1.1.1.1
crypto/external/bsd/openssl/dist/fuzz/fuzz_rand.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/fuzz/cmp.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/sha3.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/asn1.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/core.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/endian.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/der.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/deprecated.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/namemap.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/ffc.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/ktls.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/packet.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/param_build_set.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/passphrase.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/property.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/propertyerr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/provider.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/sizes.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/sm3.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/symhacks.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/tlsgroups.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/unicode.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/asn1t.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/bio.h.in up to 1.2
crypto/external/bsd/openssl/dist/include/openssl/crypto.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/cmp.h.in up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/lhash.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/macros.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/ct.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/err.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/safestack.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/opensslv.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/pkcs12.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/self_test.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/param_build.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/pkcs7.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/conf.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/x509v3.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/x509_vfy.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/ui.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/asn1.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/srp.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/ssl.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/cmp_util.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/cmperr.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/cms.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/configuration.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/conftypes.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/core.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/core_dispatch.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/core_names.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/core_object.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/crmf.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/crmferr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/cryptoerr_legacy.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/decoder.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/decodererr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/encoder.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/encodererr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/ess.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/esserr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/fips_names.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/fipskey.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/http.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/httperr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/ocsp.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/trace.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/opensslconf.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/params.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/prov_ssl.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/proverr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/provider.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/sslerr_legacy.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/types.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/x509.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/tserr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/aes_platform.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/asn1_dsa.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/asn1err.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/asyncerr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/bioerr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/bnerr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/buffererr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/cmll_platform.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/cmperr.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/cmserr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/comperr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/conferr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/crmferr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/cryptoerr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/cterr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/decoder.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/decodererr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/des_platform.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/dh.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/dherr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/dsa.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/dsaerr.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/ecerr.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/ecx.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/encoder.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/encodererr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/engineerr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/ess.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/esserr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/evperr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/httperr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/modes.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/objectserr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/ocsperr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/pem.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/pemerr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/pkcs12err.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/pkcs7.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/pkcs7err.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/ppc_arch.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/punycode.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/rand_pool.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/randerr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/rsa.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/rsaerr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/siv.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/security_bits.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/sparc_arch.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/sparse_array.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/storeerr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/types.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/uierr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/x509err.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/x509v3err.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/ssl/record/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/ssl/record/tls_pad.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/ssl/sslerr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/ssl/statem/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/ssl/tls_depr.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/ssl/ktls.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/ssl/ssl_err_legacy.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/ssl/ssl_rsa_legacy.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/sm2.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/bad-othername-cert.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/bad-othername-namec-inter.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/bad-othername-namec-key.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/bad-othername-namec.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ca-pol-cert.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/root-ed25519.pubkey.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/cert-key-cert.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ct-server-key-public.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ct-server-key.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/dhk2048.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ec_privkey_with_chain.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-cert-1024.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-cert-3072.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-cert-4096.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-cert-8192.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-cert-crit-unknown-ext.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-cert-noncrit-unknown-ext.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-cert-ocsp-nocheck.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-cert-policies-bad.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-cert-policies.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-key-1024.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-key-3072.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/fake-gp.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-key-4096.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-key-8192.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-pss-wrong1.5-cert.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-ss-with-keyCertSign.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/embeddedSCTs1.tlssct up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ext-check.csr up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/goodcn2-cert.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/goodcn2-chain.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/goodcn2-key.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/grfc.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/key-pass-12345.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/leaf-chain.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/leaf-encrypted.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/nccaothername-cert.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/nccaothername-key.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/pkitsta.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/root-ed25519.privkey.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/server-dsa-pubkey.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/sm2-ca-cert.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/sm2-csr.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/sm2-root.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/sm2-root.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/sm2.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/v3-certs-RC2.p12 up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/v3-certs-TDES.p12 up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/README-dev.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/README-external.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/acvp_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/acvp_test.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/aesgcmtest.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/algorithmid_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/bio_core_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ext_internal_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ct/log_list.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/endecode_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/endecoder_legacy_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/evp_extra_test2.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/fips.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/hexstr_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/http_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/insta.priv.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/moduleloadtest.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/sparse_array_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl_test_ctx_test.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/testec-p112r1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/testrsa2048.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/testrsa2048pub.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/testrsapss.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/threadstest.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_read_depr.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/05-test_pbe.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/06-test_algorithmid.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/06-test_rdrand_sanity.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/90-test_traceapi.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/95-test_external_gost_engine.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_asn1.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/c2pnb163v1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/c2pnb208w1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/secp160k1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/secp192k1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/secp224k1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/secp256k1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/secp521r1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect113r1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect113r2-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect163k1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect163r2-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect193r1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect193r2-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect233k1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect233r1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect239k1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect283k1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect283r1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect409k1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect409r1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect571k1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect571r1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/wap-wsg-idm-ecid-wtls1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/wap-wsg-idm-ecid-wtls10-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/wap-wsg-idm-ecid-wtls11-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/wap-wsg-idm-ecid-wtls3-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/wap-wsg-idm-ecid-wtls4-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/wap-wsg-idm-ecid-wtls5-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/wap-wsg-idm-ecid-wtls8-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/wap-wsg-idm-ecid-wtls9-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_mp_rsa_data/rsamplcm.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_aes_ccm_cavs.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_hkdf.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmac_blake.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppbe_pbkdf2.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_dh.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_aes_common.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_aes_cts.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_aes_ocb.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_aes_siv.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_aes_stitched.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_aes_wrap.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_aria.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_bf.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_des.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_camellia.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_camellia_cts.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_cast5.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_chacha.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_des3_common.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_idea.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_rc2.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_rc4.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_rc4_stitched.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_rc5.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_seed.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_sm4.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_krb5.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_pbkdf1.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_pbkdf2.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_scrypt.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_ss.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_ssh.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_tls11_prf.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_tls12_prf.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_tls13_kdf.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_x942.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_x942_des.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_x963.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmac_cmac_des.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmac_common.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmac_poly1305.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmac_siphash.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmac_sm3.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmd_blake.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmd_md.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmd_mdc2.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmd_ripemd.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmd_sha.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmd_sm3.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmd_whirlpool.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppbe_pkcs12.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppbe_scrypt.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_brainpool.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_dsa.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_ecdh.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_ecdsa.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_ecx.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_ffdhe.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_kas.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_kdf_hkdf.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_kdf_scrypt.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_kdf_tls1_prf.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_mismatch.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_rsa.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_rsa_common.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_sm2.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evprand.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/90-test_includes_data/incdir.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/90-test_sslapi_data/dhparams.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/90-test_store_data/dsaparam.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/90-test_store_data/rsa-key-2432.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/90-test_store_data/testrsa.msb up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/90-test_store_data/testrsa.pvk up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cms_data/ciphertext_from_1_1_1.cms up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cms_data/pkcs7-md4.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_ca_data/revoked.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/02-test_internal_exts.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/00-prep_fipsmodule_cnf.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/01-test_fipsmodule_cnf.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/02-test_internal_context.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/02-test_internal_keymgmt.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/02-test_internal_provider.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/02-test_localetest.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/02-test_sparse_array.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/03-test_fipsinstall.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_asn1_dsa.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_bn.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_ffc.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_namemap.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_rsa_sp800_56b.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_sm3.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_conf.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/03-test_params_api.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/03-test_property.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_bio_core.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_encoder_decoder.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_encoder_decoder_legacy.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_hexstring.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_nodefltctx.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_param_build.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_params.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_params_conversion.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_provfetch.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_provider.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_provider_fallback.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_provider_pkey.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_punycode.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_upcalls.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_gendh.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_gendhparam.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_gendsa.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_rsaoaep.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_sha.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_app.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_cli_fips.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_kdf.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_legacy_okay.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_mac.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_pkeyutl.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_rand_config.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_spkac.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_eai_data.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/fuzz.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_rusext.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_verify_store.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_acvp.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_aesgcm.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_defltfips.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_fetch_prov.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_kdf.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_libctx.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_dparam.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_prov_config.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_provider_status.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/61-test_bio_prefix.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/61-test_bio_readbuffer.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_asn.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_client.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_ctx.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_hdr.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_msg.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_protect.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_server.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_status.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/66-test_ossl_store.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/71-test_ssl_ctx.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/79-test_http.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_policy_tree.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/81-test_cmp_cli.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/90-test_fipsload.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/91-test_pkey_check.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_asn1parse.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_bignum.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_bndiv.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_client.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_cmp.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_cms.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_conf.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_crl.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_ct.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_server.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_x509.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_conf_data/dollarid_off.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_conf_data/dollarid_off.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_conf_data/dollarid_on.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_conf_data/dollarid_on.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_params_conversion_data/native_types.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_read_depr_data/dhparams.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_read_depr_data/dsaparams.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_read_depr_data/dsaprivatekey.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_read_depr_data/dsapublickey.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_read_depr_data/rsaprivatekey.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_read_depr_data/rsapublickey.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_read_depr_data/x942params.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/NOTES.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/beermug.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-1023line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-1024line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-1025line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-254-chars-at-the-end.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-254-chars-in-the-middle.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-255line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-256line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-257line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-blankline.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-bom.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-comment.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-earlypad.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-extrapad.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-junk.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-infixwhitespace.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-leadingwhitespace.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-longline.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-misalignedpad.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-onecolumn.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-oneline-multiple-of-254.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-oneline.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-shortandlongline.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-shortline.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-threecolumn.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-trailingwhitespace.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/csr.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-1023line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-1024line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-1025line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-255line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-256line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-257line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-blankline.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-comment.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-corruptedheader.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-corruptiv.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-earlypad.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-extrapad.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-infixwhitespace.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-junk.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-leadingwhitespace.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-longline.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-misalignedpad.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-onecolumn.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-oneline.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-onelineheader.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-shortandlongline.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-shortline.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-threecolumn.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-trailingwhitespace.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsaparam.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/key.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/wellknown up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/invalid/p2048_q256_bad_q.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/invalid/p768_q160_too_small.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p1024_q160_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p1024_q160_t1862_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p1024_q160_t1864.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p1024_q160_t1864_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p1024_q224_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p1024_q224_t1862_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p1024_q256_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p1024_q256_t1862_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p2048_q160_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p2048_q160_t1862_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p2048_q224_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p2048_q224_t1862_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p2048_q224_t1864.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p2048_q224_t1864_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p2048_q256_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p2048_q256_t1862_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p2048_q256_t1864.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p2048_q256_t1864_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p3072_q160_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p3072_q160_t1862_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p3072_q224_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p3072_q224_t1862_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p3072_q256_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p3072_q256_t1862_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p3072_q256_t1864.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p3072_q256_t1864_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_rsaoaep_data/plain_text up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_rsapss_data/negativesaltlen.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/invalid/dh_p1024_t1862_pkcs3.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/invalid/dh_p2048_t1862_pkcs3.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/invalid/dh_p2048_t1864_pkcs3.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/invalid/dh_p3072_t1862_pkcs3.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dh_5114_1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dh_5114_2.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dh_5114_3.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dh_ffdhe2048.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_5114_2.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_ffdhe2048.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p1024_q160_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p1024_q160_t1864.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p1024_q224_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p1024_q256_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p2048_q160_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p2048_q224_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p2048_q224_t1864.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p2048_q256_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p2048_q256_t1864.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p3072_q160_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p3072_q224_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p3072_q256_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_data/pkcs3-2-1024.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_data/pkcs3-2-1024.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_data/pkcs3-2-2048.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_data/pkcs3-2-2048.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_data/pkcs3-5-1024.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_data/pkcs3-5-1024.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_data/x942-0-1024.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_data/x942-0-1024.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_eai_data/ascii_chain.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_eai_data/ascii_leaf.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_eai_data/san.ascii up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_eai_data/san.utf8 up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_eai_data/utf8_chain.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_eai_data/utf8_leaf.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_pkcs7_data/malformed.pkcs7 up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_rusext_data/grfc.msb up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_rusext_data/grfc.utf8 up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_defltfips/fipsmodule.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DH.priv.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DH.priv.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DH.priv.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DH.pub.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DH.pub.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DH.pub.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DSA.priv.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DSA.priv.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DSA.priv.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DSA.pub.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DSA.pub.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DSA.pub.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/EC.priv.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/EC.priv.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/EC.priv.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/EC.pub.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/EC.pub.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/EC.pub.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED25519.priv.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED25519.priv.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED25519.pub.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED25519.priv.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED25519.pub.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED25519.pub.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED448.priv.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED448.priv.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED448.priv.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED448.pub.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED448.pub.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED448.pub.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/RSA.priv.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/RSA.priv.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/RSA.priv.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/RSA.pub.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/RSA.pub.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/RSA.pub.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X25519.priv.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X25519.priv.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X25519.priv.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X25519.pub.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X25519.pub.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X25519.pub.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X448.priv.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X448.priv.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X448.priv.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X448.pub.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X448.pub.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X448.pub.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/61-test_bio_prefix_data/args1.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/61-test_bio_prefix_data/args2.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/61-test_bio_prefix_data/in1.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/61-test_bio_prefix_data/in2.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/61-test_bio_prefix_data/out1.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/61-test_bio_prefix_data/out2.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_client_data/client.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_client_data/client.csr up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_client_data/client.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_client_data/server.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_client_data/server.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_msg_data/new.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_msg_data/pkcs10.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_msg_data/server.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_protect_data/EndEntity1.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_protect_data/EndEntity2.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_protect_data/IP_PBM.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_protect_data/IP_PBM.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_protect_data/IR_protected.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_protect_data/IR_unprotected.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_protect_data/Intermediate_CA.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_protect_data/Root_CA.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_protect_data/server.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_protect_data/server.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_server_data/CR_protected_PBM_1234.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/EndEntity1.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/EndEntity2.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/IP_waitingStatus_PBM.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/IP_waitingStatus_PBM.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/IR_protected.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/IR_protected_0_extraCerts.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/IR_protected_2_extraCerts.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/IR_rmprotection.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/IR_unprotected.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/Intermediate_CA.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/Root_CA.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/chain.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/client.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/insta.cert.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/insta.priv.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/insta_ca.cert.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/server.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/server.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/66-test_ossl_store_data/DH-params.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/66-test_ossl_store_data/DHX-params.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/66-test_ossl_store_data/DSA-params.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/12345.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/big_issuing.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/big_root.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/big_server.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/big_trusted.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/csr.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/empty.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/issuing.crt up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/issuing_expired.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/new.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/new_pass_12345.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/new_pub.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/random.bin up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/root.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/root_expired.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/server.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/server.crt up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/server.key up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/signer.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/signer.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/signer.p12 up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/signer_issuing.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/signer_only.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/signer_root.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/test.cnf up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/trusted.crt up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/wrong_csr.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/test_commands.csv up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/test_connection.csv up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/test_credentials.csv up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/test_enrollment.csv up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/test_verification.csv up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmsapi_data/encryptedData.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_policy_tree_data/large_leaf.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_policy_tree_data/large_policy_tree.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_policy_tree_data/small_leaf.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_policy_tree_data/small_policy_tree.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_ssl_old_data/dsa2048.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_tsa_data/all-zero.tsq up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_tsa_data/comodo-aaa.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_tsa_data/sectigo-all-zero.tsr up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_tsa_data/sectigo-signer.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_tsa_data/sectigo-time-stamping-ca.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_tsa_data/user-trust-ca-aaa.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_tsa_data/user-trust-ca.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/90-test_threads_data/rsakey.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/91-test_pkey_check_data/dhpkey.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/91-test_pkey_check_data/dsapub.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/91-test_pkey_check_data/dsapub_noparam.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/91-test_pkey_check_data/ec_p256_bad_0.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/91-test_pkey_check_data/ec_p256_bad_1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/91-test_pkey_check_data/sm2_bad_0.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/91-test_pkey_check_data/sm2_bad_1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/91-test_pkey_check_data/sm2_bad_neg1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/95-test_external_gost_engine_data/gost_engine.sh up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/03-custom_verify.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/03-custom_verify.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/04-client_auth.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/05-sni.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/05-sni.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/06-sni-ticket.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/06-sni-ticket.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/07-dtls-protocol-version.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/07-dtls-protocol-version.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/08-npn.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/08-npn.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/09-alpn.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/10-resumption.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/02-protocol-version.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/11-dtls_resumption.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/10-resumption.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/11-dtls_resumption.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/12-ct.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/12-ct.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/13-fragmentation.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/13-fragmentation.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/14-curves.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/14-curves.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/15-certstatus.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/15-certstatus.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/16-dtls-certstatus.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/16-dtls-certstatus.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/17-renegotiate.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/18-dtls-renegotiate.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/09-alpn.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/19-mac-then-encrypt.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/19-mac-then-encrypt.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/17-renegotiate.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/18-dtls-renegotiate.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/20-cert-select.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/20-cert-select.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/21-key-update.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/21-key-update.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/22-compression.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/22-compression.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/23-srp.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/23-srp.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/24-padding.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/24-padding.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/25-cipher.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/25-cipher.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/26-tls13_client_auth.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/26-tls13_client_auth.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/27-ticket-appdata.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/27-ticket-appdata.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/28-seclevel.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/28-seclevel.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/29-dtls-sctp-label-bug.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/29-dtls-sctp-label-bug.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/30-extended-master-secret.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/30-extended-master-secret.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/01-simple.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/01-simple.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/04-client_auth.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/02-protocol-version.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/testutil/provider.c up to 1.3
crypto/external/bsd/openssl/dist/test/testutil/apps_shims.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/testutil/fake_random.c up to 1.2
crypto/external/bsd/openssl/dist/test/testutil/load.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/testutil/options.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/testutil/output.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/testutil/test_options.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/asn1_dsa_internal_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/bio_prefix_text.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/bio_readbuffer_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/bn_internal_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/bn_rand_range.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ca-and-certs.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/cmp_asn_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/cmp_client_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/cmp_ctx_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/cmp_hdr_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/cmp_msg_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/cmp_protect_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/cmp_server_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/cmp_status_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/cmp_vfy_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/confdump.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/context_internal_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/data2.bin up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/default-and-fips.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/default-and-legacy.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/default.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/defltfips_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/evp_fetch_prov_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/evp_kdf_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/evp_libctx_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/evp_pkey_ctx_new_from_name.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/evp_pkey_dparams_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/evp_pkey_provided_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/fake_rsaprov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/fake_rsaprov.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ffc_internal_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/filterprov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/filterprov.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/fips-alt.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/fips-and-base.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/fips_version_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/insta_ca.cert.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/keymgmt_internal_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/legacy.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/localetest.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/namemap_internal_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/nodefltctxtest.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/null.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ossl_store_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/p_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/param_build_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/params_api_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/params_conversion_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/params_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/pbetest.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/pem_read_depr_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/pkcs12_format_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/pkcs7_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/property_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/prov_config_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/provfetchtest.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/provider_fallback_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/provider_internal_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/provider_internal_test.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/provider_pkey_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/provider_status_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/provider_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/proxy.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/punycode_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/rand_status_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/rand_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/rsa_sp800_56b_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/sha_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/simpledynamic.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/simpledynamic.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/sm3_internal_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/smcont.bin up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/smcont_zero.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/cmp_testlib.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/cmp_testlib.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/handshake.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/handshake.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/handshake_srp.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/pkcs12.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/pkcs12.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/predefined_dhparams.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/predefined_dhparams.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/ssl_test_ctx.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/ssl_test_ctx.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/ssltestlib.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/helpers/ssltestlib.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/ssl_old_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/testrsapssmandatory.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/threadstest_fips.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/tls-provider.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/trace_api_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/upcallstest.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/user_property_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/v3_ca_exts.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/smime-eml/SignedInvalidMappingFromanyPolicyTest7.eml up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/other-internal.syms up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/providers.num up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/withlibctx.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/Config/Query.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/OID.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/Ordinals.pm up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/ParseC.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/Template.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/Util.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/config.pm up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/fallback.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/stackhash.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/other.syms up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/c-compress-test.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/check-format-test-negatives.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/check-format-test-positives.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/check-format.pl up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/engines.num up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/err-to-raise up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/fips-checksums.sh up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/fix-deprecation up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/lang-compress.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/markdownlint.rb up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/merge-err-lines up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/missingcrypto-internal.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/missingcrypto.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/missingcrypto111.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/missingmacro.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/missingmacro111.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/missingssl-internal.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/missingssl.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/missingssl111.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/mk-fipsmodule-cnf.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/mknum.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/mkpod2html.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/wrap.pl.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/write-man-symlinks up to 1.1.1.1
crypto/external/bsd/openssl/dist/ACKNOWLEDGEMENTS.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/CHANGES.md up to 1.1.1.2
crypto/external/bsd/openssl/dist/HACKING.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/NOTES-ANDROID.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/NOTES-DJGPP.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/NOTES-NONSTOP.md up to 1.1.1.2
crypto/external/bsd/openssl/dist/NOTES-PERL.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/NOTES-UNIX.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/NOTES-VALGRIND.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/NOTES-VMS.md up to 1.1.1.2
crypto/external/bsd/openssl/dist/NOTES-WINDOWS.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/DIGESTS.asn1 up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/DSA.asn1 up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/EC.asn1 up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/ECX.asn1 up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/NIST.asn1 up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/RSA.asn1 up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/SM2.asn1 up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_digests_gen.c.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_dsa_gen.c.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_dsa_key.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_dsa_sig.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_ec_gen.c.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_ec_key.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_ec_sig.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_ecx_gen.c.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_ecx_key.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_rsa_gen.c.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_rsa_key.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_rsa_sig.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_sm2_gen.c.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_sm2_key.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_sm2_sig.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_wrap_gen.c.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/oids_to_c.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/wrap.asn1 up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/bio_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/capabilities.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/digest_to_nid.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/provider_ctx.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/provider_err.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/provider_seeding.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/provider_util.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/securitycheck.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/securitycheck_default.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/securitycheck_fips.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/__DECC_INCLUDE_EPILOGUE.H up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/__DECC_INCLUDE_PROLOGUE.H up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/bio.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/der_digests.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/der_dsa.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/der_ec.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/der_ecx.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/der_rsa.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/der_sm2.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/der_wrap.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/proverr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/provider_ctx.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/provider_util.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/providercommon.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/securitycheck.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/baseprov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/decoders.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/defltprov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/encoders.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/fips-sources.checksums up to 1.1.1.2
crypto/external/bsd/openssl/dist/providers/fips.checksum up to 1.1.1.2
crypto/external/bsd/openssl/dist/providers/fips.module.sources up to 1.1.1.2
crypto/external/bsd/openssl/dist/providers/legacyprov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/nullprov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/prov_running.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/stores.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/fips/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/fips/fips_entry.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/fips/fipsprov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/fips/self_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/fips/self_test.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/fips/self_test_data.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/fips/self_test_kats.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/asymciphers/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/asymciphers/rsa_enc.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/providers/implementations/asymciphers/sm2_enc.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_ccm.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_ccm.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_ccm_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_ccm_hw_aesni.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_ccm_hw_s390x.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_ccm_hw_t4.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_cts.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_gcm.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_gcm.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_gcm_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_gcm_hw_aesni.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_gcm_hw_armv8.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_gcm_hw_s390x.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_gcm_hw_t4.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_hw_aesni.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_hw_s390x.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_hw_t4.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_ocb.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_ocb.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_ocb_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_siv.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_siv.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aria.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_siv_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_wrp.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_xts.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_xts.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_xts_fips.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_xts_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aria.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aria_ccm.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aria_ccm.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aria_ccm_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aria_gcm.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aria_gcm.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aria_gcm_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aria_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_blowfish.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_blowfish.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_blowfish_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_cast.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_camellia.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_camellia.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_camellia_cts.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_camellia_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_camellia_hw_t4.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_cast5.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_cast5_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_chacha20.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_chacha20.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_chacha20_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_chacha20_poly1305.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_chacha20_poly1305.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_chacha20_poly1305_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_cts.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_cts.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_des.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_des.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_des_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_desx.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_desx_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_idea.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_idea.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_idea_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_null.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc2.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc2.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc2_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc4.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc4.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc4_hmac_md5.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc4_hmac_md5.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc4_hmac_md5_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc4_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc5.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc5.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc5_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_seed.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_seed.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_seed_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_sm4.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_sm4.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_sm4_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_tdes.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_tdes.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_tdes_common.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_tdes_default.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_tdes_default.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_tdes_default_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_tdes_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_tdes_wrap.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_tdes_wrap_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/ciphercommon.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/ciphercommon_block.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/ciphercommon_ccm.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/ciphercommon_ccm_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/ciphercommon_gcm.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/ciphercommon_gcm_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/ciphercommon_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/ciphercommon_local.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/blake2_impl.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/blake2_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/blake2b_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/blake2s_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/digestcommon.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/md2_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/md4_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/md5_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/md5_sha1_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/mdc2_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/null_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/ripemd_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/sha2_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/sha3_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/sm3_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/wp_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/decode_der2key.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/decode_epki2pki.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/decode_msblob2key.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/decode_pem2der.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/decode_pvk2key.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/decode_spki2typespki.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/encode_key2any.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/encode_key2blob.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/encode_key2ms.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/encode_key2text.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/endecoder_common.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/endecoder_local.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/exchange/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/exchange/dh_exch.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/exchange/ecdh_exch.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/exchange/ecx_exch.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/exchange/kdf_exch.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/__DECC_INCLUDE_EPILOGUE.H up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/__DECC_INCLUDE_PROLOGUE.H up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/blake2.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/ciphercommon.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/ciphercommon_aead.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/ciphercommon_ccm.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/ciphercommon_gcm.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/digestcommon.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/implementations.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/kdfexchange.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/macsignature.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/md5_sha1.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/names.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/seeding.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/hkdf.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/kbkdf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/krb5kdf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/pbkdf1.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/pbkdf2.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/pbkdf2.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/pbkdf2_fips.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/pkcs12kdf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/scrypt.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/sshkdf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/sskdf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/tls1_prf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/x942kdf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kem/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kem/rsa_kem.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/dh_kmgmt.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/dsa_kmgmt.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/ec_kmgmt.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/ec_kmgmt_imexport.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/ecx_kmgmt.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/kdf_legacy_kmgmt.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/mac_legacy_kmgmt.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/rsa_kmgmt.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/providers/implementations/macs/blake2_mac_impl.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/macs/blake2b_mac.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/macs/blake2s_mac.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/macs/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/macs/cmac_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/macs/gmac_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/macs/hmac_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/macs/kmac_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/macs/poly1305_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/macs/siphash_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/seeding/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/seeding/rand_cpu_x86.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/seeding/rand_tsc.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/seeding/rand_unix.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/seeding/rand_vms.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/seeding/rand_vxworks.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/seeding/rand_win.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/crngt.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/drbg.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/providers/implementations/rands/drbg_ctr.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/drbg_hash.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/drbg_hmac.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/drbg_local.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/seed_src.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/test_rng.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/signature/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/signature/dsa_sig.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/signature/ecdsa_sig.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/signature/eddsa_sig.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/signature/mac_legacy_sig.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/signature/rsa_sig.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/providers/implementations/signature/sm2_sig.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/storemgmt/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/storemgmt/file_store.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/storemgmt/file_store_any2obj.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/storemgmt/file_store_local.h up to 1.1.1.1
crypto/external/bsd/openssl/include/openssl/opensslv.h up to 1.2
crypto/external/bsd/openssl/include/openssl/configuration.h up to 1.4
crypto/external/bsd/openssl/include/openssl/fipskey.h up to 1.1
crypto/external/bsd/openssl/lib/engines/capi/Makefile delete
crypto/external/bsd/openssl/lib/libcrypto/ecdh.inc delete
crypto/external/bsd/openssl/lib/libcrypto/ecdsa.inc delete
crypto/external/bsd/openssl/lib/libcrypto/krb5.inc delete
crypto/external/bsd/openssl/lib/libcrypto/md2.inc delete
crypto/external/bsd/openssl/lib/libcrypto/rc5.inc delete
crypto/external/bsd/openssl/lib/libcrypto/x509v3.inc delete
crypto/external/bsd/openssl/dist/ACKNOWLEDGEMENTS delete
crypto/external/bsd/openssl/dist/AUTHORS delete
crypto/external/bsd/openssl/dist/CHANGES delete
crypto/external/bsd/openssl/dist/CONTRIBUTING delete
crypto/external/bsd/openssl/dist/FAQ delete
crypto/external/bsd/openssl/dist/INSTALL delete
crypto/external/bsd/openssl/dist/LICENSE delete
crypto/external/bsd/openssl/dist/NEWS delete
crypto/external/bsd/openssl/dist/NOTES.ANDROID delete
crypto/external/bsd/openssl/dist/NOTES.DJGPP delete
crypto/external/bsd/openssl/dist/NOTES.PERL delete
crypto/external/bsd/openssl/dist/NOTES.UNIX delete
crypto/external/bsd/openssl/dist/NOTES.VMS delete
crypto/external/bsd/openssl/dist/NOTES.WIN delete
crypto/external/bsd/openssl/dist/README delete
crypto/external/bsd/openssl/dist/README.ENGINE delete
crypto/external/bsd/openssl/dist/README.FIPS delete
crypto/external/bsd/openssl/dist/Configurations/README delete
crypto/external/bsd/openssl/dist/Configurations/README.design delete
crypto/external/bsd/openssl/dist/Configurations/common.tmpl delete
crypto/external/bsd/openssl/dist/apps/app_rand.c delete
crypto/external/bsd/openssl/dist/apps/apps.c delete
crypto/external/bsd/openssl/dist/apps/apps.h delete
crypto/external/bsd/openssl/dist/apps/asn1pars.c delete
crypto/external/bsd/openssl/dist/apps/bf_prefix.c delete
crypto/external/bsd/openssl/dist/apps/crl2p7.c delete
crypto/external/bsd/openssl/dist/apps/dh1024.pem delete
crypto/external/bsd/openssl/dist/apps/dh2048.pem delete
crypto/external/bsd/openssl/dist/apps/dh4096.pem delete
crypto/external/bsd/openssl/dist/apps/opt.c delete
crypto/external/bsd/openssl/dist/apps/s_apps.h delete
crypto/external/bsd/openssl/dist/apps/s_cb.c delete
crypto/external/bsd/openssl/dist/apps/s_socket.c delete
crypto/external/bsd/openssl/dist/apps/vms_decc_argv.c delete
crypto/external/bsd/openssl/dist/apps/vms_term_sock.c delete
crypto/external/bsd/openssl/dist/apps/vms_term_sock.h delete
crypto/external/bsd/openssl/dist/apps/win32_init.c delete
crypto/external/bsd/openssl/dist/crypto/mem_dbg.c delete
crypto/external/bsd/openssl/dist/crypto/o_fips.c delete
crypto/external/bsd/openssl/dist/crypto/ppc_arch.h delete
crypto/external/bsd/openssl/dist/crypto/sparc_arch.h delete
crypto/external/bsd/openssl/dist/crypto/asn1/asn1_par.c delete
crypto/external/bsd/openssl/dist/crypto/asn1/i2d_pr.c delete
crypto/external/bsd/openssl/dist/crypto/asn1/i2d_pu.c delete
crypto/external/bsd/openssl/dist/crypto/bio/b_addr.c delete
crypto/external/bsd/openssl/dist/crypto/bio/b_dump.c delete
crypto/external/bsd/openssl/dist/crypto/bio/b_print.c delete
crypto/external/bsd/openssl/dist/crypto/bio/b_sock.c delete
crypto/external/bsd/openssl/dist/crypto/bio/b_sock2.c delete
crypto/external/bsd/openssl/dist/crypto/blake2/blake2_impl.h delete
crypto/external/bsd/openssl/dist/crypto/blake2/blake2_local.h delete
crypto/external/bsd/openssl/dist/crypto/blake2/blake2b.c delete
crypto/external/bsd/openssl/dist/crypto/blake2/blake2s.c delete
crypto/external/bsd/openssl/dist/crypto/blake2/build.info delete
crypto/external/bsd/openssl/dist/crypto/blake2/m_blake2b.c delete
crypto/external/bsd/openssl/dist/crypto/blake2/m_blake2s.c delete
crypto/external/bsd/openssl/dist/crypto/bn/rsa_sup_mul.c delete
crypto/external/bsd/openssl/dist/crypto/cmac/cm_ameth.c delete
crypto/external/bsd/openssl/dist/crypto/cmac/cm_pmeth.c delete
crypto/external/bsd/openssl/dist/crypto/dh/dh1024.pem delete
crypto/external/bsd/openssl/dist/crypto/dh/dh192.pem delete
crypto/external/bsd/openssl/dist/crypto/dh/dh2048.pem delete
crypto/external/bsd/openssl/dist/crypto/dh/dh4096.pem delete
crypto/external/bsd/openssl/dist/crypto/dh/dh512.pem delete
crypto/external/bsd/openssl/dist/crypto/dh/dh_rfc7919.c delete
crypto/external/bsd/openssl/dist/crypto/ec/curve448/arch_32/f_impl.c delete
crypto/external/bsd/openssl/dist/crypto/engine/README delete
crypto/external/bsd/openssl/dist/crypto/engine/eng_devcrypto.c delete
crypto/external/bsd/openssl/dist/crypto/err/README delete
crypto/external/bsd/openssl/dist/crypto/evp/m_md2.c delete
crypto/external/bsd/openssl/dist/crypto/evp/m_md4.c delete
crypto/external/bsd/openssl/dist/crypto/evp/m_md5.c delete
crypto/external/bsd/openssl/dist/crypto/evp/m_md5_sha1.c delete
crypto/external/bsd/openssl/dist/crypto/evp/m_mdc2.c delete
crypto/external/bsd/openssl/dist/crypto/evp/m_ripemd.c delete
crypto/external/bsd/openssl/dist/crypto/evp/m_sha1.c delete
crypto/external/bsd/openssl/dist/crypto/evp/m_sha3.c delete
crypto/external/bsd/openssl/dist/crypto/evp/m_wp.c delete
crypto/external/bsd/openssl/dist/crypto/evp/pmeth_fn.c delete
crypto/external/bsd/openssl/dist/crypto/hmac/hm_ameth.c delete
crypto/external/bsd/openssl/dist/crypto/hmac/hm_pmeth.c delete
crypto/external/bsd/openssl/dist/crypto/kdf/hkdf.c delete
crypto/external/bsd/openssl/dist/crypto/kdf/scrypt.c delete
crypto/external/bsd/openssl/dist/crypto/kdf/tls1_prf.c delete
crypto/external/bsd/openssl/dist/crypto/modes/modes_local.h delete
crypto/external/bsd/openssl/dist/crypto/objects/README delete
crypto/external/bsd/openssl/dist/crypto/ocsp/ocsp_ht.c delete
crypto/external/bsd/openssl/dist/crypto/perlasm/README delete
crypto/external/bsd/openssl/dist/crypto/poly1305/poly1305_ameth.c delete
crypto/external/bsd/openssl/dist/crypto/poly1305/poly1305_local.h delete
crypto/external/bsd/openssl/dist/crypto/poly1305/poly1305_pmeth.c delete
crypto/external/bsd/openssl/dist/crypto/rand/drbg_ctr.c delete
crypto/external/bsd/openssl/dist/crypto/rand/drbg_lib.c delete
crypto/external/bsd/openssl/dist/crypto/rand/rand_unix.c delete
crypto/external/bsd/openssl/dist/crypto/rand/rand_vms.c delete
crypto/external/bsd/openssl/dist/crypto/rand/rand_win.c delete
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_ssl.c delete
crypto/external/bsd/openssl/dist/crypto/siphash/siphash_ameth.c delete
crypto/external/bsd/openssl/dist/crypto/siphash/siphash_local.h delete
crypto/external/bsd/openssl/dist/crypto/siphash/siphash_pmeth.c delete
crypto/external/bsd/openssl/dist/crypto/sm2/sm2_pmeth.c delete
crypto/external/bsd/openssl/dist/crypto/sm3/m_sm3.c delete
crypto/external/bsd/openssl/dist/crypto/store/loader_file.c delete
crypto/external/bsd/openssl/dist/crypto/x509/x509_trs.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/build.info delete
crypto/external/bsd/openssl/dist/crypto/x509v3/ext_dat.h delete
crypto/external/bsd/openssl/dist/crypto/x509v3/pcy_cache.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/pcy_data.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/pcy_lib.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/pcy_local.h delete
crypto/external/bsd/openssl/dist/crypto/x509v3/pcy_map.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/pcy_node.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/pcy_tree.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/standard_exts.h delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_addr.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_admis.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_admis.h delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_akey.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_akeya.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_alt.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_asid.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_bcons.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_bitst.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_conf.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_cpols.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_crld.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_enum.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_extku.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_genn.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_ia5.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_info.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_int.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_lib.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_ncons.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_pci.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_pcia.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_pcons.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_pku.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_pmaps.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_prn.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_purp.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_skey.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_sxnet.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_tlsf.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_utl.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3err.c delete
crypto/external/bsd/openssl/dist/demos/README delete
crypto/external/bsd/openssl/dist/demos/bio/README delete
crypto/external/bsd/openssl/dist/demos/certs/README delete
crypto/external/bsd/openssl/dist/demos/engines/e_chil.txt delete
crypto/external/bsd/openssl/dist/demos/evp/Makefile delete
crypto/external/bsd/openssl/dist/demos/evp/aesccm.c delete
crypto/external/bsd/openssl/dist/demos/evp/aesgcm.c delete
crypto/external/bsd/openssl/dist/doc/README delete
crypto/external/bsd/openssl/dist/doc/man1/asn1parse.pod delete
crypto/external/bsd/openssl/dist/doc/man1/ca.pod delete
crypto/external/bsd/openssl/dist/doc/man1/ciphers.pod delete
crypto/external/bsd/openssl/dist/doc/man1/cms.pod delete
crypto/external/bsd/openssl/dist/doc/man1/crl.pod delete
crypto/external/bsd/openssl/dist/doc/man1/crl2pkcs7.pod delete
crypto/external/bsd/openssl/dist/doc/man1/dgst.pod delete
crypto/external/bsd/openssl/dist/doc/man1/dhparam.pod delete
crypto/external/bsd/openssl/dist/doc/man1/dsa.pod delete
crypto/external/bsd/openssl/dist/doc/man1/dsaparam.pod delete
crypto/external/bsd/openssl/dist/doc/man1/ec.pod delete
crypto/external/bsd/openssl/dist/doc/man1/ecparam.pod delete
crypto/external/bsd/openssl/dist/doc/man1/enc.pod delete
crypto/external/bsd/openssl/dist/doc/man1/engine.pod delete
crypto/external/bsd/openssl/dist/doc/man1/errstr.pod delete
crypto/external/bsd/openssl/dist/doc/man1/gendsa.pod delete
crypto/external/bsd/openssl/dist/doc/man1/genpkey.pod delete
crypto/external/bsd/openssl/dist/doc/man1/genrsa.pod delete
crypto/external/bsd/openssl/dist/doc/man1/list.pod delete
crypto/external/bsd/openssl/dist/doc/man1/nseq.pod delete
crypto/external/bsd/openssl/dist/doc/man1/ocsp.pod delete
crypto/external/bsd/openssl/dist/doc/man1/passwd.pod delete
crypto/external/bsd/openssl/dist/doc/man1/pkcs12.pod delete
crypto/external/bsd/openssl/dist/doc/man1/pkcs7.pod delete
crypto/external/bsd/openssl/dist/doc/man1/pkcs8.pod delete
crypto/external/bsd/openssl/dist/doc/man1/pkey.pod delete
crypto/external/bsd/openssl/dist/doc/man1/pkeyparam.pod delete
crypto/external/bsd/openssl/dist/doc/man1/pkeyutl.pod delete
crypto/external/bsd/openssl/dist/doc/man1/prime.pod delete
crypto/external/bsd/openssl/dist/doc/man1/rand.pod delete
crypto/external/bsd/openssl/dist/doc/man1/rehash.pod delete
crypto/external/bsd/openssl/dist/doc/man1/req.pod delete
crypto/external/bsd/openssl/dist/doc/man1/rsa.pod delete
crypto/external/bsd/openssl/dist/doc/man1/rsautl.pod delete
crypto/external/bsd/openssl/dist/doc/man1/s_client.pod delete
crypto/external/bsd/openssl/dist/doc/man1/s_server.pod delete
crypto/external/bsd/openssl/dist/doc/man1/s_time.pod delete
crypto/external/bsd/openssl/dist/doc/man1/sess_id.pod delete
crypto/external/bsd/openssl/dist/doc/man1/smime.pod delete
crypto/external/bsd/openssl/dist/doc/man1/speed.pod delete
crypto/external/bsd/openssl/dist/doc/man1/spkac.pod delete
crypto/external/bsd/openssl/dist/doc/man1/srp.pod delete
crypto/external/bsd/openssl/dist/doc/man1/storeutl.pod delete
crypto/external/bsd/openssl/dist/doc/man1/ts.pod delete
crypto/external/bsd/openssl/dist/doc/man1/verify.pod delete
crypto/external/bsd/openssl/dist/doc/man1/version.pod delete
crypto/external/bsd/openssl/dist/doc/man1/x509.pod delete
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_cmp.pod delete
crypto/external/bsd/openssl/dist/doc/man3/EVP_aes.pod delete
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_size.pod delete
crypto/external/bsd/openssl/dist/doc/man3/EVP_aria.pod delete
crypto/external/bsd/openssl/dist/doc/man3/EVP_camellia.pod delete
crypto/external/bsd/openssl/dist/doc/man3/EVP_des.pod delete
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_VERSION_NUMBER.pod delete
crypto/external/bsd/openssl/dist/doc/man3/RAND_DRBG_generate.pod delete
crypto/external/bsd/openssl/dist/doc/man3/RAND_DRBG_get0_master.pod delete
crypto/external/bsd/openssl/dist/doc/man3/RAND_DRBG_new.pod delete
crypto/external/bsd/openssl/dist/doc/man3/RAND_DRBG_reseed.pod delete
crypto/external/bsd/openssl/dist/doc/man3/RAND_DRBG_set_callbacks.pod delete
crypto/external/bsd/openssl/dist/doc/man3/RAND_DRBG_set_ex_data.pod delete
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_ex_data.pod delete
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_get_ex_data.pod delete
crypto/external/bsd/openssl/dist/doc/man3/d2i_DHparams.pod delete
crypto/external/bsd/openssl/dist/doc/man7/Ed25519.pod delete
crypto/external/bsd/openssl/dist/doc/man7/RAND_DRBG.pod delete
crypto/external/bsd/openssl/dist/doc/man7/SM2.pod delete
crypto/external/bsd/openssl/dist/doc/man7/scrypt.pod delete
crypto/external/bsd/openssl/dist/external/perl/transfer/Text/Template.pm delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/lib/Text/Template/Preprocess.pm delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/lib/Text/Template.pm delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/00-version.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/01-basic.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/02-hash.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/03-out.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/04-safe.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/05-safe2.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/06-ofh.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/07-safe3.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/08-exported.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/09-error.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/10-delimiters.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/11-prepend.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/12-preprocess.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/13-taint.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/14-broken.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/Artistic delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/COPYING delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/INSTALL delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/MANIFEST delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/META.json delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/META.yml delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/Makefile.PL delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/README delete
crypto/external/bsd/openssl/dist/fuzz/rand.inc delete
crypto/external/bsd/openssl/dist/include/crypto/sm3.h delete
crypto/external/bsd/openssl/dist/include/internal/o_str.h delete
crypto/external/bsd/openssl/dist/include/openssl/asn1.h delete
crypto/external/bsd/openssl/dist/include/openssl/asn1t.h delete
crypto/external/bsd/openssl/dist/include/openssl/bio.h delete
crypto/external/bsd/openssl/dist/include/openssl/cms.h delete
crypto/external/bsd/openssl/dist/include/openssl/conf.h delete
crypto/external/bsd/openssl/dist/include/openssl/crypto.h delete
crypto/external/bsd/openssl/dist/include/openssl/ct.h delete
crypto/external/bsd/openssl/dist/include/openssl/err.h delete
crypto/external/bsd/openssl/dist/include/openssl/lhash.h delete
crypto/external/bsd/openssl/dist/include/openssl/ocsp.h delete
crypto/external/bsd/openssl/dist/include/openssl/opensslconf.h.in delete
crypto/external/bsd/openssl/dist/include/openssl/opensslv.h delete
crypto/external/bsd/openssl/dist/include/openssl/pkcs12.h delete
crypto/external/bsd/openssl/dist/include/openssl/pkcs7.h delete
crypto/external/bsd/openssl/dist/include/openssl/rand_drbg.h delete
crypto/external/bsd/openssl/dist/include/openssl/safestack.h delete
crypto/external/bsd/openssl/dist/include/openssl/srp.h delete
crypto/external/bsd/openssl/dist/include/openssl/ssl.h delete
crypto/external/bsd/openssl/dist/include/openssl/ui.h delete
crypto/external/bsd/openssl/dist/include/openssl/x509.h delete
crypto/external/bsd/openssl/dist/include/openssl/x509_vfy.h delete
crypto/external/bsd/openssl/dist/include/openssl/x509v3.h delete
crypto/external/bsd/openssl/dist/ssl/record/README delete
crypto/external/bsd/openssl/dist/ssl/packet.c delete
crypto/external/bsd/openssl/dist/ssl/packet_local.h delete
crypto/external/bsd/openssl/dist/ssl/statem/README delete
crypto/external/bsd/openssl/dist/test/CAss.cnf delete
crypto/external/bsd/openssl/dist/test/CAssdh.cnf delete
crypto/external/bsd/openssl/dist/test/CAssdsa.cnf delete
crypto/external/bsd/openssl/dist/test/CAssrsa.cnf delete
crypto/external/bsd/openssl/dist/test/P1ss.cnf delete
crypto/external/bsd/openssl/dist/test/P2ss.cnf delete
crypto/external/bsd/openssl/dist/test/README delete
crypto/external/bsd/openssl/dist/test/README.external delete
crypto/external/bsd/openssl/dist/test/Sssdsa.cnf delete
crypto/external/bsd/openssl/dist/test/Sssrsa.cnf delete
crypto/external/bsd/openssl/dist/test/Uss.cnf delete
crypto/external/bsd/openssl/dist/test/drbg_cavs_data.c delete
crypto/external/bsd/openssl/dist/test/drbg_cavs_data.h delete
crypto/external/bsd/openssl/dist/test/drbg_cavs_test.c delete
crypto/external/bsd/openssl/dist/test/drbgtest.h delete
crypto/external/bsd/openssl/dist/test/evp_test.h delete
crypto/external/bsd/openssl/dist/test/gosttest.c delete
crypto/external/bsd/openssl/dist/test/handshake_helper.c delete
crypto/external/bsd/openssl/dist/test/handshake_helper.h delete
crypto/external/bsd/openssl/dist/test/md2test.c delete
crypto/external/bsd/openssl/dist/test/ct/log_list.conf delete
crypto/external/bsd/openssl/dist/test/ssl_test_ctx.c delete
crypto/external/bsd/openssl/dist/test/ssl_test_ctx.h delete
crypto/external/bsd/openssl/dist/test/ssl_test_ctx_test.conf delete
crypto/external/bsd/openssl/dist/test/ssltest_old.c delete
crypto/external/bsd/openssl/dist/test/ssltestlib.c delete
crypto/external/bsd/openssl/dist/test/ssltestlib.h delete
crypto/external/bsd/openssl/dist/test/ossl_shim/include/openssl/base.h delete
crypto/external/bsd/openssl/dist/test/ossl_shim/async_bio.cc delete
crypto/external/bsd/openssl/dist/test/ossl_shim/async_bio.h delete
crypto/external/bsd/openssl/dist/test/ossl_shim/build.info delete
crypto/external/bsd/openssl/dist/test/ossl_shim/ossl_config.json delete
crypto/external/bsd/openssl/dist/test/ossl_shim/ossl_shim.cc delete
crypto/external/bsd/openssl/dist/test/ossl_shim/packeted_bio.cc delete
crypto/external/bsd/openssl/dist/test/ossl_shim/packeted_bio.h delete
crypto/external/bsd/openssl/dist/test/ossl_shim/test_config.cc delete
crypto/external/bsd/openssl/dist/test/ossl_shim/test_config.h delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem.t delete
crypto/external/bsd/openssl/dist/test/recipes/05-test_md2.t delete
crypto/external/bsd/openssl/dist/test/recipes/05-test_mdc2.t delete
crypto/external/bsd/openssl/dist/test/recipes/06-test-rdrand.t delete
crypto/external/bsd/openssl/dist/test/recipes/90-test_gost.t delete
crypto/external/bsd/openssl/dist/test/recipes/95-test_external_boringssl.t delete
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz.t delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/beermug.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/NOTES delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-1023line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-1024line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-1025line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-254-chars-at-the-end.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-254-chars-in-the-middle.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-255line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-256line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-257line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-blankline.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-comment.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-earlypad.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-extrapad.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-infixwhitespace.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/csr.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-junk.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-leadingwhitespace.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-longline.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-misalignedpad.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-onecolumn.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-oneline-multiple-of-254.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-oneline.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-shortandlongline.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-shortline.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-threecolumn.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-trailingwhitespace.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-1023line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-1024line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-1025line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-255line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-256line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-257line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-blankline.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-comment.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-corruptedheader.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-corruptiv.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-earlypad.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-extrapad.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-infixwhitespace.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-junk.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-leadingwhitespace.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-longline.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-misalignedpad.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-onecolumn.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-oneline.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-onelineheader.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-shortandlongline.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-shortline.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-threecolumn.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-trailingwhitespace.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsaparam.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/key.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/wellknown delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/c2pnb163v1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/c2pnb208w1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/secp160k1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/secp192k1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/secp224k1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/secp256k1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/secp521r1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect113r1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect113r2-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect163k1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect163r2-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect193r1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect193r2-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect233k1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect233r1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect239k1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect283k1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect283r1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect409k1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect409r1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect571k1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect571r1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/wap-wsg-idm-ecid-wtls1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/wap-wsg-idm-ecid-wtls10-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/wap-wsg-idm-ecid-wtls11-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/wap-wsg-idm-ecid-wtls3-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/wap-wsg-idm-ecid-wtls4-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/wap-wsg-idm-ecid-wtls5-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/wap-wsg-idm-ecid-wtls8-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/wap-wsg-idm-ecid-wtls9-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpcase.txt delete
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpccmcavs.txt delete
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph.txt delete
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpdigest.txt delete
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf.txt delete
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmac.txt delete
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppbe.txt delete
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey.txt delete
crypto/external/bsd/openssl/dist/test/recipes/90-test_gost_data/gost.conf delete
crypto/external/bsd/openssl/dist/test/recipes/90-test_store_data/user.cnf delete
crypto/external/bsd/openssl/dist/test/recipes/90-test_store_data/ca.cnf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/01-simple.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/01-simple.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/02-protocol-version.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/02-protocol-version.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/03-custom_verify.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/03-custom_verify.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/04-client_auth.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/04-client_auth.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/05-sni.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/05-sni.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/06-sni-ticket.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/06-sni-ticket.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/07-dtls-protocol-version.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/07-dtls-protocol-version.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/08-npn.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/08-npn.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/09-alpn.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/09-alpn.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/10-resumption.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/10-resumption.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/11-dtls_resumption.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/11-dtls_resumption.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/12-ct.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/12-ct.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/13-fragmentation.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/13-fragmentation.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/14-curves.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/14-curves.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/15-certstatus.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/15-certstatus.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/16-dtls-certstatus.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/16-dtls-certstatus.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/17-renegotiate.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/17-renegotiate.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/18-dtls-renegotiate.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/18-dtls-renegotiate.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/19-mac-then-encrypt.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/19-mac-then-encrypt.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/20-cert-select.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/20-cert-select.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/21-key-update.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/21-key-update.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/22-compression.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/22-compression.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/23-srp.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/23-srp.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/24-padding.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/24-padding.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/25-cipher.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/25-cipher.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/26-tls13_client_auth.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/26-tls13_client_auth.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/27-ticket-appdata.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/27-ticket-appdata.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/28-seclevel.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/28-seclevel.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/29-dtls-sctp-label-bug.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/29-dtls-sctp-label-bug.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/30-supported-groups.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/30-supported-groups.conf.in delete
crypto/external/bsd/openssl/dist/test/testutil/output_helpers.c delete
crypto/external/bsd/openssl/dist/test/testutil/tap_bio.c delete
crypto/external/bsd/openssl/dist/util/openssl-format-source delete
crypto/external/bsd/openssl/dist/util/openssl-update-copyright delete
crypto/external/bsd/openssl/dist/util/private.num delete
crypto/external/bsd/openssl/dist/util/process_docs.pl delete
crypto/external/bsd/openssl/dist/util/perl/with_fallback.pm delete
crypto/external/bsd/openssl/include/internal/bn_conf.h delete
crypto/external/bsd/openssl/include/internal/dso_conf.h delete
crypto/external/bsd/openssl/include/openssl/opensslconf.h delete
crypto/external/bsd/openssl/bin/Makefile up to 1.12
crypto/external/bsd/openssl/dist/Configure up to 1.33
crypto/external/bsd/openssl/dist/appveyor.yml up to 1.1.1.7
crypto/external/bsd/openssl/dist/build.info up to 1.1.1.4
crypto/external/bsd/openssl/dist/config up to 1.1.1.15
crypto/external/bsd/openssl/dist/config.com up to 1.1.1.3
crypto/external/bsd/openssl/dist/e_os.h up to 1.18
crypto/external/bsd/openssl/dist/Configurations/00-base-templates.conf up to 1.1.1.6
crypto/external/bsd/openssl/dist/Configurations/10-main.conf up to 1.1.1.14
crypto/external/bsd/openssl/dist/Configurations/15-android.conf up to 1.1.1.6
crypto/external/bsd/openssl/dist/Configurations/15-ios.conf up to 1.1.1.4
crypto/external/bsd/openssl/dist/Configurations/50-djgpp.conf up to 1.1.1.3
crypto/external/bsd/openssl/dist/Configurations/50-haiku.conf up to 1.1.1.3
crypto/external/bsd/openssl/dist/Configurations/50-masm.conf up to 1.1.1.3
crypto/external/bsd/openssl/dist/Configurations/50-win-onecore.conf up to 1.1.1.5
crypto/external/bsd/openssl/dist/Configurations/descrip.mms.tmpl up to 1.1.1.10
crypto/external/bsd/openssl/dist/Configurations/shared-info.pl up to 1.1.1.2
crypto/external/bsd/openssl/dist/Configurations/unix-Makefile.tmpl up to 1.1.1.14
crypto/external/bsd/openssl/dist/Configurations/unix-checker.pm up to 1.1.1.2
crypto/external/bsd/openssl/dist/Configurations/windows-checker.pm up to 1.1.1.3
crypto/external/bsd/openssl/dist/Configurations/windows-makefile.tmpl up to 1.1.1.10
crypto/external/bsd/openssl/dist/VMS/VMSify-conf.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/VMS/openssl_ivp.com.in up to 1.1.1.2
crypto/external/bsd/openssl/dist/VMS/openssl_shutdown.com.in up to 1.1.1.3
crypto/external/bsd/openssl/dist/VMS/openssl_startup.com.in up to 1.1.1.3
crypto/external/bsd/openssl/dist/VMS/openssl_utils.com.in up to 1.1.1.2
crypto/external/bsd/openssl/dist/VMS/translatesyms.pl up to 1.1.1.2
crypto/external/bsd/openssl/dist/apps/CA.pl.in up to 1.1.1.6
crypto/external/bsd/openssl/dist/apps/build.info up to 1.1.1.4
crypto/external/bsd/openssl/dist/apps/ca.c up to 1.23
crypto/external/bsd/openssl/dist/apps/ciphers.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/apps/cms.c up to 1.1.1.16
crypto/external/bsd/openssl/dist/apps/crl.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/apps/dgst.c up to 1.1.1.18
crypto/external/bsd/openssl/dist/apps/dhparam.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/apps/dsa.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/apps/dsaparam.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/apps/ec.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/apps/ecparam.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/apps/enc.c up to 1.1.1.19
crypto/external/bsd/openssl/dist/apps/engine.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/apps/errstr.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/apps/gendsa.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/apps/genpkey.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/apps/genrsa.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/apps/nseq.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/apps/ocsp.c up to 1.24
crypto/external/bsd/openssl/dist/apps/openssl-vms.cnf up to 1.1.1.9
crypto/external/bsd/openssl/dist/apps/openssl.c up to 1.8
crypto/external/bsd/openssl/dist/apps/openssl.cnf up to 1.11
crypto/external/bsd/openssl/dist/apps/passwd.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/apps/pkcs12.c up to 1.1.1.17
crypto/external/bsd/openssl/dist/apps/pkcs7.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/apps/pkcs8.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/apps/pkey.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/apps/pkeyparam.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/apps/pkeyutl.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/apps/prime.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/apps/progs.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/apps/rand.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/apps/rehash.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/apps/req.c up to 1.5
crypto/external/bsd/openssl/dist/apps/rsa.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/apps/rsautl.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/apps/s_client.c up to 1.27
crypto/external/bsd/openssl/dist/apps/s_server.c up to 1.28
crypto/external/bsd/openssl/dist/apps/s_time.c up to 1.13
crypto/external/bsd/openssl/dist/apps/sess_id.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/apps/smime.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/apps/speed.c up to 1.22
crypto/external/bsd/openssl/dist/apps/spkac.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/apps/srp.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/apps/storeutl.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/apps/testdsa.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/apps/testrsa.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/apps/timeouts.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/apps/ts.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/apps/tsget.in up to 1.1.1.3
crypto/external/bsd/openssl/dist/apps/verify.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/apps/version.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/apps/vms_decc_init.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/apps/x509.c up to 1.1.1.18
crypto/external/bsd/openssl/dist/crypto/LPdir_nyi.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/LPdir_unix.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/LPdir_vms.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/LPdir_win.c up to 1.7
crypto/external/bsd/openssl/dist/crypto/LPdir_win32.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/LPdir_wince.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/alphacpuid.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/arm64cpuid.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/arm_arch.h up to 1.9
crypto/external/bsd/openssl/dist/crypto/armcap.c up to 1.15
crypto/external/bsd/openssl/dist/crypto/armv4cpuid.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/build.info up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/c64xpluscpuid.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/cpt_err.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/cryptlib.c up to 1.16
crypto/external/bsd/openssl/dist/crypto/ctype.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/cversion.c up to 1.7
crypto/external/bsd/openssl/dist/crypto/dllmain.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ebcdic.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/ex_data.c up to 1.8
crypto/external/bsd/openssl/dist/crypto/getenv.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ia64cpuid.S up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/init.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/mem.c up to 1.13
crypto/external/bsd/openssl/dist/crypto/mem_clr.c up to 1.9
crypto/external/bsd/openssl/dist/crypto/mem_sec.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/mips_arch.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/o_dir.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/o_fopen.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/o_init.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/o_str.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/o_time.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/pariscid.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/ppccap.c up to 1.21
crypto/external/bsd/openssl/dist/crypto/ppccpuid.pl up to 1.10
crypto/external/bsd/openssl/dist/crypto/s390x_arch.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/s390xcap.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/s390xcpuid.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sparccpuid.S up to 1.10
crypto/external/bsd/openssl/dist/crypto/sparcv9cap.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/threads_none.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/threads_pthread.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/threads_win.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/uid.c up to 1.9
crypto/external/bsd/openssl/dist/crypto/vms_rms.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/x86_64cpuid.pl up to 1.10
crypto/external/bsd/openssl/dist/crypto/x86cpuid.pl up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/aes/aes_cbc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/aes/aes_cfb.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/aes/aes_core.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/aes/aes_ecb.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/aes/aes_ige.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/aes/aes_local.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/aes/aes_misc.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/aes/aes_ofb.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/aes/aes_wrap.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/aes/aes_x86core.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/aes/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/aes/asm/aes-armv4.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/aes/asm/aes-c64xplus.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/aes/asm/aes-ia64.S up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/aes/asm/aes-mips.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/aes/asm/aes-parisc.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/aes/asm/aes-ppc.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/aes/asm/aes-s390x.pl up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/aes/asm/aes-sparcv9.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/aes/asm/aesfx-sparcv9.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/aes/asm/aesni-mb-x86_64.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/aes/asm/aesni-sha1-x86_64.pl up to 1.8
crypto/external/bsd/openssl/dist/crypto/aes/asm/aesni-sha256-x86_64.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/aes/asm/aesni-x86.pl up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/aes/asm/aesni-x86_64.pl up to 1.8
crypto/external/bsd/openssl/dist/crypto/aes/asm/aesp8-ppc.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/aes/asm/aest4-sparcv9.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/aes/asm/aesv8-armx.pl up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/aes/asm/bsaes-armv7.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/aes/asm/vpaes-armv8.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/aes/asm/vpaes-ppc.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/aes/asm/vpaes-x86.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/aes/asm/vpaes-x86_64.pl up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/aria/aria.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/asn1/a_bitstr.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/asn1/a_d2i_fp.c up to 1.8
crypto/external/bsd/openssl/dist/crypto/asn1/a_digest.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/asn1/a_dup.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/asn1/a_gentm.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/asn1/a_i2d_fp.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/asn1/a_int.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/asn1/a_mbstr.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/asn1/a_object.c up to 1.1.1.14
crypto/external/bsd/openssl/dist/crypto/asn1/a_octet.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/asn1/a_print.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/asn1/a_sign.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/asn1/a_strex.c up to 1.11
crypto/external/bsd/openssl/dist/crypto/asn1/a_strnid.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/asn1/a_time.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/asn1/a_type.c up to 1.9
crypto/external/bsd/openssl/dist/crypto/asn1/a_utctm.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/asn1/a_utf8.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/asn1/a_verify.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/asn1/ameth_lib.c up to 1.1.1.14
crypto/external/bsd/openssl/dist/crypto/asn1/asn1_err.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/asn1/asn1_gen.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/asn1/asn1_item_list.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/asn1/asn1_item_list.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/asn1/asn1_lib.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/asn1/asn1_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/asn1/asn_mime.c up to 1.14
crypto/external/bsd/openssl/dist/crypto/asn1/asn_moid.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/asn1/asn_mstbl.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/asn1/asn_pack.c up to 1.5
crypto/external/bsd/openssl/dist/crypto/asn1/bio_asn1.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/asn1/bio_ndef.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/asn1/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/asn1/charmap.h up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/asn1/charmap.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/asn1/d2i_pr.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/asn1/d2i_pu.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/asn1/evp_asn1.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/asn1/f_int.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/asn1/f_string.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/asn1/n_pkey.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/asn1/nsseq.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/asn1/p5_pbe.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/asn1/p5_pbev2.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/asn1/p5_scrypt.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/asn1/p8_pkey.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/asn1/standard_methods.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/asn1/t_bitst.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/asn1/t_pkey.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/asn1/t_spki.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/asn1/tasn_dec.c up to 1.12
crypto/external/bsd/openssl/dist/crypto/asn1/tasn_enc.c up to 1.12
crypto/external/bsd/openssl/dist/crypto/asn1/tasn_fre.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/asn1/tasn_new.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/asn1/tasn_prn.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/asn1/tasn_scn.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/asn1/tasn_typ.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/asn1/tasn_utl.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/asn1/tbl_standard.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/asn1/x_algor.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/asn1/x_bignum.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/asn1/x_info.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/asn1/x_int64.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/asn1/x_long.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/asn1/x_pkey.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/asn1/x_sig.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/asn1/x_spki.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/asn1/x_val.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/async/async.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/async/async_err.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/async/async_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/async/async_wait.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/async/arch/async_null.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/async/arch/async_null.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/async/arch/async_posix.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/async/arch/async_posix.h up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/async/arch/async_win.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/async/arch/async_win.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/bf/bf_cfb64.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/bf/bf_ecb.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bf/bf_enc.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bf/bf_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/bf/bf_ofb64.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/bf/bf_pi.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/bf/bf_skey.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bf/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/bf/asm/bf-586.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/bio/bf_buff.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bio/bf_lbuf.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/bio/bf_nbio.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/bio/bf_null.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/bio/bio_cb.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/bio/bio_err.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bio/bio_lib.c up to 1.9
crypto/external/bsd/openssl/dist/crypto/bio/bio_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/bio/bio_meth.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bio/bss_acpt.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/bio/bss_bio.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/bio/bss_conn.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/bio/bss_dgram.c up to 1.1.1.20
crypto/external/bsd/openssl/dist/crypto/bio/bss_fd.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bio/bss_file.c up to 1.14
crypto/external/bsd/openssl/dist/crypto/bio/bss_log.c up to 1.14
crypto/external/bsd/openssl/dist/crypto/bio/bss_mem.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/bio/bss_null.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/bio/bss_sock.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bio/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/bn/README.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/bn/bn_add.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/bn/bn_asm.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/bn/bn_blind.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/bn/bn_const.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/bn/bn_ctx.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/bn/bn_depr.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/bn_dh.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/bn/bn_div.c up to 1.1.1.16
crypto/external/bsd/openssl/dist/crypto/bn/bn_err.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/bn/bn_exp.c up to 1.22
crypto/external/bsd/openssl/dist/crypto/bn/bn_exp2.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bn/bn_gcd.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/bn/bn_gf2m.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/bn/bn_intern.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/bn/bn_kron.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/bn/bn_lib.c up to 1.17
crypto/external/bsd/openssl/dist/crypto/bn/bn_local.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/bn/bn_mod.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/bn/bn_mont.c up to 1.14
crypto/external/bsd/openssl/dist/crypto/bn/bn_mpi.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/bn_mul.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/bn/bn_nist.c up to 1.9
crypto/external/bsd/openssl/dist/crypto/bn/bn_prime.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/bn/bn_prime.h up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/bn/bn_prime.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/bn_print.c up to 1.5
crypto/external/bsd/openssl/dist/crypto/bn/bn_rand.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/bn/bn_recp.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bn/bn_shift.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/bn/bn_sqr.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/bn/bn_sqrt.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bn/bn_srp.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/bn/bn_word.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bn/bn_x931p.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/bn/build.info up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/rsaz_exp.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/bn/rsaz_exp.h up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/asm/alpha-mont.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bn/asm/armv4-gf2m.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/bn/asm/armv4-mont.pl up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/bn/asm/armv8-mont.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/bn/asm/bn-586.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/bn/asm/bn-c64xplus.asm up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/bn/asm/c64xplus-gf2m.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/bn/asm/co-586.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/bn/asm/ia64-mont.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/asm/ia64.S up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/asm/mips-mont.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bn/asm/mips.pl up to 1.11
crypto/external/bsd/openssl/dist/crypto/bn/asm/parisc-mont.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/bn/asm/ppc-mont.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bn/asm/ppc.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bn/asm/ppc64-mont.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bn/asm/rsaz-avx2.pl up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/bn/asm/rsaz-x86_64.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/asm/s390x-gf2m.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/asm/s390x-mont.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bn/asm/s390x.S up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/asm/sparct4-mont.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/asm/sparcv8.S up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/bn/asm/sparcv8plus.S up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/bn/asm/sparcv9-gf2m.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/bn/asm/sparcv9-mont.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/asm/sparcv9a-mont.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/bn/asm/via-mont.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/asm/vis3-mont.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/asm/x86-gf2m.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/asm/x86-mont.pl up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/bn/asm/x86_64-gcc.c up to 1.13
crypto/external/bsd/openssl/dist/crypto/bn/asm/x86_64-gf2m.pl up to 1.11
crypto/external/bsd/openssl/dist/crypto/bn/asm/x86_64-mont.pl up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/bn/asm/x86_64-mont5.pl up to 1.1.1.15
crypto/external/bsd/openssl/dist/crypto/buffer/buf_err.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/buffer/buffer.c up to 1.9
crypto/external/bsd/openssl/dist/crypto/buffer/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/camellia/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/camellia/camellia.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/camellia/cmll_cbc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/camellia/cmll_cfb.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/camellia/cmll_ctr.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/camellia/cmll_ecb.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/camellia/cmll_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/camellia/cmll_misc.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/camellia/cmll_ofb.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/camellia/asm/cmll-x86.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/camellia/asm/cmll-x86_64.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/camellia/asm/cmllt4-sparcv9.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/cast/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/cast/c_cfb64.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/cast/c_ecb.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/cast/c_enc.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/cast/c_ofb64.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/cast/c_skey.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/cast/cast_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cast/cast_s.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/cast/asm/cast-586.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/chacha/build.info up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/chacha/chacha_enc.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/chacha/asm/chacha-armv4.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/chacha/asm/chacha-armv8.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/chacha/asm/chacha-c64xplus.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/chacha/asm/chacha-ppc.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/chacha/asm/chacha-s390x.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/chacha/asm/chacha-x86.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/chacha/asm/chacha-x86_64.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/cmac/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cmac/cmac.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/cms/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cms/cms_asn1.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/cms/cms_att.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/cms/cms_cd.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/cms/cms_dd.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/cms/cms_enc.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/cms/cms_env.c up to 1.1.1.15
crypto/external/bsd/openssl/dist/crypto/cms/cms_err.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/cms/cms_ess.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/cms/cms_io.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/cms/cms_kari.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/cms/cms_lib.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/cms/cms_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cms/cms_pwri.c up to 1.13
crypto/external/bsd/openssl/dist/crypto/cms/cms_sd.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/cms/cms_smime.c up to 1.1.1.16
crypto/external/bsd/openssl/dist/crypto/comp/c_zlib.c up to 1.10
crypto/external/bsd/openssl/dist/crypto/comp/comp_err.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/comp/comp_lib.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/comp/comp_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/conf/conf_api.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/conf/conf_def.c up to 1.15
crypto/external/bsd/openssl/dist/crypto/conf/conf_def.h up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/conf/conf_err.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/conf/conf_lib.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/conf/conf_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/conf/conf_mall.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/conf/conf_mod.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/conf/conf_sap.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/conf/conf_ssl.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/conf/keysets.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/ct/ct_b64.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ct/ct_err.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ct/ct_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ct/ct_log.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ct/ct_oct.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ct/ct_policy.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ct/ct_prn.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ct/ct_sct.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ct/ct_sct_ctx.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ct/ct_vfy.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ct/ct_x509v3.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/des/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/des/cbc_cksm.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/des/cbc_enc.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/des/cfb64ede.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/des/cfb64enc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/des/cfb_enc.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/des/des_enc.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/des/des_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/des/ecb3_enc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/des/ecb_enc.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/des/fcrypt.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/des/fcrypt_b.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/des/ncbc_enc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/des/ofb64ede.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/des/ofb64enc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/des/ofb_enc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/des/pcbc_enc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/des/qud_cksm.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/des/rand_key.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/des/set_key.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/des/spr.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/des/str2key.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/des/xcbc_enc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/des/asm/crypt586.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/des/asm/des-586.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/des/asm/des_enc.m4 up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/des/asm/desboth.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/des/asm/dest4-sparcv9.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/dh/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/dh/dh_ameth.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/dh/dh_asn1.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/dh/dh_check.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/dh/dh_depr.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/dh/dh_err.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/dh/dh_gen.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/dh/dh_kdf.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/dh/dh_key.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/dh/dh_lib.c up to 1.7
crypto/external/bsd/openssl/dist/crypto/dh/dh_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/dh/dh_meth.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/dh/dh_pmeth.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/dh/dh_prn.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/dh/dh_rfc5114.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/dsa/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_ameth.c up to 1.12
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_asn1.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_depr.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_err.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_gen.c up to 1.1.1.14
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_key.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_lib.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_meth.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_ossl.c up to 1.1.1.15
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_pmeth.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_prn.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_sign.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_vrf.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/dso/dso_dl.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/dso/dso_dlfcn.c up to 1.17
crypto/external/bsd/openssl/dist/crypto/dso/dso_err.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/dso/dso_lib.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/dso/dso_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/dso/dso_openssl.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/dso/dso_vms.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/dso/dso_win32.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/ec/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/curve25519.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/ec/ec2_oct.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/ec/ec2_smpl.c up to 1.11
crypto/external/bsd/openssl/dist/crypto/ec/ec_ameth.c up to 1.13
crypto/external/bsd/openssl/dist/crypto/ec/ec_asn1.c up to 1.14
crypto/external/bsd/openssl/dist/crypto/ec/ec_check.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/ec/ec_curve.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/ec/ec_cvt.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/ec/ec_err.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/ec/ec_key.c up to 1.8
crypto/external/bsd/openssl/dist/crypto/ec/ec_kmeth.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ec/ec_lib.c up to 1.11
crypto/external/bsd/openssl/dist/crypto/ec/ec_local.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/ec_mult.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/ec/ec_oct.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/ec/ec_pmeth.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/ec/ec_print.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/ec/ecdh_kdf.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ec/ecdh_ossl.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/ec/ecdsa_ossl.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/ec/ecdsa_sign.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/ecdsa_vrf.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/eck_prn.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/ec/ecp_mont.c up to 1.8
crypto/external/bsd/openssl/dist/crypto/ec/ecp_nist.c up to 1.8
crypto/external/bsd/openssl/dist/crypto/ec/ecp_nistp224.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/ec/ecp_nistp256.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/ec/ecp_nistp521.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/ec/ecp_nistputil.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/ec/ecp_nistz256.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/ec/ecp_nistz256_table.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/ecp_oct.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/ec/ecp_smpl.c up to 1.13
crypto/external/bsd/openssl/dist/crypto/ec/ecx_meth.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/ec/asm/ecp_nistz256-armv4.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/ec/asm/ecp_nistz256-armv8.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/ec/asm/ecp_nistz256-ppc64.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/asm/ecp_nistz256-sparcv9.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/ec/asm/ecp_nistz256-x86.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ec/asm/ecp_nistz256-x86_64.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/ec/asm/x25519-ppc64.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ec/asm/x25519-x86_64.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ec/curve448/curve448.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ec/curve448/curve448_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ec/curve448/curve448_tables.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/curve448/curve448utils.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ec/curve448/ed448.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/curve448/eddsa.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ec/curve448/f_generic.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/curve448/field.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ec/curve448/point_448.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ec/curve448/scalar.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/curve448/word.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/curve448/arch_32/arch_intrinsics.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/curve448/arch_32/f_impl.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/engine/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/engine/eng_all.c up to 1.15
crypto/external/bsd/openssl/dist/crypto/engine/eng_cnf.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/engine/eng_ctrl.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/engine/eng_dyn.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/engine/eng_err.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/engine/eng_fat.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/engine/eng_init.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/engine/eng_lib.c up to 1.11
crypto/external/bsd/openssl/dist/crypto/engine/eng_list.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/engine/eng_local.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/engine/eng_openssl.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/engine/eng_pkey.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/engine/eng_rdrand.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/engine/eng_table.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/engine/tb_asnmth.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/engine/tb_cipher.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/engine/tb_dh.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/engine/tb_digest.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/engine/tb_dsa.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/engine/tb_eckey.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/engine/tb_pkmeth.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/engine/tb_rand.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/engine/tb_rsa.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/err/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/err/err.c up to 1.1.1.15
crypto/external/bsd/openssl/dist/crypto/err/err_all.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/err/err_prn.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/err/openssl.ec up to 1.7
crypto/external/bsd/openssl/dist/crypto/err/openssl.txt up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/evp/bio_b64.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/evp/bio_enc.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/evp/bio_md.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/evp/bio_ok.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/evp/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/evp/c_allc.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/evp/c_alld.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/evp/cmeth_lib.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/evp/digest.c up to 1.1.1.15
crypto/external/bsd/openssl/dist/crypto/evp/e_aes.c up to 1.26
crypto/external/bsd/openssl/dist/crypto/evp/e_aes_cbc_hmac_sha1.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/evp/e_aes_cbc_hmac_sha256.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/evp/e_aria.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/evp/e_bf.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/evp/e_camellia.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/evp/e_cast.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/evp/e_chacha20_poly1305.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/evp/e_des.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/evp/e_des3.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/evp/e_idea.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/evp/e_null.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/evp/e_old.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/evp/e_rc2.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/evp/e_rc4.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/evp/e_rc4_hmac_md5.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/evp/e_rc5.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/evp/e_seed.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/evp/e_sm4.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/evp/e_xcbc_d.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/evp/encode.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/evp/evp_cnf.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/evp/evp_enc.c up to 1.16
crypto/external/bsd/openssl/dist/crypto/evp/evp_err.c up to 1.1.1.17
crypto/external/bsd/openssl/dist/crypto/evp/evp_key.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/evp/evp_lib.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/evp/evp_local.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/evp/evp_pbe.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/evp/evp_pkey.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/evp/m_null.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/evp/m_sigver.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/evp/names.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/evp/p5_crpt.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/evp/p5_crpt2.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/evp/p_dec.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/evp/p_enc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/evp/p_lib.c up to 1.1.1.14
crypto/external/bsd/openssl/dist/crypto/evp/p_open.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/evp/p_seal.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/evp/p_sign.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/evp/p_verify.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/evp/pbe_scrypt.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/evp/pmeth_gn.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/evp/pmeth_lib.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/hmac/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/hmac/hmac.c up to 1.9
crypto/external/bsd/openssl/dist/crypto/hmac/hmac_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/idea/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/idea/i_cbc.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/idea/i_cfb64.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/idea/i_ecb.c up to 1.7
crypto/external/bsd/openssl/dist/crypto/idea/i_ofb64.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/idea/i_skey.c up to 1.9
crypto/external/bsd/openssl/dist/crypto/idea/idea_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/kdf/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/kdf/kdf_err.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/lhash/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/lhash/lh_stats.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/lhash/lhash.c up to 1.11
crypto/external/bsd/openssl/dist/crypto/lhash/lhash_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/md2/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/md2/md2_dgst.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/md2/md2_one.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/md4/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/md4/md4_dgst.c up to 1.10
crypto/external/bsd/openssl/dist/crypto/md4/md4_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/md4/md4_one.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/md5/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/md5/md5_dgst.c up to 1.8
crypto/external/bsd/openssl/dist/crypto/md5/md5_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/md5/md5_one.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/md5/asm/md5-586.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/md5/asm/md5-sparcv9.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/md5/asm/md5-x86_64.pl up to 1.6
crypto/external/bsd/openssl/dist/crypto/mdc2/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/mdc2/mdc2_one.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/mdc2/mdc2dgst.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/modes/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/modes/cbc128.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/modes/ccm128.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/modes/cfb128.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/modes/ctr128.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/modes/cts128.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/modes/gcm128.c up to 1.13
crypto/external/bsd/openssl/dist/crypto/modes/ocb128.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/modes/ofb128.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/modes/wrap128.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/modes/xts128.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/modes/asm/aesni-gcm-x86_64.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/modes/asm/ghash-alpha.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/modes/asm/ghash-armv4.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/modes/asm/ghash-c64xplus.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/modes/asm/ghash-ia64.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/modes/asm/ghash-parisc.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/modes/asm/ghash-s390x.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/modes/asm/ghash-sparcv9.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/modes/asm/ghash-x86.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/modes/asm/ghash-x86_64.pl up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/modes/asm/ghashp8-ppc.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/modes/asm/ghashv8-armx.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/objects/o_names.c up to 1.11
crypto/external/bsd/openssl/dist/crypto/objects/obj_dat.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/objects/obj_dat.h up to 1.1.1.14
crypto/external/bsd/openssl/dist/crypto/objects/obj_dat.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/objects/obj_err.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/objects/obj_lib.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/objects/obj_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/objects/obj_mac.num up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/objects/obj_xref.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/objects/obj_xref.h up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/objects/obj_xref.txt up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/objects/objects.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/objects/objects.txt up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/objects/objxref.pl up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/ocsp/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ocsp/ocsp_asn.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ocsp/ocsp_cl.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/ocsp/ocsp_err.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ocsp/ocsp_ext.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/ocsp/ocsp_lib.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/ocsp/ocsp_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ocsp/ocsp_prn.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/ocsp/ocsp_srv.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/ocsp/ocsp_vfy.c up to 1.8
crypto/external/bsd/openssl/dist/crypto/ocsp/v3_ocsp.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/pem/pem_all.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/pem/pem_err.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/pem/pem_info.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/pem/pem_lib.c up to 1.1.1.17
crypto/external/bsd/openssl/dist/crypto/pem/pem_oth.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/pem/pem_pk8.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/pem/pem_pkey.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/pem/pem_sign.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/pem/pem_x509.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/pem/pem_xaux.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/pem/pvkfmt.c up to 1.1.1.16
crypto/external/bsd/openssl/dist/crypto/perlasm/arm-xlate.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/perlasm/cbc.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/perlasm/ppc-xlate.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/perlasm/sparcv9_modes.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/perlasm/x86_64-xlate.pl up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/perlasm/x86asm.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/perlasm/x86gas.pl up to 1.7
crypto/external/bsd/openssl/dist/crypto/perlasm/x86masm.pl up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/perlasm/x86nasm.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_add.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_asn.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_attr.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_crpt.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_crt.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_decr.c up to 1.7
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_init.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_key.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_kiss.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_mutl.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_npas.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_p8d.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_p8e.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_sbag.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_utl.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/pkcs12/pk12err.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/pkcs7/bio_pk7.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/pkcs7/pk7_asn1.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/pkcs7/pk7_attr.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/pkcs7/pk7_doit.c up to 1.11
crypto/external/bsd/openssl/dist/crypto/pkcs7/pk7_lib.c up to 1.7
crypto/external/bsd/openssl/dist/crypto/pkcs7/pk7_mime.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/pkcs7/pk7_smime.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/pkcs7/pkcs7err.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/poly1305/build.info up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/poly1305/poly1305.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/poly1305/poly1305_base2_44.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/poly1305/poly1305_ieee754.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/poly1305/asm/poly1305-armv4.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/poly1305/asm/poly1305-armv8.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/poly1305/asm/poly1305-c64xplus.pl up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/poly1305/asm/poly1305-mips.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/poly1305/asm/poly1305-ppc.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/poly1305/asm/poly1305-ppcfp.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/poly1305/asm/poly1305-s390x.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/poly1305/asm/poly1305-sparcv9.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/poly1305/asm/poly1305-x86.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/poly1305/asm/poly1305-x86_64.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/rand/build.info up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/rand/rand_egd.c up to 1.7
crypto/external/bsd/openssl/dist/crypto/rand/rand_err.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/rand/rand_lib.c up to 1.1.1.18
crypto/external/bsd/openssl/dist/crypto/rand/rand_local.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/rand/randfile.c up to 1.14
crypto/external/bsd/openssl/dist/crypto/rc2/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/rc2/rc2_cbc.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/rc2/rc2_ecb.c up to 1.7
crypto/external/bsd/openssl/dist/crypto/rc2/rc2_local.h up to 1.3
crypto/external/bsd/openssl/dist/crypto/rc2/rc2_skey.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/rc2/rc2cfb64.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/rc2/rc2ofb64.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/rc4/build.info up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/rc4/rc4_enc.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/rc4/rc4_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/rc4/rc4_skey.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/rc4/asm/rc4-586.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/rc4/asm/rc4-c64xplus.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/rc4/asm/rc4-md5-x86_64.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/rc4/asm/rc4-parisc.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/rc4/asm/rc4-s390x.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/rc4/asm/rc4-x86_64.pl up to 1.8
crypto/external/bsd/openssl/dist/crypto/rc5/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/rc5/rc5_ecb.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/rc5/rc5_enc.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/rc5/rc5_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/rc5/rc5_skey.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/rc5/rc5cfb64.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/rc5/rc5ofb64.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/rc5/asm/rc5-586.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ripemd/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ripemd/rmd_dgst.c up to 1.10
crypto/external/bsd/openssl/dist/crypto/ripemd/rmd_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ripemd/rmd_one.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ripemd/rmdconst.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ripemd/asm/rmd-586.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/rsa/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_ameth.c up to 1.1.1.17
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_asn1.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_chk.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_crpt.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_depr.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_err.c up to 1.8
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_gen.c up to 1.7
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_lib.c up to 1.8
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_meth.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_mp.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_none.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_oaep.c up to 1.12
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_ossl.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_pk1.c up to 1.10
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_pmeth.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_prn.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_pss.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_saos.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_sign.c up to 1.10
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_x931.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_x931g.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/seed/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/seed/seed.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/seed/seed_cbc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/seed/seed_cfb.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/seed/seed_ecb.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/seed/seed_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/seed/seed_ofb.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/sha/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sha/keccak1600.c up to 1.4
crypto/external/bsd/openssl/dist/crypto/sha/sha1_one.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/sha/sha1dgst.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/sha/sha256.c up to 1.11
crypto/external/bsd/openssl/dist/crypto/sha/sha512.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/sha/sha_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/sha/asm/keccak1600-armv4.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/sha/asm/keccak1600-armv8.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/sha/asm/keccak1600-avx2.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sha/asm/keccak1600-avx512.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sha/asm/keccak1600-avx512vl.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sha/asm/keccak1600-c64x.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sha/asm/keccak1600-mmx.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sha/asm/keccak1600-ppc64.pl up to 1.4
crypto/external/bsd/openssl/dist/crypto/sha/asm/keccak1600-s390x.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/sha/asm/keccak1600-x86_64.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sha/asm/keccak1600p8-ppc.pl up to 1.4
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-586.pl up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-alpha.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-armv4-large.pl up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-armv8.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-c64xplus.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-ia64.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-mb-x86_64.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-mips.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-parisc.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-ppc.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-s390x.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-sparcv9.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-sparcv9a.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-thumb.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-x86_64.pl up to 1.11
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha256-586.pl up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha256-armv4.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha256-c64xplus.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha256-mb-x86_64.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512-586.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512-armv4.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512-armv8.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512-c64xplus.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512-ia64.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512-mips.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512-parisc.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512-ppc.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512-s390x.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512-sparcv9.pl up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512-x86_64.pl up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512p8-ppc.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/siphash/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/siphash/siphash.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/sm2/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/sm2/sm2_crypt.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/sm2/sm2_err.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sm2/sm2_sign.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/sm3/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/sm3/sm3.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sm3/sm3_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/sm4/sm4.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/srp/srp_lib.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/srp/srp_vfy.c up to 1.1.1.14
crypto/external/bsd/openssl/dist/crypto/stack/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/stack/stack.c up to 1.5
crypto/external/bsd/openssl/dist/crypto/store/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/store/store_err.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/store/store_init.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/store/store_lib.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/store/store_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/store/store_register.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/store/store_strings.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ts/ts_asn1.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/ts/ts_conf.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ts/ts_err.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ts/ts_lib.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/ts/ts_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ts/ts_req_print.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ts/ts_req_utils.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ts/ts_rsp_print.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ts/ts_rsp_sign.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/ts/ts_rsp_utils.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ts/ts_rsp_verify.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/ts/ts_verify_ctx.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/txt_db/txt_db.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/ui/ui_err.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ui/ui_lib.c up to 1.9
crypto/external/bsd/openssl/dist/crypto/ui/ui_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ui/ui_null.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ui/ui_openssl.c up to 1.19
crypto/external/bsd/openssl/dist/crypto/ui/ui_util.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/whrlpool/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/whrlpool/wp_block.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/whrlpool/wp_dgst.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/whrlpool/wp_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/whrlpool/asm/wp-mmx.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/whrlpool/asm/wp-x86_64.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/x509/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/x509/by_dir.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/x509/by_file.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/x509/t_crl.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/x509/t_req.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/x509/t_x509.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/x509/x509_att.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/x509/x509_cmp.c up to 1.1.1.18
crypto/external/bsd/openssl/dist/crypto/x509/x509_d2.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/x509/x509_def.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/x509/x509_err.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/x509/x509_ext.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/x509/x509_local.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/x509/x509_lu.c up to 1.1.1.15
crypto/external/bsd/openssl/dist/crypto/x509/x509_meth.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/x509/x509_obj.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/x509/x509_r2x.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/x509/x509_req.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/x509/x509_set.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/x509/x509_txt.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/x509/x509_v3.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/x509/x509_vfy.c up to 1.28
crypto/external/bsd/openssl/dist/crypto/x509/x509_vpm.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/x509/x509cset.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/x509/x509name.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/x509/x509rset.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/x509/x509spki.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/x509/x509type.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/x509/x_all.c up to 1.1.1.14
crypto/external/bsd/openssl/dist/crypto/x509/x_attrib.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/x509/x_crl.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/x509/x_exten.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/x509/x_name.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/x509/x_pubkey.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/x509/x_req.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/x509/x_x509.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/x509/x_x509a.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/demos/bio/Makefile up to 1.1.1.5
crypto/external/bsd/openssl/dist/demos/bio/accept.cnf up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/bio/client-arg.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/bio/client-conf.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/bio/cmod.cnf up to 1.1.1.3
crypto/external/bsd/openssl/dist/demos/bio/connect.cnf up to 1.1.1.3
crypto/external/bsd/openssl/dist/demos/bio/saccept.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/demos/bio/sconnect.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/demos/bio/server-arg.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/bio/server-cmod.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/demos/bio/server-conf.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/certs/ca.cnf up to 1.1.1.2
crypto/external/bsd/openssl/dist/demos/certs/apps/apps.cnf up to 1.1.1.2
crypto/external/bsd/openssl/dist/demos/cms/cms_comp.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/demos/cms/cms_ddec.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/cms/cms_dec.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/demos/cms/cms_denc.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/cms/cms_enc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/demos/cms/cms_sign.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/demos/cms/cms_sign2.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/cms/cms_uncomp.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/cms/cms_ver.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/demos/pkcs12/pkread.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/demos/pkcs12/pkwrite.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/smime/smdec.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/smime/smenc.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/smime/smsign.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/smime/smsign2.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/smime/smver.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/fingerprints.txt up to 1.1.1.9
crypto/external/bsd/openssl/dist/doc/HOWTO/certificates.txt up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/HOWTO/keys.txt up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man1/CA.pl.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man1/openssl.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man1/tsget.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/ADMISSIONS.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/ASN1_INTEGER_get_int64.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/ASN1_ITEM_lookup.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/ASN1_OBJECT_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/ASN1_STRING_TABLE_add.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/ASN1_STRING_length.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/ASN1_STRING_new.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/ASN1_STRING_print_ex.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/ASN1_TIME_set.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/ASN1_TYPE_get.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/ASN1_generate_nconf.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/ASYNC_WAIT_CTX_new.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/ASYNC_start_job.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/BF_encrypt.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_ADDR.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_ADDRINFO.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_connect.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/BIO_ctrl.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BIO_f_base64.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BIO_f_buffer.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_f_cipher.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BIO_f_md.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BIO_f_null.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BIO_f_ssl.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BIO_find_type.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_get_data.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_get_ex_new_index.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_meth_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BIO_new.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_new_CMS.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_parse_hostserv.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_printf.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BIO_push.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BIO_read.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_s_accept.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BIO_s_bio.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BIO_s_connect.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BIO_s_fd.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_s_file.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BIO_s_mem.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BIO_s_null.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BIO_s_socket.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BIO_set_callback.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BIO_should_retry.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BN_BLINDING_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BN_CTX_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BN_CTX_start.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BN_add.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BN_add_word.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BN_bn2bin.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BN_cmp.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BN_copy.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BN_generate_prime.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man3/BN_mod_inverse.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BN_mod_mul_montgomery.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BN_mod_mul_reciprocal.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BN_new.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BN_num_bytes.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BN_rand.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/BN_security_bits.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BN_set_bit.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BN_swap.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BN_zero.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BUF_MEM_new.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/CMS_add0_cert.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/CMS_add1_recipient_cert.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CMS_add1_signer.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CMS_compress.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CMS_decrypt.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/CMS_encrypt.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CMS_final.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/CMS_get0_RecipientInfos.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CMS_get0_SignerInfos.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CMS_get0_type.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/CMS_get1_ReceiptRequest.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CMS_sign.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CMS_sign_receipt.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CMS_uncompress.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CMS_verify.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/CMS_verify_receipt.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CONF_modules_free.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CONF_modules_load_file.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/CRYPTO_THREAD_run_once.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/CRYPTO_get_ex_new_index.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/CRYPTO_memcmp.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/CTLOG_STORE_get0_log_by_id.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/CTLOG_STORE_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CTLOG_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CT_POLICY_EVAL_CTX_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DEFINE_STACK_OF.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/DES_random_key.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man3/DH_generate_key.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/DH_generate_parameters.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DH_get0_pqg.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/DH_get_1024_160.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DH_meth_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DH_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DH_new_by_nid.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DH_set_method.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/DH_size.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/DSA_SIG_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DSA_do_sign.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DSA_dup_DH.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DSA_generate_key.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/DSA_generate_parameters.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DSA_get0_pqg.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DSA_meth_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DSA_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DSA_set_method.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/DSA_sign.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/DSA_size.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DTLS_get_data_mtu.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/DTLS_set_timer_cb.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/DTLSv1_listen.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/ECDSA_SIG_new.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/ECPKParameters_print.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EC_GFp_simple_method.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EC_GROUP_copy.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/EC_GROUP_new.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EC_KEY_get_enc_flags.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EC_KEY_new.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/EC_POINT_add.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EC_POINT_new.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/ENGINE_add.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/ERR_GET_LIB.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/ERR_clear_error.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/ERR_error_string.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/ERR_get_error.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/ERR_load_crypto_strings.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/ERR_load_strings.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/ERR_print_errors.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/ERR_put_error.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/ERR_remove_state.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/ERR_set_mark.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_BytesToKey.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_CIPHER_CTX_get_cipher_data.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_CIPHER_meth_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_DigestInit.pod up to 1.1.1.7
crypto/external/bsd/openssl/dist/doc/man3/EVP_DigestSignInit.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man3/EVP_DigestVerifyInit.pod up to 1.1.1.7
crypto/external/bsd/openssl/dist/doc/man3/EVP_EncodeInit.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_EncryptInit.pod up to 1.1.1.9
crypto/external/bsd/openssl/dist/doc/man3/EVP_MD_meth_new.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_OpenInit.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_ASN1_METHOD.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_CTX_ctrl.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_CTX_new.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_CTX_set1_pbe_pass.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_CTX_set_hkdf_md.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_CTX_set_rsa_pss_keygen_md.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_CTX_set_scrypt_N.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_CTX_set_tls1_prf_md.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_asn1_get_count.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_decrypt.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_derive.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_encrypt.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_get_default_digest_nid.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_keygen.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_meth_get_count.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_meth_new.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_new.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_print_private.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_set1_RSA.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_sign.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_verify.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_verify_recover.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_SealInit.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_SignInit.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man3/EVP_VerifyInit.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_bf_cbc.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_blake2b512.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_cast5_cbc.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_chacha20.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_desx_cbc.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_idea_cbc.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_md2.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_md4.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_md5.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/EVP_mdc2.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_rc2_cbc.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_rc4.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_rc5_32_12_16_cbc.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/EVP_ripemd160.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_seed_cbc.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_sha1.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_sha224.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_sha3_224.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_sm3.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_sm4_cbc.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_whirlpool.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/HMAC.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/MD5.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/MDC2_Init.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/OBJ_nid2obj.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/OCSP_REQUEST_new.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/OCSP_cert_to_id.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/OCSP_request_add1_nonce.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/OCSP_resp_find_status.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/OCSP_response_status.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/OCSP_sendreq_new.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_Applink.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_LH_COMPFUNC.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_LH_stats.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_config.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_fork_prepare.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_ia32cap.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_init_crypto.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_init_ssl.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_instrument_bus.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_load_builtin_modules.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_malloc.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_secure_malloc.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/OSSL_STORE_INFO.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/OSSL_STORE_LOADER.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/OSSL_STORE_SEARCH.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/OSSL_STORE_expect.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/OSSL_STORE_open.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/OpenSSL_add_all_algorithms.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/PEM_bytes_read_bio.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/PEM_read.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/PEM_read_CMS.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/PEM_read_bio_PrivateKey.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/PEM_read_bio_ex.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/PEM_write_bio_CMS_stream.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/PEM_write_bio_PKCS7_stream.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_create.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_newpass.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_parse.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/PKCS5_PBKDF2_HMAC.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/PKCS7_decrypt.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/PKCS7_encrypt.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/PKCS7_sign.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/PKCS7_sign_add_signer.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/PKCS7_verify.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/RAND_add.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/RAND_bytes.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/RAND_cleanup.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/RAND_egd.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/RAND_load_file.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/RAND_set_rand_method.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/RC4_set_key.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/RIPEMD160_Init.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/RSA_blinding_on.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/RSA_check_key.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/RSA_generate_key.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/RSA_get0_key.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/RSA_meth_new.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/RSA_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/RSA_padding_add_PKCS1_type_1.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/RSA_print.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/RSA_private_encrypt.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/RSA_public_encrypt.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/RSA_set_method.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/RSA_sign.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/RSA_sign_ASN1_OCTET_STRING.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/RSA_size.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SCT_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SCT_print.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SCT_validate.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SHA256_Init.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SMIME_read_CMS.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SMIME_read_PKCS7.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SMIME_write_CMS.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SMIME_write_PKCS7.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CIPHER_get_name.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_COMP_add_compression_method.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CONF_CTX_new.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CONF_CTX_set1_prefix.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CONF_CTX_set_flags.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CONF_CTX_set_ssl_ctx.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CONF_cmd.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man3/SSL_CONF_cmd_argv.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_add1_chain_cert.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_add_extra_chain_cert.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_add_session.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_config.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_ctrl.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_dane_enable.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_flush_sessions.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_free.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_get0_param.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_get_verify_mode.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_has_client_custom_ext.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_load_verify_locations.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_new.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_sess_number.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_sess_set_cache_size.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_sess_set_get_cb.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_sessions.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set0_CA_list.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set1_curves.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set1_sigalgs.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set1_verify_cert_store.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_alpn_select_cb.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_cert_cb.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_cert_store.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_cert_verify_callback.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_cipher_list.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_client_cert_cb.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_client_hello_cb.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_ct_validation_callback.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_ctlog_list_file.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_default_passwd_cb.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_generate_session_id.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_info_callback.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_keylog_callback.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_max_cert_list.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_min_proto_version.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_mode.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_msg_callback.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_num_tickets.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_options.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_psk_client_callback.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_quiet_shutdown.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_read_ahead.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_record_padding_callback.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_security_level.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_session_cache_mode.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_session_id_context.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_session_ticket_cb.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_split_send_fragment.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_ssl_version.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_stateless_cookie_generate_cb.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_timeout.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_tlsext_servername_callback.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_tlsext_status_cb.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_tlsext_ticket_key_cb.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_tlsext_use_srtp.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_tmp_dh_callback.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_verify.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_use_certificate.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_use_psk_identity_hint.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_use_serverinfo.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_free.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_get0_cipher.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_get0_hostname.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_get0_id_context.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_get0_peer.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_get_compress_id.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_get_protocol_version.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_get_time.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_has_ticket.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_is_resumable.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_print.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_set1_id.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_accept.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_alert_type_string.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_alloc_buffers.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_check_chain.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_clear.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_connect.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_do_handshake.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_export_keying_material.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_extension_supported.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_free.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get0_peer_scts.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_SSL_CTX.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_all_async_fds.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_ciphers.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_client_random.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_current_cipher.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_default_timeout.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_error.pod up to 1.1.1.8
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_extms_support.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_fd.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_peer_cert_chain.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_peer_certificate.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_peer_signature_nid.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_peer_tmp_key.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_psk_identity.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_rbio.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_session.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_shared_sigalgs.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_verify_result.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_version.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_in_init.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_key_update.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_library_init.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_load_client_CA_file.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_new.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_pending.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_read.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/SSL_read_early_data.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_rstate_string.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_session_reused.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_set1_host.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/SSL_set_bio.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_set_connect_state.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_set_fd.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_set_session.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_set_shutdown.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_set_verify_result.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_shutdown.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man3/SSL_state_string.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_want.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_write.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man3/UI_STRING.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/UI_UTIL_read_pw.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/UI_create_method.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/UI_new.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/X509V3_get_d2i.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_ALGOR_dup.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_CRL_get0_by_serial.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_EXTENSION_set_object.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_LOOKUP.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_LOOKUP_hash_dir.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_LOOKUP_meth_new.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/X509_NAME_ENTRY_get_object.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_NAME_add_entry_by_txt.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_NAME_get0_der.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_NAME_get_index_by_NID.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_NAME_print_ex.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_PUBKEY_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_SIG_get0.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_STORE_CTX_get_error.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/X509_STORE_CTX_new.pod up to 1.1.1.7
crypto/external/bsd/openssl/dist/doc/man3/X509_STORE_CTX_set_verify_cb.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/X509_STORE_add_cert.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/X509_STORE_get0_param.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_STORE_new.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/X509_STORE_set_verify_cb_func.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/X509_VERIFY_PARAM_set_flags.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man3/X509_check_ca.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_check_host.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_check_issued.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_check_private_key.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_check_purpose.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_cmp.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_cmp_time.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_digest.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_dup.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_get0_notBefore.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_get0_signature.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/X509_get0_uids.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_get_extension_flags.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/X509_get_pubkey.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_get_serialNumber.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_get_subject_name.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/X509_get_version.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_sign.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_verify_cert.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509v3_get_ext_by_NID.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/d2i_PKCS8PrivateKey_bio.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/d2i_PrivateKey.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/d2i_SSL_SESSION.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/d2i_X509.pod up to 1.1.1.7
crypto/external/bsd/openssl/dist/doc/man3/i2d_CMS_bio_stream.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/i2d_PKCS7_bio_stream.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/i2d_re_X509_tbs.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/o2i_SCT_LIST.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man5/config.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man5/x509v3_config.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man7/RAND.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man7/RSA-PSS.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/X25519.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man7/bio.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man7/crypto.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man7/ct.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man7/des_modes.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/evp.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man7/ossl_store-file.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/ossl_store.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man7/passphrase-encoding.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man7/proxy-certificates.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/ssl.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/x509.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/engines/build.info up to 1.1.1.4
crypto/external/bsd/openssl/dist/engines/e_afalg.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/engines/e_afalg.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/engines/e_afalg.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/engines/e_afalg_err.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/engines/e_afalg_err.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/engines/e_capi.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/engines/e_capi.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/engines/e_capi_err.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/engines/e_capi_err.h up to 1.1.1.7
crypto/external/bsd/openssl/dist/engines/e_dasync.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/engines/e_dasync.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/engines/e_dasync_err.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/engines/e_dasync_err.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/engines/e_ossltest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/engines/e_ossltest.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/engines/e_ossltest_err.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/engines/e_ossltest_err.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/engines/e_padlock.c up to 1.9
crypto/external/bsd/openssl/dist/engines/asm/e_padlock-x86.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/engines/asm/e_padlock-x86_64.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/external/perl/Downloaded.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/fuzz/README.md up to 1.1.1.4
crypto/external/bsd/openssl/dist/fuzz/asn1.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/fuzz/asn1parse.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/bignum.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/bndiv.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/client.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/fuzz/cms.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/conf.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/crl.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/ct.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/driver.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/fuzzer.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/helper.py up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/mkfuzzoids.pl up to 1.1.1.2
crypto/external/bsd/openssl/dist/fuzz/oids.txt up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/server.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/test-corpus.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/fuzz/x509.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/include/crypto/__DECC_INCLUDE_EPILOGUE.H up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/__DECC_INCLUDE_PROLOGUE.H up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/aria.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/asn1.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/async.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/bn.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/crypto/bn_conf.h.in up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/bn_dh.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/bn_srp.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/chacha.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/cryptlib.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/ctype.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/dso_conf.h.in up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/ec.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/engine.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/err.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/evp.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/lhash.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/md32_common.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/objects.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/poly1305.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/rand.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/crypto/sha.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/siphash.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/sm2.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/crypto/sm2err.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/sm4.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/store.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/x509.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/internal/__DECC_INCLUDE_EPILOGUE.H up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/internal/__DECC_INCLUDE_PROLOGUE.H up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/internal/bio.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/internal/comp.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/internal/conf.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/include/internal/constant_time.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/internal/cryptlib.h up to 1.1.1.6
crypto/external/bsd/openssl/dist/include/internal/dane.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/internal/dso.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/internal/dsoerr.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/include/internal/err.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/internal/nelem.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/internal/numbers.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/internal/o_dir.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/internal/refcount.h up to 1.7
crypto/external/bsd/openssl/dist/include/internal/sockets.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/include/internal/sslconf.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/internal/thread_once.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/internal/tsan_assist.h up to 1.7
crypto/external/bsd/openssl/dist/include/openssl/__DECC_INCLUDE_EPILOGUE.H up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/__DECC_INCLUDE_PROLOGUE.H up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/aes.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/asn1_mac.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/asn1err.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/async.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/asyncerr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/bioerr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/blowfish.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/bn.h up to 1.5
crypto/external/bsd/openssl/dist/include/openssl/bnerr.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/buffer.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/buffererr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/camellia.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/cast.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/cmac.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/cmserr.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/comp.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/comperr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/conf_api.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/conferr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/cryptoerr.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/cterr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/des.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/dh.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/dherr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/dsa.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/include/openssl/dsaerr.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/dtls1.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/e_os2.h up to 1.1.1.7
crypto/external/bsd/openssl/dist/include/openssl/ebcdic.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/ec.h up to 1.1.1.7
crypto/external/bsd/openssl/dist/include/openssl/ecdh.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/ecdsa.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/ecerr.h up to 1.1.1.6
crypto/external/bsd/openssl/dist/include/openssl/engine.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/engineerr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/evp.h up to 1.1.1.9
crypto/external/bsd/openssl/dist/include/openssl/evperr.h up to 1.1.1.6
crypto/external/bsd/openssl/dist/include/openssl/hmac.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/idea.h up to 1.3
crypto/external/bsd/openssl/dist/include/openssl/kdf.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/kdferr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/md2.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/md4.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/md5.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/mdc2.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/modes.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/obj_mac.h up to 1.1.1.8
crypto/external/bsd/openssl/dist/include/openssl/objects.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/objectserr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/ocsperr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/ossl_typ.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/pem.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/pem2.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/pemerr.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/pkcs12err.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/pkcs7err.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/rand.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/randerr.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/include/openssl/rc2.h up to 1.3
crypto/external/bsd/openssl/dist/include/openssl/rc4.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/rc5.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/ripemd.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/rsa.h up to 1.1.1.6
crypto/external/bsd/openssl/dist/include/openssl/rsaerr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/seed.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/sha.h up to 1.3
crypto/external/bsd/openssl/dist/include/openssl/srtp.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/ssl2.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/ssl3.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/include/openssl/sslerr.h up to 1.1.1.7
crypto/external/bsd/openssl/dist/include/openssl/stack.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/store.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/storeerr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/symhacks.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/tls1.h up to 1.1.1.6
crypto/external/bsd/openssl/dist/include/openssl/ts.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/tserr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/txt_db.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/uierr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/whrlpool.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/x509err.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/x509v3err.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/ms/applink.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/ms/cmp.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/ms/uplink-common.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/ms/uplink-ia64.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/ms/uplink-x86.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/ms/uplink-x86_64.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/ms/uplink.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/ms/uplink.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/os-dep/haiku.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/ssl/bio_ssl.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/ssl/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/ssl/d1_lib.c up to 1.13
crypto/external/bsd/openssl/dist/ssl/d1_msg.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/ssl/d1_srtp.c up to 1.8
crypto/external/bsd/openssl/dist/ssl/methods.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/ssl/pqueue.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/ssl/s3_cbc.c up to 1.12
crypto/external/bsd/openssl/dist/ssl/s3_enc.c up to 1.18
crypto/external/bsd/openssl/dist/ssl/s3_lib.c up to 1.31
crypto/external/bsd/openssl/dist/ssl/s3_msg.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/ssl/ssl_asn1.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/ssl/ssl_cert.c up to 1.1.1.19
crypto/external/bsd/openssl/dist/ssl/ssl_cert_table.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/ssl/ssl_ciph.c up to 1.24
crypto/external/bsd/openssl/dist/ssl/ssl_conf.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/ssl/ssl_err.c up to 1.20
crypto/external/bsd/openssl/dist/ssl/ssl_init.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/ssl/ssl_lib.c up to 1.23
crypto/external/bsd/openssl/dist/ssl/ssl_local.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/ssl/ssl_mcnf.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/ssl/ssl_rsa.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/ssl/ssl_sess.c up to 1.12
crypto/external/bsd/openssl/dist/ssl/ssl_stat.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/ssl/ssl_txt.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/ssl/ssl_utst.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/ssl/t1_enc.c up to 1.23
crypto/external/bsd/openssl/dist/ssl/t1_lib.c up to 1.37
crypto/external/bsd/openssl/dist/ssl/t1_trce.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/ssl/tls13_enc.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/ssl/tls_srp.c up to 1.8
crypto/external/bsd/openssl/dist/ssl/record/dtls1_bitmap.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/ssl/record/rec_layer_d1.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/ssl/record/rec_layer_s3.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/ssl/record/record.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/ssl/record/record_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/ssl/record/ssl3_buffer.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/ssl/record/ssl3_record.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/ssl/record/ssl3_record_tls13.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/ssl/statem/extensions.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/ssl/statem/extensions_clnt.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/ssl/statem/extensions_cust.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/ssl/statem/extensions_srvr.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/ssl/statem/statem.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/ssl/statem/statem.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/ssl/statem/statem_clnt.c up to 1.1.1.15
crypto/external/bsd/openssl/dist/ssl/statem/statem_dtls.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/ssl/statem/statem_lib.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/ssl/statem/statem_local.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/ssl/statem/statem_srvr.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/test/CAtsa.cnf up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/README.ssltest.md up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/aborttest.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/afalgtest.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/asn1_decode_test.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/asn1_encode_test.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/asn1_internal_test.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/asn1_string_table_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/asn1_time_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/asynciotest.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/asynctest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/bad_dtls_test.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/bftest.c up to 1.5
crypto/external/bsd/openssl/dist/test/bio_callback_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/bio_enc_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/bio_memleak_test.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/bioprinttest.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/bntest.c up to 1.11
crypto/external/bsd/openssl/dist/test/bntests.pl up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/build.info up to 1.1.1.15
crypto/external/bsd/openssl/dist/test/casttest.c up to 1.4
crypto/external/bsd/openssl/dist/test/chacha_internal_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/cipher_overhead_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/cipherbytes_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/cipherlist_test.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/ciphername_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/clienthellotest.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/test/cmactest.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/cms-examples.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/cmsapitest.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/conf_include_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/constant_time_test.c up to 1.6
crypto/external/bsd/openssl/dist/test/crltest.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/ct_test.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/test/ctype_internal_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/curve448_internal_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/d2i_test.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/dane-cross.in up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/danetest.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/danetest.in up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/destest.c up to 1.5
crypto/external/bsd/openssl/dist/test/dhtest.c up to 1.6
crypto/external/bsd/openssl/dist/test/drbgtest.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/test/dsa_no_digest_size_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/dsatest.c up to 1.6
crypto/external/bsd/openssl/dist/test/dtls_mtu_test.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/dtlstest.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/test/dtlsv1listentest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/ec_internal_test.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/test/ecdsatest.c up to 1.8
crypto/external/bsd/openssl/dist/test/ecstresstest.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/ectest.c up to 1.10
crypto/external/bsd/openssl/dist/test/enginetest.c up to 1.5
crypto/external/bsd/openssl/dist/test/errtest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/evp_extra_test.c up to 1.13
crypto/external/bsd/openssl/dist/test/evp_test.c up to 1.10
crypto/external/bsd/openssl/dist/test/exdatatest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/exptest.c up to 1.6
crypto/external/bsd/openssl/dist/test/fatalerrtest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/generate_buildtest.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/generate_ssl_tests.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/gmdifftest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/hmactest.c up to 1.6
crypto/external/bsd/openssl/dist/test/ideatest.c up to 1.4
crypto/external/bsd/openssl/dist/test/igetest.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/test/lhash_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/mdc2_internal_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/mdc2test.c up to 1.4
crypto/external/bsd/openssl/dist/test/memleaktest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/modes_internal_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/ocspapitest.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/packettest.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/pbelutest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/pemtest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/pkey_meth_kdf_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/pkey_meth_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/pkits-test.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/poly1305_internal_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/rc2test.c up to 1.4
crypto/external/bsd/openssl/dist/test/rc4test.c up to 1.4
crypto/external/bsd/openssl/dist/test/rc5test.c up to 1.4
crypto/external/bsd/openssl/dist/test/rdrand_sanitytest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recordlentest.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/rsa_complex.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/rsa_mp_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/rsa_test.c up to 1.10
crypto/external/bsd/openssl/dist/test/run_tests.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/sanitytest.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/secmemtest.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/servername_test.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/shlibloadtest.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/test/siphash_internal_test.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/sm2_internal_test.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/sm4_internal_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/srptest.c up to 1.4
crypto/external/bsd/openssl/dist/test/ssl_cert_table_internal_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/ssl_ctx_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/ssl_test.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/ssl_test_ctx_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/sslapitest.c up to 1.1.1.14
crypto/external/bsd/openssl/dist/test/sslbuffertest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/sslcorrupttest.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/stack_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/sysdefault.cnf up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/sysdefaulttest.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/test.cnf up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/test_test.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/testrsa.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/testsid.pem up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/testutil.h up to 1.1.1.7
crypto/external/bsd/openssl/dist/test/testx509.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/threadstest.c up to 1.2
crypto/external/bsd/openssl/dist/test/time_offset_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/tls13ccstest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/tls13encryptiontest.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/tls13secretstest.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/uitest.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/v3ext.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/v3nametest.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/test/verify_extra_test.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/test/versions.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/wpackettest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/x509_check_cert_pkey_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/x509_dup_cert_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/x509_internal_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/x509_time_test.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/x509aux.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/certs/ca-cert-768.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-cert-768i.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-cert-ec-explicit.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-cert-ec-named.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-cert-md5-any.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-cert-md5.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-cert.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-cert2.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-expired.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-name2.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-nonbc.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-nonca.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-root2.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/cca+anyEKU.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/cca+clientAuth.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/cca+serverAuth.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/cca-anyEKU.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/cca-cert.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/cca-clientAuth.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/cca-serverAuth.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/croot-cert.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/cyrillic.msb up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/cyrillic.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/cyrillic.utf8 up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/cyrillic_crl.utf8 up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/dhp2048.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ee-pathlen.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/embeddedSCTs1.pem up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/certs/embeddedSCTs1.sct up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/certs/embeddedSCTs1_issuer-key.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/embeddedSCTs1_issuer.pem up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/certs/embeddedSCTs3.sct up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/mkcert.sh up to 1.1.1.6
crypto/external/bsd/openssl/dist/test/certs/nca+anyEKU.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ncca1-cert.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ncca2-cert.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ncca3-cert.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/root-cert-768.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/root-cert-md5.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/root-cert.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/root-cert2.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/root-ed448-cert.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/root-expired.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/root-name2.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/sca+anyEKU.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/sca+clientAuth.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/sca+serverAuth.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/sca-anyEKU.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/sca-cert.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/sca-clientAuth.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/sca-serverAuth.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/setup.sh up to 1.1.1.12
crypto/external/bsd/openssl/dist/test/certs/sroot-cert.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/01-test_abort.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/01-test_sanity.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/01-test_symbol_presence.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/01-test_test.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/02-test_errstr.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/02-test_internal_ctype.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/02-test_lhash.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/02-test_ordinals.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/02-test_stack.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/03-test_exdata.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_asn1.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_chacha.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_curve448.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_mdc2.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_modes.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_poly1305.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_siphash.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_sm2.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_sm4.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_ssl_cert_table.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_x509.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/03-test_ui.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/04-test_asn1_decode.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/04-test_asn1_encode.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/04-test_asn1_string_table.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/04-test_bio_callback.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/04-test_bioprint.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/04-test_err.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/05-test_bf.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/05-test_cast.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/05-test_des.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/05-test_hmac.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/05-test_idea.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/05-test_rand.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/05-test_rc2.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/05-test_rc4.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/05-test_rc5.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/10-test_bn.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/10-test_exp.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/15-test_dh.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsa.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/15-test_ec.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecdsa.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/15-test_genec.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/15-test_genrsa.t up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/recipes/15-test_mp_rsa.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/15-test_out_option.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/15-test_rsa.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/15-test_rsapss.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/20-test_dgst.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/20-test_enc.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/20-test_enc_more.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/20-test_passwd.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/25-test_crl.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/25-test_d2i.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/25-test_pkcs7.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/25-test_req.t up to 1.1.1.6
crypto/external/bsd/openssl/dist/test/recipes/25-test_sid.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/25-test_verify.t up to 1.1.1.10
crypto/external/bsd/openssl/dist/test/recipes/25-test_x509.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/30-test_afalg.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/30-test_engine.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_extra.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/30-test_pbelu.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/30-test_pkey_meth.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/30-test_pkey_meth_kdf.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/40-test_rehash.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/60-test_x509_check_cert_pkey.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/60-test_x509_dup_cert.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/60-test_x509_store.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/60-test_x509_time.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/70-test_asyncio.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_bad_dtls.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_clienthello.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/70-test_comp.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_key_share.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_packet.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_recordlen.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_renegotiation.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/70-test_servername.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_sslcbcpadding.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/70-test_sslcertstatus.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/70-test_sslextension.t up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/recipes/70-test_sslmessages.t up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/recipes/70-test_sslrecords.t up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/recipes/70-test_sslsessiontick.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/70-test_sslsigalgs.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/70-test_sslsignature.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_sslskewith0p.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/70-test_sslversions.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_sslvertol.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/70-test_tls13alerts.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_tls13cookie.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_tls13downgrade.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_tls13hrr.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/70-test_tls13kexmodes.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/70-test_tls13messages.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/70-test_tls13psk.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_tlsextms.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/70-test_verify_extra.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/70-test_wpacket.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_ca.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/80-test_cipherbytes.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_cipherlist.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/80-test_ciphername.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_cms.t up to 1.1.1.6
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmsapi.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_ct.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_dane.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/80-test_dtls.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_dtls_mtu.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_dtlsv1listen.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_ocsp.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/80-test_pkcs12.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/80-test_ssl_new.t up to 1.1.1.7
crypto/external/bsd/openssl/dist/test/recipes/80-test_ssl_old.t up to 1.1.1.6
crypto/external/bsd/openssl/dist/test/recipes/80-test_ssl_test_ctx.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_sslcorrupt.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_tsa.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_x509aux.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/90-test_asn1_time.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_async.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_bio_enc.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_bio_memleak.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_constant_time.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_fatalerr.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_gmdiff.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_ige.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_includes.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/90-test_memleak.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_overhead.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_secmem.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_shlibload.t up to 1.1.1.6
crypto/external/bsd/openssl/dist/test/recipes/90-test_srp.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_sslapi.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/90-test_sslbuffers.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_store.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_sysdefault.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_threads.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_time_offset.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_tls13ccs.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_tls13encryption.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/90-test_tls13secrets.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_v3name.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/95-test_external_krb5.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/95-test_external_pyca.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/99-test_ecstress.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/tconversion.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/10-test_bn_data/bnexp.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/10-test_bn_data/bnmod.txt up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/10-test_bn_data/bnmul.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/10-test_bn_data/bnshift.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/10-test_bn_data/bnsum.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpencod.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_ecc.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_includes_data/conf-includes/includes1.cnf up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/95-test_external_krb5_data/krb5.sh up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/95-test_external_pyca_data/cryptography.sh up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/smime-certs/ca.cnf up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/smime-certs/mksmime-certs.sh up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/ssl-tests/protocol_version.pm up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/ssl-tests/ssltests_base.pm up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/testutil/basic_output.c up to 1.2
crypto/external/bsd/openssl/dist/test/testutil/cb.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/testutil/driver.c up to 1.5
crypto/external/bsd/openssl/dist/test/testutil/format_output.c up to 1.7
crypto/external/bsd/openssl/dist/test/testutil/main.c up to 1.6
crypto/external/bsd/openssl/dist/test/testutil/output.h up to 1.5
crypto/external/bsd/openssl/dist/test/testutil/stanza.c up to 1.3
crypto/external/bsd/openssl/dist/test/testutil/test_cleanup.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/testutil/tests.c up to 1.7
crypto/external/bsd/openssl/dist/test/testutil/testutil_init.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/testutil/tu_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/tools/c_rehash.in up to 1.1.1.8
crypto/external/bsd/openssl/dist/util/add-depends.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/util/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/check-malloc-errs up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/ck_errf.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/util/copy.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/util/dofile.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/util/echo.pl up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/find-doc-nits up to 1.1.1.7
crypto/external/bsd/openssl/dist/util/find-unused-errs up to 1.1.1.3
crypto/external/bsd/openssl/dist/util/fix-includes up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/fix-includes.sed up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/indent.pro up to 1.1.1.8
crypto/external/bsd/openssl/dist/util/libcrypto.num up to 1.1.1.12
crypto/external/bsd/openssl/dist/util/libssl.num up to 1.1.1.4
crypto/external/bsd/openssl/dist/util/local_shlib.com.in up to 1.1.1.3
crypto/external/bsd/openssl/dist/util/mkbuildinf.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/util/mkdef.pl up to 1.12
crypto/external/bsd/openssl/dist/util/mkdir-p.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/util/mkerr.pl up to 1.1.1.11
crypto/external/bsd/openssl/dist/util/mkrc.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/util/opensslwrap.sh up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/shlib_wrap.sh.in up to 1.1.1.5
crypto/external/bsd/openssl/dist/util/su-filter.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/util/unlocal_shlib.com.in up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/perl/checkhandshake.pm up to 1.1.1.3
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/Test.pm up to 1.1.1.7
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/copyright.pm up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/Test/Simple.pm up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/Test/Utils.pm up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/Util/Pod.pm up to 1.1.1.3
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/Alert.pm up to 1.1.1.3
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/Certificate.pm up to 1.1.1.3
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/CertificateRequest.pm up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/CertificateVerify.pm up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/ClientHello.pm up to 1.1.1.4
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/EncryptedExtensions.pm up to 1.1.1.3
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/Message.pm up to 1.1.1.6
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/NewSessionTicket.pm up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/Proxy.pm up to 1.1.1.6
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/Record.pm up to 1.1.1.4
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/ServerHello.pm up to 1.1.1.4
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/ServerKeyExchange.pm up to 1.1.1.4
crypto/external/bsd/openssl/include/progs.h up to 1.3
crypto/external/bsd/openssl/include/crypto/bn_conf.h up to 1.3
crypto/external/bsd/openssl/include/crypto/dso_conf.h up to 1.2
crypto/external/bsd/openssl/lib/Makefile up to 1.9
crypto/external/bsd/openssl/lib/engines/Makefile up to 1.6
crypto/external/bsd/openssl/lib/engines/engines.mk up to 1.6
crypto/external/bsd/openssl/lib/engines/dasync/Makefile up to 1.4
crypto/external/bsd/openssl/lib/engines/ossltest/Makefile up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/Makefile up to 1.33
crypto/external/bsd/openssl/lib/libcrypto/aes.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/aria.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/asn1.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/async.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/bf.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/bio.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/blake2.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/bn.inc up to 1.10
crypto/external/bsd/openssl/lib/libcrypto/buffer.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/camellia.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/cast.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/chacha.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/cmac.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/cms.inc up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/comp.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/conf.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/crypto.inc up to 1.12
crypto/external/bsd/openssl/lib/libcrypto/crypto.map up to 1.12
crypto/external/bsd/openssl/lib/libcrypto/ct.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/curve448.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/des.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/dh.inc up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/dsa.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/dso.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/ec.inc up to 1.12
crypto/external/bsd/openssl/lib/libcrypto/engine.inc up to 1.14
crypto/external/bsd/openssl/lib/libcrypto/err.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/evp.inc up to 1.11
crypto/external/bsd/openssl/lib/libcrypto/hmac.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/idea.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/kdf.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/lhash.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/libc-sha256.c up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/libc-sha2xx.c up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/libc-sha512.c up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man.inc up to 1.17
crypto/external/bsd/openssl/lib/libcrypto/md4.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/md5.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/mdc2.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/modes.inc up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/objects.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/ocsp.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/pem.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/pkcs12.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/pkcs7.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/poly1305.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/rand.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/rc2.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/rc4.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/ripemd.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/rsa.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/seed.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/sha.inc up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/shlib_version up to 1.16
crypto/external/bsd/openssl/lib/libcrypto/siphash.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/sm2.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/sm3.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/sm4.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/srcs.inc up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/srp.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/stack.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/store.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/ts.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/txt_db.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/ui.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/whrlpool.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/x509.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/Makefile up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/aes.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/aesv8-armx.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/arm64cpuid.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/ec.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/ecp_nistz256-armv8.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/modes.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/sha512-armv8.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/aes-armv4.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/aes.inc up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/aesv8-armx.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/arm64cpuid.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/armv4-gf2m.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/armv4-mont.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/armv4cpuid.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/armv8-mont.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/bsaes-armv7.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/chacha-armv4.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/chacha-armv8.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/crypto.inc up to 1.15
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/ecp_nistz256-armv4.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/ecp_nistz256-armv8.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/ghash-armv4.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/ghashv8-armx.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/keccak1600-armv4.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/sha1-armv8.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/sha256-armv4.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/sha512-armv4.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/sha512-armv8.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/hppa/crypto.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/aesni-x86.S up to 1.11
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/bf-586.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/bn-586.S up to 1.11
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/cast-586.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/chacha-x86.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/cmll-x86.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/co-586.S up to 1.8
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/crypt586.S up to 1.9
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/crypto.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/des-586.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/ec.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/ecp_nistz256-x86.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/ghash-x86.S up to 1.8
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/md5-586.S up to 1.9
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/poly1305-x86.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/rc4-586.S up to 1.9
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/rc5-586.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/rmd-586.S up to 1.8
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/sha1-586.S up to 1.9
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/sha256-586.S up to 1.8
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/sha512-586.S up to 1.8
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/uplink-x86.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/vpaes-x86.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/x86cpuid.S up to 1.18
crypto/external/bsd/openssl/lib/libcrypto/arch/m68k/crypto.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/mips/aes-mips.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/mips/aes-mips64.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/mips/crypto.inc up to 1.9
crypto/external/bsd/openssl/lib/libcrypto/arch/mips/mips.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/mips/mips64.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/Makefile up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/bn.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/chacha.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/crypto.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/poly1305-ppc.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/sha512-ppc.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/sha512p8-ppc.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/vpaes-ppc.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/bn.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/chacha.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/ec.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/keccak1600-ppc64.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/poly1305-ppc.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/sha512-ppc.S up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/sha512p8-ppc.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/vpaes-ppc.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/sh3/crypto.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/aes-sparcv9.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/aesfx-sparcv9.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/aest4-sparcv9.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/bn-sparcv8.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/cmllt4-sparcv9.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/crypto.inc up to 1.15
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/des_enc-sparc.S up to 1.8
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/dest4-sparcv9.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/ec.inc up to 1.8
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/ecp_nistz256-sparcv9.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/ghash-sparcv9.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/md5-sparcv9.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/poly1305-sparcv9.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/sha1-sparcv9.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/sha512-sparcv9.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/sparct4-mont.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/sparcv9-gf2m.S up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/sparcv9-mont.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/sparcv9a-mont.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/vis3-mont.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/Makefile up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/aes-sparcv9.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/aesfx-sparcv9.S up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/aest4-sparcv9.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/cmllt4-sparcv9.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/crypto.inc up to 1.10
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/des_enc-sparc.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/dest4-sparcv9.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/ec.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/ecp_nistz256-sparcv9.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/ghash-sparcv9.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/md5-sparcv9.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/poly1305-sparcv9.S up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/sha.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/sha1-sparcv9.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/sha512-sparcv9.S up to 1.9
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/sparct4-mont.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/sparcv9-gf2m.S up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/sparcv9-mont.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/sparcv9a-mont.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/vis3-mont.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/vax/crypto.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/Makefile up to 1.13
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/aes-x86_64.S up to 1.12
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/aesni-gcm-x86_64.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/aesni-mb-x86_64.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/aesni-sha1-x86_64.S up to 1.11
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/aesni-sha256-x86_64.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/aesni-x86_64.S up to 1.12
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/bn.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/bsaes-x86_64.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/chacha-x86_64.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/cmll-x86_64.S up to 1.9
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/crypto.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/e_padlock-x86_64.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/ec.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/ecp_nistz256-x86_64.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/ghash-x86_64.S up to 1.8
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/keccak1600-x86_64.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/md5-x86_64.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/poly1305-x86_64.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/rc4-md5-x86_64.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/rc4-x86_64.S up to 1.13
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/rsaz-avx2.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/rsaz-x86_64.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/sha.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/sha1-mb-x86_64.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/sha1-x86_64.S up to 1.15
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/sha256-mb-x86_64.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/sha512-x86_64.S up to 1.11
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/vpaes-x86_64.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/whrlpool.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/wp-x86_64.S up to 1.9
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/x25519-x86_64.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/x86_64-gf2m.S up to 1.8
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/x86_64-mont.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/x86_64-mont5.S up to 1.10
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/x86_64cpuid.S up to 1.13
crypto/external/bsd/openssl/lib/libcrypto/man/ADMISSIONS.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_INTEGER_get_int64.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_ITEM_lookup.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_OBJECT_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_STRING_TABLE_add.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_STRING_length.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_STRING_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_STRING_print_ex.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_TIME_set.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_TYPE_get.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_generate_nconf.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ASYNC_WAIT_CTX_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/ASYNC_start_job.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/BF_encrypt.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_ADDR.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_ADDRINFO.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_connect.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_ctrl.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_base64.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_buffer.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_cipher.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_md.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_null.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_ssl.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_find_type.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_get_data.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_get_ex_new_index.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_meth_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_new_CMS.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_parse_hostserv.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_printf.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_push.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_read.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_s_accept.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_s_bio.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_s_connect.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_s_fd.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_s_file.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_s_mem.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_s_null.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_s_socket.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_set_callback.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_should_retry.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_BLINDING_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_CTX_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_CTX_start.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_add.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_add_word.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_bn2bin.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_cmp.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_copy.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_generate_prime.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_mod_inverse.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_mod_mul_montgomery.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_mod_mul_reciprocal.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_num_bytes.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_rand.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_security_bits.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/BN_set_bit.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_swap.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_zero.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BUF_MEM_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_add0_cert.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_add1_recipient_cert.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_add1_signer.3 up to 1.11
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_compress.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_decrypt.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_encrypt.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_final.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_get0_RecipientInfos.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_get0_SignerInfos.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_get0_type.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_get1_ReceiptRequest.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_sign.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_sign_receipt.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_uncompress.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_verify.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_verify_receipt.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CONF_modules_free.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CONF_modules_load_file.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CRYPTO_THREAD_run_once.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/CRYPTO_get_ex_new_index.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/CTLOG_STORE_get0_log_by_id.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/CTLOG_STORE_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/CTLOG_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/CT_POLICY_EVAL_CTX_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/DEFINE_STACK_OF.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/DES_random_key.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/DH_generate_key.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DH_generate_parameters.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DH_get0_pqg.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/DH_get_1024_160.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/DH_meth_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/DH_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DH_new_by_nid.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/DH_set_method.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DH_size.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DSA_SIG_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DSA_do_sign.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DSA_dup_DH.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DSA_generate_key.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DSA_generate_parameters.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DSA_get0_pqg.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/DSA_meth_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/DSA_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DSA_set_method.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DSA_sign.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DSA_size.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DTLS_get_data_mtu.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/DTLS_set_timer_cb.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/DTLSv1_listen.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/ECDSA_SIG_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/ECPKParameters_print.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/EC_GFp_simple_method.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/EC_GROUP_copy.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/EC_GROUP_new.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/EC_KEY_get_enc_flags.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/EC_KEY_new.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/EC_POINT_add.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/EC_POINT_new.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/ENGINE_add.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/ERR_GET_LIB.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ERR_clear_error.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ERR_error_string.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ERR_get_error.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ERR_load_crypto_strings.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ERR_load_strings.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ERR_print_errors.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ERR_put_error.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ERR_remove_state.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ERR_set_mark.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_BytesToKey.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER_CTX_get_cipher_data.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER_meth_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_DigestInit.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_DigestSignInit.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_DigestVerifyInit.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_EncodeInit.3 up to 1.9
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_EncryptInit.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD_meth_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_OpenInit.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_ASN1_METHOD.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_CTX_ctrl.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_CTX_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_CTX_set1_pbe_pass.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_CTX_set_hkdf_md.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_CTX_set_rsa_pss_keygen_md.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_CTX_set_scrypt_N.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_CTX_set_tls1_prf_md.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_asn1_get_count.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_decrypt.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_derive.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_encrypt.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_get_default_digest_nid.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_keygen.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_meth_get_count.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_meth_new.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_print_private.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_set1_RSA.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_sign.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_verify.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_verify_recover.3 up to 1.17
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_SealInit.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_SignInit.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_VerifyInit.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_bf_cbc.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_blake2b512.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_cast5_cbc.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_chacha20.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_desx_cbc.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_idea_cbc.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_md2.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_md4.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_md5.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_mdc2.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_rc2_cbc.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_rc4.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_rc5_32_12_16_cbc.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_ripemd160.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_seed_cbc.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_sha1.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_sha224.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_sha3_224.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_sm3.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_sm4_cbc.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_whirlpool.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/HMAC.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/MD5.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/MDC2_Init.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/Makefile up to 1.10
crypto/external/bsd/openssl/lib/libcrypto/man/OBJ_nid2obj.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/OCSP_REQUEST_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OCSP_cert_to_id.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OCSP_request_add1_nonce.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OCSP_resp_find_status.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OCSP_response_status.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OCSP_sendreq_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_Applink.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_LH_COMPFUNC.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_LH_stats.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_config.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_fork_prepare.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_ia32cap.3 up to 1.24
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_init_crypto.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_init_ssl.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_instrument_bus.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_load_builtin_modules.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_malloc.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_secure_malloc.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_STORE_INFO.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_STORE_LOADER.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_STORE_SEARCH.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_STORE_expect.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_STORE_open.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/OpenSSL_add_all_algorithms.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/PEM_bytes_read_bio.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/PEM_read.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/PEM_read_CMS.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/PEM_read_bio_PrivateKey.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/PEM_read_bio_ex.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/PEM_write_bio_CMS_stream.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/PEM_write_bio_PKCS7_stream.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_create.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_newpass.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_parse.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS5_PBKDF2_HMAC.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS7_decrypt.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS7_encrypt.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS7_sign.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS7_sign_add_signer.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS7_verify.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RAND.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/RAND_add.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RAND_bytes.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RAND_cleanup.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RAND_egd.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RAND_load_file.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RAND_set_rand_method.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RC4_set_key.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/RIPEMD160_Init.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/RSA-PSS.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_blinding_on.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_check_key.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_generate_key.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_get0_key.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_meth_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_padding_add_PKCS1_type_1.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_print.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_private_encrypt.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_public_encrypt.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_set_method.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_sign.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_sign_ASN1_OCTET_STRING.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_size.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SCT_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SCT_print.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SCT_validate.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SHA256_Init.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SMIME_read_CMS.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SMIME_read_PKCS7.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SMIME_write_CMS.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SMIME_write_PKCS7.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CIPHER_get_name.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_COMP_add_compression_method.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CONF_CTX_new.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CONF_CTX_set1_prefix.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CONF_CTX_set_flags.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CONF_CTX_set_ssl_ctx.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CONF_cmd.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CONF_cmd_argv.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_add1_chain_cert.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_add_extra_chain_cert.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_add_session.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_config.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_ctrl.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_dane_enable.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_flush_sessions.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_free.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_get0_param.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_get_verify_mode.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_has_client_custom_ext.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_load_verify_locations.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_sess_number.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_sess_set_cache_size.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_sess_set_get_cb.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_sessions.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set0_CA_list.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set1_curves.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set1_sigalgs.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set1_verify_cert_store.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_alpn_select_cb.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_cert_cb.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_cert_store.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_cert_verify_callback.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_cipher_list.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_client_cert_cb.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_client_hello_cb.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_ct_validation_callback.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_ctlog_list_file.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_default_passwd_cb.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_generate_session_id.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_info_callback.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_keylog_callback.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_max_cert_list.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_min_proto_version.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_mode.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_msg_callback.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_num_tickets.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_options.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_psk_client_callback.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_quiet_shutdown.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_read_ahead.3 up to 1.10
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_record_padding_callback.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_security_level.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_session_cache_mode.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_session_id_context.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_session_ticket_cb.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_split_send_fragment.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_ssl_version.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_stateless_cookie_generate_cb.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_timeout.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_tlsext_servername_callback.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_tlsext_status_cb.3 up to 1.9
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_tlsext_ticket_key_cb.3 up to 1.12
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_tlsext_use_srtp.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_tmp_dh_callback.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_verify.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_use_certificate.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_use_psk_identity_hint.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_use_serverinfo.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_free.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_get0_cipher.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_get0_hostname.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_get0_id_context.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_get0_peer.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_get_compress_id.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_get_protocol_version.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_get_time.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_has_ticket.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_is_resumable.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_print.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_set1_id.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_accept.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_alert_type_string.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_alloc_buffers.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_check_chain.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_clear.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_connect.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_do_handshake.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_export_keying_material.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_extension_supported.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_free.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get0_peer_scts.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_SSL_CTX.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_all_async_fds.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_ciphers.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_client_random.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_current_cipher.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_default_timeout.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_error.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_extms_support.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_fd.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_peer_cert_chain.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_peer_certificate.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_peer_signature_nid.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_peer_tmp_key.3 up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_psk_identity.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_rbio.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_session.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_shared_sigalgs.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_verify_result.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_version.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_in_init.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_key_update.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_library_init.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_load_client_CA_file.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_pending.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_read.3 up to 1.23
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_read_early_data.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_rstate_string.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_session_reused.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_set1_host.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_set_bio.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_set_connect_state.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_set_fd.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_set_session.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_set_shutdown.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_set_verify_result.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_shutdown.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_state_string.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_want.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_write.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/UI_STRING.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/UI_UTIL_read_pw.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/UI_create_method.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/UI_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X25519.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/X509V3_get_d2i.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_ALGOR_dup.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_CRL_get0_by_serial.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_EXTENSION_set_object.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_LOOKUP_hash_dir.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_LOOKUP_meth_new.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/X509_NAME_ENTRY_get_object.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/X509_NAME_add_entry_by_txt.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/X509_NAME_get0_der.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_NAME_get_index_by_NID.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/X509_NAME_print_ex.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/X509_PUBKEY_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_SIG_get0.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_STORE_CTX_get_error.3 up to 1.21
crypto/external/bsd/openssl/lib/libcrypto/man/X509_STORE_CTX_new.3 up to 1.21
crypto/external/bsd/openssl/lib/libcrypto/man/X509_STORE_CTX_set_verify_cb.3 up to 1.21
crypto/external/bsd/openssl/lib/libcrypto/man/X509_STORE_add_cert.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/X509_STORE_get0_param.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_STORE_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_STORE_set_verify_cb_func.3 up to 1.21
crypto/external/bsd/openssl/lib/libcrypto/man/X509_VERIFY_PARAM_set_flags.3 up to 1.21
crypto/external/bsd/openssl/lib/libcrypto/man/X509_check_ca.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_check_host.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/X509_check_issued.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_check_private_key.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/X509_cmp_time.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/X509_digest.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_dup.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_get0_notBefore.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_get0_signature.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_get0_uids.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_get_extension_flags.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_get_pubkey.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_get_serialNumber.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_get_subject_name.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_get_version.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/X509_sign.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_verify_cert.3 up to 1.21
crypto/external/bsd/openssl/lib/libcrypto/man/X509v3_get_ext_by_NID.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/bio.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/crypto.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/ct.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/d2i_PKCS8PrivateKey_bio.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/d2i_PrivateKey.3 up to 1.9
crypto/external/bsd/openssl/lib/libcrypto/man/d2i_SSL_SESSION.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/d2i_X509.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/des_modes.7 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/evp.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/i2d_CMS_bio_stream.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/i2d_PKCS7_bio_stream.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/i2d_re_X509_tbs.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/o2i_SCT_LIST.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/openssl.1 up to 1.21
crypto/external/bsd/openssl/lib/libcrypto/man/openssl_CA.pl.1 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/openssl_config.5 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/openssl_tsget.1 up to 1.23
crypto/external/bsd/openssl/lib/libcrypto/man/ossl_store-file.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/ossl_store.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/passphrase-encoding.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/ssl.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/x509.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/x509v3_config.5 up to 1.5
crypto/external/bsd/openssl/lib/libcryptotest/Makefile up to 1.5
crypto/external/bsd/openssl/lib/libdes/shlib_version up to 1.7
crypto/external/bsd/openssl/lib/libssl/Makefile up to 1.18
crypto/external/bsd/openssl/lib/libssl/record.inc up to 1.3
crypto/external/bsd/openssl/lib/libssl/shlib_version up to 1.16
crypto/external/bsd/openssl/lib/libssl/ssl.inc up to 1.11
crypto/external/bsd/openssl/lib/libssl/ssl.map up to 1.4
crypto/external/bsd/openssl/lib/libssl/statem.inc up to 1.3
crypto/Makefile.openssl up to 1.19
crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c 1.29
crypto/external/bsd/libsaslc/lib/Makefile 1.10
crypto/external/bsd/netpgp/lib/netpgp/Makefile 1.5
crypto/external/bsd/openssh/bin/ssh-agent/Makefile 1.6
crypto/external/bsd/openssh/bin/ssh-keygen/Makefile 1.9
crypto/external/bsd/openssh/bin/ssh-keyscan/Makefile 1.6
crypto/external/bsd/openssh/bin/ssh-pkcs11-helper/Makefile 1.4
crypto/external/bsd/openssh/bin/sshd/Makefile 1.26
crypto/external/bsd/openssh/lib/Makefile 1.35
crypto/external/bsd/openssh/libexec/ssh-sk-helper/Makefile 1.4
distrib/sets/deps 1.23
distrib/sets/lists/base/ad.aarch64 1.38-1.43 (patch)
distrib/sets/lists/base/ad.mips 1.84,1.87,1.88,1.90 (patch)
distrib/sets/lists/base/ad.powerpc 1.41,1.42,1.45-1.47 (patch)
distrib/sets/lists/base/ad.riscv 1.24,1.25,1.28,1.29,1.30 (patch)
distrib/sets/lists/base/md.amd64 1.288,1.291-1.293,1.295 (patch)
distrib/sets/lists/base/md.i386 1.158 (patch)
distrib/sets/lists/base/md.riskv64 delete
distrib/sets/lists/base/md.sparc64 1.258,1.261,1.262 (patch)
distrib/sets/lists/base/mi 1.1316-1.1319,1.1322-1.1324 (patch)
distrib/sets/lists/base/shl.mi 1.948 (patch)
distrib/sets/lists/comp/mi 1.2427,1.2428,1.2431,1.2432 (patch)
distrib/sets/lists/debug/mi 1.398,1.404,1.405 (patch)
distrib/sets/lists/debug/shl.mi 1.305 (patch)
distrib/sets/lists/man/mi 1.1760,1.1761 (patch)
distrib/sets/lists/tests/mi 1.1261,1.1262,1.1270 (patch)
etc/mtree/NetBSD.compat.mips64 1.2 (patch)
etc/mtree/NetBSD.compat.powerpc64 1.2 (patch)
etc/mtree/NetBSD.compat.riscv64 1.2 (patch)
etc/mtree/NetBSD.dist.aarch64 1.10,1.11 (patch)
etc/mtree/NetBSD.dist.base 1.248 (patch)
etc/mtree/NetBSD.dist.compat.in 1.3,1.4 (patch)
etc/mtree/NetBSD.dist.sparc64 1.15,1.16 (patch)
etc/mtree/NetBSD.dist.x86_64 1.17-1.19 (patch)
external/bsd/libarchive/lib/libarchive/Makefile 1.15
external/bsd/libfido2/bin/fido2-assert/Makefile 1.3
external/bsd/libfido2/bin/fido2-cred/Makefile 1.3
external/bsd/libfido2/bin/fido2-token/Makefile 1.3
external/bsd/libfido2/dist/src/assert.c 1.2
external/bsd/libfido2/dist/src/cred.c 1.2
external/bsd/libfido2/lib/Makefile 1.9
external/bsd/ntp/bin/ntp-keygen/Makefile 1.8
external/bsd/ntp/bin/ntpd/Makefile 1.29
external/bsd/ntp/bin/sntp/Makefile 1.10
external/bsd/ntp/dist/ntpd/ntp_crypto.c 1.17
external/bsd/ntp/dist/util/ntp-keygen.c 1.15
external/bsd/ntp/lib/libntp/Makefile 1.26
external/bsd/openldap/lib/libldap/Makefile.libldap 1.14
external/bsd/pam-u2f/bin/pamu2fcfg/Makefile 1.5
external/bsd/pam-u2f/lib/security/pam-u2f/Makefile 1.6
external/bsd/tcpdump/bin/Makefile 1.22
external/bsd/unbound/lib/libunbound/Makefile 1.8
external/bsd/wpa/bin/hostapd/Makefile 1.16
external/bsd/wpa/bin/wpa_passphrase/Makefile 1.6
external/bsd/wpa/bin/wpa_supplicant/Makefile 1.11
external/mpl/dhcp/dist/common/dispatch.c 1.4,1.5
games/factor/Makefile 1.15
lib/Makefile 1.295
libexec/httpd/Makefile 1.32
libexec/httpd/libbozohttpd/Makefile 1.4
share/mk/bsd.lib.mk 1.391
share/mk/bsd.own.mk 1.1316
share/mk/bsd.prog.mk 1.342,1.343
tests/crypto/libcrypto/Makefile 1.15
tests/crypto/libcrypto/Makefile.inc 1.11
tests/crypto/libcrypto/conf/Makefile 1.2
tests/crypto/libcrypto/conf/d_conf-1x.out 1.1
tests/crypto/libcrypto/conf/d_conf-3x.out 1.1
tests/crypto/libcrypto/conf/d_conf.out delete
tests/crypto/libcrypto/dh/Makefile 1.2
tests/crypto/libcrypto/evp/Makefile 1.3
tests/crypto/libcrypto/t_hashes.sh 1.5
tests/crypto/libcrypto/t_libcrypto.sh 1.9
tests/crypto/libcrypto/t_pubkey.sh 1.7
tests/crypto/libcrypto/threads/Makefile 1.6
usr.bin/moduli/qsafe/Makefile 1.2
usr.sbin/plainrsa-gen/Makefile 1.2
usr.sbin/racoon/Makefile 1.41,1.42
usr.sbin/syslogd/Makefile 1.32
crypto/external/bsd/openssl.old/ (removed)

Import of OpenSSL 3.0.
Import of bind 9.16.42.
Import of heimdal 7.8.0.
 1.32.2.1 02-Aug-2025  perseant Sync with HEAD
 1.9 17-Jan-2021  mrg also set -D_DEFAULT_SOURCE to open up more headers.
allow passing $(EXTRALIBS).
 1.8 13-Jul-2020  jruoho Do not report status code 500 to blocklistd(8) Add -DNO_BLOCKLIST_SUPPORT
to Makefile.boot.
 1.7 30-Oct-2019  mrg set -D_GNU_SOURCE, needed for linux systems and should be
harmless or ignored elsewhere.

from perry.
 1.6 02-Jan-2014  mrg branches: 1.6.18; 1.6.26; 1.6.28;
update for 20140102.
 1.5 10-May-2010  mrg branches: 1.5.6; 1.5.8; 1.5.12; 1.5.14; 1.5.20;
merge bozohttpd 20100510.
 1.4 10-May-2010  mrg merge bozohttpd 20100509.
 1.3 18-Apr-2009  mrg re-add a lot of the distribution files
 1.2 16-Oct-2007  tls branches: 1.2.10; 1.2.12; 1.2.16; 1.2.20;
Get httpd ready for inclusion in build.
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.3 10-May-2010  mrg import bozohttpd 20100510 -- just fixes some compile errors.
 1.1.1.2 10-May-2010  mrg import bozohttpd 20100509. it has these changes:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.2.20.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.16.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.12.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.10.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.5.20.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.5.14.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.5.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.5.8.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.5.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.6.28.1 05-Mar-2021  martin Pull up the following (all via patch), requested by mrg in ticket #1221:

lib/lua/bozohttpd/Makefile (apply patch)
libexec/httpd/Makefile 1.30-1.31
libexec/httpd/Makefile.boot 1.7-1.9
libexec/httpd/auth-bozo.c 1.25-1.26
libexec/httpd/bozohttpd.8 1.80-1.87
libexec/httpd/bozohttpd.c 1.114-1.123,1.125-1.128
libexec/httpd/bozohttpd.h 1.61-1.68
libexec/httpd/cgi-bozo.c 1.49-1.53
libexec/httpd/content-bozo.c 1.17-1.20
libexec/httpd/daemon-bozo.c 1-.22
libexec/httpd/dir-index-bozo.c 1.33-1.34
libexec/httpd/main.c 1.23-1.27
libexec/httpd/printenv.lua 1.4-1.5
libexec/httpd/ssl-bozo.c 1.27-1.29
libexec/httpd/libbozohttpd/libbozohttpd.3 1.5-1.6
libexec/httpd/small/Makefile 1.4
libexec/httpd/testsuite/Makefile 1.14
libexec/httpd/testsuite/t16.in 1.1
libexec/httpd/testsuite/t16.out 1.1
libexec/httpd/testsuite/t17.in 1.1
libexec/httpd/testsuite/t17.out 1.1
libexec/httpd/testsuite/t18.in 1.1
libexec/httpd/testsuite/t18.out 1.1


Update to bozohttpd 20210227.
Apply lua build fix (no blocklist support on this branch).

changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.6.26.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.6.18.1 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.28 19-Sep-2023  shm Fix hr_authrealm memory leak

hr_authrealm might be already set, so we need to free it before overwriting
the value
 1.27 05-May-2021  mrg branches: 1.27.6;
don't assume host BUFSIZ is sufficent. small BUFSIZ leads to
always happens errors in the testsuite. switch all these buffers
to be 4KiB sized. reported by embr <git@liclac.eu>
 1.26 15-Oct-2020  mrg set -D_GNU_SOURCE in Makefile.boot. from hadrien.lacour@posteo.net.
also match %2F as well as %2f. from leah@vuxu.org.
introduce defines for "80" and "443". copyright maint.
 1.25 11-Jul-2020  jruoho Add blocklistd(8) support.
 1.24 28-Feb-2019  mrg branches: 1.24.2;
add ssl specific timeout value (30s). if SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.

mostly different from, but inspired from the patch in PR 50655
 1.23 22-Jan-2019  mrg o don't display special files in the directory index. they aren't
served, but links to them are generated.
 1.22 22-Nov-2018  mrg many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines
 1.21 21-Nov-2018  mrg - move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.
 1.20 20-Nov-2018  mrg from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.


the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.


reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.


clean up option and usage handling some.
 1.19 19-Nov-2018  mrg avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.
 1.18 27-Dec-2015  mrg branches: 1.18.8; 1.18.14; 1.18.16;
several clean ups:

- bozostrdup() gains a request parameter, and uses it to determine
what sort of error handling is required
- bozo_strdup() dies
- size_arrays() reduced slightly, pushing error handling into the caller
- convert to size_t for some array indices
- bozo_set_pref() and bozo_init_prefs() gain httpd parameters
- apply a bunch of manual CSE to vastly reduce the number of times the
string "request->hr_httpd" appears.
- CGI parse_header() takes a request not httpd now

XXX: lua glue updated to call bozo_init_prefs() with htttpd parameter,
but i'm only guessing here.
 1.17 28-Oct-2015  shm * add CGI support for ~user translation (-E switch)
* add redirects to ~user translation
* fix bugs around ~user translation
* add schema detection for absolute redirects
* fixed few memory leaks
* bunch of minor tweaks
* removed -r support
* smarter redirects

OK mrg@
 1.16 26-Dec-2014  mrg more for the previous: make sure [i - 1] can never go negative.
 1.15 26-Dec-2014  mrg properly handle ilen = 0 case, which could lead to array underflow.
pointed out by Maxime Villard.
 1.14 21-Nov-2014  shm Fixed memory leak in case of multiple authentication headers sent by the
client.

OK mrg@
 1.13 08-Jul-2014  mrg branches: 1.13.2;
avoid truncating a directory path when using snprintf(), but instead
detect and return an error.

found and fixed by shm@netbsd.
 1.12 02-Jan-2014  mrg branches: 1.12.2;
- update CHANGES with recent changes
- update version to 20140102
- update copyrights
- use getcwd() over getwd()
- fix lean build (don't include lua)
 1.11 12-Oct-2013  mbalmer no need to check free() arguments against NULL
 1.10 18-Nov-2011  mrg branches: 1.10.2; 1.10.6; 1.10.8; 1.10.14;
merge bozohttpd 20111118
 1.9 10-May-2010  mrg branches: 1.9.6;
merge bozohttpd 20100510.
 1.8 10-May-2010  mrg merge bozohttpd 20100509.
 1.7 18-Apr-2009  mrg merge bozohttpd 20090418. remove a couple of minor do-nothing local
changes that don't need to cause conflicts.
 1.6 18-Apr-2009  mrg return a value when the function wants to.
 1.5 18-Apr-2009  mrg merge bozohttpd 20090417
 1.4 03-Mar-2008  mrg branches: 1.4.6; 1.4.8; 1.4.10; 1.4.16;
merge bozohttpd 20080303
 1.3 17-Oct-2007  tls branches: 1.3.2; 1.3.6;
RCS IDs
 1.2 17-Oct-2007  reed Fix typo on Makefile which causes HTTP Authentication support
to not be used.

Now fix auth-bozo.c to not have warnings "may be used uninitialized"
and pointer targets "differ in signedness".
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.7 18-Nov-2011  mrg update to bozohttpd 20111118. nothing major is missing here but
the changes since the prior import were:

o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well
 1.1.1.6 10-May-2010  mrg import bozohttpd 20100510 -- just fixes some compile errors.
 1.1.1.5 10-May-2010  mrg import bozohttpd 20100509. it has these changes:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
 1.1.1.4 18-Apr-2009  mrg import bozohttpd 20090418. changes include:

o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet

this covers PR#38489 and PR#40079, as well some some issues reported
privately.
 1.1.1.3 18-Apr-2009  mrg import latest bozohttpd sources. changes include:

o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.2 03-Mar-2008  mrg import latest bozohttpd. changes include:

o fix some cgi header processing, from <thelsdj@gmail.com>
o add simple Range: header processing, from <bad@bsd.de>
o man page fixes, from NetBSD
o clean up various parts, from NetBSD
o prefix some function names with "bozo"
o align directory indexing <hr> markers
o clean up some code GCC4 grumbled about
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.3.6.1 24-Mar-2008  keiichi sync with head.
 1.3.2.3 23-Mar-2008  matt sync with HEAD
 1.3.2.2 06-Nov-2007  matt sync with HEAD
 1.3.2.1 17-Oct-2007  matt file auth-bozo.c was added on branch matt-armv6 on 2007-11-06 23:12:01 +0000
 1.4.16.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.4.10.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.4.8.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.4.6.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.9.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.9.6.1 17-Apr-2012  yamt sync with head
 1.10.14.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.10.14.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.10.8.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.10.8.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.10.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.10.2.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.10.2.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.12.2.1 10-Aug-2014  tls Rebase.
 1.13.2.4 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.13.2.3 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.13.2.2 10-Apr-2016  martin branches: 1.13.2.2.4;
Catch up to -current (via patch), requested by mspo in #1141:

libexec/httpd/CHANGES up to 1.21
libexec/httpd/Makefile up to 1.26
libexec/httpd/auth-bozo.c up to 1.18
libexec/httpd/bozohttpd.8 up to 1.58
libexec/httpd/bozohttpd.c up to 1.79
libexec/httpd/bozohttpd.h up to 1.44
libexec/httpd/cgi-bozo.c up to 1.32
libexec/httpd/content-bozo.c up to 1.13
libexec/httpd/daemon-bozo.c up to 1.17
libexec/httpd/dir-index-bozo.c up to 1.25
libexec/httpd/lua-bozo.c up to 1.14
libexec/httpd/main.c up to 1.13
libexec/httpd/netbsd_queue.h up to 1.1
libexec/httpd/printenv.lua up to 1.3
libexec/httpd/ssl-bozo.c up to 1.22
libexec/httpd/tilde-luzah-bozo.c up to 1.14
libexec/httpd/testsuite/Makefile up to 1.5
libexec/httpd/testsuite/test-bigfile up to 1.2

Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
 1.13.2.1 12-Jan-2015  martin branches: 1.13.2.1.2;
Pull up following revision(s) (requested by mrg in ticket #408):
libexec/httpd/content-bozo.c: revision 1.11
libexec/httpd/dir-index-bozo.c: revision 1.20
libexec/httpd/bozohttpd.h: revision 1.34
libexec/httpd/bozohttpd.c: revision 1.57
libexec/httpd/bozohttpd.8: revision 1.47
libexec/httpd/bozohttpd.c: revision 1.58
libexec/httpd/bozohttpd.8: revision 1.48
libexec/httpd/bozohttpd.c: revision 1.59
libexec/httpd/lua-bozo.c: revision 1.11
libexec/httpd/bozohttpd.c: revision 1.60
libexec/httpd/auth-bozo.c: revision 1.14
libexec/httpd/auth-bozo.c: revision 1.15
libexec/httpd/auth-bozo.c: revision 1.16

Update bozohttpd to 20141225:
- NUL terminate a string.
- don't truncate file sizes to 32 bits for directory indexes.
- Fixed off-by-one in virtualhost processing. Previous code was
checking if Host header is a prefix of any existing vhost.
This behaviour might be used to uncover existing vitual hosts
from the remote.
- Fixed memory leak in case of multiple authentication headers sent
by the client.
- Avoid array access out of bounds.
 1.13.2.2.4.2 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.13.2.2.4.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.13.2.1.2.3 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.13.2.1.2.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.13.2.1.2.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.18.16.1 10-Jun-2019  christos Sync with HEAD
 1.18.14.2 26-Jan-2019  pgoyette Sync with HEAD
 1.18.14.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.18.8.3 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.18.8.2 12-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1281:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6


Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.18.8.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.24.2.1 05-Mar-2021  martin Pull up the following (all via patch), requested by mrg in ticket #1221:

lib/lua/bozohttpd/Makefile (apply patch)
libexec/httpd/Makefile 1.30-1.31
libexec/httpd/Makefile.boot 1.7-1.9
libexec/httpd/auth-bozo.c 1.25-1.26
libexec/httpd/bozohttpd.8 1.80-1.87
libexec/httpd/bozohttpd.c 1.114-1.123,1.125-1.128
libexec/httpd/bozohttpd.h 1.61-1.68
libexec/httpd/cgi-bozo.c 1.49-1.53
libexec/httpd/content-bozo.c 1.17-1.20
libexec/httpd/daemon-bozo.c 1-.22
libexec/httpd/dir-index-bozo.c 1.33-1.34
libexec/httpd/main.c 1.23-1.27
libexec/httpd/printenv.lua 1.4-1.5
libexec/httpd/ssl-bozo.c 1.27-1.29
libexec/httpd/libbozohttpd/libbozohttpd.3 1.5-1.6
libexec/httpd/small/Makefile 1.4
libexec/httpd/testsuite/Makefile 1.14
libexec/httpd/testsuite/t16.in 1.1
libexec/httpd/testsuite/t16.out 1.1
libexec/httpd/testsuite/t17.in 1.1
libexec/httpd/testsuite/t17.out 1.1
libexec/httpd/testsuite/t18.in 1.1
libexec/httpd/testsuite/t18.out 1.1


Update to bozohttpd 20210227.
Apply lua build fix (no blocklist support on this branch).

changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.27.6.1 29-Jul-2025  martin Pull up following revision(s) (requested by mrg in ticket #1139):

libexec/httpd/CHANGES: revision 1.55
libexec/httpd/CHANGES: revision 1.56
libexec/httpd/cgi-bozo.c: revision 1.55
libexec/httpd/cgi-bozo.c: revision 1.56
libexec/httpd/bozohttpd.8: revision 1.93
libexec/httpd/bozohttpd.8: revision 1.94
libexec/httpd/bozohttpd.8: revision 1.95
libexec/httpd/bozohttpd.8: revision 1.96
libexec/httpd/bozohttpd.8: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.143
libexec/httpd/bozohttpd.8: revision 1.100
libexec/httpd/bozohttpd.c: revision 1.144
libexec/httpd/bozohttpd.8: revision 1.99
libexec/httpd/bozohttpd.c: revision 1.145
libexec/httpd/bozohttpd.c: revision 1.146
libexec/httpd/bozohttpd.c: revision 1.147
libexec/httpd/auth-bozo.c: revision 1.28
libexec/httpd/ssl-bozo.c: revision 1.33
libexec/httpd/ssl-bozo.c: revision 1.34
libexec/httpd/content-bozo.c: revision 1.22
libexec/httpd/main.c: revision 1.31

serve .iso as "application/octet-stream". bump version & copyright.

add a note about how to setup http -> https redirection.
bump documented version.

Fix memory leaks in bozo_cleanup

Fix hr_authrealm memory leak
hr_authrealm might be already set, so we need to free it before overwriting
the value

Remove unused variable (bp)

Fix off-by-one in bozo_decode_url_percent

In case of strings that end with '%', debug function was reading past buffer.
Removed unnecessary comment
Thanks leot@ for pointing this out

httpd(8): Add missing newline to `SSL Error' messages.
Matches the pattern in all other printf/syslog calls.

add some missing changes and bump the version.

s/supressing/suppressing/.

note this documents bozohttpd 20240126.

Bump bozohttpd version to today for mobile-friendly directory listing

bozohttpd(8): clarifications and editorial fixes

Clarify that -b also listens on an address and port
(overridden by -i address and/or -I port), as does -f.

If -i isn't given, all addresses are listened to.
Use literal instead of emphasis for Lua, paths, URLs (etc).

Add more cross-references to other options.

Split FILES into a tagged list and subsections describing
the behaviour.

drop duplicate "by default".
 1.100 16-Apr-2025  bad drop duplicate "by default".
 1.99 22-Nov-2024  lukem bozohttpd(8): clarifications and editorial fixes

Clarify that -b also listens on an address and port
(overridden by -i address and/or -I port), as does -f.
If -i isn't given, all addresses are listened to.

Use literal instead of emphasis for Lua, paths, URLs (etc).

Add more cross-references to other options.

Split FILES into a tagged list and subsections describing
the behaviour.
 1.98 07-Sep-2024  rillig man: fix month name
 1.97 28-Apr-2024  maya branches: 1.97.2;
Bump bozohttpd version to today for mobile-friendly directory listing
 1.96 04-Feb-2024  mrg note this documents bozohttpd 20240126.
 1.95 02-Feb-2024  andvar s/supressing/suppressing/.
 1.94 26-Jan-2024  mrg add some missing changes and bump the version.
 1.93 07-Jun-2023  mrg add a note about how to setup http -> https redirection.

bump documented version.
 1.92 12-Sep-2022  martin branches: 1.92.2;
Document the -q option.
 1.91 18-May-2022  mrg call this bozohttpd 20220517.
 1.90 04-Jan-2022  kim bozohttpd: remove obsolete .bzdirect handling

OK mrg@
 1.89 24-Aug-2021  mrg implement tls minimum version setting.

mostly from sunil@nimmagadda.net in PR#55830, though i moved the
member into the main http structure, so that it doesn't trigger
sslinfo being allocated via command line without the rest of the
ssl being setup (which then leads to crashes.)
 1.88 28-Feb-2021  mrg update version, dates, add emily to list of contributors. sort list.
 1.87 15-Oct-2020  wiz New sentence, new line. Fix xref.
 1.86 15-Oct-2020  mrg various updates from <henrik@gulbra.net> / freebsd. the list from Henrik:

bozohttpd.8:
o Added -d flag to the man page
o Moved -E flag in man page to keep alphabetic order
o Grammar fix for description of -E flag in man page
o Moved a word in the man description for the -f flag
o Made -f imply -b as a backwards-compatible shortcut
o Updated man description of -n to mention Lua scripts
o Moved -z below -Z to keep the uppercase options first

bozohttpd.c:
o Removed obsolete comment about ~user missing cgi-bin support
o Removed "/* ARGSUSED */" lines; was that a macro or a reminder?
o Added USE_ARG macro call for sig, which was otherwise not used
o Added USE_ARG macro call for msg (only used if debug is enabled)

bozohttpd.h:
o Fixed typo in the include guard (BOZOHTTOPD_H_ -> BOZOHTTPD_H_)
o Renamed have_all to have_core; it didn't mean "all" options

content-bozo.c:
o Added USE_ARG macro call for signo, which was otherwise not used
o Made -f imply -b as a backwards-compatible shortcut

main.c:
o Simplified -b text to be symmetric with that for the -f option
o Updated -C text to make "suffix" explicit; it's better than "arg"
o Changed to only show the -E description if have_user is true
o Always show the -e option, which incorrectly used the -E logic
o Renamed have_all to have_core; it didn't mean "all" options
o Added three missing tabs for the description of the -G option
o Updated -L text to make "prefix" explicit; it's better than "arg"
o Updated -M text to make "suffix" explicit; it's slightly better
o Added a previously missing description for the -n option
o Documented the otherwise obscure valid types for the -T option
o Shortened "username" to "user" to match the actual help text
o Moved handling of -c below that for -C to standardize the order
o Broke the enabling test for -C into two lines for consistency
o Inverted the enabling test for -E; this is what was meant, right?
o Removed the enabling test for -e, which should always be enabled

ssl-bozo.c:
o Added USE_ARG for httpd, which is not used if SSL has been excluded
 1.85 15-Oct-2020  mrg set -D_GNU_SOURCE in Makefile.boot. from hadrien.lacour@posteo.net.
also match %2F as well as %2f. from leah@vuxu.org.
introduce defines for "80" and "443". copyright maint.
 1.84 20-Aug-2020  mrg update for recent changes.
 1.83 13-Jul-2020  wiz Use Nx.
 1.82 13-Jul-2020  jruoho Do not report status code 500 to blocklistd(8) Add -DNO_BLOCKLIST_SUPPORT
to Makefile.boot.
 1.81 11-Jul-2020  jruoho Add blocklistd(8) support.
 1.80 06-Jul-2020  jmcneill Add -R flag to specify a README file to add at the bottom of directory
autoindex listings.
 1.79 28-Feb-2019  mrg branches: 1.79.2;
add ssl specific timeout value (30s). if SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.

mostly different from, but inspired from the patch in PR 50655
 1.78 17-Jan-2019  mrg - call this 20190116
- adjust the directory indexing again:
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
all from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>
 1.77 08-Jan-2019  mrg remove reference to deleted -r option. fixes PR#53840 from J. Lewis Muir.
 1.76 19-Dec-2018  mrg minor rewording. fix alphabeta ordering of contributors.
 1.75 04-Dec-2018  mrg use html tables for directory index.
from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>

call this bozohttpd 20181204.
 1.74 23-Nov-2018  mrg minor style fixes. simplify bozo_match_content_map().
 1.73 20-Nov-2018  mrg from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.


the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.


reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.


clean up option and usage handling some.
 1.72 19-Nov-2018  mrg note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin@netbsd.org
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.
 1.71 24-Aug-2018  wiz Remove trailing whitespace.
 1.70 24-Aug-2018  martin Bump date
 1.69 24-Aug-2018  martin Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@
 1.68 28-Nov-2017  wiz branches: 1.68.2; 1.68.4;
Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.
 1.67 07-Jul-2017  mrg fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!
 1.66 03-Jul-2017  wiz Remove workaround for ancient HTML generation code.
 1.65 31-Jan-2017  mrg branches: 1.65.4;
call this bozohttpd 20170201.
 1.64 20-Jan-2017  abhinav Fix typo: s/suport/support
 1.63 21-Dec-2016  abhinav branches: 1.63.2;
Fix sentences at a couple of places.
 1.62 11-Dec-2016  mrg there was a bug fix in july. call this 20160720.
 1.61 04-Oct-2016  mrg update the -V documentation to be more clear about what it does.
inspired by Swift Griggs on netbsd-users.
 1.60 24-May-2016  agc branches: 1.60.2;
As proposed in:

http://mail-index.netbsd.org/tech-userlevel/2016/05/18/msg009999.html

and

https://www.netbsd.org/~agc/bozo-20160517.diff

add a patch to httpd to return the version string of httpd itself, and use the
-G option on the command line to enable this. This gives httpd the ability to
show, from the command line, what version is running.

% /usr/build/obj/x86_64/usr/src/libexec/httpd/bozohttpd -G
bozohttpd version bozohttpd/20160415
%
 1.59 15-Apr-2016  mrg updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.58 27-Dec-2015  mrg several clean ups:

- bozostrdup() gains a request parameter, and uses it to determine
what sort of error handling is required
- bozo_strdup() dies
- size_arrays() reduced slightly, pushing error handling into the caller
- convert to size_t for some array indices
- bozo_set_pref() and bozo_init_prefs() gain httpd parameters
- apply a bunch of manual CSE to vastly reduce the number of times the
string "request->hr_httpd" appears.
- CGI parse_header() takes a request not httpd now

XXX: lua glue updated to call bozo_init_prefs() with htttpd parameter,
but i'm only guessing here.
 1.57 12-Dec-2015  christos - restrict the default list of ciphers to something more secure
- restrict ssl options
From Travis Paul
 1.56 29-Nov-2015  kamil Bump date for previous
 1.55 29-Nov-2015  kamil Synchronize SYNOPSIS with reality
 1.54 28-Oct-2015  shm * add CGI support for ~user translation (-E switch)
* add redirects to ~user translation
* fix bugs around ~user translation
* add schema detection for absolute redirects
* fixed few memory leaks
* bunch of minor tweaks
* removed -r support
* smarter redirects

OK mrg@
 1.53 13-Aug-2015  wiz Remove trailing space in boast.
 1.52 13-Aug-2015  shm Extend AUTHORS section. Nobody likes a braggart.

OK mrg@
 1.51 02-May-2015  mrg fix content type handling to not hard code (wrong) values for length,
but just call strlen() as needed. call this 20150501.

reported by Jan Danielsson for ".svg".
 1.50 16-Apr-2015  mrg install as bozohttpd/bozohttpd.8 as well as httpd.
 1.49 20-Mar-2015  mrg copyright maintenance, note shm@ in the manual and update the CHANGES
for recent changes. call this 20150320.
 1.48 25-Dec-2014  wiz Bring this man page back to this decade.
 1.47 25-Dec-2014  mrg call this 20141225.
 1.46 09-Feb-2014  mrg branches: 1.46.4;
- bump man page date
- strip :80 off virtual host names as they're the default
 1.45 09-Feb-2014  mrg some fixes for virtual hosting support from Rajeev V. Pillai:

- memory leaks in virtual host plugged
- ensure hr_host is only the host/port part when the request
contains the hostname in the URI not Host: header.


also update the references to the old http/1.1 draft rev 06
to RFC 2616 (fortunately, most sections hadn't moved.)
 1.44 02-Feb-2014  mrg update for 2014-02-01.
 1.43 02-Jan-2014  mrg sort the contributor list, and update the defines list to include lua.
 1.42 02-Jan-2014  mrg update version, date and copyright.
 1.41 12-Oct-2013  wiz Sort. More markup.
 1.40 12-Oct-2013  mbalmer it's Lua, not lua
 1.39 12-Oct-2013  mbalmer add Lua scripting support to bozohttpd, see httpd(8) for details
 1.38 11-Jul-2013  wiz netbsd.org -> NetBSD.org and use my @NetBSD.org address as well.
 1.37 11-Jul-2013  mrg - update CHANGES with recent changes
- export esacpe_html() and use it in directory indexing
- update manual to include recent contributors
 1.36 02-Mar-2013  ryoon Fix typo, releaases.
 1.35 04-Dec-2012  pgoyette Minor typo
 1.34 20-Feb-2012  wiz branches: 1.34.2;
Bump date for previous. Use more markup.
 1.33 20-Feb-2012  elric Check in very basic compressed file support. httpd will now serve
a precompressed .gz file if it exists, the client claims to support
gzip and the request is not ranged.
 1.32 18-Nov-2011  mrg branches: 1.32.2; 1.32.6; 1.32.8;
merge bozohttpd 20111118
 1.31 17-Nov-2011  wiz Bump date for previous.
 1.30 17-Nov-2011  mrg allow the -I option to be useful in non-daemon mode, by letting it force
the returned port number
 1.29 24-Apr-2011  jmmv branches: 1.29.4;
List myself as a contributor.
 1.28 24-Apr-2011  jmmv Remove the "This option..." sentence prefix for all option definitions.
Adjust some sentences so that the new text makes sense. OK mrg@.
 1.27 02-Apr-2011  mbalmer fix typo, bump date
 1.26 29-Mar-2011  jmmv Add pid file support: if the new -P option is provided, it specifies the
location of the pid file to create.

OKed by mrg@.
 1.25 10-Mar-2011  reed Fix typo.
 1.24 21-Sep-2010  wiz Fix typo.
 1.23 20-Sep-2010  mrg merge bozohttpd 20100920
 1.22 22-Jun-2010  wiz Fix typo, remove trailing whitespace.
 1.21 22-Jun-2010  mrg merge bozohttpd 20100621
 1.20 17-Jun-2010  mrg merge bozohttpd 20100617.
 1.19 15-May-2010  mrg merge bozohttpd 20100512
 1.18 10-May-2010  mrg merge 20100510 properly
 1.17 10-May-2010  mrg merge bozohttpd 20100509.
 1.16 22-Nov-2009  mbalmer s/the the/the/
 1.15 23-May-2009  wiz Sort options in SYNOPSIS.
 1.14 23-May-2009  mrg merge bozohttpd 20090522
 1.13 18-Apr-2009  mrg merge bozohttpd 20090418. remove a couple of minor do-nothing local
changes that don't need to cause conflicts.
 1.12 18-Apr-2009  wiz Remove duplicate part (pasto?). Remove trailing whitespace.
Use Aq where easily possible.
 1.11 18-Apr-2009  mrg merge bozohttpd 20090417
 1.10 16-Apr-2009  snj Fix typo in email address. Pointed out by Mirko Thiesen in PR 41229.
 1.9 11-Mar-2009  joerg Fix preamble
 1.8 06-Dec-2008  wiz branches: 1.8.2;
Move all subsections to main DESCRIPTION, noted by John Nemeth.
 1.7 06-Dec-2008  wiz Fix some more mdoclint warnings.
Add commas in enumerations.
 1.6 06-Dec-2008  jnemeth add -t chrootdir to SYNOPSIS, mdoclint
 1.5 13-Sep-2008  reed branches: 1.5.2; 1.5.4; 1.5.10;
Fix spelling of my name. While here add my middle initial.
 1.4 03-Mar-2008  mrg branches: 1.4.2; 1.4.6;
merge bozohttpd 20080303
 1.3 03-Mar-2008  mrg use BUILDSYMLINKS to not have to rename bozohttpd.8 while still
having this manual installed as httpd.8. now updates from my
repo to bozohttpd.8 will appear in this file.
 1.2 16-Oct-2007  tls branches: 1.2.4;
Move bozohttpd.8 to httpd.8
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.12 18-Nov-2011  mrg update to bozohttpd 20111118. nothing major is missing here but
the changes since the prior import were:

o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well
 1.1.1.11 20-Sep-2010  mrg initial import of bozohttpd 20100920. the only change missing in here is:

o fix dynamic CGI content maps, from rudolf
 1.1.1.10 22-Jun-2010  mrg initial import of bozohttpd 20100621. change include:

o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
 1.1.1.9 17-Jun-2010  mrg initial import of bozohttpd 20100617. recent changes:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour
 1.1.1.8 15-May-2010  mrg import bozohttpd 20100512. it includes these changes:
o fix SSL mode. from rtr.
 1.1.1.7 10-May-2010  mrg re-do this with the right sources this time.
 1.1.1.6 10-May-2010  mrg import bozohttpd 20100509. it has these changes:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
 1.1.1.5 23-May-2009  mrg import bozohttpd 20090522, which has these changes:
o close more leaking file descriptors for CGI and daemon mode
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child
 1.1.1.4 18-Apr-2009  mrg import bozohttpd 20090418. changes include:

o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet

this covers PR#38489 and PR#40079, as well some some issues reported
privately.
 1.1.1.3 18-Apr-2009  mrg import latest bozohttpd sources. changes include:

o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.2 03-Mar-2008  mrg import latest bozohttpd. changes include:

o fix some cgi header processing, from <thelsdj@gmail.com>
o add simple Range: header processing, from <bad@bsd.de>
o man page fixes, from NetBSD
o clean up various parts, from NetBSD
o prefix some function names with "bozo"
o align directory indexing <hr> markers
o clean up some code GCC4 grumbled about
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.2.4.1 24-Mar-2008  keiichi sync with head.
 1.4.6.1 24-Sep-2008  wrstuden Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
 1.4.2.2 23-Mar-2008  matt sync with HEAD
 1.4.2.1 03-Mar-2008  matt file bozohttpd.8 was added on branch matt-armv6 on 2008-03-23 00:41:24 +0000
 1.5.10.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.5.4.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.5.2.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.8.2.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.29.4.3 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.29.4.2 16-Jan-2013  yamt sync with (a bit old) head
 1.29.4.1 17-Apr-2012  yamt sync with head
 1.32.8.3 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437:
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.32.8.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.32.8.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.32.6.3 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.32.6.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.32.6.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.32.2.3 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.32.2.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.32.2.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.34.2.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.34.2.2 23-Jun-2013  tls resync from head
 1.34.2.1 25-Feb-2013  tls resync with head
 1.46.4.10 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.46.4.9 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.46.4.8 12-Feb-2017  snj branches: 1.46.4.8.2;
Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.46.4.7 23-Dec-2016  snj Pull up following revision(s) (requested by mrg in ticket #1309):
libexec/httpd/CHANGES: revisions 1.23, 1.24
libexec/httpd/bozohttpd.8: revisions 1.60-1.62
libexec/httpd/bozohttpd.c: revisions 1.81-1.84
libexec/httpd/bozohttpd.h: revision 1.46
libexec/httpd/cgi-bozo.c: revision 1.35
libexec/httpd/content-bozo.c: revision 1.14
libexec/httpd/main.c: revisions 1.14-1.16
libexec/httpd/testsuite/Makefile: revision 1.6
libexec/httpd/testsuite/test-bigfile: revision 1.3
libexec/httpd/testsuite/test-simple: revisions 1.1, 1.2
update bozohttpd to 2016072:
- fix memory leak
- addd -G option to display version
- fix some content type issues
- fix issues in testsuite
 1.46.4.6 15-Apr-2016  snj branches: 1.46.4.6.2;
Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.46.4.5 10-Apr-2016  martin Catch up to -current (via patch), requested by mspo in #1141:

libexec/httpd/CHANGES up to 1.21
libexec/httpd/Makefile up to 1.26
libexec/httpd/auth-bozo.c up to 1.18
libexec/httpd/bozohttpd.8 up to 1.58
libexec/httpd/bozohttpd.c up to 1.79
libexec/httpd/bozohttpd.h up to 1.44
libexec/httpd/cgi-bozo.c up to 1.32
libexec/httpd/content-bozo.c up to 1.13
libexec/httpd/daemon-bozo.c up to 1.17
libexec/httpd/dir-index-bozo.c up to 1.25
libexec/httpd/lua-bozo.c up to 1.14
libexec/httpd/main.c up to 1.13
libexec/httpd/netbsd_queue.h up to 1.1
libexec/httpd/printenv.lua up to 1.3
libexec/httpd/ssl-bozo.c up to 1.22
libexec/httpd/tilde-luzah-bozo.c up to 1.14
libexec/httpd/testsuite/Makefile up to 1.5
libexec/httpd/testsuite/test-bigfile up to 1.2

Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
 1.46.4.4 09-May-2015  snj branches: 1.46.4.4.2;
Pull up following revision(s) (requested by mrg in ticket #743):
libexec/httpd/bozohttpd.8: revision 1.51
libexec/httpd/bozohttpd.c: revision 1.64
libexec/httpd/bozohttpd.h: revision 1.35
libexec/httpd/cgi-bozo.c: revision 1.27
libexec/httpd/content-bozo.c: revision 1.12
fix content type handling to not hard code (wrong) values for length,
but just call strlen() as needed. call this 20150501.
reported by Jan Danielsson for ".svg".
 1.46.4.3 23-Apr-2015  snj Pull up following revision(s) (requested by mrg in ticket #715):
distrib/sets/lists/base/mi: revision 1.1100
distrib/sets/lists/man/mi: revision 1.1499 via patch
libexec/httpd/Makefile: revision 1.23
libexec/httpd/bozohttpd.8: revision 1.50
libexec/httpd/cgi-bozo.c: revision 1.26
install as bozohttpd/bozohttpd.8 as well as httpd.
--
Fix deref "command" after "free(file)", from KIYOHARA Takashi
 1.46.4.2 19-Apr-2015  msaitoh Pull up following revision(s) (requested by mrg in ticket #705):
libexec/httpd/CHANGES: revision 1.20
libexec/httpd/bozohttpd.8: revision 1.49
libexec/httpd/bozohttpd.c: revision 1.62-1.63
don't quote /. it doesn't work. this should fix PR#49765.
copyright maintenance, note shm@ in the manual and update the CHANGES
for recent changes. call this 20150320.
 1.46.4.1 12-Jan-2015  martin Pull up following revision(s) (requested by mrg in ticket #408):
libexec/httpd/content-bozo.c: revision 1.11
libexec/httpd/dir-index-bozo.c: revision 1.20
libexec/httpd/bozohttpd.h: revision 1.34
libexec/httpd/bozohttpd.c: revision 1.57
libexec/httpd/bozohttpd.8: revision 1.47
libexec/httpd/bozohttpd.c: revision 1.58
libexec/httpd/bozohttpd.8: revision 1.48
libexec/httpd/bozohttpd.c: revision 1.59
libexec/httpd/lua-bozo.c: revision 1.11
libexec/httpd/bozohttpd.c: revision 1.60
libexec/httpd/auth-bozo.c: revision 1.14
libexec/httpd/auth-bozo.c: revision 1.15
libexec/httpd/auth-bozo.c: revision 1.16

Update bozohttpd to 20141225:
- NUL terminate a string.
- don't truncate file sizes to 32 bits for directory indexes.
- Fixed off-by-one in virtualhost processing. Previous code was
checking if Host header is a prefix of any existing vhost.
This behaviour might be used to uncover existing vitual hosts
from the remote.
- Fixed memory leak in case of multiple authentication headers sent
by the client.
- Avoid array access out of bounds.
 1.46.4.8.2.2 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.46.4.8.2.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.46.4.6.2.2 13-Mar-2017  skrll Sync with netbsd-7-1-RELEASE
 1.46.4.6.2.1 18-Jan-2017  skrll Sync with netbsd-5
 1.46.4.4.2.5 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.46.4.4.2.4 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.46.4.4.2.3 12-Feb-2017  snj Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.46.4.4.2.2 23-Dec-2016  snj Pull up following revision(s) (requested by mrg in ticket #1309):
libexec/httpd/CHANGES: revisions 1.23, 1.24
libexec/httpd/bozohttpd.8: revisions 1.60-1.62
libexec/httpd/bozohttpd.c: revisions 1.81-1.84
libexec/httpd/bozohttpd.h: revision 1.46
libexec/httpd/cgi-bozo.c: revision 1.35
libexec/httpd/content-bozo.c: revision 1.14
libexec/httpd/main.c: revisions 1.14-1.16
libexec/httpd/testsuite/Makefile: revision 1.6
libexec/httpd/testsuite/test-bigfile: revision 1.3
libexec/httpd/testsuite/test-simple: revisions 1.1, 1.2
update bozohttpd to 2016072:
- fix memory leak
- addd -G option to display version
- fix some content type issues
- fix issues in testsuite
 1.46.4.4.2.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.60.2.3 20-Mar-2017  pgoyette Sync with HEAD
 1.60.2.2 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.60.2.1 04-Nov-2016  pgoyette Sync with HEAD
 1.63.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.65.4.3 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.65.4.2 12-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1281:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6


Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.65.4.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.68.4.1 10-Jun-2019  christos Sync with HEAD
 1.68.2.4 18-Jan-2019  pgoyette Synch with HEAD
 1.68.2.3 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.68.2.2 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.68.2.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.79.2.1 05-Mar-2021  martin Pull up the following (all via patch), requested by mrg in ticket #1221:

lib/lua/bozohttpd/Makefile (apply patch)
libexec/httpd/Makefile 1.30-1.31
libexec/httpd/Makefile.boot 1.7-1.9
libexec/httpd/auth-bozo.c 1.25-1.26
libexec/httpd/bozohttpd.8 1.80-1.87
libexec/httpd/bozohttpd.c 1.114-1.123,1.125-1.128
libexec/httpd/bozohttpd.h 1.61-1.68
libexec/httpd/cgi-bozo.c 1.49-1.53
libexec/httpd/content-bozo.c 1.17-1.20
libexec/httpd/daemon-bozo.c 1-.22
libexec/httpd/dir-index-bozo.c 1.33-1.34
libexec/httpd/main.c 1.23-1.27
libexec/httpd/printenv.lua 1.4-1.5
libexec/httpd/ssl-bozo.c 1.27-1.29
libexec/httpd/libbozohttpd/libbozohttpd.3 1.5-1.6
libexec/httpd/small/Makefile 1.4
libexec/httpd/testsuite/Makefile 1.14
libexec/httpd/testsuite/t16.in 1.1
libexec/httpd/testsuite/t16.out 1.1
libexec/httpd/testsuite/t17.in 1.1
libexec/httpd/testsuite/t17.out 1.1
libexec/httpd/testsuite/t18.in 1.1
libexec/httpd/testsuite/t18.out 1.1


Update to bozohttpd 20210227.
Apply lua build fix (no blocklist support on this branch).

changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.92.2.1 29-Jul-2025  martin Pull up following revision(s) (requested by mrg in ticket #1139):

libexec/httpd/CHANGES: revision 1.55
libexec/httpd/CHANGES: revision 1.56
libexec/httpd/cgi-bozo.c: revision 1.55
libexec/httpd/cgi-bozo.c: revision 1.56
libexec/httpd/bozohttpd.8: revision 1.93
libexec/httpd/bozohttpd.8: revision 1.94
libexec/httpd/bozohttpd.8: revision 1.95
libexec/httpd/bozohttpd.8: revision 1.96
libexec/httpd/bozohttpd.8: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.143
libexec/httpd/bozohttpd.8: revision 1.100
libexec/httpd/bozohttpd.c: revision 1.144
libexec/httpd/bozohttpd.8: revision 1.99
libexec/httpd/bozohttpd.c: revision 1.145
libexec/httpd/bozohttpd.c: revision 1.146
libexec/httpd/bozohttpd.c: revision 1.147
libexec/httpd/auth-bozo.c: revision 1.28
libexec/httpd/ssl-bozo.c: revision 1.33
libexec/httpd/ssl-bozo.c: revision 1.34
libexec/httpd/content-bozo.c: revision 1.22
libexec/httpd/main.c: revision 1.31

serve .iso as "application/octet-stream". bump version & copyright.

add a note about how to setup http -> https redirection.
bump documented version.

Fix memory leaks in bozo_cleanup

Fix hr_authrealm memory leak
hr_authrealm might be already set, so we need to free it before overwriting
the value

Remove unused variable (bp)

Fix off-by-one in bozo_decode_url_percent

In case of strings that end with '%', debug function was reading past buffer.
Removed unnecessary comment
Thanks leot@ for pointing this out

httpd(8): Add missing newline to `SSL Error' messages.
Matches the pattern in all other printf/syslog calls.

add some missing changes and bump the version.

s/supressing/suppressing/.

note this documents bozohttpd 20240126.

Bump bozohttpd version to today for mobile-friendly directory listing

bozohttpd(8): clarifications and editorial fixes

Clarify that -b also listens on an address and port
(overridden by -i address and/or -I port), as does -f.

If -i isn't given, all addresses are listened to.
Use literal instead of emphasis for Lua, paths, URLs (etc).

Add more cross-references to other options.

Split FILES into a tagged list and subsections describing
the behaviour.

drop duplicate "by default".
 1.97.2.1 02-Aug-2025  perseant Sync with HEAD
 1.2 19-Apr-2009  mrg oops. these files should never have made it in here.
 1.1 18-Apr-2009  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 18-Apr-2009  mrg import bozohttpd 20090418. changes include:

o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet

this covers PR#38489 and PR#40079, as well some some issues reported
privately.
 1.2 19-Apr-2009  mrg oops. these files should never have made it in here.
 1.1 18-Apr-2009  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 18-Apr-2009  mrg import bozohttpd 20090418. changes include:

o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet

this covers PR#38489 and PR#40079, as well some some issues reported
privately.
 1.149 27-Jun-2025  andvar Grammar and spelling fixes, mainly in comments. A few in documentation,
logging, test description, and SCSI ASC/ASCQ assignment descriptions.
 1.148 04-Oct-2024  rillig libexec/httpd: fix or suppress lint warnings

No binary change.
 1.147 28-Apr-2024  maya branches: 1.147.2;
Bump bozohttpd version to today for mobile-friendly directory listing
 1.146 26-Jan-2024  mrg add some missing changes and bump the version.
 1.145 20-Sep-2023  shm Fix off-by-one in bozo_decode_url_percent

In case of strings that end with '%', debug function was reading past buffer.
 1.144 07-Sep-2023  shm Fix memory leaks in bozo_cleanup
 1.143 07-Jun-2023  mrg serve .iso as "application/octet-stream". bump version & copyright.
 1.142 12-Sep-2022  martin branches: 1.142.2;
Add a -q option to make http quiet (no log messages).

Usefull when running multiple instances and some for (high traffic)
APIs e.g. to receive log data from appliences - it makes not sense
to duplicate the whole log in the xferlog file (but we can't configure
that at the syslog level due to other httpd instances using that).
 1.141 18-May-2022  mrg call this bozohttpd 20220517.
 1.140 10-Apr-2022  andvar fix various typos in comments and output/log messages.
 1.139 14-Mar-2022  mrg in bozo_init_prefs(), default to returning 1 (success) and if a
bozo_set_pref() fails, return 0 instead. fixes PR#54785 but with
a different patch.
 1.138 04-Jan-2022  kim bozohttpd: remove obsolete .bzdirect handling

OK mrg@
 1.137 10-Dec-2021  andvar s/occured/occurred/ in comments, log messages and man pages.
 1.136 24-Aug-2021  mrg implement tls minimum version setting.

mostly from sunil@nimmagadda.net in PR#55830, though i moved the
member into the main http structure, so that it doesn't trigger
sslinfo being allocated via command line without the rest of the
ssl being setup (which then leads to crashes.)
 1.135 24-Aug-2021  mrg rework the bindport setting, inspired by part of the patch
from PR#56367 (thanks JP.)
 1.134 24-Aug-2021  mrg remove unused parameters, and clean up incompatible options.

from <henrik@gulbra.net>
 1.133 21-Aug-2021  andvar fix some more typos in comments/log messages, improve wording as well.
 1.132 05-May-2021  mrg don't assume host BUFSIZ is sufficent. small BUFSIZ leads to
always happens errors in the testsuite. switch all these buffers
to be 4KiB sized. reported by embr <git@liclac.eu>
 1.131 05-May-2021  mrg include <stdint.h>. bozo_unconst() uses uintptr_t defined here.
from embr <git@liclac.eu>.
 1.130 08-Apr-2021  rillig bozohttpd: fix argument type for functions from <ctype.h>

Found by the recently added check to lint (message 342).

ok mrg@
 1.129 04-Apr-2021  mrg avoid DoS in initial request size, which is now bounded at 16KiB.
reported by Justin Parrott in PR#56085.
 1.128 27-Feb-2021  mrg changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid
 1.127 27-Feb-2021  mrg belated call version 20210211 after previous memory leak fix.
 1.126 11-Feb-2021  mrg clean up issues detected by address sanitizer (just some memory
leaks that only apply to the library version.)

XXX: the handling of hr_file and its variants is more crappy
again - the prior clean up is slightly less clean now, but at
least it does not leak memory.

XXX2: cgi-bin test hangs with address sanitizer. don't know
why yet..
 1.125 11-Feb-2021  mrg changes in bozohttpd 20210210:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
 1.124 19-Nov-2020  hannken Bozohttpd clobbers files greater than 4GB on 32bit archs.

Make sure the alignment mask derived from pagesize is an off_t.
 1.123 15-Oct-2020  mrg various updates from <henrik@gulbra.net> / freebsd. the list from Henrik:

bozohttpd.8:
o Added -d flag to the man page
o Moved -E flag in man page to keep alphabetic order
o Grammar fix for description of -E flag in man page
o Moved a word in the man description for the -f flag
o Made -f imply -b as a backwards-compatible shortcut
o Updated man description of -n to mention Lua scripts
o Moved -z below -Z to keep the uppercase options first

bozohttpd.c:
o Removed obsolete comment about ~user missing cgi-bin support
o Removed "/* ARGSUSED */" lines; was that a macro or a reminder?
o Added USE_ARG macro call for sig, which was otherwise not used
o Added USE_ARG macro call for msg (only used if debug is enabled)

bozohttpd.h:
o Fixed typo in the include guard (BOZOHTTOPD_H_ -> BOZOHTTPD_H_)
o Renamed have_all to have_core; it didn't mean "all" options

content-bozo.c:
o Added USE_ARG macro call for signo, which was otherwise not used
o Made -f imply -b as a backwards-compatible shortcut

main.c:
o Simplified -b text to be symmetric with that for the -f option
o Updated -C text to make "suffix" explicit; it's better than "arg"
o Changed to only show the -E description if have_user is true
o Always show the -e option, which incorrectly used the -E logic
o Renamed have_all to have_core; it didn't mean "all" options
o Added three missing tabs for the description of the -G option
o Updated -L text to make "prefix" explicit; it's better than "arg"
o Updated -M text to make "suffix" explicit; it's slightly better
o Added a previously missing description for the -n option
o Documented the otherwise obscure valid types for the -T option
o Shortened "username" to "user" to match the actual help text
o Moved handling of -c below that for -C to standardize the order
o Broke the enabling test for -C into two lines for consistency
o Inverted the enabling test for -E; this is what was meant, right?
o Removed the enabling test for -e, which should always be enabled

ssl-bozo.c:
o Added USE_ARG for httpd, which is not used if SSL has been excluded
 1.122 15-Oct-2020  mrg set -D_GNU_SOURCE in Makefile.boot. from hadrien.lacour@posteo.net.
also match %2F as well as %2f. from leah@vuxu.org.
introduce defines for "80" and "443". copyright maint.
 1.121 05-Sep-2020  mrg avoid passing NULL pointers to printf() like functions and %s.
 1.120 20-Aug-2020  mrg call this bozohttpd/20200820
 1.119 20-Aug-2020  mrg compare mmap return again MAP_FAILED not -1 or 0.
 1.118 20-Aug-2020  spz send close_notify for the ssl connection before closing the TCP connection
Thanks to Dr. Thomas Orgis for reporting the issue.
 1.117 13-Jul-2020  jruoho Do not report status code 500 to blocklistd(8) Add -DNO_BLOCKLIST_SUPPORT
to Makefile.boot.
 1.116 11-Jul-2020  jruoho Add blocklistd(8) support.
 1.115 06-Jul-2020  jmcneill Add -R flag to specify a README file to add at the bottom of directory
autoindex listings.
 1.114 07-Jun-2020  fox libexec/httpd: Fix the possible -Werror=stringop-truncation

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@, mrg@
 1.113 28-Feb-2019  mrg branches: 1.113.2;
call this bozohttpd 20190228, and merge the CHANGES entries from the
previous release.
 1.112 28-Feb-2019  mrg add ssl specific timeout value (30s). if SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.

mostly different from, but inspired from the patch in PR 50655
 1.111 22-Jan-2019  mrg o don't display special files in the directory index. they aren't
served, but links to them are generated.
 1.110 18-Jan-2019  mrg rework size_arrays():
- avoid calloc, use bozomalloc
- minor CSE
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.) found by clang static analyzer
from rajeev_v_pillai.

pass httpd to size_arrays() now.
free(NULL) is legal.
 1.109 18-Jan-2019  mrg fix a few problems pointed out by clang static analyzer, from rajeev_v_pillai:

- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual(). this one is tricky as
the original code was:
free(request->hr_file);
request->hr_file = bozostrdup(httpd, request, s ? s : "/");
however, bozostrdup() may reference request->hr_file.
 1.108 17-Jan-2019  mrg - call this 20190116
- adjust the directory indexing again:
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
all from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>
 1.107 15-Dec-2018  leot Document last changes and bump version to 20181215

Suggested by <mrg>, thanks! (Possible mistakes are mine though!)
 1.106 15-Dec-2018  leot Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
 1.105 15-Dec-2018  leot Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.

Problem reported by JP via tech-security@ and discussed with <mrg>, thanks!
 1.104 15-Dec-2018  leot Avoid possible NULL dereference when sending a big request that timeout.

Problem reported by <maya> and reviewed by <maya> and <mrg>, thanks!
 1.103 15-Dec-2018  maya strings.h for strcasecmp (on linux)
 1.102 15-Dec-2018  maya Check against BOZO_HEADERS_MAX_SIZE in a way that isn't prone to overflow.
Note that this isn't reachable in practice as big requests time out.
 1.101 04-Dec-2018  mrg use html tables for directory index.
from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>

call this bozohttpd 20181204.
 1.100 04-Dec-2018  mrg avoid sign extension in % handling (and printing 0xFFFFFF before
wanted values.) from Rajeev V. Pillai.
 1.99 25-Nov-2018  mrg fix -X option parsing. noted by Rajeev V. Pillai.
 1.98 24-Nov-2018  mrg avoid c99ism.
 1.97 24-Nov-2018  christos - add FALLTHROUGH comment
- one return is usually enough.
 1.96 24-Nov-2018  mrg call this bozohttpd 20181124.
 1.95 24-Nov-2018  mrg s/time/val/ to avoid shadowing a global indentifier.
 1.94 23-Nov-2018  mrg minor style fixes. simplify bozo_match_content_map().
 1.93 22-Nov-2018  mrg many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines
 1.92 21-Nov-2018  mrg use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)
 1.91 21-Nov-2018  mrg - move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.
 1.90 20-Nov-2018  mrg from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.


the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.


reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.


clean up option and usage handling some.
 1.89 19-Nov-2018  mrg fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.
 1.88 24-Aug-2018  martin Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@
 1.87 28-Jan-2018  maya branches: 1.87.2; 1.87.4;
Use a protocol-agnostic URL (don't degrade HTTPS->HTTP)

Suggested by Travis Paul in PR bin/52958.
 1.86 05-Feb-2017  mrg branches: 1.86.4;
uh, this is actually called 20170201 :-)
 1.85 31-Jan-2017  mrg call this bozohttpd 20170201.
 1.84 11-Dec-2016  mrg branches: 1.84.2;
there was a bug fix in july. call this 20160720.
 1.83 04-Oct-2016  mrg update the -V documentation to be more clear about what it does.
inspired by Swift Griggs on netbsd-users.
 1.82 30-Jun-2016  mrg branches: 1.82.2;
avoid an impossible case the compiler can't quite tell.
 1.81 24-May-2016  agc As proposed in:

http://mail-index.netbsd.org/tech-userlevel/2016/05/18/msg009999.html

and

https://www.netbsd.org/~agc/bozo-20160517.diff

add a patch to httpd to return the version string of httpd itself, and use the
-G option on the command line to enable this. This gives httpd the ability to
show, from the command line, what version is running.

% /usr/build/obj/x86_64/usr/src/libexec/httpd/bozohttpd -G
bozohttpd version bozohttpd/20160415
%
 1.80 15-Apr-2016  mrg updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.79 02-Jan-2016  elric Fix bug in cleanup of reply headers.
 1.78 02-Jan-2016  elric Add the concept of ``reply headers'', that is a SIMPLEQ of headers that
will be included in the HTTP reply. We define this as we are about to
add an authentication method that may need to have a conversation with
the client.
 1.77 31-Dec-2015  mrg bump the version; we have real fixes now.
 1.76 29-Dec-2015  mrg rewrite the redirection url generation code to use bozoasprintf().
 1.75 29-Dec-2015  mrg - convert most asprintf() calls to bozoasprintf().
- don't call getpwuid(0) if we don't need to, or fail it it fails,
and remove the 'username' member of bozohttpd_t since it is not
used outside of bozo_setup().
 1.74 28-Dec-2015  mrg rename bozo_err/bozo_warn/bozo_asprintf to bozoerr/etc.
new rule is that function that mirror libc-style functions get no underscore.
 1.73 27-Dec-2015  mrg several clean ups:

- bozostrdup() gains a request parameter, and uses it to determine
what sort of error handling is required
- bozo_strdup() dies
- size_arrays() reduced slightly, pushing error handling into the caller
- convert to size_t for some array indices
- bozo_set_pref() and bozo_init_prefs() gain httpd parameters
- apply a bunch of manual CSE to vastly reduce the number of times the
string "request->hr_httpd" appears.
- CGI parse_header() takes a request not httpd now

XXX: lua glue updated to call bozo_init_prefs() with htttpd parameter,
but i'm only guessing here.
 1.72 12-Dec-2015  christos Introduce bozo_strdup and bozo_asprintf to add error checking and reduce
code duplication.

Note that bozo_strdup is different that bozostrdup; the _ routines exit
loging error to syslog or stderr, whereas the non _ routines send error
responses to the http client.
 1.71 31-Oct-2015  christos handle asprintf errors consistently.
 1.70 30-Oct-2015  christos fix wrong variable
 1.69 30-Oct-2015  christos simplify
 1.68 30-Oct-2015  christos - don't use alloca and then check if alloca returns null and then try to
free it. Allocating from the stack does not return null, and freeing it
will have unpredictable results. use malloc instead.
- now we are using malloc remove -Wno-stack-protector kludge
 1.67 28-Oct-2015  shm * add CGI support for ~user translation (-E switch)
* add redirects to ~user translation
* fix bugs around ~user translation
* add schema detection for absolute redirects
* fixed few memory leaks
* bunch of minor tweaks
* removed -r support
* smarter redirects

OK mrg@
 1.66 16-Jul-2015  shm Fix handling path with multiple slashes at the beginning
Fix redirections escaping for user support

OK mrg@
 1.65 09-Jul-2015  shm Remove d_namelen as it's an BSD extension. Fix building bozohttpd on SunOS.

OK mrg@
 1.64 02-May-2015  mrg fix content type handling to not hard code (wrong) values for length,
but just call strlen() as needed. call this 20150501.

reported by Jan Danielsson for ".svg".
 1.63 20-Mar-2015  mrg copyright maintenance, note shm@ in the manual and update the CHANGES
for recent changes. call this 20150320.
 1.62 20-Mar-2015  mrg don't quote /. it doesn't work. this should fix PR#49765.
 1.61 27-Jan-2015  snj spit out a 403 not just when an open() fails with EPERM, but with
EACCES as well.
 1.60 25-Dec-2014  mrg call this 20141225.
 1.59 21-Nov-2014  shm Fixed memory leak in case of multiple authentication headers sent by the
client.

OK mrg@
 1.58 21-Nov-2014  shm Fixed off-by-one in virtualhost processing. Previous code was checking if
Host header is a prefix of any existing vhost. This behaviour might be used to
uncover existing vitual hosts from the remote.

OK @mrg
 1.57 10-Oct-2014  mrg don't truncate file sizes to 32 bits for directory indexes.
 1.56 17-Jul-2014  mrg branches: 1.56.2;
call this 20140717.
 1.55 17-Jul-2014  mrg rewrite much of the SSL code:
- handle errors in many places they weren't properly
- make SSL_accept() an error the main code notices
- expand bozo_ssl_err() to include bozo_ssl_warn(), bozo_clear_ssl_queue()
- remove empty bozo_ssl_flush()
 1.54 08-Jul-2014  mrg call this bozohttpd 20140708, and add/fix a couple of CHANGES entries.
 1.53 08-Jul-2014  mrg avoid truncating a directory path when using snprintf(), but instead
detect and return an error.

found and fixed by shm@netbsd.
 1.52 02-Jul-2014  shm Handle ENAMETOOLONG to return 404 error instead of 500.

OK mrg@
 1.51 01-Jul-2014  shm * bozo_clean_request free(3) clean up (removed needless checks)
* HEAD method no longer returns response body on error
* fixed bug with multiple bozo_http_error calls caused by fix_url_percent

OK @mrg
 1.50 17-May-2014  mrg bump version, note .svg support.
 1.49 09-Feb-2014  mrg branches: 1.49.2;
- bump man page date
- strip :80 off virtual host names as they're the default
 1.48 09-Feb-2014  mrg some fixes for virtual hosting support from Rajeev V. Pillai:

- memory leaks in virtual host plugged
- ensure hr_host is only the host/port part when the request
contains the hostname in the URI not Host: header.


also update the references to the old http/1.1 draft rev 06
to RFC 2616 (fortunately, most sections hadn't moved.)
 1.47 02-Feb-2014  mrg update for 2014-02-01.
 1.46 30-Jan-2014  mrg move a variable into the scope of its use, where the assignment
has already validated the pointers used. fixes a bug reported
in private email from dogcow@.
 1.45 02-Jan-2014  mrg - update CHANGES with recent changes
- update version to 20140102
- update copyrights
- use getcwd() over getwd()
- fix lean build (don't include lua)
 1.44 12-Oct-2013  mbalmer no need to check free() arguments against NULL
 1.43 12-Oct-2013  mbalmer add Lua scripting support to bozohttpd, see httpd(8) for details
 1.42 12-Oct-2013  mbalmer remove trailing whitespace
 1.41 11-Jul-2013  mrg copyright maint.
 1.40 11-Jul-2013  mrg - update CHANGES with recent changes
- export esacpe_html() and use it in directory indexing
- update manual to include recent contributors
 1.39 27-Jun-2013  martin Check for needed authentication even before redirecting.
 1.38 27-Jun-2013  martin Fix debug output for redirects
 1.37 27-Jun-2013  martin Fix copy&pasto in debug output
 1.36 27-Jun-2013  martin After handling a request by sending a redirect, do not proceed with the normal
request handling (which would typically add error output after the end
of the redirect message).
 1.35 27-Jun-2013  martin Redo previous (fixing a memory leak introduced), and while there rework
virtual server support - in daemonized mode mixed virtual and "main"
server usage would alter the virtual hostname depending on order of
requests.
To fix, move the effective virtual hostname into the request structure
and leave the httpd server description static.
 1.34 23-Jun-2013  martin Do not keep pointers into a readdir result (which will become invalid
when closing the directory) - strdup() it instead.
Fixes the "bogus redirects" part of PR bin/47925 (atf test case
forthcoming)
 1.33 09-Mar-2013  mrg fix PR 47629, using a slightly different patch to the one in the PR.

this modifies escape_rfc3986() to escape '%' itself, and to properly
track the buffer size and nul out the final byte, not some random
byte that may actually be unmapped.
 1.32 19-Jul-2012  mrg branches: 1.32.2;
when generating URIs escape various characters as specified in RFC 3986.
this makes, among other things, files/dirs with "?" work with dir indexing.
 1.31 20-Feb-2012  elric Check in very basic compressed file support. httpd will now serve
a precompressed .gz file if it exists, the client claims to support
gzip and the request is not ranged.
 1.30 18-Nov-2011  mrg branches: 1.30.2; 1.30.6; 1.30.8;
merge bozohttpd 20111118
 1.29 17-Nov-2011  mrg allow the -I option to be useful in non-daemon mode, by letting it force
the returned port number
 1.28 27-Aug-2011  joerg branches: 1.28.2;
Don't check for __attribute__ being defined, it won't. Check for GCC 3.x
or compatible and define BOZO_PRINTFLIKE / BOZO_DEAD. Fix fallout.
 1.27 29-Mar-2011  jmmv Add pid file support: if the new -P option is provided, it specifies the
location of the pid file to create.

OKed by mrg@.
 1.26 12-Jan-2011  pooka Make sure bozo_auth_check_401() isn't called with a NULL "request".

reviewed by mrg
 1.25 20-Sep-2010  mrg merge bozohttpd 20100920
 1.24 20-Sep-2010  mrg fix an error in the previous.
 1.23 20-Sep-2010  mrg fix a serious error in virtual hosting support, noticed by seanb@netbsd,
and disallow ".." as a virtual host name! also ".".

patch from sean.
 1.22 11-Jul-2010  mrg avoid an unused variable warning(error) for MKCRYPTO=no builds.
 1.21 22-Jun-2010  mrg merge bozohttpd 20100621
 1.20 17-Jun-2010  mrg merge bozohttpd 20100617.
 1.19 15-May-2010  mrg merge bozohttpd 20100512
 1.18 10-May-2010  mrg merge 20100510 properly
 1.17 10-May-2010  mrg merge bozohttpd 20100510.
 1.16 10-May-2010  mrg merge bozohttpd 20100509.
 1.15 23-May-2009  mrg fix a new -Wsign-compare bug.
 1.14 23-May-2009  mrg merge bozohttpd 20090522
 1.13 18-Apr-2009  mrg merge bozohttpd 20090418. remove a couple of minor do-nothing local
changes that don't need to cause conflicts.
 1.12 18-Apr-2009  mrg merge bozohttpd 20090417
 1.11 23-Mar-2009  reinoud Fix redirection core dump as reported in PR#41042.
 1.10 09-Feb-2009  joerg Add If-Modified-Since support.
 1.9 04-Feb-2009  tls branches: 1.9.2;
From Sergey Katsev at Coyote Point: fix bugs in request transformation and
CGI handling, including bin/40355 . There are two main changes here:

1) call process_cgi() after transform_request(), not before. Now it is
possible to have a default cgi handler catch a request for a path that
was produced by transformation, e.g. by index generation -- so now the
index can be "generated" by a CGI if that is what the user desires.

2) More clearly distinguish "file" from "query" portions of the request
URL, so we do not feed ?-suffixed "arguments" to plain files, fail to
match filename extensions due to ?-suffixes, etc.

After this change, there are only two cases which use the "query"
portion of the request (the portion after the ?):

a) A redirect issued by HTTPD will redirect to the new file, but
with the same query string.

b) process_cgi() will, of course continue to use the query string.
 1.8 18-Jan-2009  lukem fix -Wsign-compare issues
 1.7 07-Mar-2008  mrg branches: 1.7.8;
fix a problem in %xy decoding.
 1.6 03-Mar-2008  mrg merge bozohttpd 20080303
 1.5 16-Dec-2007  perry branches: 1.5.2;
remove cdefs.h at mrg's request
 1.4 15-Dec-2007  perry include sys/cdefs.h so that __attribute__ can be fixed later
 1.3 17-Oct-2007  tls branches: 1.3.2;
RCS IDs
 1.2 17-Oct-2007  tls Fix two memory leaks noted by Coverity (CID-4694, CIT-4695) and use
SIMPLEQ_FOREACH where possible. Patch from Arnaud Lacombe.
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.13 18-Nov-2011  mrg update to bozohttpd 20111118. nothing major is missing here but
the changes since the prior import were:

o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well
 1.1.1.12 20-Sep-2010  mrg initial import of bozohttpd 20100920. the only change missing in here is:

o fix dynamic CGI content maps, from rudolf
 1.1.1.11 22-Jun-2010  mrg initial import of bozohttpd 20100621. change include:

o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
 1.1.1.10 17-Jun-2010  mrg initial import of bozohttpd 20100617. recent changes:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour
 1.1.1.9 15-May-2010  mrg import bozohttpd 20100512. it includes these changes:
o fix SSL mode. from rtr.
 1.1.1.8 10-May-2010  mrg re-do this with the right sources this time.
 1.1.1.7 10-May-2010  mrg import bozohttpd 20100510 -- just fixes some compile errors.
 1.1.1.6 10-May-2010  mrg import bozohttpd 20100509. it has these changes:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
 1.1.1.5 23-May-2009  mrg import bozohttpd 20090522, which has these changes:
o close more leaking file descriptors for CGI and daemon mode
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child
 1.1.1.4 18-Apr-2009  mrg import bozohttpd 20090418. changes include:

o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet

this covers PR#38489 and PR#40079, as well some some issues reported
privately.
 1.1.1.3 18-Apr-2009  mrg import latest bozohttpd sources. changes include:

o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.2 03-Mar-2008  mrg import latest bozohttpd. changes include:

o fix some cgi header processing, from <thelsdj@gmail.com>
o add simple Range: header processing, from <bad@bsd.de>
o man page fixes, from NetBSD
o clean up various parts, from NetBSD
o prefix some function names with "bozo"
o align directory indexing <hr> markers
o clean up some code GCC4 grumbled about
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.3.2.3 23-Mar-2008  matt sync with HEAD
 1.3.2.2 06-Nov-2007  matt sync with HEAD
 1.3.2.1 17-Oct-2007  matt file bozohttpd.c was added on branch matt-armv6 on 2007-11-06 23:12:02 +0000
 1.5.2.1 24-Mar-2008  keiichi sync with head.
 1.7.8.5 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.7.8.4 15-Oct-2010  snj branches: 1.7.8.4.2; 1.7.8.4.6;
Apply patch (requested by mrg in ticket #1456):
fix a serious error in vhost handling; "Host:.."
would allow access to the next level directory from
the virtual root directory
 1.7.8.3 26-Mar-2009  snj branches: 1.7.8.3.2; 1.7.8.3.4;
Pull up following revision(s) (requested by reinoud in ticket #604):
libexec/httpd/bozohttpd.c: revision 1.11
Fix redirection core dump as reported in PR#41042.
 1.7.8.2 18-Feb-2009  snj Pull up following revision(s) (requested by joerg in ticket #438):
libexec/httpd/bozohttpd.h: revision 1.7
libexec/httpd/bozohttpd.c: revision 1.10
Add If-Modified-Since support.
 1.7.8.1 08-Feb-2009  snj Pull up following revision(s) (requested by tls in ticket #428):
libexec/httpd/bozohttpd.c: revision 1.9
libexec/httpd/bozohttpd.h: revision 1.6
libexec/httpd/cgi-bozo.c: revision 1.9
libexec/httpd/dir-index-bozo.c: revision 1.5
libexec/httpd/tilde-luzah-bozo.c: revision 1.4
From Sergey Katsev at Coyote Point: fix bugs in request transformation and
CGI handling, including bin/40355 . There are two main changes here:
1) call process_cgi() after transform_request(), not before. Now it is
possible to have a default cgi handler catch a request for a path that
was produced by transformation, e.g. by index generation -- so now the
index can be "generated" by a CGI if that is what the user desires.
2) More clearly distinguish "file" from "query" portions of the request
URL, so we do not feed ?-suffixed "arguments" to plain files, fail to
match filename extensions due to ?-suffixes, etc.
After this change, there are only two cases which use the "query"
portion of the request (the portion after the ?):
a) A redirect issued by HTTPD will redirect to the new file, but
with the same query string.
b) process_cgi() will, of course continue to use the query string.
 1.7.8.4.6.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.7.8.4.2.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.7.8.3.4.1 20-May-2011  matt bring matt-nb5-mips64 up to date with netbsd-5-1-RELEASE (except compat).
 1.7.8.3.2.1 15-Oct-2010  snj Apply patch (requested by mrg in ticket #1456):
fix a serious error in vhost handling; "Host:.."
would allow access to the next level directory from
the virtual root directory
 1.9.2.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.28.2.3 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.28.2.2 30-Oct-2012  yamt sync with head
 1.28.2.1 17-Apr-2012  yamt sync with head
 1.30.8.4 08-Mar-2017  snj Put back a netbsd-6* workaround accidentally removed in ticket 1437:
Explicitly initialize uid to avoid a gcc warning.
 1.30.8.3 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437:
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.30.8.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.30.8.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.30.6.4 08-Mar-2017  snj Put back a netbsd-6* workaround accidentally removed in ticket 1437:
Explicitly initialize uid to avoid a gcc warning.
 1.30.6.3 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.30.6.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.30.6.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.30.2.5 08-Mar-2017  snj Add back a netbsd-6* workaround accidentally removed in ticket 1437:
Explicitly initialize uid to avoid a gcc warning.
 1.30.2.4 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.30.2.3 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.30.2.2 04-Feb-2015  martin Pull up following revision(s) (requested by snj in ticket #1246):
libexec/httpd/bozohttpd.c: revision 1.61
spit out a 403 not just when an open() fails with EPERM, but with
EACCES as well.
 1.30.2.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.32.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.32.2.1 23-Jun-2013  tls resync from head
 1.49.2.1 10-Aug-2014  tls Rebase.
 1.56.2.12 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.56.2.11 28-Nov-2018  martin Pull up following revision(s) (requested by mrg in ticket #1659):

libexec/httpd/main.c: revision 1.22
libexec/httpd/CHANGES: revision 1.29
libexec/httpd/cgi-bozo.c: revision 1.45
libexec/httpd/bozohttpd.h: revision 1.57
libexec/httpd/CHANGES: revision 1.30
libexec/httpd/bozohttpd.c: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.98
libexec/httpd/bozohttpd.c: revision 1.99

one semicolon is usually enough.

-

appease lint

- add FALLTHROUGH comment
- one return is usually enough.

-

avoid c99ism.

-

fix -X option parsing. noted by Rajeev V. Pillai.

-

add option fixes here.

-

normalise some messages.
 1.56.2.10 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.56.2.9 19-Feb-2018  snj Pull up following revision(s) (requested by maya in ticket #1564):
libexec/httpd/bozohttpd.c: 1.87
Use a protocol-agnostic URL (don't degrade HTTPS->HTTP)
Suggested by Travis Paul in PR bin/52958.
 1.56.2.8 12-Feb-2017  snj branches: 1.56.2.8.2;
Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.56.2.7 23-Dec-2016  snj Pull up following revision(s) (requested by mrg in ticket #1309):
libexec/httpd/CHANGES: revisions 1.23, 1.24
libexec/httpd/bozohttpd.8: revisions 1.60-1.62
libexec/httpd/bozohttpd.c: revisions 1.81-1.84
libexec/httpd/bozohttpd.h: revision 1.46
libexec/httpd/cgi-bozo.c: revision 1.35
libexec/httpd/content-bozo.c: revision 1.14
libexec/httpd/main.c: revisions 1.14-1.16
libexec/httpd/testsuite/Makefile: revision 1.6
libexec/httpd/testsuite/test-bigfile: revision 1.3
libexec/httpd/testsuite/test-simple: revisions 1.1, 1.2
update bozohttpd to 2016072:
- fix memory leak
- addd -G option to display version
- fix some content type issues
- fix issues in testsuite
 1.56.2.6 15-Apr-2016  snj branches: 1.56.2.6.2;
Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.56.2.5 10-Apr-2016  martin Catch up to -current (via patch), requested by mspo in #1141:

libexec/httpd/CHANGES up to 1.21
libexec/httpd/Makefile up to 1.26
libexec/httpd/auth-bozo.c up to 1.18
libexec/httpd/bozohttpd.8 up to 1.58
libexec/httpd/bozohttpd.c up to 1.79
libexec/httpd/bozohttpd.h up to 1.44
libexec/httpd/cgi-bozo.c up to 1.32
libexec/httpd/content-bozo.c up to 1.13
libexec/httpd/daemon-bozo.c up to 1.17
libexec/httpd/dir-index-bozo.c up to 1.25
libexec/httpd/lua-bozo.c up to 1.14
libexec/httpd/main.c up to 1.13
libexec/httpd/netbsd_queue.h up to 1.1
libexec/httpd/printenv.lua up to 1.3
libexec/httpd/ssl-bozo.c up to 1.22
libexec/httpd/tilde-luzah-bozo.c up to 1.14
libexec/httpd/testsuite/Makefile up to 1.5
libexec/httpd/testsuite/test-bigfile up to 1.2

Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
 1.56.2.4 09-May-2015  snj branches: 1.56.2.4.2;
Pull up following revision(s) (requested by mrg in ticket #743):
libexec/httpd/bozohttpd.8: revision 1.51
libexec/httpd/bozohttpd.c: revision 1.64
libexec/httpd/bozohttpd.h: revision 1.35
libexec/httpd/cgi-bozo.c: revision 1.27
libexec/httpd/content-bozo.c: revision 1.12
fix content type handling to not hard code (wrong) values for length,
but just call strlen() as needed. call this 20150501.
reported by Jan Danielsson for ".svg".
 1.56.2.3 19-Apr-2015  msaitoh Pull up following revision(s) (requested by mrg in ticket #705):
libexec/httpd/CHANGES: revision 1.20
libexec/httpd/bozohttpd.8: revision 1.49
libexec/httpd/bozohttpd.c: revision 1.62-1.63
don't quote /. it doesn't work. this should fix PR#49765.
copyright maintenance, note shm@ in the manual and update the CHANGES
for recent changes. call this 20150320.
 1.56.2.2 04-Feb-2015  martin Pull up following revision(s) (requested by snj in ticket #491):
libexec/httpd/bozohttpd.c: revision 1.61
spit out a 403 not just when an open() fails with EPERM, but with
EACCES as well.
 1.56.2.1 12-Jan-2015  martin Pull up following revision(s) (requested by mrg in ticket #408):
libexec/httpd/content-bozo.c: revision 1.11
libexec/httpd/dir-index-bozo.c: revision 1.20
libexec/httpd/bozohttpd.h: revision 1.34
libexec/httpd/bozohttpd.c: revision 1.57
libexec/httpd/bozohttpd.8: revision 1.47
libexec/httpd/bozohttpd.c: revision 1.58
libexec/httpd/bozohttpd.8: revision 1.48
libexec/httpd/bozohttpd.c: revision 1.59
libexec/httpd/lua-bozo.c: revision 1.11
libexec/httpd/bozohttpd.c: revision 1.60
libexec/httpd/auth-bozo.c: revision 1.14
libexec/httpd/auth-bozo.c: revision 1.15
libexec/httpd/auth-bozo.c: revision 1.16

Update bozohttpd to 20141225:
- NUL terminate a string.
- don't truncate file sizes to 32 bits for directory indexes.
- Fixed off-by-one in virtualhost processing. Previous code was
checking if Host header is a prefix of any existing vhost.
This behaviour might be used to uncover existing vitual hosts
from the remote.
- Fixed memory leak in case of multiple authentication headers sent
by the client.
- Avoid array access out of bounds.
 1.56.2.8.2.3 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.56.2.8.2.2 28-Nov-2018  martin Pull up following revision(s) (requested by mrg in ticket #1659):

libexec/httpd/main.c: revision 1.22
libexec/httpd/CHANGES: revision 1.29
libexec/httpd/cgi-bozo.c: revision 1.45
libexec/httpd/bozohttpd.h: revision 1.57
libexec/httpd/CHANGES: revision 1.30
libexec/httpd/bozohttpd.c: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.98
libexec/httpd/bozohttpd.c: revision 1.99

one semicolon is usually enough.

-

appease lint

- add FALLTHROUGH comment
- one return is usually enough.

-

avoid c99ism.

-

fix -X option parsing. noted by Rajeev V. Pillai.

-

add option fixes here.

-

normalise some messages.
 1.56.2.8.2.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.56.2.6.2.2 13-Mar-2017  skrll Sync with netbsd-7-1-RELEASE
 1.56.2.6.2.1 18-Jan-2017  skrll Sync with netbsd-5
 1.56.2.4.2.6 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.56.2.4.2.5 28-Nov-2018  martin Pull up following revision(s) (requested by mrg in ticket #1659):

libexec/httpd/main.c: revision 1.22
libexec/httpd/CHANGES: revision 1.29
libexec/httpd/cgi-bozo.c: revision 1.45
libexec/httpd/bozohttpd.h: revision 1.57
libexec/httpd/CHANGES: revision 1.30
libexec/httpd/bozohttpd.c: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.98
libexec/httpd/bozohttpd.c: revision 1.99

one semicolon is usually enough.

-

appease lint

- add FALLTHROUGH comment
- one return is usually enough.

-

avoid c99ism.

-

fix -X option parsing. noted by Rajeev V. Pillai.

-

add option fixes here.

-

normalise some messages.
 1.56.2.4.2.4 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.56.2.4.2.3 12-Feb-2017  snj Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.56.2.4.2.2 23-Dec-2016  snj Pull up following revision(s) (requested by mrg in ticket #1309):
libexec/httpd/CHANGES: revisions 1.23, 1.24
libexec/httpd/bozohttpd.8: revisions 1.60-1.62
libexec/httpd/bozohttpd.c: revisions 1.81-1.84
libexec/httpd/bozohttpd.h: revision 1.46
libexec/httpd/cgi-bozo.c: revision 1.35
libexec/httpd/content-bozo.c: revision 1.14
libexec/httpd/main.c: revisions 1.14-1.16
libexec/httpd/testsuite/Makefile: revision 1.6
libexec/httpd/testsuite/test-bigfile: revision 1.3
libexec/httpd/testsuite/test-simple: revisions 1.1, 1.2
update bozohttpd to 2016072:
- fix memory leak
- addd -G option to display version
- fix some content type issues
- fix issues in testsuite
 1.56.2.4.2.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.82.2.3 20-Mar-2017  pgoyette Sync with HEAD
 1.82.2.2 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.82.2.1 04-Nov-2016  pgoyette Sync with HEAD
 1.84.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.86.4.6 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.86.4.5 19-Nov-2020  martin Pull up following revision(s) (requested by hannken in ticket #1624):

libexec/httpd/bozohttpd.c: revision 1.124

Bozohttpd clobbers files greater than 4GB on 32bit archs.
Make sure the alignment mask derived from pagesize is an off_t.
 1.86.4.4 12-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1281:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6


Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.86.4.3 28-Nov-2018  martin Pull up following revision(s) (requested by mrg in ticket #1109):

libexec/httpd/main.c: revision 1.22
libexec/httpd/CHANGES: revision 1.29
libexec/httpd/cgi-bozo.c: revision 1.45
libexec/httpd/bozohttpd.h: revision 1.57
libexec/httpd/CHANGES: revision 1.30
libexec/httpd/bozohttpd.c: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.98
libexec/httpd/bozohttpd.c: revision 1.99

one semicolon is usually enough.

-

appease lint

- add FALLTHROUGH comment
- one return is usually enough.

-

avoid c99ism.

-

fix -X option parsing. noted by Rajeev V. Pillai.

-

add option fixes here.

-

normalise some messages.
 1.86.4.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.86.4.1 04-Feb-2018  martin Pull up following revision(s) (requested by maya in ticket #522):
libexec/httpd/bozohttpd.c: revision 1.87
Use a protocol-agnostic URL (don't degrade HTTPS->HTTP)
Suggested by Travis Paul in PR bin/52958.
 1.87.4.1 10-Jun-2019  christos Sync with HEAD
 1.87.2.5 26-Jan-2019  pgoyette Sync with HEAD
 1.87.2.4 18-Jan-2019  pgoyette Synch with HEAD
 1.87.2.3 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.87.2.2 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.87.2.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.113.2.2 05-Mar-2021  martin Pull up the following (all via patch), requested by mrg in ticket #1221:

lib/lua/bozohttpd/Makefile (apply patch)
libexec/httpd/Makefile 1.30-1.31
libexec/httpd/Makefile.boot 1.7-1.9
libexec/httpd/auth-bozo.c 1.25-1.26
libexec/httpd/bozohttpd.8 1.80-1.87
libexec/httpd/bozohttpd.c 1.114-1.123,1.125-1.128
libexec/httpd/bozohttpd.h 1.61-1.68
libexec/httpd/cgi-bozo.c 1.49-1.53
libexec/httpd/content-bozo.c 1.17-1.20
libexec/httpd/daemon-bozo.c 1-.22
libexec/httpd/dir-index-bozo.c 1.33-1.34
libexec/httpd/main.c 1.23-1.27
libexec/httpd/printenv.lua 1.4-1.5
libexec/httpd/ssl-bozo.c 1.27-1.29
libexec/httpd/libbozohttpd/libbozohttpd.3 1.5-1.6
libexec/httpd/small/Makefile 1.4
libexec/httpd/testsuite/Makefile 1.14
libexec/httpd/testsuite/t16.in 1.1
libexec/httpd/testsuite/t16.out 1.1
libexec/httpd/testsuite/t17.in 1.1
libexec/httpd/testsuite/t17.out 1.1
libexec/httpd/testsuite/t18.in 1.1
libexec/httpd/testsuite/t18.out 1.1


Update to bozohttpd 20210227.
Apply lua build fix (no blocklist support on this branch).

changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.113.2.1 19-Nov-2020  martin Pull up following revision(s) (requested by hannken in ticket #1134):

libexec/httpd/bozohttpd.c: revision 1.124

Bozohttpd clobbers files greater than 4GB on 32bit archs.
Make sure the alignment mask derived from pagesize is an off_t.
 1.142.2.1 29-Jul-2025  martin Pull up following revision(s) (requested by mrg in ticket #1139):

libexec/httpd/CHANGES: revision 1.55
libexec/httpd/CHANGES: revision 1.56
libexec/httpd/cgi-bozo.c: revision 1.55
libexec/httpd/cgi-bozo.c: revision 1.56
libexec/httpd/bozohttpd.8: revision 1.93
libexec/httpd/bozohttpd.8: revision 1.94
libexec/httpd/bozohttpd.8: revision 1.95
libexec/httpd/bozohttpd.8: revision 1.96
libexec/httpd/bozohttpd.8: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.143
libexec/httpd/bozohttpd.8: revision 1.100
libexec/httpd/bozohttpd.c: revision 1.144
libexec/httpd/bozohttpd.8: revision 1.99
libexec/httpd/bozohttpd.c: revision 1.145
libexec/httpd/bozohttpd.c: revision 1.146
libexec/httpd/bozohttpd.c: revision 1.147
libexec/httpd/auth-bozo.c: revision 1.28
libexec/httpd/ssl-bozo.c: revision 1.33
libexec/httpd/ssl-bozo.c: revision 1.34
libexec/httpd/content-bozo.c: revision 1.22
libexec/httpd/main.c: revision 1.31

serve .iso as "application/octet-stream". bump version & copyright.

add a note about how to setup http -> https redirection.
bump documented version.

Fix memory leaks in bozo_cleanup

Fix hr_authrealm memory leak
hr_authrealm might be already set, so we need to free it before overwriting
the value

Remove unused variable (bp)

Fix off-by-one in bozo_decode_url_percent

In case of strings that end with '%', debug function was reading past buffer.
Removed unnecessary comment
Thanks leot@ for pointing this out

httpd(8): Add missing newline to `SSL Error' messages.
Matches the pattern in all other printf/syslog calls.

add some missing changes and bump the version.

s/supressing/suppressing/.

note this documents bozohttpd 20240126.

Bump bozohttpd version to today for mobile-friendly directory listing

bozohttpd(8): clarifications and editorial fixes

Clarify that -b also listens on an address and port
(overridden by -i address and/or -I port), as does -f.

If -i isn't given, all addresses are listened to.
Use literal instead of emphasis for Lua, paths, URLs (etc).

Add more cross-references to other options.

Split FILES into a tagged list and subsections describing
the behaviour.

drop duplicate "by default".
 1.147.2.1 02-Aug-2025  perseant Sync with HEAD
 1.73 12-Sep-2022  martin Add a -q option to make http quiet (no log messages).

Usefull when running multiple instances and some for (high traffic)
APIs e.g. to receive log data from appliences - it makes not sense
to duplicate the whole log in the xferlog file (but we can't configure
that at the syslog level due to other httpd instances using that).
 1.72 18-May-2022  mrg call this bozohttpd 20220517.
 1.71 04-Jan-2022  kim bozohttpd: remove obsolete .bzdirect handling

OK mrg@
 1.70 24-Aug-2021  mrg implement tls minimum version setting.

mostly from sunil@nimmagadda.net in PR#55830, though i moved the
member into the main http structure, so that it doesn't trigger
sslinfo being allocated via command line without the rest of the
ssl being setup (which then leads to crashes.)
 1.69 05-May-2021  mrg don't assume host BUFSIZ is sufficent. small BUFSIZ leads to
always happens errors in the testsuite. switch all these buffers
to be 4KiB sized. reported by embr <git@liclac.eu>
 1.68 27-Feb-2021  mrg belated call version 20210211 after previous memory leak fix.
 1.67 11-Feb-2021  mrg clean up issues detected by address sanitizer (just some memory
leaks that only apply to the library version.)

XXX: the handling of hr_file and its variants is more crappy
again - the prior clean up is slightly less clean now, but at
least it does not leak memory.

XXX2: cgi-bin test hangs with address sanitizer. don't know
why yet..
 1.66 11-Feb-2021  mrg changes in bozohttpd 20210210:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
 1.65 15-Oct-2020  mrg various updates from <henrik@gulbra.net> / freebsd. the list from Henrik:

bozohttpd.8:
o Added -d flag to the man page
o Moved -E flag in man page to keep alphabetic order
o Grammar fix for description of -E flag in man page
o Moved a word in the man description for the -f flag
o Made -f imply -b as a backwards-compatible shortcut
o Updated man description of -n to mention Lua scripts
o Moved -z below -Z to keep the uppercase options first

bozohttpd.c:
o Removed obsolete comment about ~user missing cgi-bin support
o Removed "/* ARGSUSED */" lines; was that a macro or a reminder?
o Added USE_ARG macro call for sig, which was otherwise not used
o Added USE_ARG macro call for msg (only used if debug is enabled)

bozohttpd.h:
o Fixed typo in the include guard (BOZOHTTOPD_H_ -> BOZOHTTPD_H_)
o Renamed have_all to have_core; it didn't mean "all" options

content-bozo.c:
o Added USE_ARG macro call for signo, which was otherwise not used
o Made -f imply -b as a backwards-compatible shortcut

main.c:
o Simplified -b text to be symmetric with that for the -f option
o Updated -C text to make "suffix" explicit; it's better than "arg"
o Changed to only show the -E description if have_user is true
o Always show the -e option, which incorrectly used the -E logic
o Renamed have_all to have_core; it didn't mean "all" options
o Added three missing tabs for the description of the -G option
o Updated -L text to make "prefix" explicit; it's better than "arg"
o Updated -M text to make "suffix" explicit; it's slightly better
o Added a previously missing description for the -n option
o Documented the otherwise obscure valid types for the -T option
o Shortened "username" to "user" to match the actual help text
o Moved handling of -c below that for -C to standardize the order
o Broke the enabling test for -C into two lines for consistency
o Inverted the enabling test for -E; this is what was meant, right?
o Removed the enabling test for -e, which should always be enabled

ssl-bozo.c:
o Added USE_ARG for httpd, which is not used if SSL has been excluded
 1.64 15-Oct-2020  mrg set -D_GNU_SOURCE in Makefile.boot. from hadrien.lacour@posteo.net.
also match %2F as well as %2f. from leah@vuxu.org.
introduce defines for "80" and "443". copyright maint.
 1.63 20-Aug-2020  spz send close_notify for the ssl connection before closing the TCP connection
Thanks to Dr. Thomas Orgis for reporting the issue.
 1.62 11-Jul-2020  jruoho Add blocklistd(8) support.
 1.61 06-Jul-2020  jmcneill Add -R flag to specify a README file to add at the bottom of directory
autoindex listings.
 1.60 08-Mar-2019  mrg branches: 1.60.2;
on m68010 set BOZO_WRSZ to 16k and BOZO_WRSZ to 64k.
 1.59 28-Feb-2019  mrg add ssl specific timeout value (30s). if SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.

mostly different from, but inspired from the patch in PR 50655
 1.58 22-Jan-2019  mrg o don't display special files in the directory index. they aren't
served, but links to them are generated.
 1.57 24-Nov-2018  christos one semicolon is usually enough.
 1.56 22-Nov-2018  mrg many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines
 1.55 21-Nov-2018  mrg - move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.
 1.54 20-Nov-2018  mrg also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.
 1.53 20-Nov-2018  mrg fix previous: have_debug was reversed.
 1.52 20-Nov-2018  mrg move some #if support into bozohttpd.h.
 1.51 20-Nov-2018  mrg from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.


the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.


reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.


clean up option and usage handling some.
 1.50 19-Nov-2018  mrg fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.
 1.49 04-May-2018  christos branches: 1.49.2;
fix the rest of the compilers.
 1.48 04-May-2018  christos fix lint
 1.47 31-Jan-2017  mrg branches: 1.47.4; 1.47.10;
call this bozohttpd 20170201.
 1.46 24-May-2016  agc branches: 1.46.2; 1.46.4;
As proposed in:

http://mail-index.netbsd.org/tech-userlevel/2016/05/18/msg009999.html

and

https://www.netbsd.org/~agc/bozo-20160517.diff

add a patch to httpd to return the version string of httpd itself, and use the
-G option on the command line to enable this. This gives httpd the ability to
show, from the command line, what version is running.

% /usr/build/obj/x86_64/usr/src/libexec/httpd/bozohttpd -G
bozohttpd version bozohttpd/20160415
%
 1.45 15-Apr-2016  mrg updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.44 02-Jan-2016  elric Add the concept of ``reply headers'', that is a SIMPLEQ of headers that
will be included in the HTTP reply. We define this as we are about to
add an authentication method that may need to have a conversation with
the client.
 1.43 29-Dec-2015  mrg - convert most asprintf() calls to bozoasprintf().
- don't call getpwuid(0) if we don't need to, or fail it it fails,
and remove the 'username' member of bozohttpd_t since it is not
used outside of bozo_setup().
 1.42 28-Dec-2015  mrg rename bozo_err/bozo_warn/bozo_asprintf to bozoerr/etc.
new rule is that function that mirror libc-style functions get no underscore.
 1.41 27-Dec-2015  mrg several clean ups:

- bozostrdup() gains a request parameter, and uses it to determine
what sort of error handling is required
- bozo_strdup() dies
- size_arrays() reduced slightly, pushing error handling into the caller
- convert to size_t for some array indices
- bozo_set_pref() and bozo_init_prefs() gain httpd parameters
- apply a bunch of manual CSE to vastly reduce the number of times the
string "request->hr_httpd" appears.
- CGI parse_header() takes a request not httpd now

XXX: lua glue updated to call bozo_init_prefs() with htttpd parameter,
but i'm only guessing here.
 1.40 12-Dec-2015  christos Introduce bozo_strdup and bozo_asprintf to add error checking and reduce
code duplication.

Note that bozo_strdup is different that bozostrdup; the _ routines exit
loging error to syslog or stderr, whereas the non _ routines send error
responses to the http client.
 1.39 12-Dec-2015  christos - restrict the default list of ciphers to something more secure
- restrict ssl options
From Travis Paul
 1.38 28-Oct-2015  shm * add CGI support for ~user translation (-E switch)
* add redirects to ~user translation
* fix bugs around ~user translation
* add schema detection for absolute redirects
* fixed few memory leaks
* bunch of minor tweaks
* removed -r support
* smarter redirects

OK mrg@
 1.37 25-Oct-2015  mrg s/USE_NBUTIL/HAVE_NBUTIL_H/, to match the Makefile.
fixes a merge problem in introduced when merging the QNX patches.

from Jan Danielsson.
 1.36 05-Aug-2015  mrg on QNX, use nbutil.h.
 1.35 02-May-2015  mrg fix content type handling to not hard code (wrong) values for length,
but just call strlen() as needed. call this 20150501.

reported by Jan Danielsson for ".svg".
 1.34 21-Nov-2014  shm Fixed memory leak in case of multiple authentication headers sent by the
client.

OK mrg@
 1.33 17-Jul-2014  mrg branches: 1.33.2;
rewrite much of the SSL code:
- handle errors in many places they weren't properly
- make SSL_accept() an error the main code notices
- expand bozo_ssl_err() to include bozo_ssl_warn(), bozo_clear_ssl_queue()
- remove empty bozo_ssl_flush()
 1.32 09-Feb-2014  mrg branches: 1.32.2;
some fixes for virtual hosting support from Rajeev V. Pillai:

- memory leaks in virtual host plugged
- ensure hr_host is only the host/port part when the request
contains the hostname in the URI not Host: header.


also update the references to the old http/1.1 draft rev 06
to RFC 2616 (fortunately, most sections hadn't moved.)
 1.31 02-Jan-2014  mrg - update CHANGES with recent changes
- update version to 20140102
- update copyrights
- use getcwd() over getwd()
- fix lean build (don't include lua)
 1.30 12-Oct-2013  mbalmer add Lua scripting support to bozohttpd, see httpd(8) for details
 1.29 12-Oct-2013  mbalmer remove trailing whitespace
 1.28 04-Sep-2013  pooka allow compile-time overriding of BOZO_WRSZ/MMAPSZ parameters
 1.27 11-Jul-2013  mrg prepare for netbsd to be mastersrc for bozohttpd.
 1.26 11-Jul-2013  mrg copyright maint.
 1.25 11-Jul-2013  mrg - update CHANGES with recent changes
- export esacpe_html() and use it in directory indexing
- update manual to include recent contributors
 1.24 27-Jun-2013  martin Redo previous (fixing a memory leak introduced), and while there rework
virtual server support - in daemonized mode mixed virtual and "main"
server usage would alter the virtual hostname depending on order of
requests.
To fix, move the effective virtual hostname into the request structure
and leave the httpd server description static.
 1.23 19-Jul-2012  mrg branches: 1.23.2;
when generating URIs escape various characters as specified in RFC 3986.
this makes, among other things, files/dirs with "?" work with dir indexing.
 1.22 14-Mar-2012  joerg Add BOZO_PRINTFLIKE for functions that pass an argument and va_arg to
a vprintf-like function.
 1.21 20-Feb-2012  elric Check in very basic compressed file support. httpd will now serve
a precompressed .gz file if it exists, the client claims to support
gzip and the request is not ranged.
 1.20 18-Nov-2011  mrg branches: 1.20.2; 1.20.6; 1.20.8;
merge bozohttpd 20111118
 1.19 27-Aug-2011  joerg branches: 1.19.2;
Don't check for __attribute__ being defined, it won't. Check for GCC 3.x
or compatible and define BOZO_PRINTFLIKE / BOZO_DEAD. Fix fallout.
 1.18 29-Mar-2011  jmmv Add pid file support: if the new -P option is provided, it specifies the
location of the pid file to create.

OKed by mrg@.
 1.17 20-Sep-2010  mrg merge bozohttpd 20100920
 1.16 09-Sep-2010  mrg fix another compile error if NO_DAEMON_MODE is defined. also from rudolf.
 1.15 08-Sep-2010  mrg fix a compile error if NO_DIRINDEX_SUPPORT is defined. from rudolf.
 1.14 17-Jun-2010  mrg merge bozohttpd 20100617.
 1.13 10-May-2010  mrg merge bozohttpd 20100510.
 1.12 10-May-2010  mrg merge bozohttpd 20100509.
 1.11 23-May-2009  mrg merge bozohttpd 20090522
 1.10 18-Apr-2009  mrg merge bozohttpd 20090418. remove a couple of minor do-nothing local
changes that don't need to cause conflicts.
 1.9 18-Apr-2009  mrg de-const some variables passed to free().
 1.8 18-Apr-2009  mrg merge bozohttpd 20090417
 1.7 09-Feb-2009  joerg Add If-Modified-Since support.
 1.6 04-Feb-2009  tls branches: 1.6.2;
From Sergey Katsev at Coyote Point: fix bugs in request transformation and
CGI handling, including bin/40355 . There are two main changes here:

1) call process_cgi() after transform_request(), not before. Now it is
possible to have a default cgi handler catch a request for a path that
was produced by transformation, e.g. by index generation -- so now the
index can be "generated" by a CGI if that is what the user desires.

2) More clearly distinguish "file" from "query" portions of the request
URL, so we do not feed ?-suffixed "arguments" to plain files, fail to
match filename extensions due to ?-suffixes, etc.

After this change, there are only two cases which use the "query"
portion of the request (the portion after the ?):

a) A redirect issued by HTTPD will redirect to the new file, but
with the same query string.

b) process_cgi() will, of course continue to use the query string.
 1.5 03-Mar-2008  mrg branches: 1.5.8;
merge bozohttpd 20080303
 1.4 04-Nov-2007  rtr branches: 1.4.2; 1.4.6;
- remove const from h_header, this pointer is occasionally free'd
- remove unused write_str var
+ move header parsing to new function separation of parsing vs processing
+ alter some variable names to avoid confusion between header value and
header name (caused breakage with previous rev)
 1.3 17-Oct-2007  tls RCS IDs
 1.2 16-Oct-2007  tls Get httpd ready for inclusion in build.
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.10 18-Nov-2011  mrg update to bozohttpd 20111118. nothing major is missing here but
the changes since the prior import were:

o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well
 1.1.1.9 20-Sep-2010  mrg initial import of bozohttpd 20100920. the only change missing in here is:

o fix dynamic CGI content maps, from rudolf
 1.1.1.8 17-Jun-2010  mrg initial import of bozohttpd 20100617. recent changes:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour
 1.1.1.7 10-May-2010  mrg import bozohttpd 20100510 -- just fixes some compile errors.
 1.1.1.6 10-May-2010  mrg import bozohttpd 20100509. it has these changes:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
 1.1.1.5 23-May-2009  mrg import bozohttpd 20090522, which has these changes:
o close more leaking file descriptors for CGI and daemon mode
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child
 1.1.1.4 18-Apr-2009  mrg import bozohttpd 20090418. changes include:

o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet

this covers PR#38489 and PR#40079, as well some some issues reported
privately.
 1.1.1.3 18-Apr-2009  mrg import latest bozohttpd sources. changes include:

o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.2 03-Mar-2008  mrg import latest bozohttpd. changes include:

o fix some cgi header processing, from <thelsdj@gmail.com>
o add simple Range: header processing, from <bad@bsd.de>
o man page fixes, from NetBSD
o clean up various parts, from NetBSD
o prefix some function names with "bozo"
o align directory indexing <hr> markers
o clean up some code GCC4 grumbled about
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.4.6.1 24-Mar-2008  keiichi sync with head.
 1.4.2.3 23-Mar-2008  matt sync with HEAD
 1.4.2.2 06-Nov-2007  matt sync with HEAD
 1.4.2.1 04-Nov-2007  matt file bozohttpd.h was added on branch matt-armv6 on 2007-11-06 23:12:03 +0000
 1.5.8.3 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.5.8.2 18-Feb-2009  snj branches: 1.5.8.2.6; 1.5.8.2.10;
Pull up following revision(s) (requested by joerg in ticket #438):
libexec/httpd/bozohttpd.h: revision 1.7
libexec/httpd/bozohttpd.c: revision 1.10
Add If-Modified-Since support.
 1.5.8.1 08-Feb-2009  snj Pull up following revision(s) (requested by tls in ticket #428):
libexec/httpd/bozohttpd.c: revision 1.9
libexec/httpd/bozohttpd.h: revision 1.6
libexec/httpd/cgi-bozo.c: revision 1.9
libexec/httpd/dir-index-bozo.c: revision 1.5
libexec/httpd/tilde-luzah-bozo.c: revision 1.4
From Sergey Katsev at Coyote Point: fix bugs in request transformation and
CGI handling, including bin/40355 . There are two main changes here:
1) call process_cgi() after transform_request(), not before. Now it is
possible to have a default cgi handler catch a request for a path that
was produced by transformation, e.g. by index generation -- so now the
index can be "generated" by a CGI if that is what the user desires.
2) More clearly distinguish "file" from "query" portions of the request
URL, so we do not feed ?-suffixed "arguments" to plain files, fail to
match filename extensions due to ?-suffixes, etc.
After this change, there are only two cases which use the "query"
portion of the request (the portion after the ?):
a) A redirect issued by HTTPD will redirect to the new file, but
with the same query string.
b) process_cgi() will, of course continue to use the query string.
 1.5.8.2.10.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.5.8.2.6.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.6.2.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.19.2.3 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.19.2.2 30-Oct-2012  yamt sync with head
 1.19.2.1 17-Apr-2012  yamt sync with head
 1.20.8.3 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437:
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.20.8.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.20.8.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.20.6.3 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.20.6.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.20.6.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.20.2.3 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.20.2.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.20.2.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.23.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.32.2.1 10-Aug-2014  tls Rebase.
 1.33.2.9 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.33.2.8 28-Nov-2018  martin Pull up following revision(s) (requested by mrg in ticket #1659):

libexec/httpd/main.c: revision 1.22
libexec/httpd/CHANGES: revision 1.29
libexec/httpd/cgi-bozo.c: revision 1.45
libexec/httpd/bozohttpd.h: revision 1.57
libexec/httpd/CHANGES: revision 1.30
libexec/httpd/bozohttpd.c: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.98
libexec/httpd/bozohttpd.c: revision 1.99

one semicolon is usually enough.

-

appease lint

- add FALLTHROUGH comment
- one return is usually enough.

-

avoid c99ism.

-

fix -X option parsing. noted by Rajeev V. Pillai.

-

add option fixes here.

-

normalise some messages.
 1.33.2.7 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.33.2.6 12-Feb-2017  snj branches: 1.33.2.6.2;
Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.33.2.5 23-Dec-2016  snj Pull up following revision(s) (requested by mrg in ticket #1309):
libexec/httpd/CHANGES: revisions 1.23, 1.24
libexec/httpd/bozohttpd.8: revisions 1.60-1.62
libexec/httpd/bozohttpd.c: revisions 1.81-1.84
libexec/httpd/bozohttpd.h: revision 1.46
libexec/httpd/cgi-bozo.c: revision 1.35
libexec/httpd/content-bozo.c: revision 1.14
libexec/httpd/main.c: revisions 1.14-1.16
libexec/httpd/testsuite/Makefile: revision 1.6
libexec/httpd/testsuite/test-bigfile: revision 1.3
libexec/httpd/testsuite/test-simple: revisions 1.1, 1.2
update bozohttpd to 2016072:
- fix memory leak
- addd -G option to display version
- fix some content type issues
- fix issues in testsuite
 1.33.2.4 15-Apr-2016  snj branches: 1.33.2.4.2;
Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.33.2.3 10-Apr-2016  martin Catch up to -current (via patch), requested by mspo in #1141:

libexec/httpd/CHANGES up to 1.21
libexec/httpd/Makefile up to 1.26
libexec/httpd/auth-bozo.c up to 1.18
libexec/httpd/bozohttpd.8 up to 1.58
libexec/httpd/bozohttpd.c up to 1.79
libexec/httpd/bozohttpd.h up to 1.44
libexec/httpd/cgi-bozo.c up to 1.32
libexec/httpd/content-bozo.c up to 1.13
libexec/httpd/daemon-bozo.c up to 1.17
libexec/httpd/dir-index-bozo.c up to 1.25
libexec/httpd/lua-bozo.c up to 1.14
libexec/httpd/main.c up to 1.13
libexec/httpd/netbsd_queue.h up to 1.1
libexec/httpd/printenv.lua up to 1.3
libexec/httpd/ssl-bozo.c up to 1.22
libexec/httpd/tilde-luzah-bozo.c up to 1.14
libexec/httpd/testsuite/Makefile up to 1.5
libexec/httpd/testsuite/test-bigfile up to 1.2

Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
 1.33.2.2 09-May-2015  snj branches: 1.33.2.2.2;
Pull up following revision(s) (requested by mrg in ticket #743):
libexec/httpd/bozohttpd.8: revision 1.51
libexec/httpd/bozohttpd.c: revision 1.64
libexec/httpd/bozohttpd.h: revision 1.35
libexec/httpd/cgi-bozo.c: revision 1.27
libexec/httpd/content-bozo.c: revision 1.12
fix content type handling to not hard code (wrong) values for length,
but just call strlen() as needed. call this 20150501.
reported by Jan Danielsson for ".svg".
 1.33.2.1 12-Jan-2015  martin Pull up following revision(s) (requested by mrg in ticket #408):
libexec/httpd/content-bozo.c: revision 1.11
libexec/httpd/dir-index-bozo.c: revision 1.20
libexec/httpd/bozohttpd.h: revision 1.34
libexec/httpd/bozohttpd.c: revision 1.57
libexec/httpd/bozohttpd.8: revision 1.47
libexec/httpd/bozohttpd.c: revision 1.58
libexec/httpd/bozohttpd.8: revision 1.48
libexec/httpd/bozohttpd.c: revision 1.59
libexec/httpd/lua-bozo.c: revision 1.11
libexec/httpd/bozohttpd.c: revision 1.60
libexec/httpd/auth-bozo.c: revision 1.14
libexec/httpd/auth-bozo.c: revision 1.15
libexec/httpd/auth-bozo.c: revision 1.16

Update bozohttpd to 20141225:
- NUL terminate a string.
- don't truncate file sizes to 32 bits for directory indexes.
- Fixed off-by-one in virtualhost processing. Previous code was
checking if Host header is a prefix of any existing vhost.
This behaviour might be used to uncover existing vitual hosts
from the remote.
- Fixed memory leak in case of multiple authentication headers sent
by the client.
- Avoid array access out of bounds.
 1.33.2.6.2.3 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.33.2.6.2.2 28-Nov-2018  martin Pull up following revision(s) (requested by mrg in ticket #1659):

libexec/httpd/main.c: revision 1.22
libexec/httpd/CHANGES: revision 1.29
libexec/httpd/cgi-bozo.c: revision 1.45
libexec/httpd/bozohttpd.h: revision 1.57
libexec/httpd/CHANGES: revision 1.30
libexec/httpd/bozohttpd.c: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.98
libexec/httpd/bozohttpd.c: revision 1.99

one semicolon is usually enough.

-

appease lint

- add FALLTHROUGH comment
- one return is usually enough.

-

avoid c99ism.

-

fix -X option parsing. noted by Rajeev V. Pillai.

-

add option fixes here.

-

normalise some messages.
 1.33.2.6.2.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.33.2.4.2.2 13-Mar-2017  skrll Sync with netbsd-7-1-RELEASE
 1.33.2.4.2.1 18-Jan-2017  skrll Sync with netbsd-5
 1.33.2.2.2.6 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.33.2.2.2.5 28-Nov-2018  martin Pull up following revision(s) (requested by mrg in ticket #1659):

libexec/httpd/main.c: revision 1.22
libexec/httpd/CHANGES: revision 1.29
libexec/httpd/cgi-bozo.c: revision 1.45
libexec/httpd/bozohttpd.h: revision 1.57
libexec/httpd/CHANGES: revision 1.30
libexec/httpd/bozohttpd.c: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.98
libexec/httpd/bozohttpd.c: revision 1.99

one semicolon is usually enough.

-

appease lint

- add FALLTHROUGH comment
- one return is usually enough.

-

avoid c99ism.

-

fix -X option parsing. noted by Rajeev V. Pillai.

-

add option fixes here.

-

normalise some messages.
 1.33.2.2.2.4 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.33.2.2.2.3 12-Feb-2017  snj Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.33.2.2.2.2 23-Dec-2016  snj Pull up following revision(s) (requested by mrg in ticket #1309):
libexec/httpd/CHANGES: revisions 1.23, 1.24
libexec/httpd/bozohttpd.8: revisions 1.60-1.62
libexec/httpd/bozohttpd.c: revisions 1.81-1.84
libexec/httpd/bozohttpd.h: revision 1.46
libexec/httpd/cgi-bozo.c: revision 1.35
libexec/httpd/content-bozo.c: revision 1.14
libexec/httpd/main.c: revisions 1.14-1.16
libexec/httpd/testsuite/Makefile: revision 1.6
libexec/httpd/testsuite/test-bigfile: revision 1.3
libexec/httpd/testsuite/test-simple: revisions 1.1, 1.2
update bozohttpd to 2016072:
- fix memory leak
- addd -G option to display version
- fix some content type issues
- fix issues in testsuite
 1.33.2.2.2.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.46.4.1 21-Apr-2017  bouyer Sync with HEAD
 1.46.2.1 20-Mar-2017  pgoyette Sync with HEAD
 1.47.10.3 26-Jan-2019  pgoyette Sync with HEAD
 1.47.10.2 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.47.10.1 21-May-2018  pgoyette Sync with HEAD
 1.47.4.4 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.47.4.3 12-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1281:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6


Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.47.4.2 28-Nov-2018  martin Pull up following revision(s) (requested by mrg in ticket #1109):

libexec/httpd/main.c: revision 1.22
libexec/httpd/CHANGES: revision 1.29
libexec/httpd/cgi-bozo.c: revision 1.45
libexec/httpd/bozohttpd.h: revision 1.57
libexec/httpd/CHANGES: revision 1.30
libexec/httpd/bozohttpd.c: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.98
libexec/httpd/bozohttpd.c: revision 1.99

one semicolon is usually enough.

-

appease lint

- add FALLTHROUGH comment
- one return is usually enough.

-

avoid c99ism.

-

fix -X option parsing. noted by Rajeev V. Pillai.

-

add option fixes here.

-

normalise some messages.
 1.47.4.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.49.2.1 10-Jun-2019  christos Sync with HEAD
 1.60.2.1 05-Mar-2021  martin Pull up the following (all via patch), requested by mrg in ticket #1221:

lib/lua/bozohttpd/Makefile (apply patch)
libexec/httpd/Makefile 1.30-1.31
libexec/httpd/Makefile.boot 1.7-1.9
libexec/httpd/auth-bozo.c 1.25-1.26
libexec/httpd/bozohttpd.8 1.80-1.87
libexec/httpd/bozohttpd.c 1.114-1.123,1.125-1.128
libexec/httpd/bozohttpd.h 1.61-1.68
libexec/httpd/cgi-bozo.c 1.49-1.53
libexec/httpd/content-bozo.c 1.17-1.20
libexec/httpd/daemon-bozo.c 1-.22
libexec/httpd/dir-index-bozo.c 1.33-1.34
libexec/httpd/main.c 1.23-1.27
libexec/httpd/printenv.lua 1.4-1.5
libexec/httpd/ssl-bozo.c 1.27-1.29
libexec/httpd/libbozohttpd/libbozohttpd.3 1.5-1.6
libexec/httpd/small/Makefile 1.4
libexec/httpd/testsuite/Makefile 1.14
libexec/httpd/testsuite/t16.in 1.1
libexec/httpd/testsuite/t16.out 1.1
libexec/httpd/testsuite/t17.in 1.1
libexec/httpd/testsuite/t17.out 1.1
libexec/httpd/testsuite/t18.in 1.1
libexec/httpd/testsuite/t18.out 1.1


Update to bozohttpd 20210227.
Apply lua build fix (no blocklist support on this branch).

changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.2 18-Nov-2011  mrg merge bozohttpd 20111118
 1.1 20-Sep-2010  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 20-Sep-2010  mrg branches: 1.1.1.1.6;
initial import of bozohttpd 20100920. the only change missing in here is:

o fix dynamic CGI content maps, from rudolf
 1.1.1.1.6.1 17-Apr-2012  yamt sync with head
 1.56 20-Sep-2023  shm Removed unnecessary comment

Thanks leot@ for pointing this out
 1.55 20-Sep-2023  shm Remove unused variable (bp)
 1.54 08-Apr-2021  rillig branches: 1.54.6;
bozohttpd: fix argument type for functions from <ctype.h>

Found by the recently added check to lint (message 342).

ok mrg@
 1.53 27-Feb-2021  mrg belated call version 20210211 after previous memory leak fix.
 1.52 11-Feb-2021  mrg changes in bozohttpd 20210210:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
 1.51 15-Oct-2020  mrg various updates from <henrik@gulbra.net> / freebsd. the list from Henrik:

bozohttpd.8:
o Added -d flag to the man page
o Moved -E flag in man page to keep alphabetic order
o Grammar fix for description of -E flag in man page
o Moved a word in the man description for the -f flag
o Made -f imply -b as a backwards-compatible shortcut
o Updated man description of -n to mention Lua scripts
o Moved -z below -Z to keep the uppercase options first

bozohttpd.c:
o Removed obsolete comment about ~user missing cgi-bin support
o Removed "/* ARGSUSED */" lines; was that a macro or a reminder?
o Added USE_ARG macro call for sig, which was otherwise not used
o Added USE_ARG macro call for msg (only used if debug is enabled)

bozohttpd.h:
o Fixed typo in the include guard (BOZOHTTOPD_H_ -> BOZOHTTPD_H_)
o Renamed have_all to have_core; it didn't mean "all" options

content-bozo.c:
o Added USE_ARG macro call for signo, which was otherwise not used
o Made -f imply -b as a backwards-compatible shortcut

main.c:
o Simplified -b text to be symmetric with that for the -f option
o Updated -C text to make "suffix" explicit; it's better than "arg"
o Changed to only show the -E description if have_user is true
o Always show the -e option, which incorrectly used the -E logic
o Renamed have_all to have_core; it didn't mean "all" options
o Added three missing tabs for the description of the -G option
o Updated -L text to make "prefix" explicit; it's better than "arg"
o Updated -M text to make "suffix" explicit; it's slightly better
o Added a previously missing description for the -n option
o Documented the otherwise obscure valid types for the -T option
o Shortened "username" to "user" to match the actual help text
o Moved handling of -c below that for -C to standardize the order
o Broke the enabling test for -C into two lines for consistency
o Inverted the enabling test for -E; this is what was meant, right?
o Removed the enabling test for -e, which should always be enabled

ssl-bozo.c:
o Added USE_ARG for httpd, which is not used if SSL has been excluded
 1.50 20-Aug-2020  spz send close_notify for the ssl connection before closing the TCP connection
Thanks to Dr. Thomas Orgis for reporting the issue.
 1.49 06-Dec-2019  mrg remove some XXX comments. one isn't relevant, and the other two
have been incorrect for a long while now.
 1.48 29-Mar-2019  martin branches: 1.48.2;
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.47 17-Jan-2019  mrg - call this 20190116
- adjust the directory indexing again:
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
all from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>
 1.46 17-Jan-2019  mrg - fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().

both from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>
 1.45 24-Nov-2018  christos appease lint
 1.44 23-Nov-2018  mrg minor style fixes. simplify bozo_match_content_map().
 1.43 22-Nov-2018  mrg add an assert() check on array bounds.
 1.42 22-Nov-2018  mrg many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines
 1.41 20-Nov-2018  mrg from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.


the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.


reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.


clean up option and usage handling some.
 1.40 18-Nov-2018  mrg use __func__ in debug().
 1.39 28-Nov-2017  martin branches: 1.39.2; 1.39.4;
PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.
 1.38 05-Oct-2017  mrg s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.
 1.37 31-Jan-2017  mrg branches: 1.37.4;
call this bozohttpd 20170201.
 1.36 31-Jan-2017  mrg - fix a bug in cgi processing. from Dennis Lindroos.
- add a testcase for this, and expand test-simple to handle additional
args to bozohttpd for eg, cgi-bin setting.
- fix objdir bugs in the testsuite.
 1.35 24-Apr-2016  christos branches: 1.35.2; 1.35.4;
CID 1358679: Fix memory leak.
XXX: pullup 7
 1.34 15-Apr-2016  mrg use %zu instead of %lu for size_t.
 1.33 15-Apr-2016  mrg updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.32 31-Dec-2015  mrg redo the fix for rev 1.26 - instead of getting a new string wrong,
just delay the free until the parent has finished using them.
also, free query as well.

fixes PR#50374.
 1.31 29-Dec-2015  mrg - convert most asprintf() calls to bozoasprintf().
- don't call getpwuid(0) if we don't need to, or fail it it fails,
and remove the 'username' member of bozohttpd_t since it is not
used outside of bozo_setup().
 1.30 28-Dec-2015  mrg rename bozo_err/bozo_warn/bozo_asprintf to bozoerr/etc.
new rule is that function that mirror libc-style functions get no underscore.
 1.29 27-Dec-2015  mrg several clean ups:

- bozostrdup() gains a request parameter, and uses it to determine
what sort of error handling is required
- bozo_strdup() dies
- size_arrays() reduced slightly, pushing error handling into the caller
- convert to size_t for some array indices
- bozo_set_pref() and bozo_init_prefs() gain httpd parameters
- apply a bunch of manual CSE to vastly reduce the number of times the
string "request->hr_httpd" appears.
- CGI parse_header() takes a request not httpd now

XXX: lua glue updated to call bozo_init_prefs() with htttpd parameter,
but i'm only guessing here.
 1.28 28-Oct-2015  shm * add CGI support for ~user translation (-E switch)
* add redirects to ~user translation
* fix bugs around ~user translation
* add schema detection for absolute redirects
* fixed few memory leaks
* bunch of minor tweaks
* removed -r support
* smarter redirects

OK mrg@
 1.27 02-May-2015  mrg fix content type handling to not hard code (wrong) values for length,
but just call strlen() as needed. call this 20150501.

reported by Jan Danielsson for ".svg".
 1.26 19-Apr-2015  christos Fix deref "command" after "free(file)", from KIYOHARA Takashi
 1.25 24-Jun-2014  shm branches: 1.25.2;
PR/48810 use cgi handler for index files

OK mrg@ martin@
 1.24 02-Jan-2014  mrg branches: 1.24.2;
- update CHANGES with recent changes
- update version to 20140102
- update copyrights
- use getcwd() over getwd()
- fix lean build (don't include lua)
 1.23 12-Oct-2013  mbalmer no need to check free() arguments against NULL
 1.22 11-Jul-2013  mrg copyright maint.
 1.21 27-Jun-2013  martin Redo previous (fixing a memory leak introduced), and while there rework
virtual server support - in daemonized mode mixed virtual and "main"
server usage would alter the virtual hostname depending on order of
requests.
To fix, move the effective virtual hostname into the request structure
and leave the httpd server description static.
 1.20 18-Nov-2011  mrg branches: 1.20.2; 1.20.6; 1.20.8; 1.20.14;
merge bozohttpd 20111118
 1.19 14-Dec-2010  tls branches: 1.19.6;
When invoking a content handler specified via -C, set the REDIRECT_STATUS
CGI variable to "200". This approximates the Apache behavior which is
required by phpcgi in PHP 5.3 (and by some compilations of older PHP
versions).

I have a revolutionary idea. Perhaps instead of imposing bizarre
requirements on other programs in the name of "security", the PHP
developers should make their own code compile with oh, I don't know,
maybe -Wuninitialized. That might have an effect on the security of
systems using PHP rather than on the "security" of such systems...

...excuse me, got to go now, I think my airquotes just wore out.
 1.18 20-Sep-2010  mrg merge bozohttpd 20100920
 1.17 17-Jun-2010  mrg merge bozohttpd 20100617.
 1.16 10-May-2010  mrg merge bozohttpd 20100510.
 1.15 10-May-2010  mrg merge bozohttpd 20100509.
 1.14 23-May-2009  mrg merge bozohttpd 20090522
 1.13 18-Apr-2009  mrg merge bozohttpd 20090418. remove a couple of minor do-nothing local
changes that don't need to cause conflicts.
 1.12 18-Apr-2009  mrg merge bozohttpd 20090417
 1.11 11-Mar-2009  mrg use SIMPLEQ_FOREACH_SAFE(), to avoid a use-after-free.

picked up by coverity.
 1.10 19-Feb-2009  tls More CGI handling fixes from Sergey Katsev at Coyote Point.

1) Fix an issue where because of the reordering of transform_request
and process_cgi, the cgi-script name was being cut off
by one character (transform_request for some reason
cuts off the leading '/' for the file name as part of its
processing). As an 'easy' fix, simply re-add the '/' to the
front of the filename, which means that we don't have to
mess with the logic that sometimes adds +1 and sometimes doesn't.

2) Work around ridiculous bug in PHP reported by lukem in 2004,
but stubbornly never fixed by the PHP maintainers:

Change the SCRIPT_NAME and SCRIPT_FILENAME variables
to contain the file name only, not the query if one exists.
Having the query in SCRIPT_FILENAME causes php-cgi to not
work, as per the bug information here:
http://bugs.php.net/bug.php?id=28227

3) Fix a memory leak because URL wasn't being freed.
 1.9 04-Feb-2009  tls branches: 1.9.2;
From Sergey Katsev at Coyote Point: fix bugs in request transformation and
CGI handling, including bin/40355 . There are two main changes here:

1) call process_cgi() after transform_request(), not before. Now it is
possible to have a default cgi handler catch a request for a path that
was produced by transformation, e.g. by index generation -- so now the
index can be "generated" by a CGI if that is what the user desires.

2) More clearly distinguish "file" from "query" portions of the request
URL, so we do not feed ?-suffixed "arguments" to plain files, fail to
match filename extensions due to ?-suffixes, etc.

After this change, there are only two cases which use the "query"
portion of the request (the portion after the ?):

a) A redirect issued by HTTPD will redirect to the new file, but
with the same query string.

b) process_cgi() will, of course continue to use the query string.
 1.8 06-Nov-2008  mrg pull across the fix from my master bozohttpd cvs tree for PR 38466.
 1.7 03-Mar-2008  mrg branches: 1.7.8;
merge bozohttpd 20080303
 1.6 04-Nov-2007  rtr branches: 1.6.2; 1.6.6;
- remove const from h_header, this pointer is occasionally free'd
- remove unused write_str var
+ move header parsing to new function separation of parsing vs processing
+ alter some variable names to avoid confusion between header value and
header name (caused breakage with previous rev)
 1.5 04-Nov-2007  rtr + don't free strdup()'d ptr that was manipulated.
(i.e. free(): warning: modified (chunk-) pointer))
+ don't leak memory for ptr actually returned from strdup()
+ don't strdup() if we don't have to
+ don't break without free() if we did strdup()
+ as well as freeing h_value also free the header.
 1.4 17-Oct-2007  tls RCS IDs
 1.3 17-Oct-2007  tls Fix two memory leaks noted by Coverity (CID-4694, CIT-4695) and use
SIMPLEQ_FOREACH where possible. Patch from Arnaud Lacombe.
 1.2 16-Oct-2007  tls Get httpd ready for inclusion in build.
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.10 18-Nov-2011  mrg update to bozohttpd 20111118. nothing major is missing here but
the changes since the prior import were:

o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well
 1.1.1.9 20-Sep-2010  mrg initial import of bozohttpd 20100920. the only change missing in here is:

o fix dynamic CGI content maps, from rudolf
 1.1.1.8 17-Jun-2010  mrg initial import of bozohttpd 20100617. recent changes:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour
 1.1.1.7 10-May-2010  mrg import bozohttpd 20100510 -- just fixes some compile errors.
 1.1.1.6 10-May-2010  mrg import bozohttpd 20100509. it has these changes:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
 1.1.1.5 23-May-2009  mrg import bozohttpd 20090522, which has these changes:
o close more leaking file descriptors for CGI and daemon mode
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child
 1.1.1.4 18-Apr-2009  mrg import bozohttpd 20090418. changes include:

o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet

this covers PR#38489 and PR#40079, as well some some issues reported
privately.
 1.1.1.3 18-Apr-2009  mrg import latest bozohttpd sources. changes include:

o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.2 03-Mar-2008  mrg import latest bozohttpd. changes include:

o fix some cgi header processing, from <thelsdj@gmail.com>
o add simple Range: header processing, from <bad@bsd.de>
o man page fixes, from NetBSD
o clean up various parts, from NetBSD
o prefix some function names with "bozo"
o align directory indexing <hr> markers
o clean up some code GCC4 grumbled about
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.6.6.1 24-Mar-2008  keiichi sync with head.
 1.6.2.3 23-Mar-2008  matt sync with HEAD
 1.6.2.2 06-Nov-2007  matt sync with HEAD
 1.6.2.1 04-Nov-2007  matt file cgi-bozo.c was added on branch matt-armv6 on 2007-11-06 23:12:03 +0000
 1.7.8.4 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.7.8.3 24-Feb-2009  snj branches: 1.7.8.3.6; 1.7.8.3.10;
Pull up following revision(s) (requested by tls in ticket #480):
libexec/httpd/cgi-bozo.c: revision 1.10
More CGI handling fixes from Sergey Katsev at Coyote Point.
1) Fix an issue where because of the reordering of transform_request
and process_cgi, the cgi-script name was being cut off
by one character (transform_request for some reason
cuts off the leading '/' for the file name as part of its
processing). As an 'easy' fix, simply re-add the '/' to the
front of the filename, which means that we don't have to
mess with the logic that sometimes adds +1 and sometimes doesn't.
2) Work around ridiculous bug in PHP reported by lukem in 2004,
but stubbornly never fixed by the PHP maintainers:
Change the SCRIPT_NAME and SCRIPT_FILENAME variables
to contain the file name only, not the query if one exists.
Having the query in SCRIPT_FILENAME causes php-cgi to not
work, as per the bug information here:
http://bugs.php.net/bug.php?id=28227
3) Fix a memory leak because URL wasn't being freed.
 1.7.8.2 08-Feb-2009  snj Pull up following revision(s) (requested by tls in ticket #428):
libexec/httpd/bozohttpd.c: revision 1.9
libexec/httpd/bozohttpd.h: revision 1.6
libexec/httpd/cgi-bozo.c: revision 1.9
libexec/httpd/dir-index-bozo.c: revision 1.5
libexec/httpd/tilde-luzah-bozo.c: revision 1.4
From Sergey Katsev at Coyote Point: fix bugs in request transformation and
CGI handling, including bin/40355 . There are two main changes here:
1) call process_cgi() after transform_request(), not before. Now it is
possible to have a default cgi handler catch a request for a path that
was produced by transformation, e.g. by index generation -- so now the
index can be "generated" by a CGI if that is what the user desires.
2) More clearly distinguish "file" from "query" portions of the request
URL, so we do not feed ?-suffixed "arguments" to plain files, fail to
match filename extensions due to ?-suffixes, etc.
After this change, there are only two cases which use the "query"
portion of the request (the portion after the ?):
a) A redirect issued by HTTPD will redirect to the new file, but
with the same query string.
b) process_cgi() will, of course continue to use the query string.
 1.7.8.1 23-Nov-2008  riz Pull up following revision(s) (requested by mrg in ticket #115):
libexec/httpd/cgi-bozo.c: revision 1.8
pull across the fix from my master bozohttpd cvs tree for PR 38466.
 1.7.8.3.10.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.7.8.3.6.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.9.2.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.19.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.19.6.1 17-Apr-2012  yamt sync with head
 1.20.14.4 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437:
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.20.14.3 15-Apr-2016  mrg Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/cgi-bozo.c 1.34

use %zu instead of %lu for size_t.

(ok snj@)
 1.20.14.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.20.14.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.20.8.4 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.20.8.3 15-Apr-2016  mrg Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/cgi-bozo.c 1.34

use %zu instead of %lu for size_t.

(ok snj@)
 1.20.8.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.20.8.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.20.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.20.2.4 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.20.2.3 15-Apr-2016  mrg Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/cgi-bozo.c 1.34

use %zu instead of %lu for size_t.

(ok snj@)
 1.20.2.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.20.2.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.24.2.1 10-Aug-2014  tls Rebase.
 1.25.2.11 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.25.2.10 28-Nov-2018  martin Pull up following revision(s) (requested by mrg in ticket #1659):

libexec/httpd/main.c: revision 1.22
libexec/httpd/CHANGES: revision 1.29
libexec/httpd/cgi-bozo.c: revision 1.45
libexec/httpd/bozohttpd.h: revision 1.57
libexec/httpd/CHANGES: revision 1.30
libexec/httpd/bozohttpd.c: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.98
libexec/httpd/bozohttpd.c: revision 1.99

one semicolon is usually enough.

-

appease lint

- add FALLTHROUGH comment
- one return is usually enough.

-

avoid c99ism.

-

fix -X option parsing. noted by Rajeev V. Pillai.

-

add option fixes here.

-

normalise some messages.
 1.25.2.9 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.25.2.8 03-Jan-2018  snj Pull up following revision(s) (requested by martin in ticket #1533):
libexec/httpd/cgi-bozo.c: revision 1.39
PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.
 1.25.2.7 12-Feb-2017  snj branches: 1.25.2.7.2;
Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.25.2.6 23-Dec-2016  snj Pull up following revision(s) (requested by mrg in ticket #1309):
libexec/httpd/CHANGES: revisions 1.23, 1.24
libexec/httpd/bozohttpd.8: revisions 1.60-1.62
libexec/httpd/bozohttpd.c: revisions 1.81-1.84
libexec/httpd/bozohttpd.h: revision 1.46
libexec/httpd/cgi-bozo.c: revision 1.35
libexec/httpd/content-bozo.c: revision 1.14
libexec/httpd/main.c: revisions 1.14-1.16
libexec/httpd/testsuite/Makefile: revision 1.6
libexec/httpd/testsuite/test-bigfile: revision 1.3
libexec/httpd/testsuite/test-simple: revisions 1.1, 1.2
update bozohttpd to 2016072:
- fix memory leak
- addd -G option to display version
- fix some content type issues
- fix issues in testsuite
 1.25.2.5 15-Apr-2016  mrg branches: 1.25.2.5.2;
Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/cgi-bozo.c 1.34

use %zu instead of %lu for size_t.

(ok snj@)
 1.25.2.4 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.25.2.3 10-Apr-2016  martin Catch up to -current (via patch), requested by mspo in #1141:

libexec/httpd/CHANGES up to 1.21
libexec/httpd/Makefile up to 1.26
libexec/httpd/auth-bozo.c up to 1.18
libexec/httpd/bozohttpd.8 up to 1.58
libexec/httpd/bozohttpd.c up to 1.79
libexec/httpd/bozohttpd.h up to 1.44
libexec/httpd/cgi-bozo.c up to 1.32
libexec/httpd/content-bozo.c up to 1.13
libexec/httpd/daemon-bozo.c up to 1.17
libexec/httpd/dir-index-bozo.c up to 1.25
libexec/httpd/lua-bozo.c up to 1.14
libexec/httpd/main.c up to 1.13
libexec/httpd/netbsd_queue.h up to 1.1
libexec/httpd/printenv.lua up to 1.3
libexec/httpd/ssl-bozo.c up to 1.22
libexec/httpd/tilde-luzah-bozo.c up to 1.14
libexec/httpd/testsuite/Makefile up to 1.5
libexec/httpd/testsuite/test-bigfile up to 1.2

Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
 1.25.2.2 09-May-2015  snj branches: 1.25.2.2.2;
Pull up following revision(s) (requested by mrg in ticket #743):
libexec/httpd/bozohttpd.8: revision 1.51
libexec/httpd/bozohttpd.c: revision 1.64
libexec/httpd/bozohttpd.h: revision 1.35
libexec/httpd/cgi-bozo.c: revision 1.27
libexec/httpd/content-bozo.c: revision 1.12
fix content type handling to not hard code (wrong) values for length,
but just call strlen() as needed. call this 20150501.
reported by Jan Danielsson for ".svg".
 1.25.2.1 23-Apr-2015  snj Pull up following revision(s) (requested by mrg in ticket #715):
distrib/sets/lists/base/mi: revision 1.1100
distrib/sets/lists/man/mi: revision 1.1499 via patch
libexec/httpd/Makefile: revision 1.23
libexec/httpd/bozohttpd.8: revision 1.50
libexec/httpd/cgi-bozo.c: revision 1.26
install as bozohttpd/bozohttpd.8 as well as httpd.
--
Fix deref "command" after "free(file)", from KIYOHARA Takashi
 1.25.2.7.2.4 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.25.2.7.2.3 28-Nov-2018  martin Pull up following revision(s) (requested by mrg in ticket #1659):

libexec/httpd/main.c: revision 1.22
libexec/httpd/CHANGES: revision 1.29
libexec/httpd/cgi-bozo.c: revision 1.45
libexec/httpd/bozohttpd.h: revision 1.57
libexec/httpd/CHANGES: revision 1.30
libexec/httpd/bozohttpd.c: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.98
libexec/httpd/bozohttpd.c: revision 1.99

one semicolon is usually enough.

-

appease lint

- add FALLTHROUGH comment
- one return is usually enough.

-

avoid c99ism.

-

fix -X option parsing. noted by Rajeev V. Pillai.

-

add option fixes here.

-

normalise some messages.
 1.25.2.7.2.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.25.2.7.2.1 03-Jan-2018  snj Pull up following revision(s) (requested by martin in ticket #1533):
libexec/httpd/cgi-bozo.c: revision 1.39
PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.
 1.25.2.5.2.2 13-Mar-2017  skrll Sync with netbsd-7-1-RELEASE
 1.25.2.5.2.1 18-Jan-2017  skrll Sync with netbsd-5
 1.25.2.2.2.8 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.25.2.2.2.7 28-Nov-2018  martin Pull up following revision(s) (requested by mrg in ticket #1659):

libexec/httpd/main.c: revision 1.22
libexec/httpd/CHANGES: revision 1.29
libexec/httpd/cgi-bozo.c: revision 1.45
libexec/httpd/bozohttpd.h: revision 1.57
libexec/httpd/CHANGES: revision 1.30
libexec/httpd/bozohttpd.c: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.98
libexec/httpd/bozohttpd.c: revision 1.99

one semicolon is usually enough.

-

appease lint

- add FALLTHROUGH comment
- one return is usually enough.

-

avoid c99ism.

-

fix -X option parsing. noted by Rajeev V. Pillai.

-

add option fixes here.

-

normalise some messages.
 1.25.2.2.2.6 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.25.2.2.2.5 03-Jan-2018  snj Pull up following revision(s) (requested by martin in ticket #1533):
libexec/httpd/cgi-bozo.c: revision 1.39
PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.
 1.25.2.2.2.4 12-Feb-2017  snj Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.25.2.2.2.3 23-Dec-2016  snj Pull up following revision(s) (requested by mrg in ticket #1309):
libexec/httpd/CHANGES: revisions 1.23, 1.24
libexec/httpd/bozohttpd.8: revisions 1.60-1.62
libexec/httpd/bozohttpd.c: revisions 1.81-1.84
libexec/httpd/bozohttpd.h: revision 1.46
libexec/httpd/cgi-bozo.c: revision 1.35
libexec/httpd/content-bozo.c: revision 1.14
libexec/httpd/main.c: revisions 1.14-1.16
libexec/httpd/testsuite/Makefile: revision 1.6
libexec/httpd/testsuite/test-bigfile: revision 1.3
libexec/httpd/testsuite/test-simple: revisions 1.1, 1.2
update bozohttpd to 2016072:
- fix memory leak
- addd -G option to display version
- fix some content type issues
- fix issues in testsuite
 1.25.2.2.2.2 15-Apr-2016  mrg Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/cgi-bozo.c 1.34

use %zu instead of %lu for size_t.

(ok snj@)
 1.25.2.2.2.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.35.4.1 21-Apr-2017  bouyer Sync with HEAD
 1.35.2.1 20-Mar-2017  pgoyette Sync with HEAD
 1.37.4.5 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.37.4.4 12-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1281:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6


Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.37.4.3 28-Nov-2018  martin Pull up following revision(s) (requested by mrg in ticket #1109):

libexec/httpd/main.c: revision 1.22
libexec/httpd/CHANGES: revision 1.29
libexec/httpd/cgi-bozo.c: revision 1.45
libexec/httpd/bozohttpd.h: revision 1.57
libexec/httpd/CHANGES: revision 1.30
libexec/httpd/bozohttpd.c: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.98
libexec/httpd/bozohttpd.c: revision 1.99

one semicolon is usually enough.

-

appease lint

- add FALLTHROUGH comment
- one return is usually enough.

-

avoid c99ism.

-

fix -X option parsing. noted by Rajeev V. Pillai.

-

add option fixes here.

-

normalise some messages.
 1.37.4.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.37.4.1 04-Dec-2017  snj Pull up following revision(s) (requested by martin in ticket #409):
libexec/httpd/cgi-bozo.c: revision 1.39
PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.
 1.39.4.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.39.4.1 10-Jun-2019  christos Sync with HEAD
 1.39.2.2 18-Jan-2019  pgoyette Synch with HEAD
 1.39.2.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.48.2.1 05-Mar-2021  martin Pull up the following (all via patch), requested by mrg in ticket #1221:

lib/lua/bozohttpd/Makefile (apply patch)
libexec/httpd/Makefile 1.30-1.31
libexec/httpd/Makefile.boot 1.7-1.9
libexec/httpd/auth-bozo.c 1.25-1.26
libexec/httpd/bozohttpd.8 1.80-1.87
libexec/httpd/bozohttpd.c 1.114-1.123,1.125-1.128
libexec/httpd/bozohttpd.h 1.61-1.68
libexec/httpd/cgi-bozo.c 1.49-1.53
libexec/httpd/content-bozo.c 1.17-1.20
libexec/httpd/daemon-bozo.c 1-.22
libexec/httpd/dir-index-bozo.c 1.33-1.34
libexec/httpd/main.c 1.23-1.27
libexec/httpd/printenv.lua 1.4-1.5
libexec/httpd/ssl-bozo.c 1.27-1.29
libexec/httpd/libbozohttpd/libbozohttpd.3 1.5-1.6
libexec/httpd/small/Makefile 1.4
libexec/httpd/testsuite/Makefile 1.14
libexec/httpd/testsuite/t16.in 1.1
libexec/httpd/testsuite/t16.out 1.1
libexec/httpd/testsuite/t17.in 1.1
libexec/httpd/testsuite/t17.out 1.1
libexec/httpd/testsuite/t18.in 1.1
libexec/httpd/testsuite/t18.out 1.1


Update to bozohttpd 20210227.
Apply lua build fix (no blocklist support on this branch).

changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.54.6.1 29-Jul-2025  martin Pull up following revision(s) (requested by mrg in ticket #1139):

libexec/httpd/CHANGES: revision 1.55
libexec/httpd/CHANGES: revision 1.56
libexec/httpd/cgi-bozo.c: revision 1.55
libexec/httpd/cgi-bozo.c: revision 1.56
libexec/httpd/bozohttpd.8: revision 1.93
libexec/httpd/bozohttpd.8: revision 1.94
libexec/httpd/bozohttpd.8: revision 1.95
libexec/httpd/bozohttpd.8: revision 1.96
libexec/httpd/bozohttpd.8: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.143
libexec/httpd/bozohttpd.8: revision 1.100
libexec/httpd/bozohttpd.c: revision 1.144
libexec/httpd/bozohttpd.8: revision 1.99
libexec/httpd/bozohttpd.c: revision 1.145
libexec/httpd/bozohttpd.c: revision 1.146
libexec/httpd/bozohttpd.c: revision 1.147
libexec/httpd/auth-bozo.c: revision 1.28
libexec/httpd/ssl-bozo.c: revision 1.33
libexec/httpd/ssl-bozo.c: revision 1.34
libexec/httpd/content-bozo.c: revision 1.22
libexec/httpd/main.c: revision 1.31

serve .iso as "application/octet-stream". bump version & copyright.

add a note about how to setup http -> https redirection.
bump documented version.

Fix memory leaks in bozo_cleanup

Fix hr_authrealm memory leak
hr_authrealm might be already set, so we need to free it before overwriting
the value

Remove unused variable (bp)

Fix off-by-one in bozo_decode_url_percent

In case of strings that end with '%', debug function was reading past buffer.
Removed unnecessary comment
Thanks leot@ for pointing this out

httpd(8): Add missing newline to `SSL Error' messages.
Matches the pattern in all other printf/syslog calls.

add some missing changes and bump the version.

s/supressing/suppressing/.

note this documents bozohttpd 20240126.

Bump bozohttpd version to today for mobile-friendly directory listing

bozohttpd(8): clarifications and editorial fixes

Clarify that -b also listens on an address and port
(overridden by -i address and/or -I port), as does -f.

If -i isn't given, all addresses are listened to.
Use literal instead of emphasis for Lua, paths, URLs (etc).

Add more cross-references to other options.

Split FILES into a tagged list and subsections describing
the behaviour.

drop duplicate "by default".
 1.22 07-Jun-2023  mrg serve .iso as "application/octet-stream". bump version & copyright.
 1.21 31-May-2022  mrg branches: 1.21.2;
add .mobi / application/x-mobipocket-ebook.
 1.20 27-Feb-2021  mrg changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid
 1.19 15-Oct-2020  mrg various updates from <henrik@gulbra.net> / freebsd. the list from Henrik:

bozohttpd.8:
o Added -d flag to the man page
o Moved -E flag in man page to keep alphabetic order
o Grammar fix for description of -E flag in man page
o Moved a word in the man description for the -f flag
o Made -f imply -b as a backwards-compatible shortcut
o Updated man description of -n to mention Lua scripts
o Moved -z below -Z to keep the uppercase options first

bozohttpd.c:
o Removed obsolete comment about ~user missing cgi-bin support
o Removed "/* ARGSUSED */" lines; was that a macro or a reminder?
o Added USE_ARG macro call for sig, which was otherwise not used
o Added USE_ARG macro call for msg (only used if debug is enabled)

bozohttpd.h:
o Fixed typo in the include guard (BOZOHTTOPD_H_ -> BOZOHTTPD_H_)
o Renamed have_all to have_core; it didn't mean "all" options

content-bozo.c:
o Added USE_ARG macro call for signo, which was otherwise not used
o Made -f imply -b as a backwards-compatible shortcut

main.c:
o Simplified -b text to be symmetric with that for the -f option
o Updated -C text to make "suffix" explicit; it's better than "arg"
o Changed to only show the -E description if have_user is true
o Always show the -e option, which incorrectly used the -E logic
o Renamed have_all to have_core; it didn't mean "all" options
o Added three missing tabs for the description of the -G option
o Updated -L text to make "prefix" explicit; it's better than "arg"
o Updated -M text to make "suffix" explicit; it's slightly better
o Added a previously missing description for the -n option
o Documented the otherwise obscure valid types for the -T option
o Shortened "username" to "user" to match the actual help text
o Moved handling of -c below that for -C to standardize the order
o Broke the enabling test for -C into two lines for consistency
o Inverted the enabling test for -E; this is what was meant, right?
o Removed the enabling test for -e, which should always be enabled

ssl-bozo.c:
o Added USE_ARG for httpd, which is not used if SSL has been excluded
 1.18 12-Sep-2020  rhialto bozohttpd: correct .m4a to audio/mp4.
 1.17 12-Sep-2020  rhialto bozohttpd: add .m4a and .m4v file extensions.
 1.16 23-Nov-2018  mrg branches: 1.16.2;
minor style fixes. simplify bozo_match_content_map().
 1.15 20-Nov-2018  mrg from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.


the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.


reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.


clean up option and usage handling some.
 1.14 19-Jul-2016  shm branches: 1.14.6; 1.14.12; 1.14.14;
Do not send encoding header for compressed formats.
 1.13 28-Dec-2015  mrg branches: 1.13.2;
rename bozo_err/bozo_warn/bozo_asprintf to bozoerr/etc.
new rule is that function that mirror libc-style functions get no underscore.
 1.12 02-May-2015  mrg fix content type handling to not hard code (wrong) values for length,
but just call strlen() as needed. call this 20150501.

reported by Jan Danielsson for ".svg".
 1.11 13-Dec-2014  mrg add .ts and .vob suffixes.
 1.10 17-May-2014  mrg branches: 1.10.2;
enable .svg. as prompted by agc@.
 1.9 02-Jan-2014  mrg branches: 1.9.2;
- update CHANGES with recent changes
- update version to 20140102
- update copyrights
- use getcwd() over getwd()
- fix lean build (don't include lua)
 1.8 11-Jul-2013  mrg - update CHANGES with recent changes
- export esacpe_html() and use it in directory indexing
- update manual to include recent contributors
 1.7 18-Nov-2011  mrg branches: 1.7.2; 1.7.6; 1.7.8; 1.7.14;
merge bozohttpd 20111118
 1.6 31-Mar-2011  mrg branches: 1.6.4;
add .mp4 as video/mp4.
 1.5 10-May-2010  mrg merge bozohttpd 20100509.
 1.4 18-Apr-2009  mrg merge bozohttpd 20090417
 1.3 03-Mar-2008  mrg branches: 1.3.6; 1.3.8; 1.3.10; 1.3.16;
merge bozohttpd 20080303
 1.2 17-Oct-2007  tls branches: 1.2.2; 1.2.6;
RCS IDs
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.5 18-Nov-2011  mrg update to bozohttpd 20111118. nothing major is missing here but
the changes since the prior import were:

o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well
 1.1.1.4 10-May-2010  mrg import bozohttpd 20100509. it has these changes:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
 1.1.1.3 18-Apr-2009  mrg import latest bozohttpd sources. changes include:

o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.2 03-Mar-2008  mrg import latest bozohttpd. changes include:

o fix some cgi header processing, from <thelsdj@gmail.com>
o add simple Range: header processing, from <bad@bsd.de>
o man page fixes, from NetBSD
o clean up various parts, from NetBSD
o prefix some function names with "bozo"
o align directory indexing <hr> markers
o clean up some code GCC4 grumbled about
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.2.6.1 24-Mar-2008  keiichi sync with head.
 1.2.2.3 23-Mar-2008  matt sync with HEAD
 1.2.2.2 06-Nov-2007  matt sync with HEAD
 1.2.2.1 17-Oct-2007  matt file content-bozo.c was added on branch matt-armv6 on 2007-11-06 23:12:04 +0000
 1.3.16.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.3.10.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.3.8.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.3.6.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.6.4.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.6.4.1 17-Apr-2012  yamt sync with head
 1.7.14.3 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437:
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.7.14.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.7.14.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.7.8.3 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.7.8.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.7.8.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.7.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.7.2.3 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.7.2.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.7.2.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.9.2.1 10-Aug-2014  tls Rebase.
 1.10.2.5 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.10.2.4 23-Dec-2016  snj branches: 1.10.2.4.2;
Pull up following revision(s) (requested by mrg in ticket #1309):
libexec/httpd/CHANGES: revisions 1.23, 1.24
libexec/httpd/bozohttpd.8: revisions 1.60-1.62
libexec/httpd/bozohttpd.c: revisions 1.81-1.84
libexec/httpd/bozohttpd.h: revision 1.46
libexec/httpd/cgi-bozo.c: revision 1.35
libexec/httpd/content-bozo.c: revision 1.14
libexec/httpd/main.c: revisions 1.14-1.16
libexec/httpd/testsuite/Makefile: revision 1.6
libexec/httpd/testsuite/test-bigfile: revision 1.3
libexec/httpd/testsuite/test-simple: revisions 1.1, 1.2
update bozohttpd to 2016072:
- fix memory leak
- addd -G option to display version
- fix some content type issues
- fix issues in testsuite
 1.10.2.3 10-Apr-2016  martin branches: 1.10.2.3.2;
Catch up to -current (via patch), requested by mspo in #1141:

libexec/httpd/CHANGES up to 1.21
libexec/httpd/Makefile up to 1.26
libexec/httpd/auth-bozo.c up to 1.18
libexec/httpd/bozohttpd.8 up to 1.58
libexec/httpd/bozohttpd.c up to 1.79
libexec/httpd/bozohttpd.h up to 1.44
libexec/httpd/cgi-bozo.c up to 1.32
libexec/httpd/content-bozo.c up to 1.13
libexec/httpd/daemon-bozo.c up to 1.17
libexec/httpd/dir-index-bozo.c up to 1.25
libexec/httpd/lua-bozo.c up to 1.14
libexec/httpd/main.c up to 1.13
libexec/httpd/netbsd_queue.h up to 1.1
libexec/httpd/printenv.lua up to 1.3
libexec/httpd/ssl-bozo.c up to 1.22
libexec/httpd/tilde-luzah-bozo.c up to 1.14
libexec/httpd/testsuite/Makefile up to 1.5
libexec/httpd/testsuite/test-bigfile up to 1.2

Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
 1.10.2.2 09-May-2015  snj branches: 1.10.2.2.2;
Pull up following revision(s) (requested by mrg in ticket #743):
libexec/httpd/bozohttpd.8: revision 1.51
libexec/httpd/bozohttpd.c: revision 1.64
libexec/httpd/bozohttpd.h: revision 1.35
libexec/httpd/cgi-bozo.c: revision 1.27
libexec/httpd/content-bozo.c: revision 1.12
fix content type handling to not hard code (wrong) values for length,
but just call strlen() as needed. call this 20150501.
reported by Jan Danielsson for ".svg".
 1.10.2.1 12-Jan-2015  martin Pull up following revision(s) (requested by mrg in ticket #408):
libexec/httpd/content-bozo.c: revision 1.11
libexec/httpd/dir-index-bozo.c: revision 1.20
libexec/httpd/bozohttpd.h: revision 1.34
libexec/httpd/bozohttpd.c: revision 1.57
libexec/httpd/bozohttpd.8: revision 1.47
libexec/httpd/bozohttpd.c: revision 1.58
libexec/httpd/bozohttpd.8: revision 1.48
libexec/httpd/bozohttpd.c: revision 1.59
libexec/httpd/lua-bozo.c: revision 1.11
libexec/httpd/bozohttpd.c: revision 1.60
libexec/httpd/auth-bozo.c: revision 1.14
libexec/httpd/auth-bozo.c: revision 1.15
libexec/httpd/auth-bozo.c: revision 1.16

Update bozohttpd to 20141225:
- NUL terminate a string.
- don't truncate file sizes to 32 bits for directory indexes.
- Fixed off-by-one in virtualhost processing. Previous code was
checking if Host header is a prefix of any existing vhost.
This behaviour might be used to uncover existing vitual hosts
from the remote.
- Fixed memory leak in case of multiple authentication headers sent
by the client.
- Avoid array access out of bounds.
 1.10.2.4.2.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.10.2.3.2.1 18-Jan-2017  skrll Sync with netbsd-5
 1.10.2.2.2.3 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.10.2.2.2.2 23-Dec-2016  snj Pull up following revision(s) (requested by mrg in ticket #1309):
libexec/httpd/CHANGES: revisions 1.23, 1.24
libexec/httpd/bozohttpd.8: revisions 1.60-1.62
libexec/httpd/bozohttpd.c: revisions 1.81-1.84
libexec/httpd/bozohttpd.h: revision 1.46
libexec/httpd/cgi-bozo.c: revision 1.35
libexec/httpd/content-bozo.c: revision 1.14
libexec/httpd/main.c: revisions 1.14-1.16
libexec/httpd/testsuite/Makefile: revision 1.6
libexec/httpd/testsuite/test-bigfile: revision 1.3
libexec/httpd/testsuite/test-simple: revisions 1.1, 1.2
update bozohttpd to 2016072:
- fix memory leak
- addd -G option to display version
- fix some content type issues
- fix issues in testsuite
 1.10.2.2.2.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.13.2.1 26-Jul-2016  pgoyette Sync with HEAD
 1.14.14.1 10-Jun-2019  christos Sync with HEAD
 1.14.12.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.14.6.2 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.14.6.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.16.2.1 05-Mar-2021  martin Pull up the following (all via patch), requested by mrg in ticket #1221:

lib/lua/bozohttpd/Makefile (apply patch)
libexec/httpd/Makefile 1.30-1.31
libexec/httpd/Makefile.boot 1.7-1.9
libexec/httpd/auth-bozo.c 1.25-1.26
libexec/httpd/bozohttpd.8 1.80-1.87
libexec/httpd/bozohttpd.c 1.114-1.123,1.125-1.128
libexec/httpd/bozohttpd.h 1.61-1.68
libexec/httpd/cgi-bozo.c 1.49-1.53
libexec/httpd/content-bozo.c 1.17-1.20
libexec/httpd/daemon-bozo.c 1-.22
libexec/httpd/dir-index-bozo.c 1.33-1.34
libexec/httpd/main.c 1.23-1.27
libexec/httpd/printenv.lua 1.4-1.5
libexec/httpd/ssl-bozo.c 1.27-1.29
libexec/httpd/libbozohttpd/libbozohttpd.3 1.5-1.6
libexec/httpd/small/Makefile 1.4
libexec/httpd/testsuite/Makefile 1.14
libexec/httpd/testsuite/t16.in 1.1
libexec/httpd/testsuite/t16.out 1.1
libexec/httpd/testsuite/t17.in 1.1
libexec/httpd/testsuite/t17.out 1.1
libexec/httpd/testsuite/t18.in 1.1
libexec/httpd/testsuite/t18.out 1.1


Update to bozohttpd 20210227.
Apply lua build fix (no blocklist support on this branch).

changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.21.2.1 29-Jul-2025  martin Pull up following revision(s) (requested by mrg in ticket #1139):

libexec/httpd/CHANGES: revision 1.55
libexec/httpd/CHANGES: revision 1.56
libexec/httpd/cgi-bozo.c: revision 1.55
libexec/httpd/cgi-bozo.c: revision 1.56
libexec/httpd/bozohttpd.8: revision 1.93
libexec/httpd/bozohttpd.8: revision 1.94
libexec/httpd/bozohttpd.8: revision 1.95
libexec/httpd/bozohttpd.8: revision 1.96
libexec/httpd/bozohttpd.8: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.143
libexec/httpd/bozohttpd.8: revision 1.100
libexec/httpd/bozohttpd.c: revision 1.144
libexec/httpd/bozohttpd.8: revision 1.99
libexec/httpd/bozohttpd.c: revision 1.145
libexec/httpd/bozohttpd.c: revision 1.146
libexec/httpd/bozohttpd.c: revision 1.147
libexec/httpd/auth-bozo.c: revision 1.28
libexec/httpd/ssl-bozo.c: revision 1.33
libexec/httpd/ssl-bozo.c: revision 1.34
libexec/httpd/content-bozo.c: revision 1.22
libexec/httpd/main.c: revision 1.31

serve .iso as "application/octet-stream". bump version & copyright.

add a note about how to setup http -> https redirection.
bump documented version.

Fix memory leaks in bozo_cleanup

Fix hr_authrealm memory leak
hr_authrealm might be already set, so we need to free it before overwriting
the value

Remove unused variable (bp)

Fix off-by-one in bozo_decode_url_percent

In case of strings that end with '%', debug function was reading past buffer.
Removed unnecessary comment
Thanks leot@ for pointing this out

httpd(8): Add missing newline to `SSL Error' messages.
Matches the pattern in all other printf/syslog calls.

add some missing changes and bump the version.

s/supressing/suppressing/.

note this documents bozohttpd 20240126.

Bump bozohttpd version to today for mobile-friendly directory listing

bozohttpd(8): clarifications and editorial fixes

Clarify that -b also listens on an address and port
(overridden by -i address and/or -I port), as does -f.

If -i isn't given, all addresses are listened to.
Use literal instead of emphasis for Lua, paths, URLs (etc).

Add more cross-references to other options.

Split FILES into a tagged list and subsections describing
the behaviour.

drop duplicate "by default".
 1.22 15-Oct-2020  mrg various updates from <henrik@gulbra.net> / freebsd. the list from Henrik:

bozohttpd.8:
o Added -d flag to the man page
o Moved -E flag in man page to keep alphabetic order
o Grammar fix for description of -E flag in man page
o Moved a word in the man description for the -f flag
o Made -f imply -b as a backwards-compatible shortcut
o Updated man description of -n to mention Lua scripts
o Moved -z below -Z to keep the uppercase options first

bozohttpd.c:
o Removed obsolete comment about ~user missing cgi-bin support
o Removed "/* ARGSUSED */" lines; was that a macro or a reminder?
o Added USE_ARG macro call for sig, which was otherwise not used
o Added USE_ARG macro call for msg (only used if debug is enabled)

bozohttpd.h:
o Fixed typo in the include guard (BOZOHTTOPD_H_ -> BOZOHTTPD_H_)
o Renamed have_all to have_core; it didn't mean "all" options

content-bozo.c:
o Added USE_ARG macro call for signo, which was otherwise not used
o Made -f imply -b as a backwards-compatible shortcut

main.c:
o Simplified -b text to be symmetric with that for the -f option
o Updated -C text to make "suffix" explicit; it's better than "arg"
o Changed to only show the -E description if have_user is true
o Always show the -e option, which incorrectly used the -E logic
o Renamed have_all to have_core; it didn't mean "all" options
o Added three missing tabs for the description of the -G option
o Updated -L text to make "prefix" explicit; it's better than "arg"
o Updated -M text to make "suffix" explicit; it's slightly better
o Added a previously missing description for the -n option
o Documented the otherwise obscure valid types for the -T option
o Shortened "username" to "user" to match the actual help text
o Moved handling of -c below that for -C to standardize the order
o Broke the enabling test for -C into two lines for consistency
o Inverted the enabling test for -E; this is what was meant, right?
o Removed the enabling test for -e, which should always be enabled

ssl-bozo.c:
o Added USE_ARG for httpd, which is not used if SSL has been excluded
 1.21 17-Jan-2019  mrg branches: 1.21.2;
- call this 20190116
- adjust the directory indexing again:
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
all from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>
 1.20 17-Jan-2019  mrg - fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().

both from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>
 1.19 22-Nov-2018  mrg many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines
 1.18 20-Nov-2018  mrg from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.


the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.


reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.


clean up option and usage handling some.
 1.17 28-Dec-2015  mrg branches: 1.17.8; 1.17.14; 1.17.16;
rename bozo_err/bozo_warn/bozo_asprintf to bozoerr/etc.
new rule is that function that mirror libc-style functions get no underscore.
 1.16 02-Jan-2014  mrg branches: 1.16.4; 1.16.6;
- update CHANGES with recent changes
- update version to 20140102
- update copyrights
- use getcwd() over getwd()
- fix lean build (don't include lua)
 1.15 18-Nov-2011  mrg branches: 1.15.2; 1.15.6; 1.15.8; 1.15.14;
merge bozohttpd 20111118
 1.14 27-Aug-2011  joerg branches: 1.14.2;
Don't check for __attribute__ being defined, it won't. Check for GCC 3.x
or compatible and define BOZO_PRINTFLIKE / BOZO_DEAD. Fix fallout.
 1.13 29-Mar-2011  jmmv Add pid file support: if the new -P option is provided, it specifies the
location of the pid file to create.

OKed by mrg@.
 1.12 06-Feb-2011  pooka Call daemon() later to make sure there is a listening socket by
the time the foreground process exits.

discussed with mrg.
 1.11 22-Jun-2010  mrg branches: 1.11.2;
merge bozohttpd 20100621
 1.10 17-Jun-2010  mrg merge bozohttpd 20100617.
 1.9 10-May-2010  mrg merge bozohttpd 20100510.
 1.8 10-May-2010  mrg merge bozohttpd 20100509.
 1.7 23-May-2009  mrg merge bozohttpd 20090522
 1.6 18-Apr-2009  mrg merge bozohttpd 20090418. remove a couple of minor do-nothing local
changes that don't need to cause conflicts.
 1.5 18-Apr-2009  mrg merge bozohttpd 20090417
 1.4 02-May-2008  degroote branches: 1.4.4; 1.4.6; 1.4.8; 1.4.14;
slen must be initialized before the call to accept
 1.3 03-Mar-2008  mrg branches: 1.3.2;
merge bozohttpd 20080303
 1.2 17-Oct-2007  tls branches: 1.2.2; 1.2.6;
RCS IDs
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.10 18-Nov-2011  mrg update to bozohttpd 20111118. nothing major is missing here but
the changes since the prior import were:

o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well
 1.1.1.9 22-Jun-2010  mrg initial import of bozohttpd 20100621. change include:

o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
 1.1.1.8 17-Jun-2010  mrg initial import of bozohttpd 20100617. recent changes:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour
 1.1.1.7 10-May-2010  mrg import bozohttpd 20100510 -- just fixes some compile errors.
 1.1.1.6 10-May-2010  mrg import bozohttpd 20100509. it has these changes:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
 1.1.1.5 23-May-2009  mrg import bozohttpd 20090522, which has these changes:
o close more leaking file descriptors for CGI and daemon mode
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child
 1.1.1.4 18-Apr-2009  mrg import bozohttpd 20090418. changes include:

o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet

this covers PR#38489 and PR#40079, as well some some issues reported
privately.
 1.1.1.3 18-Apr-2009  mrg import latest bozohttpd sources. changes include:

o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.2 03-Mar-2008  mrg import latest bozohttpd. changes include:

o fix some cgi header processing, from <thelsdj@gmail.com>
o add simple Range: header processing, from <bad@bsd.de>
o man page fixes, from NetBSD
o clean up various parts, from NetBSD
o prefix some function names with "bozo"
o align directory indexing <hr> markers
o clean up some code GCC4 grumbled about
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.2.6.1 24-Mar-2008  keiichi sync with head.
 1.2.2.3 23-Mar-2008  matt sync with HEAD
 1.2.2.2 06-Nov-2007  matt sync with HEAD
 1.2.2.1 17-Oct-2007  matt file daemon-bozo.c was added on branch matt-armv6 on 2007-11-06 23:12:04 +0000
 1.3.2.1 18-May-2008  yamt sync with head.
 1.4.14.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.4.8.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.4.6.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.4.4.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.11.2.1 08-Feb-2011  bouyer Sync with HEAD
 1.14.2.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.14.2.1 17-Apr-2012  yamt sync with head
 1.15.14.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.15.14.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.15.8.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.15.8.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.15.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.15.2.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.15.2.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.16.6.3 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.16.6.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.16.6.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.16.4.3 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.16.4.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.16.4.1 10-Apr-2016  martin branches: 1.16.4.1.4;
Catch up to -current (via patch), requested by mspo in #1141:

libexec/httpd/CHANGES up to 1.21
libexec/httpd/Makefile up to 1.26
libexec/httpd/auth-bozo.c up to 1.18
libexec/httpd/bozohttpd.8 up to 1.58
libexec/httpd/bozohttpd.c up to 1.79
libexec/httpd/bozohttpd.h up to 1.44
libexec/httpd/cgi-bozo.c up to 1.32
libexec/httpd/content-bozo.c up to 1.13
libexec/httpd/daemon-bozo.c up to 1.17
libexec/httpd/dir-index-bozo.c up to 1.25
libexec/httpd/lua-bozo.c up to 1.14
libexec/httpd/main.c up to 1.13
libexec/httpd/netbsd_queue.h up to 1.1
libexec/httpd/printenv.lua up to 1.3
libexec/httpd/ssl-bozo.c up to 1.22
libexec/httpd/tilde-luzah-bozo.c up to 1.14
libexec/httpd/testsuite/Makefile up to 1.5
libexec/httpd/testsuite/test-bigfile up to 1.2

Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
 1.16.4.1.4.2 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.16.4.1.4.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.17.16.1 10-Jun-2019  christos Sync with HEAD
 1.17.14.2 18-Jan-2019  pgoyette Synch with HEAD
 1.17.14.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.17.8.3 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.17.8.2 12-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1281:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6


Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.17.8.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.21.2.1 05-Mar-2021  martin Pull up the following (all via patch), requested by mrg in ticket #1221:

lib/lua/bozohttpd/Makefile (apply patch)
libexec/httpd/Makefile 1.30-1.31
libexec/httpd/Makefile.boot 1.7-1.9
libexec/httpd/auth-bozo.c 1.25-1.26
libexec/httpd/bozohttpd.8 1.80-1.87
libexec/httpd/bozohttpd.c 1.114-1.123,1.125-1.128
libexec/httpd/bozohttpd.h 1.61-1.68
libexec/httpd/cgi-bozo.c 1.49-1.53
libexec/httpd/content-bozo.c 1.17-1.20
libexec/httpd/daemon-bozo.c 1-.22
libexec/httpd/dir-index-bozo.c 1.33-1.34
libexec/httpd/main.c 1.23-1.27
libexec/httpd/printenv.lua 1.4-1.5
libexec/httpd/ssl-bozo.c 1.27-1.29
libexec/httpd/libbozohttpd/libbozohttpd.3 1.5-1.6
libexec/httpd/small/Makefile 1.4
libexec/httpd/testsuite/Makefile 1.14
libexec/httpd/testsuite/t16.in 1.1
libexec/httpd/testsuite/t16.out 1.1
libexec/httpd/testsuite/t17.in 1.1
libexec/httpd/testsuite/t17.out 1.1
libexec/httpd/testsuite/t18.in 1.1
libexec/httpd/testsuite/t18.out 1.1


Update to bozohttpd 20210227.
Apply lua build fix (no blocklist support on this branch).

changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.37 26-Apr-2024  maya Create mobile-friendly directory listings

A typical mobile browser on a smartphone assumes a page without a "viewport"
<meta> tag is designed for desktop browsers. It displays the page in a
virtual window that simulates a wider screen and does not adjust it for
the phone's pixel density. The usual result is that the content on the page
looks small, and interacting with the page comfortably and precisely requires
zoom. This is currently the case with bozohttpd directory listing pages.

from D. Bohdan in PR bin/57962
 1.36 18-May-2022  mrg branches: 1.36.2;
call this bozohttpd 20220517.
 1.35 14-Mar-2022  mrg check for scandir() returning -1. should handle PR#56358.
 1.34 15-Oct-2020  mrg set -D_GNU_SOURCE in Makefile.boot. from hadrien.lacour@posteo.net.
also match %2F as well as %2f. from leah@vuxu.org.
introduce defines for "80" and "443". copyright maint.
 1.33 06-Jul-2020  jmcneill Add -R flag to specify a README file to add at the bottom of directory
autoindex listings.
 1.32 28-Feb-2019  mrg branches: 1.32.2;
add ssl specific timeout value (30s). if SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.

mostly different from, but inspired from the patch in PR 50655
 1.31 22-Jan-2019  mrg o don't display special files in the directory index. they aren't
served, but links to them are generated.
 1.30 17-Jan-2019  mrg - call this 20190116
- adjust the directory indexing again:
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
all from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>
 1.29 04-Dec-2018  mrg use html tables for directory index.
from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>

call this bozohttpd 20181204.
 1.28 22-Nov-2018  mrg many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines
 1.27 21-Nov-2018  mrg two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.
 1.26 20-Nov-2018  mrg from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.


the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.


reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.


clean up option and usage handling some.
 1.25 29-Dec-2015  mrg branches: 1.25.8; 1.25.14; 1.25.16;
- convert most asprintf() calls to bozoasprintf().
- don't call getpwuid(0) if we don't need to, or fail it it fails,
and remove the 'username' member of bozohttpd_t since it is not
used outside of bozo_setup().
 1.24 28-Dec-2015  mrg rename bozo_err/bozo_warn/bozo_asprintf to bozoerr/etc.
new rule is that function that mirror libc-style functions get no underscore.
 1.23 27-Dec-2015  mrg several clean ups:

- bozostrdup() gains a request parameter, and uses it to determine
what sort of error handling is required
- bozo_strdup() dies
- size_arrays() reduced slightly, pushing error handling into the caller
- convert to size_t for some array indices
- bozo_set_pref() and bozo_init_prefs() gain httpd parameters
- apply a bunch of manual CSE to vastly reduce the number of times the
string "request->hr_httpd" appears.
- CGI parse_header() takes a request not httpd now

XXX: lua glue updated to call bozo_init_prefs() with htttpd parameter,
but i'm only guessing here.
 1.22 28-Oct-2015  shm * add CGI support for ~user translation (-E switch)
* add redirects to ~user translation
* fix bugs around ~user translation
* add schema detection for absolute redirects
* fixed few memory leaks
* bunch of minor tweaks
* removed -r support
* smarter redirects

OK mrg@
 1.21 27-Aug-2015  mrg s/dirname/dirpath/ to avoid potentially shadowing dirname(3).
 1.20 10-Oct-2014  mrg don't truncate file sizes to 32 bits for directory indexes.
 1.19 02-Jan-2014  mrg branches: 1.19.4;
- update CHANGES with recent changes
- update version to 20140102
- update copyrights
- use getcwd() over getwd()
- fix lean build (don't include lua)
 1.18 12-Oct-2013  mbalmer no need to check free() arguments against NULL
 1.17 11-Jul-2013  mrg copyright maint.
 1.16 11-Jul-2013  mrg - update CHANGES with recent changes
- export esacpe_html() and use it in directory indexing
- update manual to include recent contributors
 1.15 19-Jul-2012  mrg branches: 1.15.2;
when generating URIs escape various characters as specified in RFC 3986.
this makes, among other things, files/dirs with "?" work with dir indexing.
 1.14 29-Feb-2012  joerg Avoid using computed string as format string, just print it as string.
 1.13 18-Nov-2011  mrg branches: 1.13.2;
merge bozohttpd 20111118
 1.12 10-Mar-2011  reed branches: 1.12.4;
A filename with a colon in it made it appear to be the URI scheme
to various web browsers. So follow RFC 3986 4.2 and prepend ./
to the filename in the generated index hyperlink.

Okayed by mrg.
 1.11 20-Sep-2010  mrg merge bozohttpd 20100920
 1.10 16-Aug-2010  dogcow ...and free() memory malloc()ed by scandir so we don't leak.
 1.9 16-Aug-2010  dogcow readdir -> scandir and requisite changes, so that bozohttpd now sorts
directory listings.
 1.8 10-May-2010  mrg merge bozohttpd 20100509.
 1.7 04-Nov-2009  joerg Do not indent global variables.
 1.6 18-Apr-2009  mrg merge bozohttpd 20090417
 1.5 04-Feb-2009  tls branches: 1.5.2;
From Sergey Katsev at Coyote Point: fix bugs in request transformation and
CGI handling, including bin/40355 . There are two main changes here:

1) call process_cgi() after transform_request(), not before. Now it is
possible to have a default cgi handler catch a request for a path that
was produced by transformation, e.g. by index generation -- so now the
index can be "generated" by a CGI if that is what the user desires.

2) More clearly distinguish "file" from "query" portions of the request
URL, so we do not feed ?-suffixed "arguments" to plain files, fail to
match filename extensions due to ?-suffixes, etc.

After this change, there are only two cases which use the "query"
portion of the request (the portion after the ?):

a) A redirect issued by HTTPD will redirect to the new file, but
with the same query string.

b) process_cgi() will, of course continue to use the query string.
 1.4 03-Mar-2008  mrg branches: 1.4.8;
merge bozohttpd 20080303
 1.3 18-Oct-2007  ad branches: 1.3.2; 1.3.6;
Make the dir indexes less ugly (horizontal rules were out of place).
 1.2 17-Oct-2007  tls RCS IDs
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.6 18-Nov-2011  mrg update to bozohttpd 20111118. nothing major is missing here but
the changes since the prior import were:

o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well
 1.1.1.5 20-Sep-2010  mrg initial import of bozohttpd 20100920. the only change missing in here is:

o fix dynamic CGI content maps, from rudolf
 1.1.1.4 10-May-2010  mrg import bozohttpd 20100509. it has these changes:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
 1.1.1.3 18-Apr-2009  mrg import latest bozohttpd sources. changes include:

o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.2 03-Mar-2008  mrg import latest bozohttpd. changes include:

o fix some cgi header processing, from <thelsdj@gmail.com>
o add simple Range: header processing, from <bad@bsd.de>
o man page fixes, from NetBSD
o clean up various parts, from NetBSD
o prefix some function names with "bozo"
o align directory indexing <hr> markers
o clean up some code GCC4 grumbled about
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.3.6.1 24-Mar-2008  keiichi sync with head.
 1.3.2.3 23-Mar-2008  matt sync with HEAD
 1.3.2.2 06-Nov-2007  matt sync with HEAD
 1.3.2.1 18-Oct-2007  matt file dir-index-bozo.c was added on branch matt-armv6 on 2007-11-06 23:12:05 +0000
 1.4.8.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.4.8.1 08-Feb-2009  snj branches: 1.4.8.1.6; 1.4.8.1.10;
Pull up following revision(s) (requested by tls in ticket #428):
libexec/httpd/bozohttpd.c: revision 1.9
libexec/httpd/bozohttpd.h: revision 1.6
libexec/httpd/cgi-bozo.c: revision 1.9
libexec/httpd/dir-index-bozo.c: revision 1.5
libexec/httpd/tilde-luzah-bozo.c: revision 1.4
From Sergey Katsev at Coyote Point: fix bugs in request transformation and
CGI handling, including bin/40355 . There are two main changes here:
1) call process_cgi() after transform_request(), not before. Now it is
possible to have a default cgi handler catch a request for a path that
was produced by transformation, e.g. by index generation -- so now the
index can be "generated" by a CGI if that is what the user desires.
2) More clearly distinguish "file" from "query" portions of the request
URL, so we do not feed ?-suffixed "arguments" to plain files, fail to
match filename extensions due to ?-suffixes, etc.
After this change, there are only two cases which use the "query"
portion of the request (the portion after the ?):
a) A redirect issued by HTTPD will redirect to the new file, but
with the same query string.
b) process_cgi() will, of course continue to use the query string.
 1.4.8.1.10.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.4.8.1.6.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.5.2.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.12.4.3 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.12.4.2 30-Oct-2012  yamt sync with head
 1.12.4.1 17-Apr-2012  yamt sync with head
 1.13.2.3 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.13.2.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.13.2.1 05-Mar-2012  sborrill branches: 1.13.2.1.4; 1.13.2.1.6;
Pull up the following revisions(s) (requested by joerg in ticket #75):
usr.sbin/cpuctl/arch/i386.c: revision 1.28
usr.bin/unifdef/unifdef.c: revision 1.21
usr.bin/ktruss/dump.c: revision 1.40
usr.bin/error/error.h: revision 1.19
usr.bin/error/touch.c: revision 1.27
libexec/httpd/dir-index-bozo.c: revision 1.14
games/dab/algor.cc: revision 1.5
games/dab/board.h: revision 1.4
dist/pf/sbin/pflogd/pflogd.c: revision 1.9
dist/pf/sbin/pflogd/pflogd.h: revision 1.5

Fix various format string mismatches
 1.13.2.1.6.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.13.2.1.6.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.13.2.1.4.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.13.2.1.4.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.15.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.19.4.4 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.19.4.3 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.19.4.2 10-Apr-2016  martin branches: 1.19.4.2.4;
Catch up to -current (via patch), requested by mspo in #1141:

libexec/httpd/CHANGES up to 1.21
libexec/httpd/Makefile up to 1.26
libexec/httpd/auth-bozo.c up to 1.18
libexec/httpd/bozohttpd.8 up to 1.58
libexec/httpd/bozohttpd.c up to 1.79
libexec/httpd/bozohttpd.h up to 1.44
libexec/httpd/cgi-bozo.c up to 1.32
libexec/httpd/content-bozo.c up to 1.13
libexec/httpd/daemon-bozo.c up to 1.17
libexec/httpd/dir-index-bozo.c up to 1.25
libexec/httpd/lua-bozo.c up to 1.14
libexec/httpd/main.c up to 1.13
libexec/httpd/netbsd_queue.h up to 1.1
libexec/httpd/printenv.lua up to 1.3
libexec/httpd/ssl-bozo.c up to 1.22
libexec/httpd/tilde-luzah-bozo.c up to 1.14
libexec/httpd/testsuite/Makefile up to 1.5
libexec/httpd/testsuite/test-bigfile up to 1.2

Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
 1.19.4.1 12-Jan-2015  martin branches: 1.19.4.1.2;
Pull up following revision(s) (requested by mrg in ticket #408):
libexec/httpd/content-bozo.c: revision 1.11
libexec/httpd/dir-index-bozo.c: revision 1.20
libexec/httpd/bozohttpd.h: revision 1.34
libexec/httpd/bozohttpd.c: revision 1.57
libexec/httpd/bozohttpd.8: revision 1.47
libexec/httpd/bozohttpd.c: revision 1.58
libexec/httpd/bozohttpd.8: revision 1.48
libexec/httpd/bozohttpd.c: revision 1.59
libexec/httpd/lua-bozo.c: revision 1.11
libexec/httpd/bozohttpd.c: revision 1.60
libexec/httpd/auth-bozo.c: revision 1.14
libexec/httpd/auth-bozo.c: revision 1.15
libexec/httpd/auth-bozo.c: revision 1.16

Update bozohttpd to 20141225:
- NUL terminate a string.
- don't truncate file sizes to 32 bits for directory indexes.
- Fixed off-by-one in virtualhost processing. Previous code was
checking if Host header is a prefix of any existing vhost.
This behaviour might be used to uncover existing vitual hosts
from the remote.
- Fixed memory leak in case of multiple authentication headers sent
by the client.
- Avoid array access out of bounds.
 1.19.4.2.4.2 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.19.4.2.4.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.19.4.1.2.3 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.19.4.1.2.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.19.4.1.2.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.25.16.1 10-Jun-2019  christos Sync with HEAD
 1.25.14.4 26-Jan-2019  pgoyette Sync with HEAD
 1.25.14.3 18-Jan-2019  pgoyette Synch with HEAD
 1.25.14.2 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.25.14.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.25.8.3 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.25.8.2 12-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1281:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6


Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.25.8.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.32.2.1 05-Mar-2021  martin Pull up the following (all via patch), requested by mrg in ticket #1221:

lib/lua/bozohttpd/Makefile (apply patch)
libexec/httpd/Makefile 1.30-1.31
libexec/httpd/Makefile.boot 1.7-1.9
libexec/httpd/auth-bozo.c 1.25-1.26
libexec/httpd/bozohttpd.8 1.80-1.87
libexec/httpd/bozohttpd.c 1.114-1.123,1.125-1.128
libexec/httpd/bozohttpd.h 1.61-1.68
libexec/httpd/cgi-bozo.c 1.49-1.53
libexec/httpd/content-bozo.c 1.17-1.20
libexec/httpd/daemon-bozo.c 1-.22
libexec/httpd/dir-index-bozo.c 1.33-1.34
libexec/httpd/main.c 1.23-1.27
libexec/httpd/printenv.lua 1.4-1.5
libexec/httpd/ssl-bozo.c 1.27-1.29
libexec/httpd/libbozohttpd/libbozohttpd.3 1.5-1.6
libexec/httpd/small/Makefile 1.4
libexec/httpd/testsuite/Makefile 1.14
libexec/httpd/testsuite/t16.in 1.1
libexec/httpd/testsuite/t16.out 1.1
libexec/httpd/testsuite/t17.in 1.1
libexec/httpd/testsuite/t17.out 1.1
libexec/httpd/testsuite/t18.in 1.1
libexec/httpd/testsuite/t18.out 1.1


Update to bozohttpd 20210227.
Apply lua build fix (no blocklist support on this branch).

changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.36.2.1 28-Apr-2024  martin Pull up following revision(s) (requested by maya in ticket #680):

libexec/httpd/dir-index-bozo.c: revision 1.37

Create mobile-friendly directory listings

A typical mobile browser on a smartphone assumes a page without a "viewport"
<meta> tag is designed for desktop browsers. It displays the page in a
virtual window that simulates a wider screen and does not adjust it for
the phone's pixel density. The usual result is that the content on the page
looks small, and interacting with the page comfortably and precisely requires
zoom. This is currently the case with bozohttpd directory listing pages.
from D. Bohdan in PR bin/57962
 1.6 03-Mar-2008  mrg use BUILDSYMLINKS to not have to rename bozohttpd.8 while still
having this manual installed as httpd.8. now updates from my
repo to bozohttpd.8 will appear in this file.
 1.5 17-Oct-2007  reed branches: 1.5.2; 1.5.6;
Document .htpasswd / HTTP "Basic" authentication support.

Update date of man page too.
 1.4 17-Oct-2007  reed Fix typo in EXAMPLES (unknown service).

While there mention inetd.conf(5) again (since in a new section of man page).
 1.3 16-Oct-2007  reed Remove extra period.
 1.2 16-Oct-2007  tls Add httpd to the build. Add _httpd to passwd and groups and postinstall.
Add /var/www to mtree, add example line to inetd.conf.
 1.1 16-Oct-2007  tls Move bozohttpd.8 to httpd.8
 1.5.6.1 24-Mar-2008  keiichi sync with head.
 1.5.2.3 23-Mar-2008  matt sync with HEAD
 1.5.2.2 06-Nov-2007  matt sync with HEAD
 1.5.2.1 17-Oct-2007  matt file httpd.8 was added on branch matt-armv6 on 2007-11-06 23:12:06 +0000
 1.15 28-May-2017  alnsn Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.
 1.14 28-Dec-2015  mrg rename bozo_err/bozo_warn/bozo_asprintf to bozoerr/etc.
new rule is that function that mirror libc-style functions get no underscore.
 1.13 27-Dec-2015  mrg several clean ups:

- bozostrdup() gains a request parameter, and uses it to determine
what sort of error handling is required
- bozo_strdup() dies
- size_arrays() reduced slightly, pushing error handling into the caller
- convert to size_t for some array indices
- bozo_set_pref() and bozo_init_prefs() gain httpd parameters
- apply a bunch of manual CSE to vastly reduce the number of times the
string "request->hr_httpd" appears.
- CGI parse_header() takes a request not httpd now

XXX: lua glue updated to call bozo_init_prefs() with htttpd parameter,
but i'm only guessing here.
 1.12 04-Jul-2015  christos fix memory leaks on error; found by brainy.
 1.11 15-Aug-2014  mbalmer branches: 1.11.2;
NUL terminate a string.
 1.10 19-Jul-2014  lneto branches: 1.10.2;
lua: updated from 5.1 to 5.3 work3

* lua(1):
- changed lua_Integer to intmax_t
- updated distrib/sets/lists and etc/mtree
- updated bsd.lua.mk
- fixed bozohttpd (lua-bozo.c)
- compatibilized bindings: gpio, sqlite
* lua(4):
- removed floating-point and libc dependencies using '#ifndef _KERNEL'
- fixed division by zero and exponentiation
- libkern: added isalnum(), iscntrl(), isgraph(), isprint() and ispunct()
- acpica: removed isprint() from acnetbsd.h
- libc: moved strcspn.c, strpbrk.c and strspn.c to common
- removed stub headers
- compatibilized bindings: luapmf, luasystm
* reorganized luaconf.h
* updated doc/CHANGES and doc/RESPONSIBLE
 1.9 02-Jan-2014  mrg branches: 1.9.2; 1.9.4; 1.9.6; 1.9.8; 1.9.10; 1.9.12; 1.9.14; 1.9.16;
- update CHANGES with recent changes
- update version to 20140102
- update copyrights
- use getcwd() over getwd()
- fix lean build (don't include lua)
 1.8 19-Nov-2013  mbalmer fix bad free
 1.7 13-Nov-2013  christos CID 1107545, 1107546: fix memory leak
 1.6 13-Nov-2013  christos CID 1107546: Fix memory leak
 1.5 17-Oct-2013  mbalmer fold long line in a readable way; pass nil as query table if reading form data fails
 1.4 17-Oct-2013  mbalmer better approach to NUL terminate strings
 1.3 17-Oct-2013  mbalmer plug a memory leak
 1.2 17-Oct-2013  mbalmer zero allocated memory buffers
 1.1 12-Oct-2013  mbalmer add Lua scripting support to bozohttpd, see httpd(8) for details
 1.9.16.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.9.16.1 02-Jan-2014  msaitoh file lua-bozo.c was added on branch netbsd-5-1 on 2014-07-09 16:09:39 +0000
 1.9.14.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.9.14.1 02-Jan-2014  msaitoh file lua-bozo.c was added on branch netbsd-5-2 on 2014-07-09 16:04:13 +0000
 1.9.12.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.9.12.1 02-Jan-2014  msaitoh file lua-bozo.c was added on branch netbsd-5 on 2014-07-09 15:21:21 +0000
 1.9.10.3 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.9.10.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.9.10.1 02-Jan-2014  msaitoh file lua-bozo.c was added on branch netbsd-6-0 on 2014-07-09 09:47:10 +0000
 1.9.8.3 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.9.8.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.9.8.1 02-Jan-2014  msaitoh file lua-bozo.c was added on branch netbsd-6-1 on 2014-07-09 09:44:56 +0000
 1.9.6.3 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.9.6.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.9.6.1 02-Jan-2014  msaitoh file lua-bozo.c was added on branch netbsd-6 on 2014-07-09 09:42:39 +0000
 1.9.4.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.9.4.1 02-Jan-2014  yamt file lua-bozo.c was added on branch yamt-pagecache on 2014-05-22 11:37:13 +0000
 1.9.2.1 10-Aug-2014  tls Rebase.
 1.10.2.3 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.10.2.2 10-Apr-2016  martin branches: 1.10.2.2.4;
Catch up to -current (via patch), requested by mspo in #1141:

libexec/httpd/CHANGES up to 1.21
libexec/httpd/Makefile up to 1.26
libexec/httpd/auth-bozo.c up to 1.18
libexec/httpd/bozohttpd.8 up to 1.58
libexec/httpd/bozohttpd.c up to 1.79
libexec/httpd/bozohttpd.h up to 1.44
libexec/httpd/cgi-bozo.c up to 1.32
libexec/httpd/content-bozo.c up to 1.13
libexec/httpd/daemon-bozo.c up to 1.17
libexec/httpd/dir-index-bozo.c up to 1.25
libexec/httpd/lua-bozo.c up to 1.14
libexec/httpd/main.c up to 1.13
libexec/httpd/netbsd_queue.h up to 1.1
libexec/httpd/printenv.lua up to 1.3
libexec/httpd/ssl-bozo.c up to 1.22
libexec/httpd/tilde-luzah-bozo.c up to 1.14
libexec/httpd/testsuite/Makefile up to 1.5
libexec/httpd/testsuite/test-bigfile up to 1.2

Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
 1.10.2.1 12-Jan-2015  martin branches: 1.10.2.1.2;
Pull up following revision(s) (requested by mrg in ticket #408):
libexec/httpd/content-bozo.c: revision 1.11
libexec/httpd/dir-index-bozo.c: revision 1.20
libexec/httpd/bozohttpd.h: revision 1.34
libexec/httpd/bozohttpd.c: revision 1.57
libexec/httpd/bozohttpd.8: revision 1.47
libexec/httpd/bozohttpd.c: revision 1.58
libexec/httpd/bozohttpd.8: revision 1.48
libexec/httpd/bozohttpd.c: revision 1.59
libexec/httpd/lua-bozo.c: revision 1.11
libexec/httpd/bozohttpd.c: revision 1.60
libexec/httpd/auth-bozo.c: revision 1.14
libexec/httpd/auth-bozo.c: revision 1.15
libexec/httpd/auth-bozo.c: revision 1.16

Update bozohttpd to 20141225:
- NUL terminate a string.
- don't truncate file sizes to 32 bits for directory indexes.
- Fixed off-by-one in virtualhost processing. Previous code was
checking if Host header is a prefix of any existing vhost.
This behaviour might be used to uncover existing vitual hosts
from the remote.
- Fixed memory leak in case of multiple authentication headers sent
by the client.
- Avoid array access out of bounds.
 1.10.2.2.4.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.10.2.1.2.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.10.2.1.2.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.11.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.11.2.1 15-Aug-2014  tls file lua-bozo.c was added on branch tls-maxphys on 2014-08-20 00:02:22 +0000
 1.31 07-Jun-2023  mrg serve .iso as "application/octet-stream". bump version & copyright.
 1.30 12-Sep-2022  martin branches: 1.30.2;
Add a -q option to make http quiet (no log messages).

Usefull when running multiple instances and some for (high traffic)
APIs e.g. to receive log data from appliences - it makes not sense
to duplicate the whole log in the xferlog file (but we can't configure
that at the syslog level due to other httpd instances using that).
 1.29 24-Aug-2021  mrg implement tls minimum version setting.

mostly from sunil@nimmagadda.net in PR#55830, though i moved the
member into the main http structure, so that it doesn't trigger
sslinfo being allocated via command line without the rest of the
ssl being setup (which then leads to crashes.)
 1.28 24-Aug-2021  mrg remove unused parameters, and clean up incompatible options.

from <henrik@gulbra.net>
 1.27 27-Feb-2021  mrg belated call version 20210211 after previous memory leak fix.
 1.26 11-Feb-2021  mrg clean up issues detected by address sanitizer (just some memory
leaks that only apply to the library version.)

XXX: the handling of hr_file and its variants is more crappy
again - the prior clean up is slightly less clean now, but at
least it does not leak memory.

XXX2: cgi-bin test hangs with address sanitizer. don't know
why yet..
 1.25 15-Oct-2020  mrg various updates from <henrik@gulbra.net> / freebsd. the list from Henrik:

bozohttpd.8:
o Added -d flag to the man page
o Moved -E flag in man page to keep alphabetic order
o Grammar fix for description of -E flag in man page
o Moved a word in the man description for the -f flag
o Made -f imply -b as a backwards-compatible shortcut
o Updated man description of -n to mention Lua scripts
o Moved -z below -Z to keep the uppercase options first

bozohttpd.c:
o Removed obsolete comment about ~user missing cgi-bin support
o Removed "/* ARGSUSED */" lines; was that a macro or a reminder?
o Added USE_ARG macro call for sig, which was otherwise not used
o Added USE_ARG macro call for msg (only used if debug is enabled)

bozohttpd.h:
o Fixed typo in the include guard (BOZOHTTOPD_H_ -> BOZOHTTPD_H_)
o Renamed have_all to have_core; it didn't mean "all" options

content-bozo.c:
o Added USE_ARG macro call for signo, which was otherwise not used
o Made -f imply -b as a backwards-compatible shortcut

main.c:
o Simplified -b text to be symmetric with that for the -f option
o Updated -C text to make "suffix" explicit; it's better than "arg"
o Changed to only show the -E description if have_user is true
o Always show the -e option, which incorrectly used the -E logic
o Renamed have_all to have_core; it didn't mean "all" options
o Added three missing tabs for the description of the -G option
o Updated -L text to make "prefix" explicit; it's better than "arg"
o Updated -M text to make "suffix" explicit; it's slightly better
o Added a previously missing description for the -n option
o Documented the otherwise obscure valid types for the -T option
o Shortened "username" to "user" to match the actual help text
o Moved handling of -c below that for -C to standardize the order
o Broke the enabling test for -C into two lines for consistency
o Inverted the enabling test for -E; this is what was meant, right?
o Removed the enabling test for -e, which should always be enabled

ssl-bozo.c:
o Added USE_ARG for httpd, which is not used if SSL has been excluded
 1.24 15-Oct-2020  mrg set -D_GNU_SOURCE in Makefile.boot. from hadrien.lacour@posteo.net.
also match %2F as well as %2f. from leah@vuxu.org.
introduce defines for "80" and "443". copyright maint.
 1.23 06-Jul-2020  jmcneill Add -R flag to specify a README file to add at the bottom of directory
autoindex listings.
 1.22 25-Nov-2018  mrg branches: 1.22.2;
fix -X option parsing. noted by Rajeev V. Pillai.
 1.21 24-Nov-2018  mrg fix a bug in the rework for -i option: move the real code in place.

for some reason gcc does not warn about this:

case 'x':
stuff_here();
break;

other_stuff_here();
break;

and the other_stuff_here() was what was mis-placed.


should fix atf failures in networking.
 1.20 22-Nov-2018  mrg alpha sort the option switch.
 1.19 22-Nov-2018  mrg many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines
 1.18 20-Nov-2018  mrg move some #if support into bozohttpd.h.
 1.17 20-Nov-2018  mrg from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.


the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.


reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.


clean up option and usage handling some.
 1.16 04-Oct-2016  mrg branches: 1.16.6; 1.16.12; 1.16.14;
update the -V documentation to be more clear about what it does.
inspired by Swift Griggs on netbsd-users.
 1.15 04-Oct-2016  mrg add -V to the usage() list. noted by Swift Griggs on netbsd-users.
 1.14 24-May-2016  agc branches: 1.14.2;
As proposed in:

http://mail-index.netbsd.org/tech-userlevel/2016/05/18/msg009999.html

and

https://www.netbsd.org/~agc/bozo-20160517.diff

add a patch to httpd to return the version string of httpd itself, and use the
-G option on the command line to enable this. This gives httpd the ability to
show, from the command line, what version is running.

% /usr/build/obj/x86_64/usr/src/libexec/httpd/bozohttpd -G
bozohttpd version bozohttpd/20160415
%
 1.13 28-Dec-2015  mrg rename bozo_err/bozo_warn/bozo_asprintf to bozoerr/etc.
new rule is that function that mirror libc-style functions get no underscore.
 1.12 27-Dec-2015  mrg several clean ups:

- bozostrdup() gains a request parameter, and uses it to determine
what sort of error handling is required
- bozo_strdup() dies
- size_arrays() reduced slightly, pushing error handling into the caller
- convert to size_t for some array indices
- bozo_set_pref() and bozo_init_prefs() gain httpd parameters
- apply a bunch of manual CSE to vastly reduce the number of times the
string "request->hr_httpd" appears.
- CGI parse_header() takes a request not httpd now

XXX: lua glue updated to call bozo_init_prefs() with htttpd parameter,
but i'm only guessing here.
 1.11 12-Dec-2015  christos - restrict the default list of ciphers to something more secure
- restrict ssl options
From Travis Paul
 1.10 29-Nov-2015  kamil Remove nonexistent option z: in the getopt(3) call
 1.9 28-Oct-2015  shm * add CGI support for ~user translation (-E switch)
* add redirects to ~user translation
* fix bugs around ~user translation
* add schema detection for absolute redirects
* fixed few memory leaks
* bunch of minor tweaks
* removed -r support
* smarter redirects

OK mrg@
 1.8 16-Jul-2014  mrg branches: 1.8.2; 1.8.4;
make -t chroot option available always again.
 1.7 02-Jan-2014  mrg branches: 1.7.2; 1.7.4; 1.7.6; 1.7.8;
- update CHANGES with recent changes
- update version to 20140102
- update copyrights
- use getcwd() over getwd()
- fix lean build (don't include lua)
 1.6 12-Oct-2013  mbalmer add Lua scripting support to bozohttpd, see httpd(8) for details
 1.5 18-Nov-2011  mrg branches: 1.5.2; 1.5.6; 1.5.8; 1.5.14;
merge bozohttpd 20111118
 1.4 17-Nov-2011  mrg allow the -I option to be useful in non-daemon mode, by letting it force
the returned port number
 1.3 27-Aug-2011  joerg branches: 1.3.2;
Don't check for __attribute__ being defined, it won't. Check for GCC 3.x
or compatible and define BOZO_PRINTFLIKE / BOZO_DEAD. Fix fallout.
 1.2 29-Mar-2011  jmmv Add pid file support: if the new -P option is provided, it specifies the
location of the pid file to create.

OKed by mrg@.
 1.1 10-May-2010  mrg branches: 1.1.1;
Initial revision
 1.1.1.3 18-Nov-2011  mrg update to bozohttpd 20111118. nothing major is missing here but
the changes since the prior import were:

o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well
 1.1.1.2 20-Sep-2010  mrg initial import of bozohttpd 20100920. the only change missing in here is:

o fix dynamic CGI content maps, from rudolf
 1.1.1.1 10-May-2010  mrg import bozohttpd 20100509. it has these changes:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
 1.3.2.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3.2.1 17-Apr-2012  yamt sync with head
 1.5.14.3 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437:
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.5.14.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.5.14.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.5.8.3 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.5.8.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.5.8.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.5.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.5.2.3 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.5.2.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.5.2.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.7.8.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.7.8.1 02-Jan-2014  msaitoh file main.c was added on branch netbsd-5-1 on 2014-07-09 16:09:39 +0000
 1.7.6.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.7.6.1 02-Jan-2014  msaitoh file main.c was added on branch netbsd-5-2 on 2014-07-09 16:04:13 +0000
 1.7.4.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.7.4.1 02-Jan-2014  msaitoh file main.c was added on branch netbsd-5 on 2014-07-09 15:21:21 +0000
 1.7.2.1 10-Aug-2014  tls Rebase.
 1.8.4.4 28-Nov-2018  martin Pull up following revision(s) (requested by mrg in ticket #1659):

libexec/httpd/main.c: revision 1.22
libexec/httpd/CHANGES: revision 1.29
libexec/httpd/cgi-bozo.c: revision 1.45
libexec/httpd/bozohttpd.h: revision 1.57
libexec/httpd/CHANGES: revision 1.30
libexec/httpd/bozohttpd.c: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.98
libexec/httpd/bozohttpd.c: revision 1.99

one semicolon is usually enough.

-

appease lint

- add FALLTHROUGH comment
- one return is usually enough.

-

avoid c99ism.

-

fix -X option parsing. noted by Rajeev V. Pillai.

-

add option fixes here.

-

normalise some messages.
 1.8.4.3 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.8.4.2 23-Dec-2016  snj Pull up following revision(s) (requested by mrg in ticket #1309):
libexec/httpd/CHANGES: revisions 1.23, 1.24
libexec/httpd/bozohttpd.8: revisions 1.60-1.62
libexec/httpd/bozohttpd.c: revisions 1.81-1.84
libexec/httpd/bozohttpd.h: revision 1.46
libexec/httpd/cgi-bozo.c: revision 1.35
libexec/httpd/content-bozo.c: revision 1.14
libexec/httpd/main.c: revisions 1.14-1.16
libexec/httpd/testsuite/Makefile: revision 1.6
libexec/httpd/testsuite/test-bigfile: revision 1.3
libexec/httpd/testsuite/test-simple: revisions 1.1, 1.2
update bozohttpd to 2016072:
- fix memory leak
- addd -G option to display version
- fix some content type issues
- fix issues in testsuite
 1.8.4.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.8.2.4 28-Nov-2018  martin Pull up following revision(s) (requested by mrg in ticket #1659):

libexec/httpd/main.c: revision 1.22
libexec/httpd/CHANGES: revision 1.29
libexec/httpd/cgi-bozo.c: revision 1.45
libexec/httpd/bozohttpd.h: revision 1.57
libexec/httpd/CHANGES: revision 1.30
libexec/httpd/bozohttpd.c: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.98
libexec/httpd/bozohttpd.c: revision 1.99

one semicolon is usually enough.

-

appease lint

- add FALLTHROUGH comment
- one return is usually enough.

-

avoid c99ism.

-

fix -X option parsing. noted by Rajeev V. Pillai.

-

add option fixes here.

-

normalise some messages.
 1.8.2.3 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.8.2.2 23-Dec-2016  snj branches: 1.8.2.2.2;
Pull up following revision(s) (requested by mrg in ticket #1309):
libexec/httpd/CHANGES: revisions 1.23, 1.24
libexec/httpd/bozohttpd.8: revisions 1.60-1.62
libexec/httpd/bozohttpd.c: revisions 1.81-1.84
libexec/httpd/bozohttpd.h: revision 1.46
libexec/httpd/cgi-bozo.c: revision 1.35
libexec/httpd/content-bozo.c: revision 1.14
libexec/httpd/main.c: revisions 1.14-1.16
libexec/httpd/testsuite/Makefile: revision 1.6
libexec/httpd/testsuite/test-bigfile: revision 1.3
libexec/httpd/testsuite/test-simple: revisions 1.1, 1.2
update bozohttpd to 2016072:
- fix memory leak
- addd -G option to display version
- fix some content type issues
- fix issues in testsuite
 1.8.2.1 10-Apr-2016  martin branches: 1.8.2.1.2;
Catch up to -current (via patch), requested by mspo in #1141:

libexec/httpd/CHANGES up to 1.21
libexec/httpd/Makefile up to 1.26
libexec/httpd/auth-bozo.c up to 1.18
libexec/httpd/bozohttpd.8 up to 1.58
libexec/httpd/bozohttpd.c up to 1.79
libexec/httpd/bozohttpd.h up to 1.44
libexec/httpd/cgi-bozo.c up to 1.32
libexec/httpd/content-bozo.c up to 1.13
libexec/httpd/daemon-bozo.c up to 1.17
libexec/httpd/dir-index-bozo.c up to 1.25
libexec/httpd/lua-bozo.c up to 1.14
libexec/httpd/main.c up to 1.13
libexec/httpd/netbsd_queue.h up to 1.1
libexec/httpd/printenv.lua up to 1.3
libexec/httpd/ssl-bozo.c up to 1.22
libexec/httpd/tilde-luzah-bozo.c up to 1.14
libexec/httpd/testsuite/Makefile up to 1.5
libexec/httpd/testsuite/test-bigfile up to 1.2

Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
 1.8.2.2.2.2 28-Nov-2018  martin Pull up following revision(s) (requested by mrg in ticket #1659):

libexec/httpd/main.c: revision 1.22
libexec/httpd/CHANGES: revision 1.29
libexec/httpd/cgi-bozo.c: revision 1.45
libexec/httpd/bozohttpd.h: revision 1.57
libexec/httpd/CHANGES: revision 1.30
libexec/httpd/bozohttpd.c: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.98
libexec/httpd/bozohttpd.c: revision 1.99

one semicolon is usually enough.

-

appease lint

- add FALLTHROUGH comment
- one return is usually enough.

-

avoid c99ism.

-

fix -X option parsing. noted by Rajeev V. Pillai.

-

add option fixes here.

-

normalise some messages.
 1.8.2.2.2.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.8.2.1.2.1 18-Jan-2017  skrll Sync with netbsd-5
 1.14.2.1 04-Nov-2016  pgoyette Sync with HEAD
 1.16.14.1 10-Jun-2019  christos Sync with HEAD
 1.16.12.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.16.6.3 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.16.6.2 28-Nov-2018  martin Pull up following revision(s) (requested by mrg in ticket #1109):

libexec/httpd/main.c: revision 1.22
libexec/httpd/CHANGES: revision 1.29
libexec/httpd/cgi-bozo.c: revision 1.45
libexec/httpd/bozohttpd.h: revision 1.57
libexec/httpd/CHANGES: revision 1.30
libexec/httpd/bozohttpd.c: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.98
libexec/httpd/bozohttpd.c: revision 1.99

one semicolon is usually enough.

-

appease lint

- add FALLTHROUGH comment
- one return is usually enough.

-

avoid c99ism.

-

fix -X option parsing. noted by Rajeev V. Pillai.

-

add option fixes here.

-

normalise some messages.
 1.16.6.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.22.2.1 05-Mar-2021  martin Pull up the following (all via patch), requested by mrg in ticket #1221:

lib/lua/bozohttpd/Makefile (apply patch)
libexec/httpd/Makefile 1.30-1.31
libexec/httpd/Makefile.boot 1.7-1.9
libexec/httpd/auth-bozo.c 1.25-1.26
libexec/httpd/bozohttpd.8 1.80-1.87
libexec/httpd/bozohttpd.c 1.114-1.123,1.125-1.128
libexec/httpd/bozohttpd.h 1.61-1.68
libexec/httpd/cgi-bozo.c 1.49-1.53
libexec/httpd/content-bozo.c 1.17-1.20
libexec/httpd/daemon-bozo.c 1-.22
libexec/httpd/dir-index-bozo.c 1.33-1.34
libexec/httpd/main.c 1.23-1.27
libexec/httpd/printenv.lua 1.4-1.5
libexec/httpd/ssl-bozo.c 1.27-1.29
libexec/httpd/libbozohttpd/libbozohttpd.3 1.5-1.6
libexec/httpd/small/Makefile 1.4
libexec/httpd/testsuite/Makefile 1.14
libexec/httpd/testsuite/t16.in 1.1
libexec/httpd/testsuite/t16.out 1.1
libexec/httpd/testsuite/t17.in 1.1
libexec/httpd/testsuite/t17.out 1.1
libexec/httpd/testsuite/t18.in 1.1
libexec/httpd/testsuite/t18.out 1.1


Update to bozohttpd 20210227.
Apply lua build fix (no blocklist support on this branch).

changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.30.2.1 29-Jul-2025  martin Pull up following revision(s) (requested by mrg in ticket #1139):

libexec/httpd/CHANGES: revision 1.55
libexec/httpd/CHANGES: revision 1.56
libexec/httpd/cgi-bozo.c: revision 1.55
libexec/httpd/cgi-bozo.c: revision 1.56
libexec/httpd/bozohttpd.8: revision 1.93
libexec/httpd/bozohttpd.8: revision 1.94
libexec/httpd/bozohttpd.8: revision 1.95
libexec/httpd/bozohttpd.8: revision 1.96
libexec/httpd/bozohttpd.8: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.143
libexec/httpd/bozohttpd.8: revision 1.100
libexec/httpd/bozohttpd.c: revision 1.144
libexec/httpd/bozohttpd.8: revision 1.99
libexec/httpd/bozohttpd.c: revision 1.145
libexec/httpd/bozohttpd.c: revision 1.146
libexec/httpd/bozohttpd.c: revision 1.147
libexec/httpd/auth-bozo.c: revision 1.28
libexec/httpd/ssl-bozo.c: revision 1.33
libexec/httpd/ssl-bozo.c: revision 1.34
libexec/httpd/content-bozo.c: revision 1.22
libexec/httpd/main.c: revision 1.31

serve .iso as "application/octet-stream". bump version & copyright.

add a note about how to setup http -> https redirection.
bump documented version.

Fix memory leaks in bozo_cleanup

Fix hr_authrealm memory leak
hr_authrealm might be already set, so we need to free it before overwriting
the value

Remove unused variable (bp)

Fix off-by-one in bozo_decode_url_percent

In case of strings that end with '%', debug function was reading past buffer.
Removed unnecessary comment
Thanks leot@ for pointing this out

httpd(8): Add missing newline to `SSL Error' messages.
Matches the pattern in all other printf/syslog calls.

add some missing changes and bump the version.

s/supressing/suppressing/.

note this documents bozohttpd 20240126.

Bump bozohttpd version to today for mobile-friendly directory listing

bozohttpd(8): clarifications and editorial fixes

Clarify that -b also listens on an address and port
(overridden by -i address and/or -I port), as does -f.

If -i isn't given, all addresses are listened to.
Use literal instead of emphasis for Lua, paths, URLs (etc).

Add more cross-references to other options.

Split FILES into a tagged list and subsections describing
the behaviour.

drop duplicate "by default".
 1.1 11-Jul-2013  mrg branches: 1.1.6; 1.1.8; 1.1.10; 1.1.12; 1.1.14; 1.1.16; 1.1.18; 1.1.22;
prepare for netbsd to be mastersrc for bozohttpd.
 1.1.22.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.22.1 11-Jul-2013  tls file netbsd_queue.h was added on branch tls-maxphys on 2014-08-20 00:02:22 +0000
 1.1.18.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.18.1 11-Jul-2013  msaitoh file netbsd_queue.h was added on branch netbsd-5-1 on 2014-07-09 16:09:39 +0000
 1.1.16.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.16.1 11-Jul-2013  msaitoh file netbsd_queue.h was added on branch netbsd-5-2 on 2014-07-09 16:04:13 +0000
 1.1.14.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.14.1 11-Jul-2013  msaitoh file netbsd_queue.h was added on branch netbsd-5 on 2014-07-09 15:21:21 +0000
 1.1.12.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.1.12.1 11-Jul-2013  msaitoh file netbsd_queue.h was added on branch netbsd-6-0 on 2014-07-09 09:47:11 +0000
 1.1.10.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.1.10.1 11-Jul-2013  msaitoh file netbsd_queue.h was added on branch netbsd-6-1 on 2014-07-09 09:44:56 +0000
 1.1.8.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.1.8.1 11-Jul-2013  msaitoh file netbsd_queue.h was added on branch netbsd-6 on 2014-07-09 09:42:39 +0000
 1.1.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.6.1 11-Jul-2013  yamt file netbsd_queue.h was added on branch yamt-pagecache on 2014-05-22 11:37:13 +0000
 1.5 28-Feb-2021  rillig libexec/httpd: fix cross-site scripting in Lua example

curl \
--header 'NAME<x>: <y>' \
'http://127.0.0.1:8080/test/printenv?<b>=<i>'
 1.4 25-Aug-2020  leot Fix a typo in a comment
 1.3 07-Dec-2015  kamil branches: 1.3.8; 1.3.18;
Improve the httpd(8) printenv.lua Lua example

Stop using Lua builtin print function and replace them with http.* ones.
httpd.print and http.write wraps SSL support when needed.

Print http headers, without them browser may interpret page as raw text.

No need to hardcode prefix path in the form.

Add comments for a user with tips how to use this script.

Patch by Travis Paul

Closes PR misc/50502
 1.2 02-Jan-2014  mrg branches: 1.2.4; 1.2.6; 1.2.8; 1.2.10; 1.2.12; 1.2.14; 1.2.16; 1.2.18; 1.2.20; 1.2.22;
- update CHANGES with recent changes
- update version to 20140102
- update copyrights
- use getcwd() over getwd()
- fix lean build (don't include lua)
 1.1 12-Oct-2013  mbalmer add Lua scripting support to bozohttpd, see httpd(8) for details
 1.2.22.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.2.20.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.20.1 02-Jan-2014  tls file printenv.lua was added on branch tls-maxphys on 2014-08-20 00:02:22 +0000
 1.2.18.1 10-Apr-2016  martin Catch up to -current (via patch), requested by mspo in #1141:

libexec/httpd/CHANGES up to 1.21
libexec/httpd/Makefile up to 1.26
libexec/httpd/auth-bozo.c up to 1.18
libexec/httpd/bozohttpd.8 up to 1.58
libexec/httpd/bozohttpd.c up to 1.79
libexec/httpd/bozohttpd.h up to 1.44
libexec/httpd/cgi-bozo.c up to 1.32
libexec/httpd/content-bozo.c up to 1.13
libexec/httpd/daemon-bozo.c up to 1.17
libexec/httpd/dir-index-bozo.c up to 1.25
libexec/httpd/lua-bozo.c up to 1.14
libexec/httpd/main.c up to 1.13
libexec/httpd/netbsd_queue.h up to 1.1
libexec/httpd/printenv.lua up to 1.3
libexec/httpd/ssl-bozo.c up to 1.22
libexec/httpd/tilde-luzah-bozo.c up to 1.14
libexec/httpd/testsuite/Makefile up to 1.5
libexec/httpd/testsuite/test-bigfile up to 1.2

Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
 1.2.16.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.16.1 02-Jan-2014  msaitoh file printenv.lua was added on branch netbsd-5-1 on 2014-07-09 16:09:39 +0000
 1.2.14.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.14.1 02-Jan-2014  msaitoh file printenv.lua was added on branch netbsd-5-2 on 2014-07-09 16:04:13 +0000
 1.2.12.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.12.1 02-Jan-2014  msaitoh file printenv.lua was added on branch netbsd-5 on 2014-07-09 15:21:21 +0000
 1.2.10.3 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.2.10.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.2.10.1 02-Jan-2014  msaitoh file printenv.lua was added on branch netbsd-6-0 on 2014-07-09 09:47:11 +0000
 1.2.8.3 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.2.8.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.2.8.1 02-Jan-2014  msaitoh file printenv.lua was added on branch netbsd-6-1 on 2014-07-09 09:44:56 +0000
 1.2.6.3 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.2.6.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.2.6.1 02-Jan-2014  msaitoh file printenv.lua was added on branch netbsd-6 on 2014-07-09 09:42:39 +0000
 1.2.4.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2.4.1 02-Jan-2014  yamt file printenv.lua was added on branch yamt-pagecache on 2014-05-22 11:37:13 +0000
 1.3.18.1 05-Mar-2021  martin Pull up the following (all via patch), requested by mrg in ticket #1221:

lib/lua/bozohttpd/Makefile (apply patch)
libexec/httpd/Makefile 1.30-1.31
libexec/httpd/Makefile.boot 1.7-1.9
libexec/httpd/auth-bozo.c 1.25-1.26
libexec/httpd/bozohttpd.8 1.80-1.87
libexec/httpd/bozohttpd.c 1.114-1.123,1.125-1.128
libexec/httpd/bozohttpd.h 1.61-1.68
libexec/httpd/cgi-bozo.c 1.49-1.53
libexec/httpd/content-bozo.c 1.17-1.20
libexec/httpd/daemon-bozo.c 1-.22
libexec/httpd/dir-index-bozo.c 1.33-1.34
libexec/httpd/main.c 1.23-1.27
libexec/httpd/printenv.lua 1.4-1.5
libexec/httpd/ssl-bozo.c 1.27-1.29
libexec/httpd/libbozohttpd/libbozohttpd.3 1.5-1.6
libexec/httpd/small/Makefile 1.4
libexec/httpd/testsuite/Makefile 1.14
libexec/httpd/testsuite/t16.in 1.1
libexec/httpd/testsuite/t16.out 1.1
libexec/httpd/testsuite/t17.in 1.1
libexec/httpd/testsuite/t17.out 1.1
libexec/httpd/testsuite/t18.in 1.1
libexec/httpd/testsuite/t18.out 1.1


Update to bozohttpd 20210227.
Apply lua build fix (no blocklist support on this branch).

changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.3.8.1 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.2 16-Oct-2007  tls Get httpd ready for inclusion in build.
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.4 18-Apr-2009  mrg import bozohttpd 20090418. changes include:

o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet

this covers PR#38489 and PR#40079, as well some some issues reported
privately.
 1.1.1.3 18-Apr-2009  mrg import latest bozohttpd sources. changes include:

o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.2 03-Mar-2008  mrg import latest bozohttpd. changes include:

o fix some cgi header processing, from <thelsdj@gmail.com>
o add simple Range: header processing, from <bad@bsd.de>
o man page fixes, from NetBSD
o clean up various parts, from NetBSD
o prefix some function names with "bozo"
o align directory indexing <hr> markers
o clean up some code GCC4 grumbled about
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.34 18-Dec-2023  riastradh httpd(8): Add missing newline to `SSL Error' messages.

Matches the pattern in all other printf/syslog calls.

XXX pullup-10
XXX pullup-9
XXX pullup-8
 1.33 07-Jun-2023  mrg serve .iso as "application/octet-stream". bump version & copyright.
 1.32 12-Sep-2022  martin branches: 1.32.2;
Add a -q option to make http quiet (no log messages).

Usefull when running multiple instances and some for (high traffic)
APIs e.g. to receive log data from appliences - it makes not sense
to duplicate the whole log in the xferlog file (but we can't configure
that at the syslog level due to other httpd instances using that).
 1.31 24-Aug-2021  mrg extend the list of available ciphers to include most of the
openssl "HIGH" with some additional disables. retain the current
list of bad options. should deal with PR#51278.
 1.30 24-Aug-2021  mrg implement tls minimum version setting.

mostly from sunil@nimmagadda.net in PR#55830, though i moved the
member into the main http structure, so that it doesn't trigger
sslinfo being allocated via command line without the rest of the
ssl being setup (which then leads to crashes.)
 1.29 15-Oct-2020  mrg various updates from <henrik@gulbra.net> / freebsd. the list from Henrik:

bozohttpd.8:
o Added -d flag to the man page
o Moved -E flag in man page to keep alphabetic order
o Grammar fix for description of -E flag in man page
o Moved a word in the man description for the -f flag
o Made -f imply -b as a backwards-compatible shortcut
o Updated man description of -n to mention Lua scripts
o Moved -z below -Z to keep the uppercase options first

bozohttpd.c:
o Removed obsolete comment about ~user missing cgi-bin support
o Removed "/* ARGSUSED */" lines; was that a macro or a reminder?
o Added USE_ARG macro call for sig, which was otherwise not used
o Added USE_ARG macro call for msg (only used if debug is enabled)

bozohttpd.h:
o Fixed typo in the include guard (BOZOHTTOPD_H_ -> BOZOHTTPD_H_)
o Renamed have_all to have_core; it didn't mean "all" options

content-bozo.c:
o Added USE_ARG macro call for signo, which was otherwise not used
o Made -f imply -b as a backwards-compatible shortcut

main.c:
o Simplified -b text to be symmetric with that for the -f option
o Updated -C text to make "suffix" explicit; it's better than "arg"
o Changed to only show the -E description if have_user is true
o Always show the -e option, which incorrectly used the -E logic
o Renamed have_all to have_core; it didn't mean "all" options
o Added three missing tabs for the description of the -G option
o Updated -L text to make "prefix" explicit; it's better than "arg"
o Updated -M text to make "suffix" explicit; it's slightly better
o Added a previously missing description for the -n option
o Documented the otherwise obscure valid types for the -T option
o Shortened "username" to "user" to match the actual help text
o Moved handling of -c below that for -C to standardize the order
o Broke the enabling test for -C into two lines for consistency
o Inverted the enabling test for -E; this is what was meant, right?
o Removed the enabling test for -e, which should always be enabled

ssl-bozo.c:
o Added USE_ARG for httpd, which is not used if SSL has been excluded
 1.28 15-Oct-2020  mrg set -D_GNU_SOURCE in Makefile.boot. from hadrien.lacour@posteo.net.
also match %2F as well as %2f. from leah@vuxu.org.
introduce defines for "80" and "443". copyright maint.
 1.27 20-Aug-2020  spz send close_notify for the ssl connection before closing the TCP connection
Thanks to Dr. Thomas Orgis for reporting the issue.
 1.26 28-Feb-2019  mrg branches: 1.26.2;
add ssl specific timeout value (30s). if SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.

mostly different from, but inspired from the patch in PR 50655
 1.25 22-Nov-2018  mrg many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines
 1.24 20-Nov-2018  mrg from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.


the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.


reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.


clean up option and usage handling some.
 1.23 06-Feb-2018  christos branches: 1.23.2; 1.23.4;
- need string.h
- cast options to long for OpenSSL-1.1
 1.22 28-Dec-2015  mrg branches: 1.22.8;
rename bozo_err/bozo_warn/bozo_asprintf to bozoerr/etc.
new rule is that function that mirror libc-style functions get no underscore.
 1.21 27-Dec-2015  mrg several clean ups:

- bozostrdup() gains a request parameter, and uses it to determine
what sort of error handling is required
- bozo_strdup() dies
- size_arrays() reduced slightly, pushing error handling into the caller
- convert to size_t for some array indices
- bozo_set_pref() and bozo_init_prefs() gain httpd parameters
- apply a bunch of manual CSE to vastly reduce the number of times the
string "request->hr_httpd" appears.
- CGI parse_header() takes a request not httpd now

XXX: lua glue updated to call bozo_init_prefs() with htttpd parameter,
but i'm only guessing here.
 1.20 12-Dec-2015  christos Introduce bozo_strdup and bozo_asprintf to add error checking and reduce
code duplication.

Note that bozo_strdup is different that bozostrdup; the _ routines exit
loging error to syslog or stderr, whereas the non _ routines send error
responses to the http client.
 1.19 12-Dec-2015  christos - restrict the default list of ciphers to something more secure
- restrict ssl options
From Travis Paul
 1.18 17-Jul-2014  mrg branches: 1.18.2; 1.18.4;
rewrite much of the SSL code:
- handle errors in many places they weren't properly
- make SSL_accept() an error the main code notices
- expand bozo_ssl_err() to include bozo_ssl_warn(), bozo_clear_ssl_queue()
- remove empty bozo_ssl_flush()
 1.17 17-Jul-2014  mrg use const and remove unnecessary braces.
 1.16 02-Jan-2014  mrg branches: 1.16.2;
- update CHANGES with recent changes
- update version to 20140102
- update copyrights
- use getcwd() over getwd()
- fix lean build (don't include lua)
 1.15 14-Mar-2012  joerg branches: 1.15.2;
Add BOZO_PRINTFLIKE for functions that pass an argument and va_arg to
a vprintf-like function.
 1.14 20-Feb-2012  elric Use a ``certificate chain file'' rather than a ``certificate file'' so
that bozohttpd can be used with non-toplevel certs.
 1.13 18-Nov-2011  mrg branches: 1.13.2; 1.13.6; 1.13.8;
merge bozohttpd 20111118
 1.12 27-Aug-2011  joerg branches: 1.12.2;
Don't check for __attribute__ being defined, it won't. Check for GCC 3.x
or compatible and define BOZO_PRINTFLIKE / BOZO_DEAD. Fix fallout.
 1.11 21-Aug-2011  hannken Fix typo.
 1.10 21-Aug-2011  christos use const char [] for format.
 1.9 14-Aug-2011  christos XXX: gcc avoid non-literal strings
 1.8 15-May-2010  mrg merge bozohttpd 20100512
 1.7 10-May-2010  mrg merge bozohttpd 20100509.
 1.6 04-Nov-2009  agc Plug a memory leak for ssl-protected formatted output
 1.5 18-Apr-2009  mrg merge bozohttpd 20090417
 1.4 10-May-2008  mlelstv branches: 1.4.2; 1.4.4; 1.4.6; 1.4.12;
new openssl returns const method objects.
 1.3 03-Mar-2008  mrg branches: 1.3.2; 1.3.4;
merge bozohttpd 20080303
 1.2 17-Oct-2007  tls branches: 1.2.2; 1.2.6;
RCS IDs
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.6 18-Nov-2011  mrg update to bozohttpd 20111118. nothing major is missing here but
the changes since the prior import were:

o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well
 1.1.1.5 15-May-2010  mrg import bozohttpd 20100512. it includes these changes:
o fix SSL mode. from rtr.
 1.1.1.4 10-May-2010  mrg import bozohttpd 20100509. it has these changes:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
 1.1.1.3 18-Apr-2009  mrg import latest bozohttpd sources. changes include:

o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.2 03-Mar-2008  mrg import latest bozohttpd. changes include:

o fix some cgi header processing, from <thelsdj@gmail.com>
o add simple Range: header processing, from <bad@bsd.de>
o man page fixes, from NetBSD
o clean up various parts, from NetBSD
o prefix some function names with "bozo"
o align directory indexing <hr> markers
o clean up some code GCC4 grumbled about
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.2.6.1 24-Mar-2008  keiichi sync with head.
 1.2.2.3 23-Mar-2008  matt sync with HEAD
 1.2.2.2 06-Nov-2007  matt sync with HEAD
 1.2.2.1 17-Oct-2007  matt file ssl-bozo.c was added on branch matt-armv6 on 2007-11-06 23:12:06 +0000
 1.3.4.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.3.2.1 18-May-2008  yamt sync with head.
 1.4.12.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.4.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.4.4.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.4.2.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.12.2.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.12.2.1 17-Apr-2012  yamt sync with head
 1.13.8.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.13.8.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.13.6.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.13.6.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.13.2.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.13.2.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.15.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.16.2.1 10-Aug-2014  tls Rebase.
 1.18.4.3 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.18.4.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.18.4.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.18.2.3 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.18.2.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.18.2.1 10-Apr-2016  martin branches: 1.18.2.1.4;
Catch up to -current (via patch), requested by mspo in #1141:

libexec/httpd/CHANGES up to 1.21
libexec/httpd/Makefile up to 1.26
libexec/httpd/auth-bozo.c up to 1.18
libexec/httpd/bozohttpd.8 up to 1.58
libexec/httpd/bozohttpd.c up to 1.79
libexec/httpd/bozohttpd.h up to 1.44
libexec/httpd/cgi-bozo.c up to 1.32
libexec/httpd/content-bozo.c up to 1.13
libexec/httpd/daemon-bozo.c up to 1.17
libexec/httpd/dir-index-bozo.c up to 1.25
libexec/httpd/lua-bozo.c up to 1.14
libexec/httpd/main.c up to 1.13
libexec/httpd/netbsd_queue.h up to 1.1
libexec/httpd/printenv.lua up to 1.3
libexec/httpd/ssl-bozo.c up to 1.22
libexec/httpd/tilde-luzah-bozo.c up to 1.14
libexec/httpd/testsuite/Makefile up to 1.5
libexec/httpd/testsuite/test-bigfile up to 1.2

Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
 1.18.2.1.4.2 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.18.2.1.4.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.22.8.3 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.22.8.2 12-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1281:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6


Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.22.8.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.23.4.1 10-Jun-2019  christos Sync with HEAD
 1.23.2.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.26.2.1 05-Mar-2021  martin Pull up the following (all via patch), requested by mrg in ticket #1221:

lib/lua/bozohttpd/Makefile (apply patch)
libexec/httpd/Makefile 1.30-1.31
libexec/httpd/Makefile.boot 1.7-1.9
libexec/httpd/auth-bozo.c 1.25-1.26
libexec/httpd/bozohttpd.8 1.80-1.87
libexec/httpd/bozohttpd.c 1.114-1.123,1.125-1.128
libexec/httpd/bozohttpd.h 1.61-1.68
libexec/httpd/cgi-bozo.c 1.49-1.53
libexec/httpd/content-bozo.c 1.17-1.20
libexec/httpd/daemon-bozo.c 1-.22
libexec/httpd/dir-index-bozo.c 1.33-1.34
libexec/httpd/main.c 1.23-1.27
libexec/httpd/printenv.lua 1.4-1.5
libexec/httpd/ssl-bozo.c 1.27-1.29
libexec/httpd/libbozohttpd/libbozohttpd.3 1.5-1.6
libexec/httpd/small/Makefile 1.4
libexec/httpd/testsuite/Makefile 1.14
libexec/httpd/testsuite/t16.in 1.1
libexec/httpd/testsuite/t16.out 1.1
libexec/httpd/testsuite/t17.in 1.1
libexec/httpd/testsuite/t17.out 1.1
libexec/httpd/testsuite/t18.in 1.1
libexec/httpd/testsuite/t18.out 1.1


Update to bozohttpd 20210227.
Apply lua build fix (no blocklist support on this branch).

changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.32.2.1 29-Jul-2025  martin Pull up following revision(s) (requested by mrg in ticket #1139):

libexec/httpd/CHANGES: revision 1.55
libexec/httpd/CHANGES: revision 1.56
libexec/httpd/cgi-bozo.c: revision 1.55
libexec/httpd/cgi-bozo.c: revision 1.56
libexec/httpd/bozohttpd.8: revision 1.93
libexec/httpd/bozohttpd.8: revision 1.94
libexec/httpd/bozohttpd.8: revision 1.95
libexec/httpd/bozohttpd.8: revision 1.96
libexec/httpd/bozohttpd.8: revision 1.97
libexec/httpd/bozohttpd.c: revision 1.143
libexec/httpd/bozohttpd.8: revision 1.100
libexec/httpd/bozohttpd.c: revision 1.144
libexec/httpd/bozohttpd.8: revision 1.99
libexec/httpd/bozohttpd.c: revision 1.145
libexec/httpd/bozohttpd.c: revision 1.146
libexec/httpd/bozohttpd.c: revision 1.147
libexec/httpd/auth-bozo.c: revision 1.28
libexec/httpd/ssl-bozo.c: revision 1.33
libexec/httpd/ssl-bozo.c: revision 1.34
libexec/httpd/content-bozo.c: revision 1.22
libexec/httpd/main.c: revision 1.31

serve .iso as "application/octet-stream". bump version & copyright.

add a note about how to setup http -> https redirection.
bump documented version.

Fix memory leaks in bozo_cleanup

Fix hr_authrealm memory leak
hr_authrealm might be already set, so we need to free it before overwriting
the value

Remove unused variable (bp)

Fix off-by-one in bozo_decode_url_percent

In case of strings that end with '%', debug function was reading past buffer.
Removed unnecessary comment
Thanks leot@ for pointing this out

httpd(8): Add missing newline to `SSL Error' messages.
Matches the pattern in all other printf/syslog calls.

add some missing changes and bump the version.

s/supressing/suppressing/.

note this documents bozohttpd 20240126.

Bump bozohttpd version to today for mobile-friendly directory listing

bozohttpd(8): clarifications and editorial fixes

Clarify that -b also listens on an address and port
(overridden by -i address and/or -I port), as does -f.

If -i isn't given, all addresses are listened to.
Use literal instead of emphasis for Lua, paths, URLs (etc).

Add more cross-references to other options.

Split FILES into a tagged list and subsections describing
the behaviour.

drop duplicate "by default".
 1.16 22-Nov-2018  mrg many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines
 1.15 20-Nov-2018  mrg from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.


the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.


reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.


clean up option and usage handling some.
 1.14 28-Dec-2015  mrg branches: 1.14.8; 1.14.14; 1.14.16;
rename bozo_err/bozo_warn/bozo_asprintf to bozoerr/etc.
new rule is that function that mirror libc-style functions get no underscore.
 1.13 27-Dec-2015  mrg several clean ups:

- bozostrdup() gains a request parameter, and uses it to determine
what sort of error handling is required
- bozo_strdup() dies
- size_arrays() reduced slightly, pushing error handling into the caller
- convert to size_t for some array indices
- bozo_set_pref() and bozo_init_prefs() gain httpd parameters
- apply a bunch of manual CSE to vastly reduce the number of times the
string "request->hr_httpd" appears.
- CGI parse_header() takes a request not httpd now

XXX: lua glue updated to call bozo_init_prefs() with htttpd parameter,
but i'm only guessing here.
 1.12 28-Oct-2015  shm * add CGI support for ~user translation (-E switch)
* add redirects to ~user translation
* fix bugs around ~user translation
* add schema detection for absolute redirects
* fixed few memory leaks
* bunch of minor tweaks
* removed -r support
* smarter redirects

OK mrg@
 1.11 16-Jul-2015  shm Fix handling path with multiple slashes at the beginning
Fix redirections escaping for user support

OK mrg@
 1.10 02-Jan-2014  mrg branches: 1.10.4; 1.10.6;
- update CHANGES with recent changes
- update version to 20140102
- update copyrights
- use getcwd() over getwd()
- fix lean build (don't include lua)
 1.9 18-Nov-2011  mrg branches: 1.9.2; 1.9.6; 1.9.8; 1.9.14;
merge bozohttpd 20111118
 1.8 17-Jun-2010  mrg branches: 1.8.6;
merge bozohttpd 20100617.
 1.7 10-May-2010  mrg merge bozohttpd 20100510.
 1.6 10-May-2010  mrg merge bozohttpd 20100509.
 1.5 18-Apr-2009  mrg merge bozohttpd 20090417
 1.4 04-Feb-2009  tls branches: 1.4.2;
From Sergey Katsev at Coyote Point: fix bugs in request transformation and
CGI handling, including bin/40355 . There are two main changes here:

1) call process_cgi() after transform_request(), not before. Now it is
possible to have a default cgi handler catch a request for a path that
was produced by transformation, e.g. by index generation -- so now the
index can be "generated" by a CGI if that is what the user desires.

2) More clearly distinguish "file" from "query" portions of the request
URL, so we do not feed ?-suffixed "arguments" to plain files, fail to
match filename extensions due to ?-suffixes, etc.

After this change, there are only two cases which use the "query"
portion of the request (the portion after the ?):

a) A redirect issued by HTTPD will redirect to the new file, but
with the same query string.

b) process_cgi() will, of course continue to use the query string.
 1.3 03-Mar-2008  mrg branches: 1.3.8;
merge bozohttpd 20080303
 1.2 17-Oct-2007  tls branches: 1.2.2; 1.2.6;
RCS IDs
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.7 18-Nov-2011  mrg update to bozohttpd 20111118. nothing major is missing here but
the changes since the prior import were:

o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well
 1.1.1.6 17-Jun-2010  mrg initial import of bozohttpd 20100617. recent changes:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour
 1.1.1.5 10-May-2010  mrg import bozohttpd 20100510 -- just fixes some compile errors.
 1.1.1.4 10-May-2010  mrg import bozohttpd 20100509. it has these changes:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
 1.1.1.3 18-Apr-2009  mrg import latest bozohttpd sources. changes include:

o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.2 03-Mar-2008  mrg import latest bozohttpd. changes include:

o fix some cgi header processing, from <thelsdj@gmail.com>
o add simple Range: header processing, from <bad@bsd.de>
o man page fixes, from NetBSD
o clean up various parts, from NetBSD
o prefix some function names with "bozo"
o align directory indexing <hr> markers
o clean up some code GCC4 grumbled about
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.2.6.1 24-Mar-2008  keiichi sync with head.
 1.2.2.3 23-Mar-2008  matt sync with HEAD
 1.2.2.2 06-Nov-2007  matt sync with HEAD
 1.2.2.1 17-Oct-2007  matt file tilde-luzah-bozo.c was added on branch matt-armv6 on 2007-11-06 23:12:07 +0000
 1.3.8.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.3.8.1 08-Feb-2009  snj branches: 1.3.8.1.6; 1.3.8.1.10;
Pull up following revision(s) (requested by tls in ticket #428):
libexec/httpd/bozohttpd.c: revision 1.9
libexec/httpd/bozohttpd.h: revision 1.6
libexec/httpd/cgi-bozo.c: revision 1.9
libexec/httpd/dir-index-bozo.c: revision 1.5
libexec/httpd/tilde-luzah-bozo.c: revision 1.4
From Sergey Katsev at Coyote Point: fix bugs in request transformation and
CGI handling, including bin/40355 . There are two main changes here:
1) call process_cgi() after transform_request(), not before. Now it is
possible to have a default cgi handler catch a request for a path that
was produced by transformation, e.g. by index generation -- so now the
index can be "generated" by a CGI if that is what the user desires.
2) More clearly distinguish "file" from "query" portions of the request
URL, so we do not feed ?-suffixed "arguments" to plain files, fail to
match filename extensions due to ?-suffixes, etc.
After this change, there are only two cases which use the "query"
portion of the request (the portion after the ?):
a) A redirect issued by HTTPD will redirect to the new file, but
with the same query string.
b) process_cgi() will, of course continue to use the query string.
 1.3.8.1.10.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.3.8.1.6.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.4.2.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.8.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.8.6.1 17-Apr-2012  yamt sync with head
 1.9.14.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.9.14.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.9.8.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.9.8.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.9.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.9.2.2 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.9.2.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.10.6.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.10.6.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.10.4.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.10.4.1 10-Apr-2016  martin branches: 1.10.4.1.4;
Catch up to -current (via patch), requested by mspo in #1141:

libexec/httpd/CHANGES up to 1.21
libexec/httpd/Makefile up to 1.26
libexec/httpd/auth-bozo.c up to 1.18
libexec/httpd/bozohttpd.8 up to 1.58
libexec/httpd/bozohttpd.c up to 1.79
libexec/httpd/bozohttpd.h up to 1.44
libexec/httpd/cgi-bozo.c up to 1.32
libexec/httpd/content-bozo.c up to 1.13
libexec/httpd/daemon-bozo.c up to 1.17
libexec/httpd/dir-index-bozo.c up to 1.25
libexec/httpd/lua-bozo.c up to 1.14
libexec/httpd/main.c up to 1.13
libexec/httpd/netbsd_queue.h up to 1.1
libexec/httpd/printenv.lua up to 1.3
libexec/httpd/ssl-bozo.c up to 1.22
libexec/httpd/tilde-luzah-bozo.c up to 1.14
libexec/httpd/testsuite/Makefile up to 1.5
libexec/httpd/testsuite/test-bigfile up to 1.2

Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
 1.10.4.1.4.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.14.16.1 10-Jun-2019  christos Sync with HEAD
 1.14.14.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.14.8.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1 09-Jul-2014  msaitoh branches: 1.1.2; 1.1.4;
file typescript was initially added on branch netbsd-5-2.
 1.1.4.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.4.1 09-Jul-2014  msaitoh file typescript was added on branch netbsd-5-1 on 2014-07-09 16:09:39 +0000
 1.1.2.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1 23-May-2009  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 23-May-2009  mrg branches: 1.1.1.1.24; 1.1.1.1.26; 1.1.1.1.28;
import bozohttpd 20090522, which has these changes:
o close more leaking file descriptors for CGI and daemon mode
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child
 1.1.1.1.28.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.28.1 23-May-2009  msaitoh file Makefile was added on branch netbsd-5-1 on 2014-07-09 16:09:39 +0000
 1.1.1.1.26.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.26.1 23-May-2009  msaitoh file Makefile was added on branch netbsd-5-2 on 2014-07-09 16:04:13 +0000
 1.1.1.1.24.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.24.1 23-May-2009  msaitoh file Makefile was added on branch netbsd-5 on 2014-07-09 15:21:21 +0000
 1.4 09-May-2023  christos Deal with OpenSSL-3.x
 1.3 21-May-2017  riastradh branches: 1.3.2; 1.3.12; 1.3.20;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.
 1.2 02-Feb-2014  mrg branches: 1.2.4; 1.2.6; 1.2.8; 1.2.10; 1.2.12; 1.2.20;
add lua-bozo.c.
 1.1 10-May-2010  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 10-May-2010  mrg branches: 1.1.1.1.6; 1.1.1.1.8; 1.1.1.1.12; 1.1.1.1.14; 1.1.1.1.20;
import bozohttpd 20100509. it has these changes:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
 1.1.1.1.20.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.1.1.1.14.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.1.1.1.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.1.1.8.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.1.1.1.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2.20.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.2.12.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.2.10.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.2.8.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.8.1 02-Feb-2014  msaitoh file Makefile was added on branch netbsd-5-1 on 2014-07-09 16:09:39 +0000
 1.2.6.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.6.1 02-Feb-2014  msaitoh file Makefile was added on branch netbsd-5-2 on 2014-07-09 16:04:13 +0000
 1.2.4.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.4.1 02-Feb-2014  msaitoh file Makefile was added on branch netbsd-5 on 2014-07-09 15:21:21 +0000
 1.3.20.1 11-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #317):

external/mpl/bind/dist/bin/tests/system/autosign/ns2/Xbar.+013+59973.key up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/autosign/ns2/Xbar.+013+59973.private up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/autosign/ns2/Xbar.+013+60101.key up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/autosign/ns2/Xbar.+013+60101.private up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/autosign/ns2/optout-with-ent.db.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/autosign/ns3/nsec-only.example.db.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/catz/ns3/catalog.example.db.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/catz/ns4/catalog.example.db.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/catz/ns4/named.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/checkconf/dnssec.4 up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/checkconf/bad-kasp-keydir2.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/checkconf/bad-kasp-keydir3.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/checkconf/bad-kasp-keydir4.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/checkconf/bad-kasp-keydir5.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/checkconf/bad-kasp-keydir1.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/checkconf/check-wildcard-no.conf up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/checkconf/check-wildcard.conf up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/checkconf/check-wildcard.db up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/checkds/tests_checkds.py up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/checkzone/zones/bad-tsig.db.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/dialup/ns1/named.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/dialup/ns2/named.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/dialup/ns3/named.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/dnssec/ns4/managed-keys.bind.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/Kexample.com.+010+18240.key up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/Kexample.com.+010+18240.private up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/Kexample.com.+010+28633.key up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/Kexample.com.+010+28633.private up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/dnstap/prereq.sh up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/keymgr/19-old-keys/policy.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/keymgr/18-nonstd-prepub/policy.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/keymgr/policy.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.dirconf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.iso8601-utc.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.pipeconf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.plain.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.plainconf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.symconf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.tsconf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.unlimited.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.iso8601.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.versconf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/named1.args up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/logfileconfig/named2.args up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/mkeys/ns1/sub.tld.db up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/mkeys/ns1/tld.db up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/mkeys/ns4/sign.sh up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/mkeys/ns4/sub.foo.db up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/mkeys/ns5/foo.db up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/resolver/ns4/v4only.net.db up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/resolver/ns6/redirect.com.db up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/resolver/ns6/tld1.db up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/resolver/ns7/sub.tld1.db up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/resolver/ns7/tld2.db up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/resolver/ns9/named.args up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/resolver/ns9/named.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/resolver/ns9/named.ipv6-only up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/resolver/ns9/root.hint up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/rpz/ns6/bl.tld2s.db.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/rrl/broken.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns2/Xexample.+008+51650.key up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns2/Xexample.+008+51650.private up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns2/Xexample.+008+52810.key up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns2/Xexample.+008+52810.private up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/serve-stale/ns1/stale.test.db up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/statschannel/tests_json.py up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/statschannel/tests_xml.py up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/stress/ns1/named.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/stress/ns2/named.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/stress/ns3/named.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/stress/ns4/named.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/tcp/tests_tcp.py up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/upforwd/ns3/named1.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/upforwd/ns3/named2.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/wildcard/tests_wildcard.py up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/ttl/prereq.sh up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/ttl/tests_cache_ttl.py up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/kasp/ns3/policies/kasp-fips.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/kasp/ns3/named-fips.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/kasp/ns6/policies/kasp-fips.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/shutdown/tests_shutdown.py up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/nsec3/ns2/named.conf.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/nsec3/ns2/setup.sh up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/nsec3/ns2/template.db.in up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/timeouts/tests_tcp_timeouts.py up to 1.1.1.1
external/mpl/bind/dist/bin/tests/system/get_algorithms.py up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.34.rst up to 1.1.1.1
external/mpl/bind/dist/doc/notes/notes-9.16.35.rst up to 1.1.1.1
external/mpl/bind/dist/doc/notes/notes-9.16.36.rst up to 1.1.1.1
external/mpl/bind/dist/doc/notes/notes-9.16.37.rst up to 1.1.1.1
external/mpl/bind/dist/doc/notes/notes-known-issues.rst up to 1.1.1.1
external/mpl/bind/dist/doc/notes/notes-9.16.38.rst up to 1.1.1.1
external/mpl/bind/dist/doc/notes/notes-9.16.39.rst up to 1.1.1.1
external/mpl/bind/dist/doc/notes/notes-9.16.40.rst up to 1.1.1.1
external/mpl/bind/dist/doc/notes/notes-9.16.41.rst up to 1.1.1.1
external/mpl/bind/dist/doc/notes/notes-9.16.42.rst up to 1.1.1.1
external/mpl/bind/dist/lib/dns/tests/Krsa.+008+29238.key up to 1.1.1.1
external/mpl/bind/dist/sonar-project.properties up to 1.1.1.1
external/mpl/bind/dist/tsan-suppressions.txt delete
external/mpl/bind/dist/bin/tests/system/autosign/ns2/Xbar.+005+30676.key delete
external/mpl/bind/dist/bin/tests/system/autosign/ns2/Xbar.+005+30676.private delete
external/mpl/bind/dist/bin/tests/system/autosign/ns2/Xbar.+005+30804.key delete
external/mpl/bind/dist/bin/tests/system/autosign/ns2/Xbar.+005+30804.private delete
external/mpl/bind/dist/bin/tests/system/autosign/ns3/nsec.example.db.in delete
external/mpl/bind/dist/bin/tests/system/checkconf/bad-kasp-keydir1.conf delete
external/mpl/bind/dist/bin/tests/system/checkconf/bad-kasp-keydir2.conf delete
external/mpl/bind/dist/bin/tests/system/checkconf/bad-kasp-keydir3.conf delete
external/mpl/bind/dist/bin/tests/system/checkconf/bad-kasp-keydir4.conf delete
external/mpl/bind/dist/bin/tests/system/checkconf/bad-kasp-keydir5.conf delete
external/mpl/bind/dist/bin/tests/system/checkds/tests-checkds.py delete
external/mpl/bind/dist/bin/tests/system/checkzone/zones/bad-tsig.db delete
external/mpl/bind/dist/bin/tests/system/common/controls.conf delete
external/mpl/bind/dist/bin/tests/system/delzone/ns1/inlinesec.db delete
external/mpl/bind/dist/bin/tests/system/delzone/ns1/named.conf delete
external/mpl/bind/dist/bin/tests/system/delzone/ns2/added.db delete
external/mpl/bind/dist/bin/tests/system/delzone/ns2/named.args delete
external/mpl/bind/dist/bin/tests/system/delzone/ns2/named.conf delete
external/mpl/bind/dist/bin/tests/system/delzone/ns2/normal.db delete
external/mpl/bind/dist/bin/tests/system/delzone/clean.sh delete
external/mpl/bind/dist/bin/tests/system/delzone/setup.sh delete
external/mpl/bind/dist/bin/tests/system/delzone/tests.sh delete
external/mpl/bind/dist/bin/tests/system/dialup/ns1/named.conf delete
external/mpl/bind/dist/bin/tests/system/dialup/ns2/named.conf delete
external/mpl/bind/dist/bin/tests/system/dialup/ns3/named.conf delete
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/Kexample.com.+005+07065.key delete
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/Kexample.com.+005+07065.private delete
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/Kexample.com.+005+23362.key delete
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/Kexample.com.+005+23362.private delete
external/mpl/bind/dist/bin/tests/system/keymgr/policy.conf delete
external/mpl/bind/dist/bin/tests/system/keymgr/18-nonstd-prepub/policy.conf delete
external/mpl/bind/dist/bin/tests/system/keymgr/19-old-keys/policy.conf delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/controls.conf.in delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.dirconf delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.iso8601 delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.iso8601-utc delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.pipeconf delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.plain delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.plainconf delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.symconf delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.tsconf delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.unlimited delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/named.versconf delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/rndc.conf.in delete
external/mpl/bind/dist/bin/tests/system/logfileconfig/ns1/root.db delete
external/mpl/bind/dist/bin/tests/system/rrl/broken.conf delete
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns2/Xexample.+005+05896.key delete
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns2/Xexample.+005+05896.private delete
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns2/Xexample.+005+51829.key delete
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns2/Xexample.+005+51829.private delete
external/mpl/bind/dist/bin/tests/system/shutdown/tests-shutdown.py delete
external/mpl/bind/dist/bin/tests/system/stress/ns1/named.conf delete
external/mpl/bind/dist/bin/tests/system/stress/ns2/named.conf delete
external/mpl/bind/dist/bin/tests/system/stress/ns3/named.conf delete
external/mpl/bind/dist/bin/tests/system/stress/ns4/named.conf delete
external/mpl/bind/dist/bin/tests/system/statschannel/tests-json.py delete
external/mpl/bind/dist/bin/tests/system/statschannel/tests-xml.py delete
external/mpl/bind/dist/bin/tests/system/tcp/tests-tcp.py delete
external/mpl/bind/dist/bin/tests/system/timeouts/tests-tcp.py delete
external/mpl/bind/dist/bin/tests/system/ttl/tests.sh delete
external/mpl/bind/dist/bin/tests/system/upforwd/ns3/named.conf.in delete
external/mpl/bind/dist/bin/tests/system/wildcard/tests-wildcard.py delete
external/mpl/bind/dist/doc/man/named-compilezone.1in delete
external/mpl/bind/dist/lib/dns/tests/Krsa.+005+29235.key delete
external/mpl/bind/bin/dnssec/dnssec-verify/Makefile up to 1.3
external/mpl/bind/dist/CHANGES up to 1.1.1.15
external/mpl/bind/dist/CONTRIBUTING up to 1.1.1.5
external/mpl/bind/dist/CONTRIBUTING.md up to 1.1.1.6
external/mpl/bind/dist/COPYRIGHT up to 1.1.1.6
external/mpl/bind/dist/config.h.in up to 1.13
external/mpl/bind/dist/configure up to 1.16
external/mpl/bind/dist/configure.ac up to 1.1.1.14
external/mpl/bind/dist/dangerfile.py up to 1.1.1.6
external/mpl/bind/dist/srcid up to 1.1.1.15
external/mpl/bind/dist/version up to 1.1.1.15
external/mpl/bind/dist/bin/check/check-tool.c up to 1.9
external/mpl/bind/dist/bin/check/named-checkconf.c up to 1.9
external/mpl/bind/dist/bin/check/named-checkzone.c up to 1.9
external/mpl/bind/dist/bin/confgen/ddns-confgen.c up to 1.7
external/mpl/bind/dist/bin/delv/delv.c up to 1.12
external/mpl/bind/dist/bin/dig/dig.c up to 1.9
external/mpl/bind/dist/bin/dig/dig.rst up to 1.1.1.5
external/mpl/bind/dist/bin/dig/dighost.c up to 1.15
external/mpl/bind/dist/bin/dig/host.c up to 1.10
external/mpl/bind/dist/bin/dnssec/dnssec-cds.c up to 1.9
external/mpl/bind/dist/bin/dnssec/dnssec-keyfromlabel.c up to 1.8
external/mpl/bind/dist/bin/dnssec/dnssec-keygen.c up to 1.10
external/mpl/bind/dist/bin/dnssec/dnssec-revoke.c up to 1.8
external/mpl/bind/dist/bin/dnssec/dnssec-settime.c up to 1.7
external/mpl/bind/dist/bin/dnssec/dnssec-signzone.c up to 1.10
external/mpl/bind/dist/bin/dnssec/dnssectool.c up to 1.8
external/mpl/bind/dist/bin/named/bind9.xsl up to 1.1.1.8
external/mpl/bind/dist/bin/named/bind9.xsl.h up to 1.9
external/mpl/bind/dist/bin/named/builtin.c up to 1.6
external/mpl/bind/dist/bin/named/config.c up to 1.14
external/mpl/bind/dist/bin/named/controlconf.c up to 1.11
external/mpl/bind/dist/bin/named/logconf.c up to 1.8
external/mpl/bind/dist/bin/named/main.c up to 1.15
external/mpl/bind/dist/bin/named/named.conf.rst up to 1.1.1.6
external/mpl/bind/dist/bin/named/named.rst up to 1.1.1.4
external/mpl/bind/dist/bin/named/server.c up to 1.20
external/mpl/bind/dist/bin/named/statschannel.c up to 1.13
external/mpl/bind/dist/bin/named/tsigconf.c up to 1.7
external/mpl/bind/dist/bin/named/zoneconf.c up to 1.14
external/mpl/bind/dist/bin/named/unix/os.c up to 1.10
external/mpl/bind/dist/bin/nsupdate/nsupdate.c up to 1.13
external/mpl/bind/dist/bin/nsupdate/nsupdate.rst up to 1.1.1.4
external/mpl/bind/dist/bin/pkcs11/pkcs11-keygen.c up to 1.7
external/mpl/bind/dist/bin/plugins/filter-aaaa.c up to 1.8
external/mpl/bind/dist/bin/python/isc/coverage.py.in up to 1.1.1.5
external/mpl/bind/dist/bin/python/isc/dnskey.py.in up to 1.1.1.5
external/mpl/bind/dist/bin/python/isc/keymgr.py.in up to 1.1.1.5
external/mpl/bind/dist/bin/python/isc/keyzone.py.in up to 1.1.1.5
external/mpl/bind/dist/bin/rndc/rndc.c up to 1.10
external/mpl/bind/dist/bin/rndc/rndc.rst up to 1.1.1.5
external/mpl/bind/dist/bin/tests/cfg_test.c up to 1.7
external/mpl/bind/dist/bin/tests/wire_test.c up to 1.8
external/mpl/bind/dist/bin/tests/optional/byaddr_test.c up to 1.8
external/mpl/bind/dist/bin/tests/optional/db_test.c up to 1.7
external/mpl/bind/dist/bin/tests/optional/name_test.c up to 1.7
external/mpl/bind/dist/bin/tests/optional/nsecify.c up to 1.8
external/mpl/bind/dist/bin/tests/optional/ratelimiter_test.c up to 1.7
external/mpl/bind/dist/bin/tests/optional/rbt_test.c up to 1.8
external/mpl/bind/dist/bin/tests/optional/shutdown_test.c up to 1.8
external/mpl/bind/dist/bin/tests/optional/sock_test.c up to 1.7
external/mpl/bind/dist/bin/tests/optional/task_test.c up to 1.7
external/mpl/bind/dist/bin/tests/optional/timer_test.c up to 1.8
external/mpl/bind/dist/bin/tests/optional/zone_test.c up to 1.9
external/mpl/bind/dist/bin/tests/system/ckdnsrps.sh up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/conf.sh.common up to 1.1.1.11
external/mpl/bind/dist/bin/tests/system/conf.sh.in up to 1.1.1.10
external/mpl/bind/dist/bin/tests/system/conf.sh.win32 up to 1.1.1.11
external/mpl/bind/dist/bin/tests/system/feature-test.c up to 1.11
external/mpl/bind/dist/bin/tests/system/kasp.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/pytest_custom_markers.py up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/resolve.c up to 1.4
external/mpl/bind/dist/bin/tests/system/run.sh up to 1.1.1.11
external/mpl/bind/dist/bin/tests/system/start.pl up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/stop.pl up to 1.1.1.9
external/mpl/bind/dist/bin/tests/system/system-test-driver.sh up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/testcrypto.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/acl/tests.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/addzone/tests.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/auth/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/autosign/clean.sh up to 1.1.1.9
external/mpl/bind/dist/bin/tests/system/autosign/tests.sh up to 1.1.1.13
external/mpl/bind/dist/bin/tests/system/autosign/ns1/keygen.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/autosign/ns2/keygen.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/autosign/ns2/named.conf.in up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/autosign/ns3/keygen.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/autosign/ns3/named.conf.in up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/builtin/tests.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/cacheclean/tests.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/case/setup.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/catz/clean.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/catz/setup.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/catz/tests.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/catz/ns1/named.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/catz/ns2/named1.conf.in up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/catz/ns2/named2.conf.in up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/cds/setup.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/cds/tests.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/chain/tests.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/chain/ans4/ans.py up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/chain/ns2/sign.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/checkconf/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/checkconf/deprecated.conf up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/checkconf/good.conf up to 1.1.1.10
external/mpl/bind/dist/bin/tests/system/checkconf/kasp-bad-keylen.conf up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/checkconf/tests.sh up to 1.1.1.10
external/mpl/bind/dist/bin/tests/system/checkds/ns9/setup.sh up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/checknames/setup.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/checkzone/clean.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/checkzone/setup.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/checkzone/tests.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/checkzone/zones/good-svcb.db up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/cookie/clean.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/cookie/ans9/ans.py up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/coverage/setup.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/dialup/clean.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/dialup/tests.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/digdelv/yamlget.py up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/dlzexternal/driver.c up to 1.12
external/mpl/bind/dist/bin/tests/system/dlzexternal/tests.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/dns64/ns1/sign.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/dnssec/clean.sh up to 1.1.1.10
external/mpl/bind/dist/bin/tests/system/dnssec/tests.sh up to 1.1.1.12
external/mpl/bind/dist/bin/tests/system/dnssec/ans10/ans.py up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/bogus-ksk.key up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/bogus-zsk.key up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/test1.zone up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/test2.zone up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/test3.zone up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/test4.zone up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/test5.zone up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/test6.zone up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/dnssec/signer/general/test8.zone up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/dnstap/tests.sh up to 1.1.1.9
external/mpl/bind/dist/bin/tests/system/dscp/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/dscp/tests.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/dsdigest/ns1/sign.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/dsdigest/ns2/sign.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/dupsigs/clean.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/dupsigs/setup.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/dupsigs/tests.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/dupsigs/ns1/named.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/dupsigs/ns1/reset_keys.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/dupsigs/ns1/signing.test.db.in up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/dyndb/driver/db.c up to 1.7
external/mpl/bind/dist/bin/tests/system/emptyzones/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/emptyzones/setup.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/formerr/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/forward/clean.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/forward/tests.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/forward/ans11/ans.py up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/idna/tests.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/inline/clean.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/inline/setup.sh up to 1.1.1.10
external/mpl/bind/dist/bin/tests/system/inline/tests.sh up to 1.1.1.9
external/mpl/bind/dist/bin/tests/system/inline/tests_signed_zone_files.py up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/inline/ns1/sign.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/inline/ns3/sign.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/inline/ns7/sign.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/inline/ns8/sign.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/ixfr/tests.sh up to 1.1.1.9
external/mpl/bind/dist/bin/tests/system/journal/clean.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/kasp/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/kasp/kasp.conf up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/kasp/setup.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/kasp/tests.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/kasp/ns3/named.conf.in up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/kasp/ns3/setup.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/kasp/ns3/policies/kasp.conf.in up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/kasp/ns4/named.conf.in up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/kasp/ns6/named.conf.in up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/kasp/ns6/named2.conf.in up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/kasp/ns6/setup.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/kasp/ns6/policies/csk1.conf.in up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/kasp/ns6/policies/kasp.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/keepalive/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/keymgr/clean.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/keymgr/setup.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/keymgr2kasp/clean.sh up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/keymgr2kasp/tests.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/keymgr2kasp/ns3/kasp.conf.in up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/keymgr2kasp/ns3/setup.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/keymgr2kasp/ns4/named.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/keymgr2kasp/ns4/named2.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/keymgr2kasp/ns4/setup.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/legacy/clean.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/legacy/tests.sh up to 1.1.1.11
external/mpl/bind/dist/bin/tests/system/logfileconfig/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/logfileconfig/setup.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/logfileconfig/tests.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/masterformat/tests.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/metadata/setup.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/metadata/tests.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/mirror/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/mirror/tests.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/mirror/ns1/sign.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/mirror/ns2/sign.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/mkeys/clean.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/mkeys/setup.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/mkeys/tests.sh up to 1.1.1.9
external/mpl/bind/dist/bin/tests/system/mkeys/ns1/named1.conf.in up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/mkeys/ns1/named2.conf.in up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/mkeys/ns1/named3.conf.in up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/mkeys/ns1/root.db up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/mkeys/ns1/sign.sh up to 1.1.1.9
external/mpl/bind/dist/bin/tests/system/mkeys/ns3/named.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/mkeys/ns4/named.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/mkeys/ns5/named.conf.in up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/mkeys/ns6/setup.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/names/setup.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/notify/tests.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/nsec3/clean.sh up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/nsec3/setup.sh up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/nsec3/tests.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/nsec3/ns3/named.conf.in up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/nsec3/ns3/named2.conf.in up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/nsec3/ns3/setup.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/nslookup/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/nsupdate/setup.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/nsupdate/tests.sh up to 1.1.1.12
external/mpl/bind/dist/bin/tests/system/nsupdate/krb/setup.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/nsupdate/ns1/named.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/nsupdate/ns3/sign.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/nzd2nzf/prereq.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/nzd2nzf/tests.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/padding/clean.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/pending/ns1/sign.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/pending/ns2/sign.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/qmin/ans3/ans.py up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/redirect/ns1/sign.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/redirect/ns3/sign.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/redirect/ns5/sign.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/resolver/setup.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/resolver/tests.sh up to 1.1.1.9
external/mpl/bind/dist/bin/tests/system/resolver/ans2/ans.pl up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/resolver/ans3/ans.pl up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/resolver/ns1/named.conf.in up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/resolver/ns4/named.conf.in up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/resolver/ns4/tld1.db up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/resolver/ns4/tld2.db up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/resolver/ns6/keygen.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/resolver/ns6/named.conf.in up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/resolver/ns6/root.db up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/resolver/ns7/named1.conf.in up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/resolver/ns7/named2.conf.in up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/rndc/setup.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/rndc/tests.sh up to 1.1.1.10
external/mpl/bind/dist/bin/tests/system/rndc/ns7/named.conf.in up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/rootkeysentinel/ns1/sign.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/rootkeysentinel/ns2/sign.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/rpz/clean.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/rpz/dnsrps.c up to 1.7
external/mpl/bind/dist/bin/tests/system/rpz/qperf.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/rpz/setup.sh up to 1.1.1.9
external/mpl/bind/dist/bin/tests/system/rpz/tests.sh up to 1.1.1.11
external/mpl/bind/dist/bin/tests/system/rpz/ns2/base-tld2s.db up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/rpz/ns2/tld2.db up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/rpz/ns3/named.conf.in up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/rpz/ns6/named.conf.in up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/rpzrecurse/clean.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/rpzrecurse/tests.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/rrchecker/clean.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/rrl/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/rrl/setup.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/rrl/tests.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/rrsetorder/tests.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/rsabigexponent/README.md up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/rsabigexponent/bigkey.c up to 1.8
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns1/sign.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns2/dsset-example.in up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns2/example.db.bad up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns2/sign.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/runtime/tests.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/serve-stale/clean.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/serve-stale/tests.sh up to 1.1.1.13
external/mpl/bind/dist/bin/tests/system/serve-stale/ans2/ans.pl up to 1.1.1.10
external/mpl/bind/dist/bin/tests/system/serve-stale/ns1/named3.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/serve-stale/ns1/root.db up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/serve-stale/ns3/named2.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/serve-stale/ns3/named6.conf.in up to 1.1.1.3
external/mpl/bind/dist/bin/tests/system/shutdown/clean.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/shutdown/setup.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/smartsign/tests.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/sortlist/tests.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/spf/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/staticstub/ns3/sign.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/staticstub/ns4/sign.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/statschannel/generic.py up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/statschannel/generic_dnspython.py up to 1.1.1.2
external/mpl/bind/dist/bin/tests/system/statschannel/tests.sh up to 1.1.1.11
external/mpl/bind/dist/bin/tests/system/stress/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/stress/setup.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/stress/tests.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/stub/tests.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/synthfromdnssec/ns1/sign.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/synthfromdnssec/ns4/named.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/tsig/setup.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/tsig/tests.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/tsig/ns1/named.conf.in up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/tsiggss/tests.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/ttl/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/ttl/setup.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/unknown/setup.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/unknown/tests.sh up to 1.1.1.6
external/mpl/bind/dist/bin/tests/system/unknown/ns3/sign.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/upforwd/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/upforwd/setup.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/upforwd/tests.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/verify/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/verify/tests.sh up to 1.1.1.4
external/mpl/bind/dist/bin/tests/system/verify/zones/genzones.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/views/setup.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/wildcard/tests.sh up to 1.1.1.7
external/mpl/bind/dist/bin/tests/system/wildcard/ns1/sign.sh up to 1.1.1.8
external/mpl/bind/dist/bin/tests/system/xfer/tests.sh up to 1.1.1.10
external/mpl/bind/dist/bin/tests/system/zero/clean.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/zero/setup.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tests/system/zonechecks/setup.sh up to 1.1.1.5
external/mpl/bind/dist/bin/tools/mdig.c up to 1.11
external/mpl/bind/dist/contrib/dlz/bin/dlzbdb/dlzbdb.c up to 1.7
external/mpl/bind/dist/contrib/dlz/drivers/dlz_bdb_driver.c up to 1.6
external/mpl/bind/dist/contrib/dlz/drivers/dlz_bdbhpt_driver.c up to 1.6
external/mpl/bind/dist/contrib/dlz/drivers/dlz_filesystem_driver.c up to 1.8
external/mpl/bind/dist/contrib/dlz/drivers/dlz_odbc_driver.c up to 1.6
external/mpl/bind/dist/contrib/dlz/drivers/dlz_postgres_driver.c up to 1.6
external/mpl/bind/dist/contrib/dlz/modules/bdbhpt/dlz_bdbhpt_dynamic.c up to 1.6
external/mpl/bind/dist/contrib/dlz/modules/filesystem/dlz_filesystem_dynamic.c up to 1.8
external/mpl/bind/dist/contrib/dlz/modules/include/dlz_list.h up to 1.6
external/mpl/bind/dist/contrib/dlz/modules/ldap/dlz_ldap_dynamic.c up to 1.6
external/mpl/bind/dist/contrib/dlz/modules/mysqldyn/dlz_mysqldyn_mod.c up to 1.7
external/mpl/bind/dist/contrib/dlz/modules/perl/Makefile up to 1.1.1.3
external/mpl/bind/dist/contrib/dlz/modules/perl/dlz_perl_driver.c up to 1.5
external/mpl/bind/dist/contrib/dlz/modules/sqlite3/dlz_sqlite3_dynamic.c up to 1.6
external/mpl/bind/dist/contrib/dlz/modules/wildcard/dlz_wildcard_dynamic.c up to 1.7
external/mpl/bind/dist/doc/Makefile.in up to 1.1.1.4
external/mpl/bind/dist/doc/arm/build.rst up to 1.1.1.2
external/mpl/bind/dist/doc/arm/conf.py up to 1.1.1.5
external/mpl/bind/dist/doc/arm/dnssec.inc.rst up to 1.1.1.2
external/mpl/bind/dist/doc/arm/notes.rst up to 1.1.1.7
external/mpl/bind/dist/doc/arm/platforms.rst up to 1.1.1.3
external/mpl/bind/dist/doc/arm/reference.rst up to 1.1.1.7
external/mpl/bind/dist/doc/arm/requirements.txt up to 1.1.1.3
external/mpl/bind/dist/doc/dnssec-guide/introduction.rst up to 1.1.1.3
external/mpl/bind/dist/doc/dnssec-guide/recipes.rst up to 1.1.1.4
external/mpl/bind/dist/doc/dnssec-guide/signing.rst up to 1.1.1.5
external/mpl/bind/dist/doc/dnssec-guide/validation.rst up to 1.1.1.3
external/mpl/bind/dist/doc/man/Makefile.in up to 1.1.1.4
external/mpl/bind/dist/doc/man/arpaname.1in up to 1.1.1.4
external/mpl/bind/dist/doc/man/conf.py up to 1.1.1.5
external/mpl/bind/dist/doc/man/ddns-confgen.8in up to 1.1.1.5
external/mpl/bind/dist/doc/man/delv.1in up to 1.1.1.5
external/mpl/bind/dist/doc/man/dig.1in up to 1.1.1.6
external/mpl/bind/dist/doc/man/dnssec-cds.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/dnssec-checkds.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/dnssec-coverage.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/dnssec-dsfromkey.8in up to 1.1.1.5
external/mpl/bind/dist/doc/man/dnssec-importkey.8in up to 1.1.1.5
external/mpl/bind/dist/doc/man/dnssec-keyfromlabel.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/dnssec-keygen.8in up to 1.1.1.5
external/mpl/bind/dist/doc/man/dnssec-keymgr.8in up to 1.1.1.5
external/mpl/bind/dist/doc/man/dnssec-revoke.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/dnssec-settime.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/dnssec-signzone.8in up to 1.1.1.5
external/mpl/bind/dist/doc/man/dnssec-verify.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/dnstap-read.1in up to 1.1.1.4
external/mpl/bind/dist/doc/man/filter-aaaa.8in up to 1.1.1.5
external/mpl/bind/dist/doc/man/host.1in up to 1.1.1.5
external/mpl/bind/dist/doc/man/mdig.1in up to 1.1.1.5
external/mpl/bind/dist/doc/man/named-checkconf.8in up to 1.1.1.5
external/mpl/bind/dist/doc/man/named-checkzone.8in up to 1.1.1.5
external/mpl/bind/dist/doc/man/named-compilezone.8in up to 1.1.1.3
external/mpl/bind/dist/doc/man/named-journalprint.8in up to 1.1.1.6
external/mpl/bind/dist/doc/man/named-nzd2nzf.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/named-rrchecker.1in up to 1.1.1.4
external/mpl/bind/dist/doc/man/named.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/named.conf.5in up to 1.1.1.6
external/mpl/bind/dist/doc/man/nsec3hash.8in up to 1.1.1.5
external/mpl/bind/dist/doc/man/nslookup.1in up to 1.1.1.4
external/mpl/bind/dist/doc/man/nsupdate.1in up to 1.1.1.4
external/mpl/bind/dist/doc/man/pkcs11-destroy.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/pkcs11-keygen.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/pkcs11-list.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/pkcs11-tokens.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/rndc-confgen.8in up to 1.1.1.4
external/mpl/bind/dist/doc/man/rndc.8in up to 1.1.1.6
external/mpl/bind/dist/doc/man/rndc.conf.5in up to 1.1.1.5
external/mpl/bind/dist/doc/man/tsig-keygen.8in up to 1.1.1.3
external/mpl/bind/dist/doc/misc/master.zoneopt up to 1.1.1.6
external/mpl/bind/dist/doc/misc/master.zoneopt.rst up to 1.1.1.5
external/mpl/bind/dist/doc/misc/options up to 1.1.1.12
external/mpl/bind/dist/doc/misc/options.active up to 1.1.1.7
external/mpl/bind/dist/doc/misc/options.grammar.rst up to 1.1.1.5
external/mpl/bind/dist/doc/misc/slave.zoneopt up to 1.1.1.6
external/mpl/bind/dist/doc/misc/slave.zoneopt.rst up to 1.1.1.5
external/mpl/bind/dist/doc/notes/notes-9.16.0.rst up to 1.1.1.5
external/mpl/bind/dist/doc/notes/notes-9.16.1.rst up to 1.1.1.5
external/mpl/bind/dist/doc/notes/notes-9.16.10.rst up to 1.1.1.4
external/mpl/bind/dist/doc/notes/notes-9.16.11.rst up to 1.1.1.4
external/mpl/bind/dist/doc/notes/notes-9.16.12.rst up to 1.1.1.4
external/mpl/bind/dist/doc/notes/notes-9.16.13.rst up to 1.1.1.4
external/mpl/bind/dist/doc/notes/notes-9.16.15.rst up to 1.1.1.4
external/mpl/bind/dist/doc/notes/notes-9.16.16.rst up to 1.1.1.3
external/mpl/bind/dist/doc/notes/notes-9.16.17.rst up to 1.1.1.3
external/mpl/bind/dist/doc/notes/notes-9.16.18.rst up to 1.1.1.3
external/mpl/bind/dist/doc/notes/notes-9.16.19.rst up to 1.1.1.3
external/mpl/bind/dist/doc/notes/notes-9.16.2.rst up to 1.1.1.5
external/mpl/bind/dist/doc/notes/notes-9.16.20.rst up to 1.1.1.3
external/mpl/bind/dist/doc/notes/notes-9.16.21.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.22.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.23.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.24.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.25.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.26.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.27.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.28.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.29.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.3.rst up to 1.1.1.5
external/mpl/bind/dist/doc/notes/notes-9.16.30.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.31.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.32.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.33.rst up to 1.1.1.2
external/mpl/bind/dist/doc/notes/notes-9.16.4.rst up to 1.1.1.5
external/mpl/bind/dist/doc/notes/notes-9.16.5.rst up to 1.1.1.5
external/mpl/bind/dist/doc/notes/notes-9.16.6.rst up to 1.1.1.4
external/mpl/bind/dist/doc/notes/notes-9.16.7.rst up to 1.1.1.4
external/mpl/bind/dist/doc/notes/notes-9.16.8.rst up to 1.1.1.4
external/mpl/bind/dist/doc/notes/notes-9.16.9.rst up to 1.1.1.4
external/mpl/bind/dist/fuzz/fuzz.h up to 1.6
external/mpl/bind/dist/lib/bind9/check.c up to 1.15
external/mpl/bind/dist/lib/bind9/getaddresses.c up to 1.7
external/mpl/bind/dist/lib/dns/adb.c up to 1.10
external/mpl/bind/dist/lib/dns/badcache.c up to 1.7
external/mpl/bind/dist/lib/dns/byaddr.c up to 1.8
external/mpl/bind/dist/lib/dns/cache.c up to 1.10
external/mpl/bind/dist/lib/dns/catz.c up to 1.10
external/mpl/bind/dist/lib/dns/client.c up to 1.12
external/mpl/bind/dist/lib/dns/compress.c up to 1.8
external/mpl/bind/dist/lib/dns/db.c up to 1.9
external/mpl/bind/dist/lib/dns/diff.c up to 1.8
external/mpl/bind/dist/lib/dns/dispatch.c up to 1.9
external/mpl/bind/dist/lib/dns/dnsrps.c up to 1.10
external/mpl/bind/dist/lib/dns/dnssec.c up to 1.13
external/mpl/bind/dist/lib/dns/dst_api.c up to 1.13
external/mpl/bind/dist/lib/dns/dst_parse.c up to 1.10
external/mpl/bind/dist/lib/dns/ecdb.c up to 1.9
external/mpl/bind/dist/lib/dns/ecs.c up to 1.6
external/mpl/bind/dist/lib/dns/forward.c up to 1.8
external/mpl/bind/dist/lib/dns/gen.c up to 1.11
external/mpl/bind/dist/lib/dns/hmac_link.c up to 1.8
external/mpl/bind/dist/lib/dns/journal.c up to 1.11
external/mpl/bind/dist/lib/dns/key.c up to 1.8
external/mpl/bind/dist/lib/dns/keymgr.c up to 1.10
external/mpl/bind/dist/lib/dns/keytable.c up to 1.9
external/mpl/bind/dist/lib/dns/master.c up to 1.11
external/mpl/bind/dist/lib/dns/masterdump.c up to 1.13
external/mpl/bind/dist/lib/dns/message.c up to 1.15
external/mpl/bind/dist/lib/dns/name.c up to 1.12
external/mpl/bind/dist/lib/dns/ncache.c up to 1.8
external/mpl/bind/dist/lib/dns/nsec.c up to 1.9
external/mpl/bind/dist/lib/dns/nsec3.c up to 1.12
external/mpl/bind/dist/lib/dns/nta.c up to 1.9
external/mpl/bind/dist/lib/dns/openssl_link.c up to 1.9
external/mpl/bind/dist/lib/dns/openssldh_link.c up to 1.9
external/mpl/bind/dist/lib/dns/opensslecdsa_link.c up to 1.7
external/mpl/bind/dist/lib/dns/openssleddsa_link.c up to 1.8
external/mpl/bind/dist/lib/dns/opensslrsa_link.c up to 1.10
external/mpl/bind/dist/lib/dns/order.c up to 1.8
external/mpl/bind/dist/lib/dns/peer.c up to 1.10
external/mpl/bind/dist/lib/dns/pkcs11rsa_link.c up to 1.8
external/mpl/bind/dist/lib/dns/private.c up to 1.8
external/mpl/bind/dist/lib/dns/rbt.c up to 1.13
external/mpl/bind/dist/lib/dns/rbtdb.c up to 1.17
external/mpl/bind/dist/lib/dns/rcode.c up to 1.12
external/mpl/bind/dist/lib/dns/rdata.c up to 1.13
external/mpl/bind/dist/lib/dns/rdatalist.c up to 1.7
external/mpl/bind/dist/lib/dns/rdataslab.c up to 1.7
external/mpl/bind/dist/lib/dns/request.c up to 1.8
external/mpl/bind/dist/lib/dns/resolver.c up to 1.17
external/mpl/bind/dist/lib/dns/rootns.c up to 1.7
external/mpl/bind/dist/lib/dns/rpz.c up to 1.13
external/mpl/bind/dist/lib/dns/rriterator.c up to 1.7
external/mpl/bind/dist/lib/dns/rrl.c up to 1.8
external/mpl/bind/dist/lib/dns/sdb.c up to 1.11
external/mpl/bind/dist/lib/dns/sdlz.c up to 1.11
external/mpl/bind/dist/lib/dns/ssu.c up to 1.7
external/mpl/bind/dist/lib/dns/stats.c up to 1.8
external/mpl/bind/dist/lib/dns/tkey.c up to 1.13
external/mpl/bind/dist/lib/dns/tsig.c up to 1.12
external/mpl/bind/dist/lib/dns/update.c up to 1.12
external/mpl/bind/dist/lib/dns/validator.c up to 1.13
external/mpl/bind/dist/lib/dns/view.c up to 1.14
external/mpl/bind/dist/lib/dns/xfrin.c up to 1.13
external/mpl/bind/dist/lib/dns/zone.c up to 1.18
external/mpl/bind/dist/lib/dns/zonekey.c up to 1.7
external/mpl/bind/dist/lib/dns/zoneverify.c up to 1.10
external/mpl/bind/dist/lib/dns/zt.c up to 1.9
external/mpl/bind/dist/lib/dns/include/dns/db.h up to 1.9
external/mpl/bind/dist/lib/dns/include/dns/rdataset.h up to 1.10
external/mpl/bind/dist/lib/dns/include/dns/rdatasetiter.h up to 1.6
external/mpl/bind/dist/lib/dns/include/dns/view.h up to 1.9
external/mpl/bind/dist/lib/dns/include/dns/zone.h up to 1.10
external/mpl/bind/dist/lib/dns/include/dns/zt.h up to 1.8
external/mpl/bind/dist/lib/dns/rdata/any_255/tsig_250.c up to 1.8
external/mpl/bind/dist/lib/dns/rdata/generic/amtrelay_260.c up to 1.6
external/mpl/bind/dist/lib/dns/rdata/generic/caa_257.c up to 1.8
external/mpl/bind/dist/lib/dns/rdata/generic/isdn_20.c up to 1.8
external/mpl/bind/dist/lib/dns/rdata/generic/key_25.c up to 1.11
external/mpl/bind/dist/lib/dns/rdata/generic/loc_29.c up to 1.9
external/mpl/bind/dist/lib/dns/rdata/generic/tkey_249.c up to 1.8
external/mpl/bind/dist/lib/dns/rdata/generic/txt_16.c up to 1.9
external/mpl/bind/dist/lib/dns/rdata/in_1/a_1.c up to 1.9
external/mpl/bind/dist/lib/dns/rdata/in_1/aaaa_28.c up to 1.9
external/mpl/bind/dist/lib/dns/rdata/in_1/svcb_64.c up to 1.3
external/mpl/bind/dist/lib/dns/tests/dbversion_test.c up to 1.10
external/mpl/bind/dist/lib/dns/tests/dnstest.c up to 1.12
external/mpl/bind/dist/lib/dns/tests/rdata_test.c up to 1.12
external/mpl/bind/dist/lib/dns/tests/rsa_test.c up to 1.10
external/mpl/bind/dist/lib/dns/tests/zt_test.c up to 1.10
external/mpl/bind/dist/lib/dns/win32/libdns.def.in up to 1.1.1.12
external/mpl/bind/dist/lib/irs/getaddrinfo.c up to 1.9
external/mpl/bind/dist/lib/irs/getnameinfo.c up to 1.9
external/mpl/bind/dist/lib/irs/resconf.c up to 1.7
external/mpl/bind/dist/lib/irs/win32/resconf.c up to 1.7
external/mpl/bind/dist/lib/isc/app.c up to 1.8
external/mpl/bind/dist/lib/isc/buffer.c up to 1.8
external/mpl/bind/dist/lib/isc/heap.c up to 1.7
external/mpl/bind/dist/lib/isc/ht.c up to 1.8
external/mpl/bind/dist/lib/isc/httpd.c up to 1.8
external/mpl/bind/dist/lib/isc/iterated_hash.c up to 1.7
external/mpl/bind/dist/lib/isc/lex.c up to 1.10
external/mpl/bind/dist/lib/isc/lib.c up to 1.10
external/mpl/bind/dist/lib/isc/log.c up to 1.9
external/mpl/bind/dist/lib/isc/mem.c up to 1.14
external/mpl/bind/dist/lib/isc/netaddr.c up to 1.8
external/mpl/bind/dist/lib/isc/pk11.c up to 1.8
external/mpl/bind/dist/lib/isc/radix.c up to 1.8
external/mpl/bind/dist/lib/isc/ratelimiter.c up to 1.8
external/mpl/bind/dist/lib/isc/rwlock.c up to 1.13
external/mpl/bind/dist/lib/isc/siphash.c up to 1.8
external/mpl/bind/dist/lib/isc/string.c up to 1.7
external/mpl/bind/dist/lib/isc/task.c up to 1.18
external/mpl/bind/dist/lib/isc/timer.c up to 1.12
external/mpl/bind/dist/lib/isc/url.c up to 1.4
external/mpl/bind/dist/lib/isc/utf8.c up to 1.4
external/mpl/bind/dist/lib/isc/include/isc/buffer.h up to 1.8
external/mpl/bind/dist/lib/isc/include/isc/list.h up to 1.8
external/mpl/bind/dist/lib/isc/include/isc/magic.h up to 1.6
external/mpl/bind/dist/lib/isc/include/isc/string.h up to 1.7
external/mpl/bind/dist/lib/isc/include/isc/task.h up to 1.8
external/mpl/bind/dist/lib/isc/include/isc/timer.h up to 1.8
external/mpl/bind/dist/lib/isc/netmgr/netmgr.c up to 1.10
external/mpl/bind/dist/lib/isc/netmgr/tcp.c up to 1.8
external/mpl/bind/dist/lib/isc/netmgr/tcpdns.c up to 1.8
external/mpl/bind/dist/lib/isc/netmgr/udp.c up to 1.11
external/mpl/bind/dist/lib/isc/tests/random_test.c up to 1.11
external/mpl/bind/dist/lib/isc/tests/regex_test.c up to 1.12
external/mpl/bind/dist/lib/isc/tests/socket_test.c up to 1.11
external/mpl/bind/dist/lib/isc/tests/task_test.c up to 1.12
external/mpl/bind/dist/lib/isc/tests/timer_test.c up to 1.10
external/mpl/bind/dist/lib/isc/unix/file.c up to 1.7
external/mpl/bind/dist/lib/isc/unix/socket.c up to 1.25
external/mpl/bind/dist/lib/isc/win32/dir.c up to 1.8
external/mpl/bind/dist/lib/isc/win32/file.c up to 1.9
external/mpl/bind/dist/lib/isc/win32/fsaccess.c up to 1.8
external/mpl/bind/dist/lib/isc/win32/interfaceiter.c up to 1.7
external/mpl/bind/dist/lib/isc/win32/libisc.def.in up to 1.1.1.14
external/mpl/bind/dist/lib/isc/win32/net.c up to 1.8
external/mpl/bind/dist/lib/isc/win32/ntgroups.c up to 1.9
external/mpl/bind/dist/lib/isc/win32/socket.c up to 1.13
external/mpl/bind/dist/lib/isc/win32/include/isc/net.h up to 1.8
external/mpl/bind/dist/lib/isccc/alist.c up to 1.7
external/mpl/bind/dist/lib/isccc/cc.c up to 1.7
external/mpl/bind/dist/lib/isccc/symtab.c up to 1.7
external/mpl/bind/dist/lib/isccfg/aclconf.c up to 1.9
external/mpl/bind/dist/lib/isccfg/namedconf.c up to 1.14
external/mpl/bind/dist/lib/isccfg/parser.c up to 1.13
external/mpl/bind/dist/lib/isccfg/include/isccfg/grammar.h up to 1.8
external/mpl/bind/dist/lib/isccfg/tests/duration_test.c up to 1.7
external/mpl/bind/dist/lib/ns/client.c up to 1.18
external/mpl/bind/dist/lib/ns/hooks.c up to 1.9
external/mpl/bind/dist/lib/ns/interfacemgr.c up to 1.15
external/mpl/bind/dist/lib/ns/query.c up to 1.17
external/mpl/bind/dist/lib/ns/server.c up to 1.8
external/mpl/bind/dist/lib/ns/sortlist.c up to 1.7
external/mpl/bind/dist/lib/ns/update.c up to 1.13
external/mpl/bind/dist/lib/ns/xfrout.c up to 1.13
external/mpl/bind/dist/lib/ns/include/ns/client.h up to 1.14
external/mpl/bind/dist/lib/ns/include/ns/server.h up to 1.7
external/mpl/bind/dist/lib/ns/include/ns/stats.h up to 1.7
external/mpl/bind/dist/lib/ns/tests/nstest.c up to 1.8
external/mpl/bind/dist/lib/ns/win32/libns.def up to 1.1.1.8
external/mpl/bind/include/config.h up to 1.15
external/mpl/bind/include/dns/code.h up to 1.8
external/mpl/bind/include/dns/enumclass.h up to 1.6
external/mpl/bind/include/dns/enumtype.h up to 1.8
external/mpl/bind/include/dns/rdatastruct.h up to 1.10
external/mpl/bind/include/isc/stdatomic.h up to 1.10
external/mpl/bind/lib/libdns/Makefile up to 1.9
external/mpl/bind/lib/libisc/Makefile up to 1.20
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/doxygen.svg up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/doxygen.svg up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/doxygen.svg up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/doxygen.svg up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/doxygen.svg up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/doxygen.svg up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_prepend_error_message.3 up to 1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/doxygen.svg up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/doxygen.svg up to 1.1.1.1
crypto/external/bsd/heimdal/dist/windows/NTMakefile.sdk up to 1.1.1.1
crypto/external/bsd/heimdal/include/hcrypto/ui.h up to 1.2
crypto/external/bsd/heimdal/dist/cf/._ltoptions.m4 delete
crypto/external/bsd/heimdal/dist/cf/._ltsugar.m4 delete
crypto/external/bsd/heimdal/dist/cf/._lt~obsolete.m4 delete
crypto/external/bsd/heimdal/dist/cf/broken-getaddrinfo.m4 delete
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/doxygen.png delete
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/doxygen.png delete
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/doxygen.png delete
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/EVP_hcrypto_md2.3 delete
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/EVP_md2.3 delete
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/doxygen.png delete
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/doxygen.png delete
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/doxygen.png delete
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/doxygen.png delete
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/doxygen.png delete
crypto/external/bsd/heimdal/dist/lib/hcrypto/md2.c delete
crypto/external/bsd/heimdal/dist/lib/hcrypto/md2.h delete
crypto/external/bsd/heimdal/Makefile.inc up to 1.8
crypto/external/bsd/heimdal/bin/Makefile.inc up to 1.6
crypto/external/bsd/heimdal/bin/gsstool/Makefile up to 1.4
crypto/external/bsd/heimdal/bin/hxtool/Makefile up to 1.6
crypto/external/bsd/heimdal/bin/kcc/Makefile up to 1.6
crypto/external/bsd/heimdal/bin/kdestroy/Makefile up to 1.5
crypto/external/bsd/heimdal/bin/kgetcred/Makefile up to 1.5
crypto/external/bsd/heimdal/bin/kinit/Makefile up to 1.5
crypto/external/bsd/heimdal/bin/kpasswd/Makefile up to 1.5
crypto/external/bsd/heimdal/bin/kvno/Makefile up to 1.4
crypto/external/bsd/heimdal/bin/string2key/Makefile up to 1.5
crypto/external/bsd/heimdal/bin/verify_krb5_conf/Makefile up to 1.5
crypto/external/bsd/heimdal/dist/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/NEWS up to 1.4
crypto/external/bsd/heimdal/dist/aclocal.m4 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/compile up to 1.1.1.2
crypto/external/bsd/heimdal/dist/config.guess up to 1.3
crypto/external/bsd/heimdal/dist/config.sub up to 1.1.1.2
crypto/external/bsd/heimdal/dist/configure up to 1.1.1.2
crypto/external/bsd/heimdal/dist/configure.ac up to 1.5
crypto/external/bsd/heimdal/dist/depcomp up to 1.1.1.2
crypto/external/bsd/heimdal/dist/install-sh up to 1.1.1.2
crypto/external/bsd/heimdal/dist/ltmain.sh up to 1.1.1.2
crypto/external/bsd/heimdal/dist/missing up to 1.1.1.2
crypto/external/bsd/heimdal/dist/test-driver up to 1.1.1.2
crypto/external/bsd/heimdal/dist/ylwrap up to 1.1.1.2
crypto/external/bsd/heimdal/dist/admin/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/admin/add.c up to 1.3
crypto/external/bsd/heimdal/dist/admin/change.c up to 1.3
crypto/external/bsd/heimdal/dist/cf/Makefile.am.common up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/broken-realloc.m4 up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/check-var.m4 up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/db.m4 up to 1.1.1.5
crypto/external/bsd/heimdal/dist/cf/krb-ipv6.m4 up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/libtool.m4 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/ltoptions.m4 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/ltsugar.m4 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/ltversion.m4 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/lt~obsolete.m4 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/misc.m4 up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/proto-compat.m4 up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/retsigtype.m4 up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/roken-frag.m4 up to 1.3
crypto/external/bsd/heimdal/dist/cf/w32-hh-toc-from-info.pl up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/with-all.m4 up to 1.1.1.4
crypto/external/bsd/heimdal/dist/doc/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/NTMakefile up to 1.1.1.3
crypto/external/bsd/heimdal/dist/doc/vars.texi up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/doxygen.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/dynsections.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/graph_legend.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/graph_legend.md5 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/graph_legend.png up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/group__heimbase.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/index.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/jquery.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/menu.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/menudata.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/modules.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/tabs.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/base/man/man3/heimbase.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/manpages up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/doxygen.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/dynsections.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/graph_legend.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/graph_legend.md5 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/graph_legend.png up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/group__gssapi.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/gssapi_mechs_intro.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/gssapi_services_intro.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/index.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/internal_v_smechname.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/jquery.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/menu.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/menudata.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/modules.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/pages.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/tabs.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/man/man3/gssapi.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/man/man3/gssapi_mechs_intro.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/man/man3/gssapi_services_intro.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/man/man3/internal_v_smechname.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/manpages up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/doxygen.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/dynsections.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/example_evp_cipher_8c-example.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/examples.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/graph_legend.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/graph_legend.md5 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/graph_legend.png up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/group__hcrypto__core.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/group__hcrypto__des.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/group__hcrypto__dh.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/group__hcrypto__evp.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/group__hcrypto__misc.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/group__hcrypto__rand.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/group__hcrypto__rsa.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/index.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/jquery.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/menu.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/menudata.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/modules.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/page_des.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/page_dh.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/page_evp.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/page_rand.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/page_rsa.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/pages.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/tabs.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/hcrypto_core.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/hcrypto_des.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/hcrypto_dh.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/hcrypto_evp.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/hcrypto_misc.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/hcrypto_rand.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/hcrypto_rsa.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/page_des.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/page_dh.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/page_evp.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/page_rand.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/page_rsa.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/manpages up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/annotated.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/classes.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/doxygen.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/dynsections.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/functions.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/functions_vars.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/graph_legend.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/graph_legend.md5 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/graph_legend.png up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/index.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/jquery.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/menu.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/menudata.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/struct_h_d_b.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/structhdb__entry__ex.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/tabs.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/man/man3/HDB.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/man/man3/hdb_entry_ex.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/manpages up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/doxygen.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/dynsections.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/graph_legend.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/graph_legend.md5 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/graph_legend.png up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__ca.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__cert.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__cms.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__crypto.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__env.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__error.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__keyset.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__lock.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__misc.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__name.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__peer.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__print.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__query.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__revoke.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/group__hx509__verify.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/index.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/jquery.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/menu.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/menudata.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/modules.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/page_ca.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/page_cert.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/page_cms.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/page_env.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/page_error.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/page_keyset.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/page_lock.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/page_name.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/page_peer.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/page_print.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/page_revoke.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/pages.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/tabs.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_ca.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_cert.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_cms.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_crypto.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_env.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_error.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_keyset.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_lock.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_misc.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_name.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_peer.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_print.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_query.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_revoke.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_verify.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_ca.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_cert.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_cms.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_env.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_error.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_keyset.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_lock.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_name.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_peer.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_print.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_revoke.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/manpages up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/annotated.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/classes.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/doxygen.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/dynsections.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/graph_legend.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/graph_legend.md5 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/graph_legend.png up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__address.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__auth.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__ccache.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__credential.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__crypto.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__deprecated.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__digest.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__error.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__keytab.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__pac.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__principal.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__storage.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__support.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__ticket.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/group__krb5__v4compat.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/index.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/jquery.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/krb5_ccache_intro.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/krb5_fileformats.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/krb5_init_creds_intro.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/krb5_introduction.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/krb5_keytab_intro.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/krb5_principal_intro.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/menu.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/menudata.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/modules.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/pages.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/structkrb5__crypto__iov.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/structkrb5plugin__an2ln__ftable__desc.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/structkrb5plugin__db__ftable__desc.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/structkrb5plugin__kuserok__ftable__desc.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/tabs.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_address.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_auth.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_ccache.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_ccache_intro.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_credential.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_crypto.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_crypto_iov.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_deprecated.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_digest.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_error.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_fileformats.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_init_creds_intro.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_introduction.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_keytab.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_keytab_intro.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_pac.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_principal.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_principal_intro.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_storage.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_support.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_ticket.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_v4compat.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5plugin_an2ln_ftable_desc.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5plugin_db_ftable_desc.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5plugin_kuserok_ftable_desc.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/manpages up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/annotated.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/classes.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/doxygen.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/dynsections.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/examples.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/functions.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/functions_vars.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/graph_legend.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/graph_legend.md5 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/graph_legend.png up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/group__ntlm__core.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/index.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/jquery.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/menu.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/menudata.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/modules.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/structntlm__buf.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/structntlm__type1.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/structntlm__type2.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/structntlm__type2__coll__graph.map up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/structntlm__type2__coll__graph.md5 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/structntlm__type2__coll__graph.png up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/structntlm__type3.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/structntlm__type3__coll__graph.map up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/structntlm__type3__coll__graph.md5 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/structntlm__type3__coll__graph.png up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/tabs.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/test_ntlm_8c-example.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/man/man3/ntlm_buf.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/man/man3/ntlm_core.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/man/man3/ntlm_type1.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/man/man3/ntlm_type2.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/man/man3/ntlm_type3.3 up to 1.3
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/manpages up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/doxygen.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/dynsections.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/graph_legend.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/graph_legend.md5 up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/graph_legend.png up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/group__wind.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/index.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/jquery.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/menu.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/menudata.js up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/modules.html up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/tabs.css up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/man/man3/wind.3 up to 1.3
crypto/external/bsd/heimdal/dist/etc/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/include/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/include/bits.c up to 1.4
crypto/external/bsd/heimdal/dist/include/config.h.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/include/config.h.w32 up to 1.1.1.3
crypto/external/bsd/heimdal/dist/include/crypto-headers.h up to 1.6
crypto/external/bsd/heimdal/dist/include/gssapi/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/include/hcrypto/Makefile.am up to 1.1.1.5
crypto/external/bsd/heimdal/dist/include/hcrypto/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/include/kadm5/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kadmin/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kadmin/ank.c up to 1.3
crypto/external/bsd/heimdal/dist/kadmin/cpw.c up to 1.4
crypto/external/bsd/heimdal/dist/kadmin/ext.c up to 1.3
crypto/external/bsd/heimdal/dist/kadmin/kadmind.c up to 1.3
crypto/external/bsd/heimdal/dist/kadmin/mod.c up to 1.3
crypto/external/bsd/heimdal/dist/kadmin/rpc.c up to 1.4
crypto/external/bsd/heimdal/dist/kadmin/stash.c up to 1.3
crypto/external/bsd/heimdal/dist/kcm/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kcm/cache.c up to 1.6
crypto/external/bsd/heimdal/dist/kcm/config.c up to 1.4
crypto/external/bsd/heimdal/dist/kcm/protocol.c up to 1.3
crypto/external/bsd/heimdal/dist/kdc/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kdc/connect.c up to 1.5
crypto/external/bsd/heimdal/dist/kdc/default_config.c up to 1.3
crypto/external/bsd/heimdal/dist/kdc/digest.c up to 1.5
crypto/external/bsd/heimdal/dist/kdc/hpropd.c up to 1.3
crypto/external/bsd/heimdal/dist/kdc/kdc-private.h up to 1.3
crypto/external/bsd/heimdal/dist/kdc/kdc-replay.c up to 1.3
crypto/external/bsd/heimdal/dist/kdc/kdc.8 up to 1.6
crypto/external/bsd/heimdal/dist/kdc/kdc.h up to 1.3
crypto/external/bsd/heimdal/dist/kdc/kerberos5.c up to 1.9
crypto/external/bsd/heimdal/dist/kdc/krb5tgs.c up to 1.4
crypto/external/bsd/heimdal/dist/kdc/kstash.c up to 1.3
crypto/external/bsd/heimdal/dist/kdc/pkinit.c up to 1.6
crypto/external/bsd/heimdal/dist/kdc/windc_plugin.h up to 1.3
crypto/external/bsd/heimdal/dist/kpasswd/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kpasswd/kpasswd.c up to 1.3
crypto/external/bsd/heimdal/dist/kuser/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kuser/kdestroy.c up to 1.3
crypto/external/bsd/heimdal/dist/kuser/kgetcred.c up to 1.4
crypto/external/bsd/heimdal/dist/kuser/kinit.1 up to 1.6
crypto/external/bsd/heimdal/dist/kuser/kinit.c up to 1.5
crypto/external/bsd/heimdal/dist/kuser/kswitch.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/asn1/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1parse.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/asn1parse.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/check-common.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/check-common.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/check-der.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/check-gen.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/check-template.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/der_cmp.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/der_copy.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/der_get.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/der_length.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/der_put.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/gen_copy.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/gen_decode.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/gen_free.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/krb5.asn1 up to 1.1.1.6
crypto/external/bsd/heimdal/dist/lib/asn1/lex.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/base/Makefile.am up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/base/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/base/bsearch.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/base/dll.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/base/heimbase.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/com_err/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/com_err/lex.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/com_err/parse.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/com_err/parse.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_context.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/accept_sec_context.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/acquire_cred.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/arcfour.c up to 1.6
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/cfx.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/decapsulate.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/delete_sec_context.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/display_status.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/get_mic.c up to 1.6
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/gsskrb5-private.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/init_sec_context.c up to 1.5
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/unwrap.c up to 1.5
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/verify_mic.c up to 1.7
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/wrap.c up to 1.5
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_display_status.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_import_name.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_mech_switch.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_pname_to_uid.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gssapi.asn1 up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/mech_locl.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/init_sec_context.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/accept_sec_context.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/Makefile.am up to 1.1.1.5
crypto/external/bsd/heimdal/dist/lib/hcrypto/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/NTMakefile up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/bn.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/des.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/dh.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/engine.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-cc.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-cc.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-hcrypto.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-hcrypto.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-openssl.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-openssl.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-pkcs11.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-pkcs11.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-w32.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-w32.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-wincng.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-wincng.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp.h up to 1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/example_evp_cipher.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/libhcrypto-exports.def up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/mdtest.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/pkcs5.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_bulk.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_cipher.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/ui.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/ui.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/undef.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/version-script.map up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/hdb/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mitdb.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/hdb/keytab.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hx509/Makefile.am up to 1.1.1.5
crypto/external/bsd/heimdal/dist/lib/hx509/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hx509/cert.c up to 1.6
crypto/external/bsd/heimdal/dist/lib/hx509/cms.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/hx509/crypto.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/hx509/file.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hx509/hxtool.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/hx509/ks_file.c up to 1.6
crypto/external/bsd/heimdal/dist/lib/hx509/name.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/hx509/softp11.c up to 1.5
crypto/external/bsd/heimdal/dist/lib/hx509/test_nist_pkcs12.in up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/ipc/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/ipc/client.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/Makefile.am up to 1.1.1.5
crypto/external/bsd/heimdal/dist/lib/kadm5/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/get_s.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/init_c.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_master.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_slave.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/kadm5/kadm5-private.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/kadm5_locl.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/libkadm5srv-exports.def up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/log.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/set_keys.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/kadm5/test_pw_quality.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/version-script.map up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/kafs/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/kafs/afskrb5.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/kafs/afssysdefs.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/kafs/rxkad_kdf.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/kdfs/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/krb5/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/krb5/acl.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/addr_families.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/aes-test.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/config_file.c up to 1.5
crypto/external/bsd/heimdal/dist/lib/krb5/context.c up to 1.7
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-aes-sha1.c up to 1.5
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-arcfour.c up to 1.6
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des-common.c up to 1.6
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des.c up to 1.5
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des3.c up to 1.7
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-evp.c up to 1.5
crypto/external/bsd/heimdal/dist/lib/krb5/crypto.h up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/deprecated.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/enomem.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/get_cred.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/init_creds_pw.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/keytab.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/krb5-plugin.7 up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/krb5.conf.5 up to 1.7
crypto/external/bsd/heimdal/dist/lib/krb5/krb5.h up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_ccapi.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/krbhst.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/locate_plugin.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/mcache.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/pac.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/plugin.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/principal.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/rd_req.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/salt-aes-sha2.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/salt-des.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/salt-des3.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/send_to_kdc.c up to 1.9
crypto/external/bsd/heimdal/dist/lib/krb5/send_to_kdc_plugin.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/store_emem.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/test_plugin.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/test_store.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/ticket.c up to 1.6
crypto/external/bsd/heimdal/dist/lib/krb5/transited.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/ntlm/ntlm.c up to 1.5
crypto/external/bsd/heimdal/dist/lib/otp/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/roken/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/roken/getaddrinfo.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/roken/getxxyyy.c up to 1.4
crypto/external/bsd/heimdal/dist/lib/roken/ndbm_wrap.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/roken/net_write.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/roken/roken.h.in up to 1.7
crypto/external/bsd/heimdal/dist/lib/roken/snprintf.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/roken/strtoll.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/roken/strtoull.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/sl/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/sl/sl.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/sl/slc-gram.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/sl/slc-gram.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/sl/slc-lex.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/vers/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/wind/Makefile.am up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/wind/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/wind/bidi_table.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/bidi_table.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/combining_table.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/combining_table.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/errorlist_table.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/errorlist_table.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/idn-lookup.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/map_table.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/map_table.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/normalize.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/normalize_table.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/normalize_table.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/punycode_examples.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/punycode_examples.h up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/test-normalize.c up to 1.3
crypto/external/bsd/heimdal/dist/lib/wind/utf8.c up to 1.3
crypto/external/bsd/heimdal/dist/packages/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/packages/mac/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/packages/windows/installer/NTMakefile up to 1.1.1.4
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-installer.wxs up to 1.1.1.4
crypto/external/bsd/heimdal/dist/po/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/bin/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/can/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/db/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/gss/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/gss/check-context.in up to 1.1.1.5
crypto/external/bsd/heimdal/dist/tests/java/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-iprop.in up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/kdc/check-kdc.in up to 1.1.1.5
crypto/external/bsd/heimdal/dist/tests/ldap/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/plugin/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tools/Makefile.in up to 1.1.1.2
crypto/external/bsd/heimdal/dist/windows/NTMakefile.version up to 1.1.1.4
crypto/external/bsd/heimdal/dist/windows/NTMakefile.w32 up to 1.1.1.5
crypto/external/bsd/heimdal/include/config.h up to 1.11
crypto/external/bsd/heimdal/include/kdc-private.h up to 1.5
crypto/external/bsd/heimdal/lib/libgssapi/Makefile up to 1.7
crypto/external/bsd/heimdal/lib/libhdb/Makefile up to 1.5
crypto/external/bsd/heimdal/lib/libheimntlm/Makefile up to 1.5
crypto/external/bsd/heimdal/lib/libhx509/Makefile up to 1.10
crypto/external/bsd/heimdal/lib/libkadm5clnt/Makefile up to 1.5
crypto/external/bsd/heimdal/lib/libkadm5srv/Makefile up to 1.6
crypto/external/bsd/heimdal/lib/libkafs/Makefile up to 1.5
crypto/external/bsd/heimdal/lib/libkdc/Makefile up to 1.6
crypto/external/bsd/heimdal/lib/libkrb5/Makefile up to 1.15
crypto/external/bsd/heimdal/lib/libvers/Makefile up to 1.3
crypto/external/bsd/heimdal/libexec/Makefile.inc up to 1.8
crypto/external/bsd/heimdal/libexec/digest-service/Makefile up to 1.5
crypto/external/bsd/heimdal/libexec/hpropd/Makefile up to 1.5
crypto/external/bsd/heimdal/libexec/ipropd-master/Makefile up to 1.5
crypto/external/bsd/heimdal/libexec/ipropd-slave/Makefile up to 1.5
crypto/external/bsd/heimdal/libexec/kadmind/Makefile up to 1.7
crypto/external/bsd/heimdal/libexec/kpasswdd/Makefile up to 1.5
crypto/external/bsd/heimdal/sbin/Makefile.inc up to 1.7
crypto/external/bsd/heimdal/sbin/hprop/Makefile up to 1.5
crypto/external/bsd/heimdal/sbin/iprop-log/Makefile up to 1.5
crypto/external/bsd/heimdal/sbin/kadmin/Makefile up to 1.6
crypto/external/bsd/heimdal/sbin/kcm/Makefile up to 1.5
crypto/external/bsd/heimdal/sbin/kdc/Makefile up to 1.5
crypto/external/bsd/heimdal/sbin/kdigest/Makefile up to 1.6
crypto/external/bsd/heimdal/sbin/kimpersonate/Makefile up to 1.5
crypto/external/bsd/heimdal/sbin/kstash/Makefile up to 1.5
crypto/external/bsd/heimdal/sbin/ktutil/Makefile up to 1.6
crypto/external/bsd/openssl/bin/progs.c up to 1.1
crypto/external/bsd/openssl/lib/engines/dasync/dasync.map up to 1.3
crypto/external/bsd/openssl/lib/engines/ossltest/ossltest.map up to 1.3
crypto/external/bsd/openssl/lib/engines/padlock/padlock.map up to 1.3
crypto/external/bsd/openssl/lib/engines/devcrypto/Makefile up to 1.3
crypto/external/bsd/openssl/lib/engines/devcrypto/devcrypto.map up to 1.3
crypto/external/bsd/openssl/lib/engines/loader_attic/Makefile up to 1.3
crypto/external/bsd/openssl/lib/engines/loader_attic/loader_attic.map up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/aes-gcm-armv8_64.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/alpha/ec.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/aes-gcm-armv8_64.S up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/ec.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/hppa/ec.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/ia64/ec.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/m68k/ec.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/mips/ec.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/ec.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/ecp_nistp521-ppc64.S up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/ppc64-mont-fixed.S up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/ecp_nistp521-ppc64.S up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/ppc64-mont-fixed.S up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/sh3/ec.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/sha256-sparcv9.S up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/vax/ec.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/rsaz-avx512.S up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/riscv32/crypto.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/riscv32/ec.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/arch/riscv64/ec.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/ess.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/libc-sha1.c up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/mkinc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_EXTERN_FUNCS.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_INTEGER_new.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_aux_cb.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_item_d2i_bio.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_item_new.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_item_sign.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_prefix.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_readbuffer.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/ERR_new.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_s_core.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_s_datagram.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_socket_wait.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/BN_mod_exp_mont.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_EncryptedData_decrypt.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_EncryptedData_encrypt.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_EnvelopedData_create.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_data_create.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_digest_create.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/CRYPTO_memcmp.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/ECDSA_sign.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_ASYM_CIPHER-RSA.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_ASYM_CIPHER-SM2.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_ASYM_CIPHER_free.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-AES.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-ARIA.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-BLOWFISH.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-CAMELLIA.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-CAST.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-CHACHA.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-DES.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-IDEA.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-NULL.7 up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-RC2.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-RC4.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-RC5.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-SEED.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER-SM4.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER_CTX_get_original_iv.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-HKDF.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-KB.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-KRB5KDF.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-PBKDF1.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-PBKDF2.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-SS.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-PKCS12KDF.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-SCRYPT.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-SSHKDF.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-TLS13_KDF.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-TLS1_PRF.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-X942-ASN1.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-X942-CONCAT.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF-X963.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KDF.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KEM-RSA.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KEM_free.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KEYEXCH-DH.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KEYEXCH-ECDH.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KEYEXCH-X25519.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KEYEXCH_free.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_KEYMGMT.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MAC-BLAKE2.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MAC-CMAC.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MAC-GMAC.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MAC-HMAC.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MAC-KMAC.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MAC-Poly1305.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MAC-Siphash.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MAC.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-BLAKE2.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-MD2.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-MD4.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-MD5-SHA1.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-MD5.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-MDC2.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-NULL.7 up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-RIPEMD160.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-SHA1.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-SHA2.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-SHA3.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-SHAKE.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-SM3.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-WHIRLPOOL.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD-common.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PBE_CipherInit.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY-DH.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY-DSA.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY-EC.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY-FFC.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY-HMAC.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY-RSA.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY-SM2.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY-X25519.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY2PKCS8.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_CTX_get0_libctx.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_CTX_get0_pkey.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_CTX_set_params.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_check.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_copy_parameters.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_decapsulate.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_digestsign_supports_digest.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_encapsulate.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_fromdata.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_get_field_type.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_get_group_name.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_get_size.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_gettable_params.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_is_a.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_set1_encoded_public_key.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_set_type.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_settable_params.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_todata.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_RAND-CTR-DRBG.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_RAND-HASH-DRBG.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_RAND-HMAC-DRBG.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_RAND-SEED-SRC.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_RAND-TEST-RAND.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_RAND.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_RAND.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_SIGNATURE-DSA.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_SIGNATURE-ECDSA.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_SIGNATURE-ED25519.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_SIGNATURE-HMAC.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_SIGNATURE-RSA.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_SIGNATURE.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_aes_128_gcm.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_aria_128_gcm.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_camellia_128_ecb.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_des_cbc.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_set_default_properties.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/NCONF_new_ex.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_FILE.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_gmtime.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_hexchar2int.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_s390xcap.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_strcasecmp.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_ALGORITHM.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CALLBACK.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CMP_CTX_new.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CMP_HDR_get0_transactionID.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CMP_ITAV_set0.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CMP_MSG_get0_header.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CMP_MSG_http_perform.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CMP_SRV_CTX_new.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CMP_STATUSINFO_new.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CMP_exec_certreq.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CMP_log_open.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CMP_validate_msg.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CORE_MAKE_FUNC.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CRMF_MSG_get0_tmpl.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_DECODER.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CRMF_MSG_set0_validity.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CRMF_MSG_set1_regCtrl_regToken.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CRMF_MSG_set1_regInfo_certReq.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_CRMF_pbmp_new.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_DECODER_CTX.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_DECODER_CTX_new_for_pkey.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_DECODER_from_bio.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_DISPATCH.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_ENCODER.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_ENCODER_CTX.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_ENCODER_CTX_new_for_pkey.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_ENCODER_to_bio.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_ESS_check_signing_certs.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_HTTP_REQ_CTX.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_ITEM.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_HTTP_parse_url.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_HTTP_transfer.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_LIB_CTX.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_PARAM.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_PARAM_BLD.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_PARAM_allocate_from_text.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_PARAM_dup.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_PARAM_int.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_PROVIDER-FIPS.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_PROVIDER-base.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_PROVIDER-default.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_PROVIDER-legacy.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_PROVIDER-null.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_PROVIDER.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_SELF_TEST_new.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_SELF_TEST_set_callback.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/X509_cmp.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_STORE_attach.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_trace_enabled.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_trace_get_category_num.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_trace_set_channel.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/OpenSSL_version.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PEM_X509_INFO_read_bio_ex.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_PBE_keyivgen.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_SAFEBAG_create_cert.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_SAFEBAG_get0_attrs.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_SAFEBAG_get1_cert.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_add1_attr_by_NID.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_add_CSPName_asc.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_add_cert.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_add_friendlyname_asc.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_add_safe.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_add_localkeyid.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_decrypt_skey.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_gen_mac.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_get_friendlyname.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_init.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_item_decrypt_d2i.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_key_gen_utf8_ex.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_pack_p7encdata.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS5_PBE_keyivgen.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS7_get_octet_string.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS7_type_is_other.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS8_encrypt.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS8_pkey_add1_attr.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/RAND_get0_primary.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/RAND_set_DRBG_type.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SMIME_read_ASN1.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SMIME_write_ASN1.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SRP_Calc_B.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SRP_VBASE_new.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SRP_create_verifier.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SRP_user_pwd_new.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_srp_password.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_tmp_ecdh.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_certificate.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_group_to_name.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_set_async_callback.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_set_retry_verify.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/TS_RESP_CTX_new.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/TS_VERIFY_CTX_set_certs.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/X509V3_set_ctx.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/X509_LOOKUP.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/X509_add_cert.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/X509_check_purpose.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/X509_get0_distinguishing_id.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/X509_load_http.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/X509_verify.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/b2i_PVK_bio_ex.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/d2i_RSAPrivateKey.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/fips_config.5 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/fips_module.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/life_cycle-cipher.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/life_cycle-digest.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/life_cycle-kdf.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/life_cycle-mac.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/life_cycle-pkey.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/life_cycle-rand.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/migration_guide.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/openssl-core.h.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/openssl-core_dispatch.h.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/openssl-core_names.h.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/openssl-env.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/openssl-format-options.1 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/openssl-glossary.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/openssl-namedisplay-options.1 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/openssl-passphrase-options.1 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/openssl-threads.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/openssl-verification-options.1 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/property.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-asym_cipher.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-base.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-cipher.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-decoder.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-digest.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-encoder.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-kdf.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-kem.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-keyexch.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-keymgmt.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-mac.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-object.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-rand.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-signature.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider-storemgmt.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/provider.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/proxy-certificates.7 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/man/s2i_ASN1_IA5STRING.3 up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/ffc.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/PROTO.in up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/cmp.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/crmf.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/encode_decode.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/gen up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/http.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/property.inc up to 1.1
crypto/external/bsd/openssl/lib/libcrypto/providers.inc up to 1.1
crypto/external/bsd/openssl/lib/libapps/Makefile up to 1.6
crypto/external/bsd/openssl/lib/libapps/PROTO.in up to 1.1
crypto/external/bsd/openssl/lib/libapps/apps_lib.inc up to 1.1
crypto/external/bsd/openssl/lib/libapps/mkinc up to 1.1
crypto/external/bsd/openssl/lib/libapps/srcs.inc up to 1.1
crypto/external/bsd/openssl/lib/Makefile.subdir up to 1.1
crypto/external/bsd/openssl/lib/libcommon/Makefile up to 1.5
crypto/external/bsd/openssl/lib/libcommon/PROTO.in up to 1.1
crypto/external/bsd/openssl/lib/libcommon/der_digests_gen.c up to 1.1
crypto/external/bsd/openssl/lib/libcommon/der_dsa_gen.c up to 1.1
crypto/external/bsd/openssl/lib/libcommon/der_ec_gen.c up to 1.1
crypto/external/bsd/openssl/lib/libcommon/der_ecx_gen.c up to 1.1
crypto/external/bsd/openssl/lib/libcommon/der_rsa_gen.c up to 1.1
crypto/external/bsd/openssl/lib/libcommon/der_wrap_gen.c up to 1.1
crypto/external/bsd/openssl/lib/libcommon/mkinc up to 1.1
crypto/external/bsd/openssl/lib/libcommon/providers_common.inc up to 1.1
crypto/external/bsd/openssl/lib/libcommon/providers_common_der.inc up to 1.1
crypto/external/bsd/openssl/lib/libcommon/providers_implementations_ciphers.inc up to 1.1
crypto/external/bsd/openssl/lib/libcommon/providers_implementations_digests.inc up to 1.1
crypto/external/bsd/openssl/lib/libcommon/srcs.inc up to 1.1
crypto/external/bsd/openssl/lib/libcommon/ssl_record.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/prov/der_digests.h up to 1.1
crypto/external/bsd/openssl/lib/libdefault/prov/der_dsa.h up to 1.1
crypto/external/bsd/openssl/lib/libdefault/prov/der_ec.h up to 1.1
crypto/external/bsd/openssl/lib/libdefault/prov/der_ecx.h up to 1.1
crypto/external/bsd/openssl/lib/libdefault/prov/der_rsa.h up to 1.1
crypto/external/bsd/openssl/lib/libdefault/prov/der_sm2.h up to 1.1
crypto/external/bsd/openssl/lib/libdefault/prov/der_wrap.h up to 1.1
crypto/external/bsd/openssl/lib/libdefault/Makefile up to 1.6
crypto/external/bsd/openssl/lib/libdefault/PROTO.in up to 1.1
crypto/external/bsd/openssl/lib/libdefault/der_sm2_gen.c up to 1.1
crypto/external/bsd/openssl/lib/libdefault/mkinc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_common.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_common_der.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_asymciphers.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_ciphers.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_digests.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_encode_decode.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_exchange.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_kdfs.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_kem.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_keymgmt.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_macs.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_rands.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_rands_seeding.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_signature.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/providers_implementations_storemgmt.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/srcs.inc up to 1.1
crypto/external/bsd/openssl/lib/libdefault/ssl.inc up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/Makefile up to 1.7
crypto/external/bsd/openssl/lib/liblegacy/PROTO.in up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/crypto.inc up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/crypto_des.inc up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/crypto_md5.inc up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/legacy.map up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/mkinc up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/providers.inc up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/providers_common.inc up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/providers_implementations_ciphers.inc up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/providers_implementations_digests.inc up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/providers_implementations_kdfs.inc up to 1.1
crypto/external/bsd/openssl/lib/liblegacy/srcs.inc up to 1.1
crypto/external/bsd/openssl/dist/AUTHORS.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/CONTRIBUTING.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/FAQ.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/INSTALL.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/LICENSE.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/NEWS.md up to 1.1.1.2
crypto/external/bsd/openssl/dist/README-ENGINES.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/README-FIPS.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/README-PROVIDERS.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/SUPPORT.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/VERSION.dat up to 1.1.1.2
crypto/external/bsd/openssl/dist/configdata.pm.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/platform/BASE.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/platform/AIX.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/platform/Windows/MSVC.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/platform/Windows/cppbuilder.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/platform/Cygwin.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/platform/Unix.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/platform/VMS.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/platform/Windows.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/platform/mingw.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/gentemplate.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/50-cppbuilder.conf up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/50-nonstop.conf up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/50-os390.conf up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/50-vms-x86_64.conf up to 1.1.1.2
crypto/external/bsd/openssl/dist/Configurations/README-design.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/Configurations/platform.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/asn1parse.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/cmp.c up to 1.3
crypto/external/bsd/openssl/dist/apps/crl2pkcs7.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/app_libctx.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/app_params.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/app_provider.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/app_rand.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/app_x509.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/apps.c up to 1.4
crypto/external/bsd/openssl/dist/apps/lib/apps_ui.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/cmp_mock_srv.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/apps/lib/columns.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/engine.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/engine_loader.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/fmt.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/http_server.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/names.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/opt.c up to 1.2
crypto/external/bsd/openssl/dist/apps/lib/s_cb.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/s_socket.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/tlssrp_depr.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/vms_decc_argv.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/vms_term_sock.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/lib/win32_init.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/info.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/fipsinstall.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/insta.ca.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/__DECC_INCLUDE_EPILOGUE.H up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/__DECC_INCLUDE_PROLOGUE.H up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/app_libctx.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/app_params.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/apps.h up to 1.2
crypto/external/bsd/openssl/dist/apps/include/apps_ui.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/cmp_mock_srv.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/apps/include/ec_common.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/engine_loader.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/fmt.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/function.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/http_server.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/names.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/opt.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/platform.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/s_apps.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/include/vms_term_sock.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/kdf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/list.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/apps/mac.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/packet.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/params.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/provider.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/cmp/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_asn.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_client.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_ctx.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_err.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_hdr.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_http.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_msg.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_protect.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_server.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_status.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_util.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/cmp/cmp_vfy.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ess/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ess/ess_asn1.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ess/ess_err.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ess/ess_lib.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/asn1/asn1_parse.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/asn1/d2i_param.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/asn1/i2d_evp.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bio/bf_prefix.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bio/bf_readbuff.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bio/bio_addr.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bio/bio_dump.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bio/bio_print.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bio/bio_sock.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bio/bio_sock2.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bio/bss_core.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bio/ossl_core_bio.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bn/asm/ppc64-mont-fixed.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bn/asm/rsaz-avx512.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bn/rsaz_exp_x2.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bn/bn_conv.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bn/bn_ppc.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bn/bn_rsa_fips186_4.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/bn/bn_sparc.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/chacha/asm/chacha-ia64.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/chacha/chacha_ppc.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/cms/cms_dh.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cms/cms_ec.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cms/cms_rsa.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/dh/dh_backend.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/dh/dh_group_params.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_backend.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_check.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/asm/ecp_nistp521-ppc64.pl up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ec/curve448/arch_32/f_impl32.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/curve448/arch_64/arch_intrinsics.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/curve448/arch_64/f_impl.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/curve448/arch_64/f_impl64.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/ec_backend.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/ec_deprecated.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/ecp_ppc.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/ecp_s390x_nistp.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/ecx_backend.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/ecx_backend.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/ecx_key.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ec/ecx_s390x.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/engine/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/err/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/err/err_all_legacy.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/err/err_blocks.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/err/err_local.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/mac_lib.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/mac_meth.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/p_legacy.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/pmeth_check.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/signature.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/asymcipher.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/ctrl_params_translate.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/evp/dh_ctrl.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/dh_support.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/dsa_ctrl.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/ec_ctrl.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/evp/ec_support.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/evp_fetch.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/kem.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/evp_rand.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/evp_utils.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/exchange.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/kdf_lib.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/kdf_meth.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/keymgmt_lib.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/keymgmt_meth.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/evp/legacy_blake2.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/legacy_md2.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/legacy_md4.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/legacy_md5.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/legacy_md5_sha1.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/legacy_mdc2.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/legacy_meth.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/legacy_ripemd.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/legacy_sha.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/evp/legacy_wp.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/md5/md5_sha1.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/modes/asm/aes-gcm-armv8_64.pl up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/modes/siv128.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/objects/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/objects/obj_compat.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ocsp/ocsp_http.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/pem/pem_local.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/perlasm/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/perlasm/s390x.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/perlasm/x86_64-support.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/pkcs7/pk7_local.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/poly1305/asm/poly1305-ia64.S up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/poly1305/poly1305_ppc.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/rand/prov_seed.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/rand/rand_deprecated.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/rand/rand_meth.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/rand/rand_pool.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_acvp_test_params.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_backend.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_mp_names.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_schemes.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_sp800_56b_check.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_sp800_56b_gen.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/sha/sha_ppc.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/sha/sha3.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/sm2/sm2_key.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/sm3/legacy_sm3.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/store/store_meth.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/store/store_result.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/by_store.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/ext_dat.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/pcy_cache.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/pcy_data.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/pcy_lib.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/pcy_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/x509/pcy_map.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/pcy_node.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/x509/pcy_tree.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/x509/standard_exts.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_addr.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_admis.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_admis.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_akeya.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_akid.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_asid.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_bcons.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_bitst.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_conf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_cpols.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_crld.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_enum.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_extku.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_genn.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_ia5.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_info.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_int.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_ist.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_lib.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_ncons.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_pci.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_pcia.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_pcons.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_pku.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_pmaps.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_prn.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_purp.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_san.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_skid.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_sxnet.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_tlsf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_utf8.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3_utl.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/v3err.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/x509/x509_trust.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/sparse_array.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/asn1_dsa.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/README-sparse_array.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/bsearch.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/context.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/core_algorithm.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/core_fetch.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/core_namemap.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/cpuid.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/der_writer.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/info.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/initthread.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/param_build.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/param_build_set.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/params_dup.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/params_from_text.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/passphrase.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/provider_child.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/provider_conf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/provider_core.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/provider_local.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/provider_predefined.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/punycode.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/self_test_core.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/threads_lib.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/trace.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/crmf/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/crmf/crmf_asn.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/crmf/crmf_err.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/crmf/crmf_lib.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/crmf/crmf_local.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/crmf/crmf_pbm.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/encode_decode/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/encode_decode/decoder_err.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/encode_decode/decoder_lib.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/encode_decode/decoder_meth.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/encode_decode/decoder_pkey.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/encode_decode/encoder_err.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/encode_decode/encoder_lib.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/encode_decode/encoder_local.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/encode_decode/encoder_meth.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/encode_decode/encoder_pkey.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ffc/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ffc/ffc_backend.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ffc/ffc_dh.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ffc/ffc_key_generate.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ffc/ffc_key_validate.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ffc/ffc_params.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ffc/ffc_params_generate.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/ffc/ffc_params_validate.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/http/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/http/http_client.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/http/http_err.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/http/http_lib.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/property/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/property/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/property/defn_cache.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/property/property.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/property/property_err.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/property/property_local.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/property/property_parse.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/property/property_query.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/crypto/property/property_string.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/bio/README.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/certs/README.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/cipher/Makefile up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/cipher/aesccm.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/cipher/aesgcm.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/cipher/aeskeywrap.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/cipher/ariacbc.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/README.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/digest/BIO_f_md.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/digest/EVP_MD_demo.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/digest/EVP_MD_stdin.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/digest/EVP_MD_xof.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/digest/Makefile up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/encode/Makefile up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/encode/ec_encode.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/encode/rsa_encode.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/kdf/Makefile up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/kdf/hkdf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/kdf/pbkdf2.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/kdf/scrypt.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/keyexch/x25519.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/mac/Makefile up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/mac/cmac-aes256.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/mac/gmac.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/mac/hmac-sha512.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/mac/poly1305.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/mac/siphash.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/pkey/EVP_PKEY_DSA_keygen.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/pkey/EVP_PKEY_DSA_paramfromdata.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/pkey/EVP_PKEY_DSA_paramgen.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/pkey/EVP_PKEY_DSA_paramvalidate.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/pkey/EVP_PKEY_EC_keygen.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/pkey/EVP_PKEY_RSA_keygen.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/pkey/Makefile up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/pkey/dsa.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/signature/EVP_Signature_demo.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/signature/EVP_Signature_demo.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/signature/Makefile up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/signature/rsa_pss.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/signature/rsa_pss_direct.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/demos/signature/rsa_pss_hash.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-asn1parse.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-ca.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-ciphers.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-cmds.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-cmp.pod.in up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man1/openssl-cms.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-crl.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-crl2pkcs7.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-dgst.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-dhparam.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-dsa.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-dsaparam.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-nseq.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-ec.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-ecparam.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-enc.pod.in up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man1/openssl-engine.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-errstr.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-fipsinstall.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-format-options.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-gendsa.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-genpkey.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-genrsa.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-info.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-kdf.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-list.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-mac.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-namedisplay-options.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-ocsp.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-passphrase-options.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-passwd.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-pkcs12.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-pkcs7.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-pkcs8.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-pkey.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-pkeyparam.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-pkeyutl.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-prime.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-rand.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-rehash.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-req.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-rsa.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-rsautl.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-s_client.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-s_server.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-s_time.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-sess_id.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-smime.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-speed.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-spkac.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-srp.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-storeutl.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-ts.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-verification-options.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-verify.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-version.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man1/openssl-x509.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_is_a.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_des_cbc.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/NCONF_new_ex.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_gmtime.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_ITEM.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SMIME_read_ASN1.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SMIME_write_ASN1.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SRP_Calc_B.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SRP_VBASE_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/X509_verify.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/RAND_get0_primary.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/RAND_set_DRBG_type.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_certificate.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SSL_group_to_name.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/ERR_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_todata.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_PARAM.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/ASN1_EXTERN_FUNCS.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/ASN1_INTEGER_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/ASN1_aux_cb.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/BIO_s_core.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/ASN1_item_d2i_bio.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/ASN1_item_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/ASN1_item_sign.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/BIO_f_prefix.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/BIO_f_readbuffer.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/BIO_s_datagram.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/BIO_socket_wait.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/BN_mod_exp_mont.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/CMS_EncryptedData_decrypt.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CMS_EncryptedData_encrypt.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/CMS_EnvelopedData_create.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/CMS_data_create.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/CMS_digest_create.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/ECDSA_sign.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_ASYM_CIPHER_free.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_KDF.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_MAC.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_CIPHER_CTX_get_original_iv.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_KEM_free.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_KEYEXCH_free.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_KEYMGMT.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PBE_CipherInit.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY2PKCS8.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_CTX_get0_libctx.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_CTX_get0_pkey.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_CTX_set_params.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_check.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_copy_parameters.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_decapsulate.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_digestsign_supports_digest.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_encapsulate.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_RAND.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_fromdata.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_get_field_type.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_get_group_name.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_get_size.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_gettable_params.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_set1_encoded_public_key.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_set_type.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_settable_params.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_SIGNATURE.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/EVP_aes_128_gcm.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_aria_128_gcm.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_camellia_128_ecb.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_set_default_properties.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_FILE.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_init.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_hexchar2int.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_s390xcap.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_strcasecmp.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_ALGORITHM.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CALLBACK.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CMP_CTX_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CMP_HDR_get0_transactionID.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CMP_ITAV_set0.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CMP_MSG_get0_header.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CMP_MSG_http_perform.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CMP_SRV_CTX_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CMP_STATUSINFO_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CMP_exec_certreq.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CMP_log_open.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CORE_MAKE_FUNC.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CMP_validate_msg.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CRMF_MSG_get0_tmpl.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CRMF_MSG_set0_validity.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CRMF_MSG_set1_regCtrl_regToken.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CRMF_MSG_set1_regInfo_certReq.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_CRMF_pbmp_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_DECODER.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_DECODER_CTX.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_DECODER_CTX_new_for_pkey.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_DECODER_from_bio.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/OSSL_DISPATCH.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_ENCODER.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_ENCODER_CTX.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_ENCODER_CTX_new_for_pkey.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_ENCODER_to_bio.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_ESS_check_signing_certs.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_HTTP_REQ_CTX.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_HTTP_parse_url.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_HTTP_transfer.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_LIB_CTX.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_PARAM_BLD.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_PARAM_allocate_from_text.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_PARAM_dup.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_PARAM_int.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/OSSL_PROVIDER.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_SELF_TEST_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_SELF_TEST_set_callback.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_STORE_attach.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_trace_enabled.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_trace_get_category_num.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OSSL_trace_set_channel.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/OpenSSL_version.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PEM_X509_INFO_read_bio_ex.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_PBE_keyivgen.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_SAFEBAG_create_cert.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_SAFEBAG_get0_attrs.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_SAFEBAG_get1_cert.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_add1_attr_by_NID.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_add_CSPName_asc.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_add_cert.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_add_friendlyname_asc.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_add_localkeyid.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_add_safe.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_decrypt_skey.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_gen_mac.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_get_friendlyname.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_item_decrypt_d2i.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_key_gen_utf8_ex.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_pack_p7encdata.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS5_PBE_keyivgen.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS7_get_octet_string.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS7_type_is_other.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS8_encrypt.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/PKCS8_pkey_add1_attr.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SRP_create_verifier.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SRP_user_pwd_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_srp_password.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_tmp_ecdh.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SSL_set_async_callback.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/SSL_set_retry_verify.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/TS_RESP_CTX_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/TS_VERIFY_CTX_set_certs.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/X509V3_set_ctx.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/X509_add_cert.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/X509_get0_distinguishing_id.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/X509_load_http.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/b2i_PVK_bio_ex.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/d2i_RSAPrivateKey.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man3/s2i_ASN1_IA5STRING.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man5/fips_config.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/fips_module.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/life_cycle-cipher.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_ASYM_CIPHER-RSA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_ASYM_CIPHER-SM2.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-AES.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-ARIA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-BLOWFISH.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-CAMELLIA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-CAST.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-CHACHA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-DES.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-IDEA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-NULL.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-RC2.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-RC4.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-RC5.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-SEED.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_CIPHER-SM4.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-HKDF.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-KB.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-KRB5KDF.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-PBKDF1.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-PBKDF2.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-PKCS12KDF.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-SCRYPT.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-SS.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-SSHKDF.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-TLS13_KDF.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-TLS1_PRF.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-X942-ASN1.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-X942-CONCAT.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KDF-X963.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KEM-RSA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KEYEXCH-DH.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KEYEXCH-ECDH.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_KEYEXCH-X25519.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MAC-BLAKE2.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MAC-CMAC.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MAC-GMAC.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MAC-HMAC.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MAC-KMAC.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MAC-Poly1305.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MAC-Siphash.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-BLAKE2.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-MD2.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-MD4.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-MD5-SHA1.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-MD5.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-MDC2.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-NULL.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-RIPEMD160.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-SHA1.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-SHA2.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-SHA3.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-SHAKE.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-SM3.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-WHIRLPOOL.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_MD-common.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_PKEY-DH.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_PKEY-DSA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_PKEY-EC.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/EVP_PKEY-FFC.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_PKEY-HMAC.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_PKEY-RSA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_PKEY-SM2.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_PKEY-X25519.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_RAND-CTR-DRBG.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_RAND-HASH-DRBG.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_RAND-HMAC-DRBG.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_RAND-SEED-SRC.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_RAND-TEST-RAND.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_RAND.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_SIGNATURE-DSA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_SIGNATURE-ECDSA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_SIGNATURE-ED25519.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/img/cipher.png up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/img/digest.png up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/img/kdf.png up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/img/mac.png up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/img/pkey.png up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/img/rand.png up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_SIGNATURE-HMAC.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/EVP_SIGNATURE-RSA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/OSSL_PROVIDER-FIPS.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/OSSL_PROVIDER-base.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/OSSL_PROVIDER-default.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/OSSL_PROVIDER-legacy.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/OSSL_PROVIDER-null.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/life_cycle-digest.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/life_cycle-kdf.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/life_cycle-mac.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/life_cycle-pkey.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/life_cycle-rand.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/migration_guide.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/openssl-core.h.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/openssl-core_dispatch.h.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/openssl-core_names.h.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/openssl-env.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/openssl-glossary.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/openssl-threads.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/openssl_user_macros.pod.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/property.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/provider-asym_cipher.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/provider-base.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/provider-cipher.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/provider-decoder.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/provider-digest.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/provider-encoder.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/provider-kdf.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/provider-kem.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/provider-keyexch.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/provider-keymgmt.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/provider-mac.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/provider-object.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/provider-rand.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/provider-signature.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/provider-storemgmt.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/man7/provider.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/build.info.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/perlvars.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/images/openssl.svg up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/OPENSSL_SA.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/OPTIONS.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/OSSL_DEPRECATED.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/OSSL_METHOD_STORE.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/cms_add1_signing_cert.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/evp_generic_fetch.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/evp_keymgmt_newdata.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/evp_keymgmt_util_export_to_provider.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/evp_md_get_number.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/evp_pkey_export_to_provider.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/evp_pkey_get1_ED25519.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_DER_w_begin_sequence.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_DER_w_bn.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_DER_w_precompiled.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_algorithm_do_all.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_cmp_X509_STORE_add1_certs.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_cmp_asn1_octet_string_set1.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_cmp_certreq_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_cmp_ctx_set1_caPubs.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_cmp_hdr_init.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_cmp_mock_srv_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_cmp_msg_check_update.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_cmp_msg_create.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_cmp_msg_protect.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_cmp_pkisi_get_status.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_cmp_print_log.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_ends_with_dirsep.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_global_properties_no_mirrored.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_init_thread_deregister.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_lib_ctx_get_data.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_method_construct.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_namemap_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_provider_add_conf_module.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_provider_new.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_punycode_decode.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_rand_get_entropy.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_random_add_conf_module.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/ossl_rsa_get0_all_params.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man3/x509v3_cache_extensions.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man7/DERlib.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man7/EVP_PKEY.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man7/VERSION.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man7/build.info.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/internal/man7/deprecation.pod up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/life-cycles/Makefile up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/life-cycles/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/life-cycles/cipher.dot up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/life-cycles/digest.dot up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/life-cycles/kdf.dot up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/life-cycles/lifecycles.ods up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/life-cycles/mac.dot up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/life-cycles/pkey.dot up to 1.1.1.1
crypto/external/bsd/openssl/dist/doc/life-cycles/rand.dot up to 1.1.1.1
crypto/external/bsd/openssl/dist/engines/e_devcrypto.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/engines/e_loader_attic.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/engines/e_loader_attic.ec up to 1.1.1.1
crypto/external/bsd/openssl/dist/engines/e_loader_attic.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/engines/e_loader_attic_err.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/engines/e_loader_attic_err.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/MODULES.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/lib/Text/Template/Preprocess.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/lib/Text/Template.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/author-pod-syntax.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/author-signature.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/basic.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/broken.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/delimiters.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/error.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/exported.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/hash.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/inline-comment.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/nested-tags.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/ofh.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/out.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/prepend.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/preprocess.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/rt29928.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/safe.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/safe2.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/safe3.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/strict.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/taint.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/template-encoding.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/t/warnings.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/Changes up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/INSTALL up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/LICENSE up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/MANIFEST up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/META.json up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/META.yml up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/Makefile.PL up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/README up to 1.1.1.1
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.56/SIGNATURE up to 1.1.1.1
crypto/external/bsd/openssl/dist/fuzz/fuzz_rand.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/fuzz/cmp.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/sha3.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/asn1.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/core.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/endian.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/der.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/deprecated.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/namemap.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/ffc.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/ktls.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/packet.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/param_build_set.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/passphrase.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/property.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/propertyerr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/provider.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/sizes.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/sm3.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/symhacks.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/tlsgroups.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/internal/unicode.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/asn1t.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/bio.h.in up to 1.2
crypto/external/bsd/openssl/dist/include/openssl/crypto.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/cmp.h.in up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/lhash.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/macros.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/ct.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/err.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/safestack.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/opensslv.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/pkcs12.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/self_test.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/param_build.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/pkcs7.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/conf.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/x509v3.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/x509_vfy.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/ui.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/asn1.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/srp.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/ssl.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/cmp_util.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/cmperr.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/cms.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/configuration.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/conftypes.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/core.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/core_dispatch.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/core_names.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/core_object.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/crmf.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/crmferr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/cryptoerr_legacy.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/decoder.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/decodererr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/encoder.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/encodererr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/ess.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/esserr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/fips_names.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/fipskey.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/http.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/httperr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/ocsp.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/trace.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/opensslconf.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/params.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/prov_ssl.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/proverr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/provider.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/sslerr_legacy.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/types.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/openssl/x509.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/tserr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/aes_platform.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/asn1_dsa.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/asn1err.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/asyncerr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/bioerr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/bnerr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/buffererr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/cmll_platform.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/cmperr.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/cmserr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/comperr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/conferr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/crmferr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/cryptoerr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/cterr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/decoder.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/decodererr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/des_platform.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/dh.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/dherr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/dsa.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/dsaerr.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/ecerr.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/ecx.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/encoder.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/encodererr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/engineerr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/ess.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/esserr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/evperr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/httperr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/modes.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/objectserr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/ocsperr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/pem.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/pemerr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/pkcs12err.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/pkcs7.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/pkcs7err.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/ppc_arch.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/punycode.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/rand_pool.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/randerr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/rsa.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/rsaerr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/siv.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/security_bits.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/sparc_arch.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/sparse_array.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/storeerr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/types.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/uierr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/x509err.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/include/crypto/x509v3err.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/ssl/record/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/ssl/record/tls_pad.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/ssl/sslerr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/ssl/statem/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/ssl/tls_depr.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/ssl/ktls.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/ssl/ssl_err_legacy.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/ssl/ssl_rsa_legacy.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/sm2.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/bad-othername-cert.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/bad-othername-namec-inter.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/bad-othername-namec-key.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/bad-othername-namec.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ca-pol-cert.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/root-ed25519.pubkey.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/cert-key-cert.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ct-server-key-public.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ct-server-key.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/dhk2048.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ec_privkey_with_chain.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-cert-1024.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-cert-3072.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-cert-4096.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-cert-8192.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-cert-crit-unknown-ext.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-cert-noncrit-unknown-ext.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-cert-ocsp-nocheck.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-cert-policies-bad.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-cert-policies.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-key-1024.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-key-3072.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/fake-gp.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-key-4096.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-key-8192.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-pss-wrong1.5-cert.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ee-ss-with-keyCertSign.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/embeddedSCTs1.tlssct up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/ext-check.csr up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/goodcn2-cert.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/goodcn2-chain.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/goodcn2-key.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/grfc.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/key-pass-12345.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/leaf-chain.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/leaf-encrypted.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/nccaothername-cert.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/nccaothername-key.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/pkitsta.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/root-ed25519.privkey.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/server-dsa-pubkey.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/sm2-ca-cert.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/sm2-csr.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/sm2-root.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/sm2-root.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/sm2.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/v3-certs-RC2.p12 up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/certs/v3-certs-TDES.p12 up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/README-dev.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/README-external.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/README.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/acvp_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/acvp_test.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/aesgcmtest.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/algorithmid_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/bio_core_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ext_internal_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ct/log_list.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/endecode_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/endecoder_legacy_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/evp_extra_test2.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/fips.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/hexstr_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/http_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/insta.priv.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/moduleloadtest.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/sparse_array_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl_test_ctx_test.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/testec-p112r1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/testrsa2048.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/testrsa2048pub.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/testrsapss.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/threadstest.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_read_depr.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/05-test_pbe.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/06-test_algorithmid.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/06-test_rdrand_sanity.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/90-test_traceapi.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/95-test_external_gost_engine.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_asn1.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/c2pnb163v1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/c2pnb208w1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/secp160k1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/secp192k1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/secp224k1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/secp256k1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/secp521r1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect113r1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect113r2-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect163k1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect163r2-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect193r1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect193r2-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect233k1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect233r1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect239k1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect283k1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect283r1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect409k1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect409r1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect571k1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/sect571r1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/wap-wsg-idm-ecid-wtls1-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/wap-wsg-idm-ecid-wtls10-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/wap-wsg-idm-ecid-wtls11-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/wap-wsg-idm-ecid-wtls3-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/wap-wsg-idm-ecid-wtls4-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/wap-wsg-idm-ecid-wtls5-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/wap-wsg-idm-ecid-wtls8-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/noncanon/wap-wsg-idm-ecid-wtls9-explicit.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_mp_rsa_data/rsamplcm.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_aes_ccm_cavs.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_hkdf.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmac_blake.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppbe_pbkdf2.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_dh.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_aes_common.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_aes_cts.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_aes_ocb.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_aes_siv.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_aes_stitched.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_aes_wrap.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_aria.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_bf.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_des.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_camellia.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_camellia_cts.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_cast5.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_chacha.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_des3_common.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_idea.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_rc2.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_rc4.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_rc4_stitched.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_rc5.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_seed.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph_sm4.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_krb5.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_pbkdf1.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_pbkdf2.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_scrypt.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_ss.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_ssh.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_tls11_prf.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_tls12_prf.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_tls13_kdf.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_x942.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_x942_des.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf_x963.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmac_cmac_des.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmac_common.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmac_poly1305.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmac_siphash.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmac_sm3.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmd_blake.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmd_md.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmd_mdc2.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmd_ripemd.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmd_sha.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmd_sm3.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmd_whirlpool.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppbe_pkcs12.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppbe_scrypt.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_brainpool.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_dsa.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_ecdh.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_ecdsa.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_ecx.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_ffdhe.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_kas.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_kdf_hkdf.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_kdf_scrypt.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_kdf_tls1_prf.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_mismatch.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_rsa.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_rsa_common.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_sm2.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evprand.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/90-test_includes_data/incdir.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/90-test_sslapi_data/dhparams.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/90-test_store_data/dsaparam.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/90-test_store_data/rsa-key-2432.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/90-test_store_data/testrsa.msb up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/90-test_store_data/testrsa.pvk up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cms_data/ciphertext_from_1_1_1.cms up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cms_data/pkcs7-md4.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_ca_data/revoked.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/02-test_internal_exts.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/00-prep_fipsmodule_cnf.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/01-test_fipsmodule_cnf.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/02-test_internal_context.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/02-test_internal_keymgmt.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/02-test_internal_provider.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/02-test_localetest.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/02-test_sparse_array.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/03-test_fipsinstall.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_asn1_dsa.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_bn.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_ffc.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_namemap.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_rsa_sp800_56b.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_sm3.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_conf.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/03-test_params_api.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/03-test_property.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_bio_core.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_encoder_decoder.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_encoder_decoder_legacy.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_hexstring.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_nodefltctx.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_param_build.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_params.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_params_conversion.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_provfetch.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_provider.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_provider_fallback.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_provider_pkey.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_punycode.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_upcalls.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_gendh.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_gendhparam.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_gendsa.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_rsaoaep.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_sha.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_app.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_cli_fips.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_kdf.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_legacy_okay.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_mac.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_pkeyutl.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_rand_config.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_spkac.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_eai_data.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/fuzz.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_rusext.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_verify_store.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_acvp.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_aesgcm.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_defltfips.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_fetch_prov.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_kdf.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_libctx.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_dparam.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_prov_config.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_provider_status.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/61-test_bio_prefix.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/61-test_bio_readbuffer.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_asn.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_client.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_ctx.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_hdr.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_msg.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_protect.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_server.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_status.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/66-test_ossl_store.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/71-test_ssl_ctx.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/79-test_http.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_policy_tree.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/81-test_cmp_cli.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/90-test_fipsload.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/91-test_pkey_check.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_asn1parse.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_bignum.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_bndiv.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_client.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_cmp.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_cms.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_conf.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_crl.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_ct.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_server.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz_x509.t up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_conf_data/dollarid_off.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_conf_data/dollarid_off.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_conf_data/dollarid_on.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_conf_data/dollarid_on.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_params_conversion_data/native_types.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_read_depr_data/dhparams.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_read_depr_data/dsaparams.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_read_depr_data/dsaprivatekey.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_read_depr_data/dsapublickey.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_read_depr_data/rsaprivatekey.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_read_depr_data/rsapublickey.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_read_depr_data/x942params.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/NOTES.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/beermug.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-1023line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-1024line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-1025line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-254-chars-at-the-end.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-254-chars-in-the-middle.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-255line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-256line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-257line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-blankline.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-bom.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-comment.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-earlypad.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-extrapad.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-junk.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-infixwhitespace.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-leadingwhitespace.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-longline.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-misalignedpad.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-onecolumn.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-oneline-multiple-of-254.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-oneline.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-shortandlongline.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-shortline.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-threecolumn.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert-trailingwhitespace.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/cert.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/csr.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-1023line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-1024line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-1025line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-255line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-256line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-257line.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-blankline.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-comment.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-corruptedheader.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-corruptiv.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-earlypad.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-extrapad.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-infixwhitespace.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-junk.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-leadingwhitespace.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-longline.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-misalignedpad.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-onecolumn.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-oneline.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-onelineheader.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-shortandlongline.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-shortline.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-threecolumn.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsa-trailingwhitespace.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/dsaparam.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/key.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_reading_data/wellknown up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/invalid/p2048_q256_bad_q.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/invalid/p768_q160_too_small.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p1024_q160_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p1024_q160_t1862_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p1024_q160_t1864.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p1024_q160_t1864_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p1024_q224_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p1024_q224_t1862_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p1024_q256_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p1024_q256_t1862_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p2048_q160_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p2048_q160_t1862_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p2048_q224_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p2048_q224_t1862_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p2048_q224_t1864.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p2048_q224_t1864_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p2048_q256_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p2048_q256_t1862_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p2048_q256_t1864.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p2048_q256_t1864_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p3072_q160_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p3072_q160_t1862_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p3072_q224_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p3072_q224_t1862_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p3072_q256_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p3072_q256_t1862_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p3072_q256_t1864.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsaparam_data/valid/p3072_q256_t1864_gind1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_rsaoaep_data/plain_text up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/15-test_rsapss_data/negativesaltlen.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/invalid/dh_p1024_t1862_pkcs3.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/invalid/dh_p2048_t1862_pkcs3.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/invalid/dh_p2048_t1864_pkcs3.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/invalid/dh_p3072_t1862_pkcs3.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dh_5114_1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dh_5114_2.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dh_5114_3.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dh_ffdhe2048.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_5114_2.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_ffdhe2048.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p1024_q160_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p1024_q160_t1864.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p1024_q224_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p1024_q256_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p2048_q160_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p2048_q224_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p2048_q224_t1864.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p2048_q256_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p2048_q256_t1864.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p3072_q160_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p3072_q224_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_check_data/valid/dhx_p3072_q256_t1862.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_data/pkcs3-2-1024.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_data/pkcs3-2-1024.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_data/pkcs3-2-2048.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_data/pkcs3-2-2048.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_data/pkcs3-5-1024.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_data/pkcs3-5-1024.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_data/x942-0-1024.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/20-test_dhparam_data/x942-0-1024.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_eai_data/ascii_chain.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_eai_data/ascii_leaf.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_eai_data/san.ascii up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_eai_data/san.utf8 up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_eai_data/utf8_chain.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_eai_data/utf8_leaf.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_pkcs7_data/malformed.pkcs7 up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_rusext_data/grfc.msb up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/25-test_rusext_data/grfc.utf8 up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_defltfips/fipsmodule.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DH.priv.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DH.priv.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DH.priv.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DH.pub.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DH.pub.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DH.pub.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DSA.priv.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DSA.priv.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DSA.priv.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DSA.pub.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DSA.pub.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/DSA.pub.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/EC.priv.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/EC.priv.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/EC.priv.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/EC.pub.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/EC.pub.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/EC.pub.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED25519.priv.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED25519.priv.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED25519.pub.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED25519.priv.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED25519.pub.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED25519.pub.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED448.priv.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED448.priv.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED448.priv.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED448.pub.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED448.pub.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/ED448.pub.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/RSA.priv.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/RSA.priv.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/RSA.priv.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/RSA.pub.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/RSA.pub.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/RSA.pub.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X25519.priv.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X25519.priv.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X25519.priv.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X25519.pub.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X25519.pub.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X25519.pub.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X448.priv.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X448.priv.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X448.priv.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X448.pub.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X448.pub.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/X448.pub.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/61-test_bio_prefix_data/args1.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/61-test_bio_prefix_data/args2.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/61-test_bio_prefix_data/in1.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/61-test_bio_prefix_data/in2.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/61-test_bio_prefix_data/out1.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/61-test_bio_prefix_data/out2.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_client_data/client.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_client_data/client.csr up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_client_data/client.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_client_data/server.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_client_data/server.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_msg_data/new.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_msg_data/pkcs10.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_msg_data/server.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_protect_data/EndEntity1.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_protect_data/EndEntity2.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_protect_data/IP_PBM.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_protect_data/IP_PBM.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_protect_data/IR_protected.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_protect_data/IR_unprotected.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_protect_data/Intermediate_CA.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_protect_data/Root_CA.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_protect_data/server.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_protect_data/server.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_server_data/CR_protected_PBM_1234.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/EndEntity1.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/EndEntity2.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/IP_waitingStatus_PBM.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/IP_waitingStatus_PBM.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/IR_protected.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/IR_protected_0_extraCerts.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/IR_protected_2_extraCerts.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/IR_rmprotection.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/IR_unprotected.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/Intermediate_CA.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/Root_CA.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/chain.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/client.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/insta.cert.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/insta.priv.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/insta_ca.cert.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/server.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/65-test_cmp_vfy_data/server.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/66-test_ossl_store_data/DH-params.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/66-test_ossl_store_data/DHX-params.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/66-test_ossl_store_data/DSA-params.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/12345.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/big_issuing.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/big_root.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/big_server.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/big_trusted.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/csr.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/empty.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/issuing.crt up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/issuing_expired.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/new.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/new_pass_12345.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/new_pub.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/random.bin up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/root.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/root_expired.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/server.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/server.crt up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/server.key up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/signer.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/signer.key up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/signer.p12 up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/signer_issuing.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/signer_only.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/signer_root.crt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/test.cnf up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/trusted.crt up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/Mock/wrong_csr.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/test_commands.csv up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/test_connection.csv up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/test_credentials.csv up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/test_enrollment.csv up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmp_http_data/test_verification.csv up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmsapi_data/encryptedData.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_policy_tree_data/large_leaf.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_policy_tree_data/large_policy_tree.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_policy_tree_data/small_leaf.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_policy_tree_data/small_policy_tree.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_ssl_old_data/dsa2048.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_tsa_data/all-zero.tsq up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_tsa_data/comodo-aaa.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_tsa_data/sectigo-all-zero.tsr up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_tsa_data/sectigo-signer.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_tsa_data/sectigo-time-stamping-ca.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_tsa_data/user-trust-ca-aaa.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/80-test_tsa_data/user-trust-ca.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/90-test_threads_data/rsakey.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/91-test_pkey_check_data/dhpkey.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/91-test_pkey_check_data/dsapub.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/91-test_pkey_check_data/dsapub_noparam.der up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/91-test_pkey_check_data/ec_p256_bad_0.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/91-test_pkey_check_data/ec_p256_bad_1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/91-test_pkey_check_data/sm2_bad_0.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/91-test_pkey_check_data/sm2_bad_1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/91-test_pkey_check_data/sm2_bad_neg1.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/recipes/95-test_external_gost_engine_data/gost_engine.sh up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/03-custom_verify.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/03-custom_verify.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/04-client_auth.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/05-sni.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/05-sni.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/06-sni-ticket.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/06-sni-ticket.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/07-dtls-protocol-version.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/07-dtls-protocol-version.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/08-npn.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/08-npn.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/09-alpn.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/10-resumption.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/02-protocol-version.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/11-dtls_resumption.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/10-resumption.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/11-dtls_resumption.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/12-ct.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/12-ct.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/13-fragmentation.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/13-fragmentation.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/14-curves.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/14-curves.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/15-certstatus.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/15-certstatus.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/16-dtls-certstatus.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/16-dtls-certstatus.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/17-renegotiate.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/18-dtls-renegotiate.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/09-alpn.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/19-mac-then-encrypt.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/19-mac-then-encrypt.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/17-renegotiate.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/18-dtls-renegotiate.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/20-cert-select.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/20-cert-select.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/21-key-update.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/21-key-update.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/22-compression.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/22-compression.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/23-srp.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/23-srp.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/24-padding.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/24-padding.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/25-cipher.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/25-cipher.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/26-tls13_client_auth.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/26-tls13_client_auth.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/27-ticket-appdata.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/27-ticket-appdata.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/28-seclevel.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/28-seclevel.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/29-dtls-sctp-label-bug.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/29-dtls-sctp-label-bug.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/30-extended-master-secret.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/30-extended-master-secret.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/01-simple.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/01-simple.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/04-client_auth.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ssl-tests/02-protocol-version.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/testutil/provider.c up to 1.3
crypto/external/bsd/openssl/dist/test/testutil/apps_shims.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/testutil/fake_random.c up to 1.2
crypto/external/bsd/openssl/dist/test/testutil/load.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/testutil/options.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/testutil/output.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/testutil/test_options.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/asn1_dsa_internal_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/bio_prefix_text.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/bio_readbuffer_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/bn_internal_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/bn_rand_range.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ca-and-certs.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/cmp_asn_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/cmp_client_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/cmp_ctx_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/cmp_hdr_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/cmp_msg_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/cmp_protect_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/cmp_server_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/cmp_status_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/cmp_vfy_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/confdump.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/context_internal_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/data2.bin up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/default-and-fips.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/default-and-legacy.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/default.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/defltfips_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/evp_fetch_prov_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/evp_kdf_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/evp_libctx_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/evp_pkey_ctx_new_from_name.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/evp_pkey_dparams_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/evp_pkey_provided_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/fake_rsaprov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/fake_rsaprov.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ffc_internal_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/filterprov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/filterprov.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/fips-alt.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/fips-and-base.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/fips_version_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/insta_ca.cert.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/keymgmt_internal_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/legacy.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/localetest.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/namemap_internal_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/nodefltctxtest.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/null.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/ossl_store_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/p_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/param_build_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/params_api_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/params_conversion_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/params_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/pbetest.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/pem_read_depr_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/pkcs12_format_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/pkcs7_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/property_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/prov_config_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/provfetchtest.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/provider_fallback_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/provider_internal_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/provider_internal_test.cnf.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/provider_pkey_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/provider_status_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/provider_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/proxy.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/punycode_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/rand_status_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/rand_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/rsa_sp800_56b_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/sha_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/simpledynamic.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/simpledynamic.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/sm3_internal_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/smcont.bin up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/smcont_zero.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/cmp_testlib.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/cmp_testlib.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/handshake.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/handshake.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/handshake_srp.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/pkcs12.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/pkcs12.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/predefined_dhparams.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/predefined_dhparams.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/ssl_test_ctx.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/ssl_test_ctx.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/helpers/ssltestlib.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/helpers/ssltestlib.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/ssl_old_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/testrsapssmandatory.pem up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/threadstest_fips.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/tls-provider.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/trace_api_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/upcallstest.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/user_property_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/v3_ca_exts.cnf up to 1.1.1.1
crypto/external/bsd/openssl/dist/test/smime-eml/SignedInvalidMappingFromanyPolicyTest7.eml up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/other-internal.syms up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/providers.num up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/withlibctx.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/Config/Query.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/OID.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/Ordinals.pm up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/ParseC.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/Template.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/Util.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/config.pm up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/fallback.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/stackhash.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/other.syms up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/c-compress-test.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/check-format-test-negatives.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/check-format-test-positives.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/check-format.pl up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/engines.num up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/err-to-raise up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/fips-checksums.sh up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/fix-deprecation up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/lang-compress.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/markdownlint.rb up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/merge-err-lines up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/missingcrypto-internal.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/missingcrypto.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/missingcrypto111.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/missingmacro.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/missingmacro111.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/missingssl-internal.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/missingssl.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/missingssl111.txt up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/mk-fipsmodule-cnf.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/mknum.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/mkpod2html.pl up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/wrap.pl.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/util/write-man-symlinks up to 1.1.1.1
crypto/external/bsd/openssl/dist/ACKNOWLEDGEMENTS.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/CHANGES.md up to 1.1.1.2
crypto/external/bsd/openssl/dist/HACKING.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/NOTES-ANDROID.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/NOTES-DJGPP.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/NOTES-NONSTOP.md up to 1.1.1.2
crypto/external/bsd/openssl/dist/NOTES-PERL.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/NOTES-UNIX.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/NOTES-VALGRIND.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/NOTES-VMS.md up to 1.1.1.2
crypto/external/bsd/openssl/dist/NOTES-WINDOWS.md up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/DIGESTS.asn1 up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/DSA.asn1 up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/EC.asn1 up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/ECX.asn1 up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/NIST.asn1 up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/RSA.asn1 up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/SM2.asn1 up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_digests_gen.c.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_dsa_gen.c.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_dsa_key.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_dsa_sig.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_ec_gen.c.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_ec_key.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_ec_sig.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_ecx_gen.c.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_ecx_key.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_rsa_gen.c.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_rsa_key.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_rsa_sig.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_sm2_gen.c.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_sm2_key.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_sm2_sig.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/der_wrap_gen.c.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/oids_to_c.pm up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/der/wrap.asn1 up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/bio_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/capabilities.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/digest_to_nid.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/provider_ctx.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/provider_err.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/provider_seeding.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/provider_util.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/securitycheck.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/securitycheck_default.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/securitycheck_fips.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/__DECC_INCLUDE_EPILOGUE.H up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/__DECC_INCLUDE_PROLOGUE.H up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/bio.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/der_digests.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/der_dsa.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/der_ec.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/der_ecx.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/der_rsa.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/der_sm2.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/der_wrap.h.in up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/proverr.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/provider_ctx.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/provider_util.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/providercommon.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/common/include/prov/securitycheck.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/baseprov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/decoders.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/defltprov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/encoders.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/fips-sources.checksums up to 1.1.1.2
crypto/external/bsd/openssl/dist/providers/fips.checksum up to 1.1.1.2
crypto/external/bsd/openssl/dist/providers/fips.module.sources up to 1.1.1.2
crypto/external/bsd/openssl/dist/providers/legacyprov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/nullprov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/prov_running.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/stores.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/fips/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/fips/fips_entry.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/fips/fipsprov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/fips/self_test.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/fips/self_test.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/fips/self_test_data.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/fips/self_test_kats.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/asymciphers/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/asymciphers/rsa_enc.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/providers/implementations/asymciphers/sm2_enc.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_ccm.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_ccm.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_ccm_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_ccm_hw_aesni.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_ccm_hw_s390x.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_ccm_hw_t4.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_cts.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_gcm.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_gcm.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_gcm_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_gcm_hw_aesni.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_gcm_hw_armv8.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_gcm_hw_s390x.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_gcm_hw_t4.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_hw_aesni.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_hw_s390x.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_hw_t4.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_ocb.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_ocb.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_ocb_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_siv.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_siv.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aria.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_siv_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_wrp.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_xts.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_xts.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_xts_fips.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aes_xts_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aria.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aria_ccm.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aria_ccm.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aria_ccm_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aria_gcm.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aria_gcm.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aria_gcm_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_aria_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_blowfish.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_blowfish.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_blowfish_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_cast.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_camellia.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_camellia.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_camellia_cts.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_camellia_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_camellia_hw_t4.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_cast5.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_cast5_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_chacha20.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_chacha20.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_chacha20_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_chacha20_poly1305.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_chacha20_poly1305.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_chacha20_poly1305_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_cts.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_cts.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_des.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_des.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_des_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_desx.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_desx_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_idea.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_idea.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_idea_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_null.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc2.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc2.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc2_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc4.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc4.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc4_hmac_md5.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc4_hmac_md5.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc4_hmac_md5_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc4_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc5.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc5.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_rc5_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_seed.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_seed.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_seed_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_sm4.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_sm4.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_sm4_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_tdes.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_tdes.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_tdes_common.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_tdes_default.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_tdes_default.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_tdes_default_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_tdes_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_tdes_wrap.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/cipher_tdes_wrap_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/ciphercommon.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/ciphercommon_block.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/ciphercommon_ccm.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/ciphercommon_ccm_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/ciphercommon_gcm.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/ciphercommon_gcm_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/ciphercommon_hw.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/ciphers/ciphercommon_local.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/blake2_impl.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/blake2_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/blake2b_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/blake2s_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/digestcommon.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/md2_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/md4_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/md5_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/md5_sha1_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/mdc2_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/null_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/ripemd_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/sha2_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/sha3_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/sm3_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/digests/wp_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/decode_der2key.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/decode_epki2pki.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/decode_msblob2key.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/decode_pem2der.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/decode_pvk2key.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/decode_spki2typespki.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/encode_key2any.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/encode_key2blob.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/encode_key2ms.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/encode_key2text.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/endecoder_common.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/endecoder_local.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/exchange/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/exchange/dh_exch.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/exchange/ecdh_exch.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/exchange/ecx_exch.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/exchange/kdf_exch.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/__DECC_INCLUDE_EPILOGUE.H up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/__DECC_INCLUDE_PROLOGUE.H up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/blake2.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/ciphercommon.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/ciphercommon_aead.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/ciphercommon_ccm.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/ciphercommon_gcm.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/digestcommon.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/implementations.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/kdfexchange.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/macsignature.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/md5_sha1.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/names.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/include/prov/seeding.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/hkdf.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/kbkdf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/krb5kdf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/pbkdf1.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/pbkdf2.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/pbkdf2.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/pbkdf2_fips.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/pkcs12kdf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/scrypt.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/sshkdf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/sskdf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/tls1_prf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kdfs/x942kdf.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kem/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/kem/rsa_kem.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/dh_kmgmt.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/dsa_kmgmt.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/ec_kmgmt.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/ec_kmgmt_imexport.inc up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/ecx_kmgmt.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/kdf_legacy_kmgmt.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/mac_legacy_kmgmt.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/rsa_kmgmt.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/providers/implementations/macs/blake2_mac_impl.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/macs/blake2b_mac.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/macs/blake2s_mac.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/macs/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/macs/cmac_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/macs/gmac_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/macs/hmac_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/macs/kmac_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/macs/poly1305_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/macs/siphash_prov.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/seeding/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/seeding/rand_cpu_x86.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/seeding/rand_tsc.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/seeding/rand_unix.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/seeding/rand_vms.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/seeding/rand_vxworks.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/seeding/rand_win.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/crngt.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/drbg.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/providers/implementations/rands/drbg_ctr.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/drbg_hash.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/drbg_hmac.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/drbg_local.h up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/seed_src.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/rands/test_rng.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/signature/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/signature/dsa_sig.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/signature/ecdsa_sig.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/signature/eddsa_sig.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/signature/mac_legacy_sig.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/signature/rsa_sig.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/providers/implementations/signature/sm2_sig.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/storemgmt/build.info up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/storemgmt/file_store.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/storemgmt/file_store_any2obj.c up to 1.1.1.1
crypto/external/bsd/openssl/dist/providers/implementations/storemgmt/file_store_local.h up to 1.1.1.1
crypto/external/bsd/openssl/include/openssl/opensslv.h up to 1.2
crypto/external/bsd/openssl/include/openssl/configuration.h up to 1.4
crypto/external/bsd/openssl/include/openssl/fipskey.h up to 1.1
crypto/external/bsd/openssl/lib/engines/capi/Makefile delete
crypto/external/bsd/openssl/lib/libcrypto/ecdh.inc delete
crypto/external/bsd/openssl/lib/libcrypto/ecdsa.inc delete
crypto/external/bsd/openssl/lib/libcrypto/krb5.inc delete
crypto/external/bsd/openssl/lib/libcrypto/md2.inc delete
crypto/external/bsd/openssl/lib/libcrypto/rc5.inc delete
crypto/external/bsd/openssl/lib/libcrypto/x509v3.inc delete
crypto/external/bsd/openssl/dist/ACKNOWLEDGEMENTS delete
crypto/external/bsd/openssl/dist/AUTHORS delete
crypto/external/bsd/openssl/dist/CHANGES delete
crypto/external/bsd/openssl/dist/CONTRIBUTING delete
crypto/external/bsd/openssl/dist/FAQ delete
crypto/external/bsd/openssl/dist/INSTALL delete
crypto/external/bsd/openssl/dist/LICENSE delete
crypto/external/bsd/openssl/dist/NEWS delete
crypto/external/bsd/openssl/dist/NOTES.ANDROID delete
crypto/external/bsd/openssl/dist/NOTES.DJGPP delete
crypto/external/bsd/openssl/dist/NOTES.PERL delete
crypto/external/bsd/openssl/dist/NOTES.UNIX delete
crypto/external/bsd/openssl/dist/NOTES.VMS delete
crypto/external/bsd/openssl/dist/NOTES.WIN delete
crypto/external/bsd/openssl/dist/README delete
crypto/external/bsd/openssl/dist/README.ENGINE delete
crypto/external/bsd/openssl/dist/README.FIPS delete
crypto/external/bsd/openssl/dist/Configurations/README delete
crypto/external/bsd/openssl/dist/Configurations/README.design delete
crypto/external/bsd/openssl/dist/Configurations/common.tmpl delete
crypto/external/bsd/openssl/dist/apps/app_rand.c delete
crypto/external/bsd/openssl/dist/apps/apps.c delete
crypto/external/bsd/openssl/dist/apps/apps.h delete
crypto/external/bsd/openssl/dist/apps/asn1pars.c delete
crypto/external/bsd/openssl/dist/apps/bf_prefix.c delete
crypto/external/bsd/openssl/dist/apps/crl2p7.c delete
crypto/external/bsd/openssl/dist/apps/dh1024.pem delete
crypto/external/bsd/openssl/dist/apps/dh2048.pem delete
crypto/external/bsd/openssl/dist/apps/dh4096.pem delete
crypto/external/bsd/openssl/dist/apps/opt.c delete
crypto/external/bsd/openssl/dist/apps/s_apps.h delete
crypto/external/bsd/openssl/dist/apps/s_cb.c delete
crypto/external/bsd/openssl/dist/apps/s_socket.c delete
crypto/external/bsd/openssl/dist/apps/vms_decc_argv.c delete
crypto/external/bsd/openssl/dist/apps/vms_term_sock.c delete
crypto/external/bsd/openssl/dist/apps/vms_term_sock.h delete
crypto/external/bsd/openssl/dist/apps/win32_init.c delete
crypto/external/bsd/openssl/dist/crypto/mem_dbg.c delete
crypto/external/bsd/openssl/dist/crypto/o_fips.c delete
crypto/external/bsd/openssl/dist/crypto/ppc_arch.h delete
crypto/external/bsd/openssl/dist/crypto/sparc_arch.h delete
crypto/external/bsd/openssl/dist/crypto/asn1/asn1_par.c delete
crypto/external/bsd/openssl/dist/crypto/asn1/i2d_pr.c delete
crypto/external/bsd/openssl/dist/crypto/asn1/i2d_pu.c delete
crypto/external/bsd/openssl/dist/crypto/bio/b_addr.c delete
crypto/external/bsd/openssl/dist/crypto/bio/b_dump.c delete
crypto/external/bsd/openssl/dist/crypto/bio/b_print.c delete
crypto/external/bsd/openssl/dist/crypto/bio/b_sock.c delete
crypto/external/bsd/openssl/dist/crypto/bio/b_sock2.c delete
crypto/external/bsd/openssl/dist/crypto/blake2/blake2_impl.h delete
crypto/external/bsd/openssl/dist/crypto/blake2/blake2_local.h delete
crypto/external/bsd/openssl/dist/crypto/blake2/blake2b.c delete
crypto/external/bsd/openssl/dist/crypto/blake2/blake2s.c delete
crypto/external/bsd/openssl/dist/crypto/blake2/build.info delete
crypto/external/bsd/openssl/dist/crypto/blake2/m_blake2b.c delete
crypto/external/bsd/openssl/dist/crypto/blake2/m_blake2s.c delete
crypto/external/bsd/openssl/dist/crypto/bn/rsa_sup_mul.c delete
crypto/external/bsd/openssl/dist/crypto/cmac/cm_ameth.c delete
crypto/external/bsd/openssl/dist/crypto/cmac/cm_pmeth.c delete
crypto/external/bsd/openssl/dist/crypto/dh/dh1024.pem delete
crypto/external/bsd/openssl/dist/crypto/dh/dh192.pem delete
crypto/external/bsd/openssl/dist/crypto/dh/dh2048.pem delete
crypto/external/bsd/openssl/dist/crypto/dh/dh4096.pem delete
crypto/external/bsd/openssl/dist/crypto/dh/dh512.pem delete
crypto/external/bsd/openssl/dist/crypto/dh/dh_rfc7919.c delete
crypto/external/bsd/openssl/dist/crypto/ec/curve448/arch_32/f_impl.c delete
crypto/external/bsd/openssl/dist/crypto/engine/README delete
crypto/external/bsd/openssl/dist/crypto/engine/eng_devcrypto.c delete
crypto/external/bsd/openssl/dist/crypto/err/README delete
crypto/external/bsd/openssl/dist/crypto/evp/m_md2.c delete
crypto/external/bsd/openssl/dist/crypto/evp/m_md4.c delete
crypto/external/bsd/openssl/dist/crypto/evp/m_md5.c delete
crypto/external/bsd/openssl/dist/crypto/evp/m_md5_sha1.c delete
crypto/external/bsd/openssl/dist/crypto/evp/m_mdc2.c delete
crypto/external/bsd/openssl/dist/crypto/evp/m_ripemd.c delete
crypto/external/bsd/openssl/dist/crypto/evp/m_sha1.c delete
crypto/external/bsd/openssl/dist/crypto/evp/m_sha3.c delete
crypto/external/bsd/openssl/dist/crypto/evp/m_wp.c delete
crypto/external/bsd/openssl/dist/crypto/evp/pmeth_fn.c delete
crypto/external/bsd/openssl/dist/crypto/hmac/hm_ameth.c delete
crypto/external/bsd/openssl/dist/crypto/hmac/hm_pmeth.c delete
crypto/external/bsd/openssl/dist/crypto/kdf/hkdf.c delete
crypto/external/bsd/openssl/dist/crypto/kdf/scrypt.c delete
crypto/external/bsd/openssl/dist/crypto/kdf/tls1_prf.c delete
crypto/external/bsd/openssl/dist/crypto/modes/modes_local.h delete
crypto/external/bsd/openssl/dist/crypto/objects/README delete
crypto/external/bsd/openssl/dist/crypto/ocsp/ocsp_ht.c delete
crypto/external/bsd/openssl/dist/crypto/perlasm/README delete
crypto/external/bsd/openssl/dist/crypto/poly1305/poly1305_ameth.c delete
crypto/external/bsd/openssl/dist/crypto/poly1305/poly1305_local.h delete
crypto/external/bsd/openssl/dist/crypto/poly1305/poly1305_pmeth.c delete
crypto/external/bsd/openssl/dist/crypto/rand/drbg_ctr.c delete
crypto/external/bsd/openssl/dist/crypto/rand/drbg_lib.c delete
crypto/external/bsd/openssl/dist/crypto/rand/rand_unix.c delete
crypto/external/bsd/openssl/dist/crypto/rand/rand_vms.c delete
crypto/external/bsd/openssl/dist/crypto/rand/rand_win.c delete
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_ssl.c delete
crypto/external/bsd/openssl/dist/crypto/siphash/siphash_ameth.c delete
crypto/external/bsd/openssl/dist/crypto/siphash/siphash_local.h delete
crypto/external/bsd/openssl/dist/crypto/siphash/siphash_pmeth.c delete
crypto/external/bsd/openssl/dist/crypto/sm2/sm2_pmeth.c delete
crypto/external/bsd/openssl/dist/crypto/sm3/m_sm3.c delete
crypto/external/bsd/openssl/dist/crypto/store/loader_file.c delete
crypto/external/bsd/openssl/dist/crypto/x509/x509_trs.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/build.info delete
crypto/external/bsd/openssl/dist/crypto/x509v3/ext_dat.h delete
crypto/external/bsd/openssl/dist/crypto/x509v3/pcy_cache.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/pcy_data.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/pcy_lib.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/pcy_local.h delete
crypto/external/bsd/openssl/dist/crypto/x509v3/pcy_map.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/pcy_node.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/pcy_tree.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/standard_exts.h delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_addr.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_admis.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_admis.h delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_akey.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_akeya.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_alt.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_asid.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_bcons.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_bitst.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_conf.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_cpols.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_crld.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_enum.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_extku.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_genn.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_ia5.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_info.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_int.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_lib.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_ncons.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_pci.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_pcia.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_pcons.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_pku.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_pmaps.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_prn.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_purp.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_skey.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_sxnet.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_tlsf.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3_utl.c delete
crypto/external/bsd/openssl/dist/crypto/x509v3/v3err.c delete
crypto/external/bsd/openssl/dist/demos/README delete
crypto/external/bsd/openssl/dist/demos/bio/README delete
crypto/external/bsd/openssl/dist/demos/certs/README delete
crypto/external/bsd/openssl/dist/demos/engines/e_chil.txt delete
crypto/external/bsd/openssl/dist/demos/evp/Makefile delete
crypto/external/bsd/openssl/dist/demos/evp/aesccm.c delete
crypto/external/bsd/openssl/dist/demos/evp/aesgcm.c delete
crypto/external/bsd/openssl/dist/doc/README delete
crypto/external/bsd/openssl/dist/doc/man1/asn1parse.pod delete
crypto/external/bsd/openssl/dist/doc/man1/ca.pod delete
crypto/external/bsd/openssl/dist/doc/man1/ciphers.pod delete
crypto/external/bsd/openssl/dist/doc/man1/cms.pod delete
crypto/external/bsd/openssl/dist/doc/man1/crl.pod delete
crypto/external/bsd/openssl/dist/doc/man1/crl2pkcs7.pod delete
crypto/external/bsd/openssl/dist/doc/man1/dgst.pod delete
crypto/external/bsd/openssl/dist/doc/man1/dhparam.pod delete
crypto/external/bsd/openssl/dist/doc/man1/dsa.pod delete
crypto/external/bsd/openssl/dist/doc/man1/dsaparam.pod delete
crypto/external/bsd/openssl/dist/doc/man1/ec.pod delete
crypto/external/bsd/openssl/dist/doc/man1/ecparam.pod delete
crypto/external/bsd/openssl/dist/doc/man1/enc.pod delete
crypto/external/bsd/openssl/dist/doc/man1/engine.pod delete
crypto/external/bsd/openssl/dist/doc/man1/errstr.pod delete
crypto/external/bsd/openssl/dist/doc/man1/gendsa.pod delete
crypto/external/bsd/openssl/dist/doc/man1/genpkey.pod delete
crypto/external/bsd/openssl/dist/doc/man1/genrsa.pod delete
crypto/external/bsd/openssl/dist/doc/man1/list.pod delete
crypto/external/bsd/openssl/dist/doc/man1/nseq.pod delete
crypto/external/bsd/openssl/dist/doc/man1/ocsp.pod delete
crypto/external/bsd/openssl/dist/doc/man1/passwd.pod delete
crypto/external/bsd/openssl/dist/doc/man1/pkcs12.pod delete
crypto/external/bsd/openssl/dist/doc/man1/pkcs7.pod delete
crypto/external/bsd/openssl/dist/doc/man1/pkcs8.pod delete
crypto/external/bsd/openssl/dist/doc/man1/pkey.pod delete
crypto/external/bsd/openssl/dist/doc/man1/pkeyparam.pod delete
crypto/external/bsd/openssl/dist/doc/man1/pkeyutl.pod delete
crypto/external/bsd/openssl/dist/doc/man1/prime.pod delete
crypto/external/bsd/openssl/dist/doc/man1/rand.pod delete
crypto/external/bsd/openssl/dist/doc/man1/rehash.pod delete
crypto/external/bsd/openssl/dist/doc/man1/req.pod delete
crypto/external/bsd/openssl/dist/doc/man1/rsa.pod delete
crypto/external/bsd/openssl/dist/doc/man1/rsautl.pod delete
crypto/external/bsd/openssl/dist/doc/man1/s_client.pod delete
crypto/external/bsd/openssl/dist/doc/man1/s_server.pod delete
crypto/external/bsd/openssl/dist/doc/man1/s_time.pod delete
crypto/external/bsd/openssl/dist/doc/man1/sess_id.pod delete
crypto/external/bsd/openssl/dist/doc/man1/smime.pod delete
crypto/external/bsd/openssl/dist/doc/man1/speed.pod delete
crypto/external/bsd/openssl/dist/doc/man1/spkac.pod delete
crypto/external/bsd/openssl/dist/doc/man1/srp.pod delete
crypto/external/bsd/openssl/dist/doc/man1/storeutl.pod delete
crypto/external/bsd/openssl/dist/doc/man1/ts.pod delete
crypto/external/bsd/openssl/dist/doc/man1/verify.pod delete
crypto/external/bsd/openssl/dist/doc/man1/version.pod delete
crypto/external/bsd/openssl/dist/doc/man1/x509.pod delete
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_cmp.pod delete
crypto/external/bsd/openssl/dist/doc/man3/EVP_aes.pod delete
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_size.pod delete
crypto/external/bsd/openssl/dist/doc/man3/EVP_aria.pod delete
crypto/external/bsd/openssl/dist/doc/man3/EVP_camellia.pod delete
crypto/external/bsd/openssl/dist/doc/man3/EVP_des.pod delete
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_VERSION_NUMBER.pod delete
crypto/external/bsd/openssl/dist/doc/man3/RAND_DRBG_generate.pod delete
crypto/external/bsd/openssl/dist/doc/man3/RAND_DRBG_get0_master.pod delete
crypto/external/bsd/openssl/dist/doc/man3/RAND_DRBG_new.pod delete
crypto/external/bsd/openssl/dist/doc/man3/RAND_DRBG_reseed.pod delete
crypto/external/bsd/openssl/dist/doc/man3/RAND_DRBG_set_callbacks.pod delete
crypto/external/bsd/openssl/dist/doc/man3/RAND_DRBG_set_ex_data.pod delete
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_ex_data.pod delete
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_get_ex_data.pod delete
crypto/external/bsd/openssl/dist/doc/man3/d2i_DHparams.pod delete
crypto/external/bsd/openssl/dist/doc/man7/Ed25519.pod delete
crypto/external/bsd/openssl/dist/doc/man7/RAND_DRBG.pod delete
crypto/external/bsd/openssl/dist/doc/man7/SM2.pod delete
crypto/external/bsd/openssl/dist/doc/man7/scrypt.pod delete
crypto/external/bsd/openssl/dist/external/perl/transfer/Text/Template.pm delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/lib/Text/Template/Preprocess.pm delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/lib/Text/Template.pm delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/00-version.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/01-basic.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/02-hash.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/03-out.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/04-safe.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/05-safe2.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/06-ofh.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/07-safe3.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/08-exported.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/09-error.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/10-delimiters.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/11-prepend.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/12-preprocess.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/13-taint.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/t/14-broken.t delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/Artistic delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/COPYING delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/INSTALL delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/MANIFEST delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/META.json delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/META.yml delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/Makefile.PL delete
crypto/external/bsd/openssl/dist/external/perl/Text-Template-1.46/README delete
crypto/external/bsd/openssl/dist/fuzz/rand.inc delete
crypto/external/bsd/openssl/dist/include/crypto/sm3.h delete
crypto/external/bsd/openssl/dist/include/internal/o_str.h delete
crypto/external/bsd/openssl/dist/include/openssl/asn1.h delete
crypto/external/bsd/openssl/dist/include/openssl/asn1t.h delete
crypto/external/bsd/openssl/dist/include/openssl/bio.h delete
crypto/external/bsd/openssl/dist/include/openssl/cms.h delete
crypto/external/bsd/openssl/dist/include/openssl/conf.h delete
crypto/external/bsd/openssl/dist/include/openssl/crypto.h delete
crypto/external/bsd/openssl/dist/include/openssl/ct.h delete
crypto/external/bsd/openssl/dist/include/openssl/err.h delete
crypto/external/bsd/openssl/dist/include/openssl/lhash.h delete
crypto/external/bsd/openssl/dist/include/openssl/ocsp.h delete
crypto/external/bsd/openssl/dist/include/openssl/opensslconf.h.in delete
crypto/external/bsd/openssl/dist/include/openssl/opensslv.h delete
crypto/external/bsd/openssl/dist/include/openssl/pkcs12.h delete
crypto/external/bsd/openssl/dist/include/openssl/pkcs7.h delete
crypto/external/bsd/openssl/dist/include/openssl/rand_drbg.h delete
crypto/external/bsd/openssl/dist/include/openssl/safestack.h delete
crypto/external/bsd/openssl/dist/include/openssl/srp.h delete
crypto/external/bsd/openssl/dist/include/openssl/ssl.h delete
crypto/external/bsd/openssl/dist/include/openssl/ui.h delete
crypto/external/bsd/openssl/dist/include/openssl/x509.h delete
crypto/external/bsd/openssl/dist/include/openssl/x509_vfy.h delete
crypto/external/bsd/openssl/dist/include/openssl/x509v3.h delete
crypto/external/bsd/openssl/dist/ssl/record/README delete
crypto/external/bsd/openssl/dist/ssl/packet.c delete
crypto/external/bsd/openssl/dist/ssl/packet_local.h delete
crypto/external/bsd/openssl/dist/ssl/statem/README delete
crypto/external/bsd/openssl/dist/test/CAss.cnf delete
crypto/external/bsd/openssl/dist/test/CAssdh.cnf delete
crypto/external/bsd/openssl/dist/test/CAssdsa.cnf delete
crypto/external/bsd/openssl/dist/test/CAssrsa.cnf delete
crypto/external/bsd/openssl/dist/test/P1ss.cnf delete
crypto/external/bsd/openssl/dist/test/P2ss.cnf delete
crypto/external/bsd/openssl/dist/test/README delete
crypto/external/bsd/openssl/dist/test/README.external delete
crypto/external/bsd/openssl/dist/test/Sssdsa.cnf delete
crypto/external/bsd/openssl/dist/test/Sssrsa.cnf delete
crypto/external/bsd/openssl/dist/test/Uss.cnf delete
crypto/external/bsd/openssl/dist/test/drbg_cavs_data.c delete
crypto/external/bsd/openssl/dist/test/drbg_cavs_data.h delete
crypto/external/bsd/openssl/dist/test/drbg_cavs_test.c delete
crypto/external/bsd/openssl/dist/test/drbgtest.h delete
crypto/external/bsd/openssl/dist/test/evp_test.h delete
crypto/external/bsd/openssl/dist/test/gosttest.c delete
crypto/external/bsd/openssl/dist/test/handshake_helper.c delete
crypto/external/bsd/openssl/dist/test/handshake_helper.h delete
crypto/external/bsd/openssl/dist/test/md2test.c delete
crypto/external/bsd/openssl/dist/test/ct/log_list.conf delete
crypto/external/bsd/openssl/dist/test/ssl_test_ctx.c delete
crypto/external/bsd/openssl/dist/test/ssl_test_ctx.h delete
crypto/external/bsd/openssl/dist/test/ssl_test_ctx_test.conf delete
crypto/external/bsd/openssl/dist/test/ssltest_old.c delete
crypto/external/bsd/openssl/dist/test/ssltestlib.c delete
crypto/external/bsd/openssl/dist/test/ssltestlib.h delete
crypto/external/bsd/openssl/dist/test/ossl_shim/include/openssl/base.h delete
crypto/external/bsd/openssl/dist/test/ossl_shim/async_bio.cc delete
crypto/external/bsd/openssl/dist/test/ossl_shim/async_bio.h delete
crypto/external/bsd/openssl/dist/test/ossl_shim/build.info delete
crypto/external/bsd/openssl/dist/test/ossl_shim/ossl_config.json delete
crypto/external/bsd/openssl/dist/test/ossl_shim/ossl_shim.cc delete
crypto/external/bsd/openssl/dist/test/ossl_shim/packeted_bio.cc delete
crypto/external/bsd/openssl/dist/test/ossl_shim/packeted_bio.h delete
crypto/external/bsd/openssl/dist/test/ossl_shim/test_config.cc delete
crypto/external/bsd/openssl/dist/test/ossl_shim/test_config.h delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem.t delete
crypto/external/bsd/openssl/dist/test/recipes/05-test_md2.t delete
crypto/external/bsd/openssl/dist/test/recipes/05-test_mdc2.t delete
crypto/external/bsd/openssl/dist/test/recipes/06-test-rdrand.t delete
crypto/external/bsd/openssl/dist/test/recipes/90-test_gost.t delete
crypto/external/bsd/openssl/dist/test/recipes/95-test_external_boringssl.t delete
crypto/external/bsd/openssl/dist/test/recipes/99-test_fuzz.t delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/beermug.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/NOTES delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-1023line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-1024line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-1025line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-254-chars-at-the-end.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-254-chars-in-the-middle.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-255line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-256line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-257line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-blankline.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-comment.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-earlypad.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-extrapad.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-infixwhitespace.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/csr.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-junk.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-leadingwhitespace.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-longline.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-misalignedpad.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-onecolumn.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-oneline-multiple-of-254.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-oneline.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-shortandlongline.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-shortline.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-threecolumn.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert-trailingwhitespace.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/cert.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-1023line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-1024line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-1025line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-255line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-256line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-257line.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-blankline.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-comment.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-corruptedheader.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-corruptiv.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-earlypad.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-extrapad.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-infixwhitespace.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-junk.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-leadingwhitespace.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-longline.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-misalignedpad.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-onecolumn.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-oneline.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-onelineheader.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-shortandlongline.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-shortline.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-threecolumn.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsa-trailingwhitespace.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/dsaparam.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/key.pem delete
crypto/external/bsd/openssl/dist/test/recipes/04-test_pem_data/wellknown delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/c2pnb163v1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/c2pnb208w1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/secp160k1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/secp192k1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/secp224k1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/secp256k1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/secp521r1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect113r1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect113r2-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect163k1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect163r2-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect193r1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect193r2-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect233k1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect233r1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect239k1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect283k1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect283r1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect409k1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect409r1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect571k1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/sect571r1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/wap-wsg-idm-ecid-wtls1-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/wap-wsg-idm-ecid-wtls10-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/wap-wsg-idm-ecid-wtls11-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/wap-wsg-idm-ecid-wtls3-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/wap-wsg-idm-ecid-wtls4-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/wap-wsg-idm-ecid-wtls5-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/wap-wsg-idm-ecid-wtls8-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam_data/valid/wap-wsg-idm-ecid-wtls9-explicit.pem delete
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpcase.txt delete
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpccmcavs.txt delete
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph.txt delete
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpdigest.txt delete
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf.txt delete
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpmac.txt delete
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppbe.txt delete
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey.txt delete
crypto/external/bsd/openssl/dist/test/recipes/90-test_gost_data/gost.conf delete
crypto/external/bsd/openssl/dist/test/recipes/90-test_store_data/user.cnf delete
crypto/external/bsd/openssl/dist/test/recipes/90-test_store_data/ca.cnf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/01-simple.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/01-simple.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/02-protocol-version.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/02-protocol-version.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/03-custom_verify.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/03-custom_verify.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/04-client_auth.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/04-client_auth.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/05-sni.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/05-sni.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/06-sni-ticket.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/06-sni-ticket.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/07-dtls-protocol-version.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/07-dtls-protocol-version.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/08-npn.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/08-npn.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/09-alpn.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/09-alpn.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/10-resumption.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/10-resumption.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/11-dtls_resumption.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/11-dtls_resumption.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/12-ct.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/12-ct.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/13-fragmentation.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/13-fragmentation.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/14-curves.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/14-curves.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/15-certstatus.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/15-certstatus.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/16-dtls-certstatus.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/16-dtls-certstatus.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/17-renegotiate.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/17-renegotiate.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/18-dtls-renegotiate.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/18-dtls-renegotiate.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/19-mac-then-encrypt.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/19-mac-then-encrypt.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/20-cert-select.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/20-cert-select.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/21-key-update.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/21-key-update.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/22-compression.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/22-compression.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/23-srp.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/23-srp.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/24-padding.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/24-padding.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/25-cipher.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/25-cipher.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/26-tls13_client_auth.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/26-tls13_client_auth.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/27-ticket-appdata.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/27-ticket-appdata.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/28-seclevel.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/28-seclevel.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/29-dtls-sctp-label-bug.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/29-dtls-sctp-label-bug.conf.in delete
crypto/external/bsd/openssl/dist/test/ssl-tests/30-supported-groups.conf delete
crypto/external/bsd/openssl/dist/test/ssl-tests/30-supported-groups.conf.in delete
crypto/external/bsd/openssl/dist/test/testutil/output_helpers.c delete
crypto/external/bsd/openssl/dist/test/testutil/tap_bio.c delete
crypto/external/bsd/openssl/dist/util/openssl-format-source delete
crypto/external/bsd/openssl/dist/util/openssl-update-copyright delete
crypto/external/bsd/openssl/dist/util/private.num delete
crypto/external/bsd/openssl/dist/util/process_docs.pl delete
crypto/external/bsd/openssl/dist/util/perl/with_fallback.pm delete
crypto/external/bsd/openssl/include/internal/bn_conf.h delete
crypto/external/bsd/openssl/include/internal/dso_conf.h delete
crypto/external/bsd/openssl/include/openssl/opensslconf.h delete
crypto/external/bsd/openssl/bin/Makefile up to 1.12
crypto/external/bsd/openssl/dist/Configure up to 1.33
crypto/external/bsd/openssl/dist/appveyor.yml up to 1.1.1.7
crypto/external/bsd/openssl/dist/build.info up to 1.1.1.4
crypto/external/bsd/openssl/dist/config up to 1.1.1.15
crypto/external/bsd/openssl/dist/config.com up to 1.1.1.3
crypto/external/bsd/openssl/dist/e_os.h up to 1.18
crypto/external/bsd/openssl/dist/Configurations/00-base-templates.conf up to 1.1.1.6
crypto/external/bsd/openssl/dist/Configurations/10-main.conf up to 1.1.1.14
crypto/external/bsd/openssl/dist/Configurations/15-android.conf up to 1.1.1.6
crypto/external/bsd/openssl/dist/Configurations/15-ios.conf up to 1.1.1.4
crypto/external/bsd/openssl/dist/Configurations/50-djgpp.conf up to 1.1.1.3
crypto/external/bsd/openssl/dist/Configurations/50-haiku.conf up to 1.1.1.3
crypto/external/bsd/openssl/dist/Configurations/50-masm.conf up to 1.1.1.3
crypto/external/bsd/openssl/dist/Configurations/50-win-onecore.conf up to 1.1.1.5
crypto/external/bsd/openssl/dist/Configurations/descrip.mms.tmpl up to 1.1.1.10
crypto/external/bsd/openssl/dist/Configurations/shared-info.pl up to 1.1.1.2
crypto/external/bsd/openssl/dist/Configurations/unix-Makefile.tmpl up to 1.1.1.14
crypto/external/bsd/openssl/dist/Configurations/unix-checker.pm up to 1.1.1.2
crypto/external/bsd/openssl/dist/Configurations/windows-checker.pm up to 1.1.1.3
crypto/external/bsd/openssl/dist/Configurations/windows-makefile.tmpl up to 1.1.1.10
crypto/external/bsd/openssl/dist/VMS/VMSify-conf.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/VMS/openssl_ivp.com.in up to 1.1.1.2
crypto/external/bsd/openssl/dist/VMS/openssl_shutdown.com.in up to 1.1.1.3
crypto/external/bsd/openssl/dist/VMS/openssl_startup.com.in up to 1.1.1.3
crypto/external/bsd/openssl/dist/VMS/openssl_utils.com.in up to 1.1.1.2
crypto/external/bsd/openssl/dist/VMS/translatesyms.pl up to 1.1.1.2
crypto/external/bsd/openssl/dist/apps/CA.pl.in up to 1.1.1.6
crypto/external/bsd/openssl/dist/apps/build.info up to 1.1.1.4
crypto/external/bsd/openssl/dist/apps/ca.c up to 1.23
crypto/external/bsd/openssl/dist/apps/ciphers.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/apps/cms.c up to 1.1.1.16
crypto/external/bsd/openssl/dist/apps/crl.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/apps/dgst.c up to 1.1.1.18
crypto/external/bsd/openssl/dist/apps/dhparam.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/apps/dsa.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/apps/dsaparam.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/apps/ec.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/apps/ecparam.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/apps/enc.c up to 1.1.1.19
crypto/external/bsd/openssl/dist/apps/engine.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/apps/errstr.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/apps/gendsa.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/apps/genpkey.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/apps/genrsa.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/apps/nseq.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/apps/ocsp.c up to 1.24
crypto/external/bsd/openssl/dist/apps/openssl-vms.cnf up to 1.1.1.9
crypto/external/bsd/openssl/dist/apps/openssl.c up to 1.8
crypto/external/bsd/openssl/dist/apps/openssl.cnf up to 1.11
crypto/external/bsd/openssl/dist/apps/passwd.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/apps/pkcs12.c up to 1.1.1.17
crypto/external/bsd/openssl/dist/apps/pkcs7.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/apps/pkcs8.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/apps/pkey.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/apps/pkeyparam.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/apps/pkeyutl.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/apps/prime.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/apps/progs.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/apps/rand.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/apps/rehash.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/apps/req.c up to 1.5
crypto/external/bsd/openssl/dist/apps/rsa.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/apps/rsautl.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/apps/s_client.c up to 1.27
crypto/external/bsd/openssl/dist/apps/s_server.c up to 1.28
crypto/external/bsd/openssl/dist/apps/s_time.c up to 1.13
crypto/external/bsd/openssl/dist/apps/sess_id.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/apps/smime.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/apps/speed.c up to 1.22
crypto/external/bsd/openssl/dist/apps/spkac.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/apps/srp.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/apps/storeutl.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/apps/testdsa.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/apps/testrsa.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/apps/timeouts.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/apps/ts.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/apps/tsget.in up to 1.1.1.3
crypto/external/bsd/openssl/dist/apps/verify.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/apps/version.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/apps/vms_decc_init.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/apps/x509.c up to 1.1.1.18
crypto/external/bsd/openssl/dist/crypto/LPdir_nyi.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/LPdir_unix.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/LPdir_vms.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/LPdir_win.c up to 1.7
crypto/external/bsd/openssl/dist/crypto/LPdir_win32.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/LPdir_wince.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/alphacpuid.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/arm64cpuid.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/arm_arch.h up to 1.9
crypto/external/bsd/openssl/dist/crypto/armcap.c up to 1.15
crypto/external/bsd/openssl/dist/crypto/armv4cpuid.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/build.info up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/c64xpluscpuid.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/cpt_err.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/cryptlib.c up to 1.16
crypto/external/bsd/openssl/dist/crypto/ctype.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/cversion.c up to 1.7
crypto/external/bsd/openssl/dist/crypto/dllmain.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ebcdic.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/ex_data.c up to 1.8
crypto/external/bsd/openssl/dist/crypto/getenv.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ia64cpuid.S up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/init.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/mem.c up to 1.13
crypto/external/bsd/openssl/dist/crypto/mem_clr.c up to 1.9
crypto/external/bsd/openssl/dist/crypto/mem_sec.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/mips_arch.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/o_dir.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/o_fopen.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/o_init.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/o_str.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/o_time.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/pariscid.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/ppccap.c up to 1.21
crypto/external/bsd/openssl/dist/crypto/ppccpuid.pl up to 1.10
crypto/external/bsd/openssl/dist/crypto/s390x_arch.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/s390xcap.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/s390xcpuid.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sparccpuid.S up to 1.10
crypto/external/bsd/openssl/dist/crypto/sparcv9cap.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/threads_none.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/threads_pthread.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/threads_win.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/uid.c up to 1.9
crypto/external/bsd/openssl/dist/crypto/vms_rms.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/x86_64cpuid.pl up to 1.10
crypto/external/bsd/openssl/dist/crypto/x86cpuid.pl up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/aes/aes_cbc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/aes/aes_cfb.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/aes/aes_core.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/aes/aes_ecb.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/aes/aes_ige.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/aes/aes_local.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/aes/aes_misc.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/aes/aes_ofb.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/aes/aes_wrap.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/aes/aes_x86core.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/aes/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/aes/asm/aes-armv4.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/aes/asm/aes-c64xplus.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/aes/asm/aes-ia64.S up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/aes/asm/aes-mips.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/aes/asm/aes-parisc.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/aes/asm/aes-ppc.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/aes/asm/aes-s390x.pl up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/aes/asm/aes-sparcv9.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/aes/asm/aesfx-sparcv9.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/aes/asm/aesni-mb-x86_64.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/aes/asm/aesni-sha1-x86_64.pl up to 1.8
crypto/external/bsd/openssl/dist/crypto/aes/asm/aesni-sha256-x86_64.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/aes/asm/aesni-x86.pl up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/aes/asm/aesni-x86_64.pl up to 1.8
crypto/external/bsd/openssl/dist/crypto/aes/asm/aesp8-ppc.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/aes/asm/aest4-sparcv9.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/aes/asm/aesv8-armx.pl up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/aes/asm/bsaes-armv7.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/aes/asm/vpaes-armv8.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/aes/asm/vpaes-ppc.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/aes/asm/vpaes-x86.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/aes/asm/vpaes-x86_64.pl up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/aria/aria.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/asn1/a_bitstr.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/asn1/a_d2i_fp.c up to 1.8
crypto/external/bsd/openssl/dist/crypto/asn1/a_digest.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/asn1/a_dup.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/asn1/a_gentm.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/asn1/a_i2d_fp.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/asn1/a_int.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/asn1/a_mbstr.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/asn1/a_object.c up to 1.1.1.14
crypto/external/bsd/openssl/dist/crypto/asn1/a_octet.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/asn1/a_print.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/asn1/a_sign.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/asn1/a_strex.c up to 1.11
crypto/external/bsd/openssl/dist/crypto/asn1/a_strnid.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/asn1/a_time.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/asn1/a_type.c up to 1.9
crypto/external/bsd/openssl/dist/crypto/asn1/a_utctm.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/asn1/a_utf8.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/asn1/a_verify.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/asn1/ameth_lib.c up to 1.1.1.14
crypto/external/bsd/openssl/dist/crypto/asn1/asn1_err.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/asn1/asn1_gen.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/asn1/asn1_item_list.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/asn1/asn1_item_list.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/asn1/asn1_lib.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/asn1/asn1_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/asn1/asn_mime.c up to 1.14
crypto/external/bsd/openssl/dist/crypto/asn1/asn_moid.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/asn1/asn_mstbl.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/asn1/asn_pack.c up to 1.5
crypto/external/bsd/openssl/dist/crypto/asn1/bio_asn1.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/asn1/bio_ndef.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/asn1/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/asn1/charmap.h up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/asn1/charmap.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/asn1/d2i_pr.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/asn1/d2i_pu.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/asn1/evp_asn1.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/asn1/f_int.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/asn1/f_string.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/asn1/n_pkey.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/asn1/nsseq.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/asn1/p5_pbe.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/asn1/p5_pbev2.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/asn1/p5_scrypt.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/asn1/p8_pkey.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/asn1/standard_methods.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/asn1/t_bitst.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/asn1/t_pkey.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/asn1/t_spki.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/asn1/tasn_dec.c up to 1.12
crypto/external/bsd/openssl/dist/crypto/asn1/tasn_enc.c up to 1.12
crypto/external/bsd/openssl/dist/crypto/asn1/tasn_fre.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/asn1/tasn_new.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/asn1/tasn_prn.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/asn1/tasn_scn.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/asn1/tasn_typ.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/asn1/tasn_utl.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/asn1/tbl_standard.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/asn1/x_algor.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/asn1/x_bignum.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/asn1/x_info.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/asn1/x_int64.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/asn1/x_long.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/asn1/x_pkey.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/asn1/x_sig.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/asn1/x_spki.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/asn1/x_val.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/async/async.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/async/async_err.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/async/async_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/async/async_wait.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/async/arch/async_null.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/async/arch/async_null.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/async/arch/async_posix.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/async/arch/async_posix.h up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/async/arch/async_win.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/async/arch/async_win.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/bf/bf_cfb64.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/bf/bf_ecb.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bf/bf_enc.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bf/bf_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/bf/bf_ofb64.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/bf/bf_pi.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/bf/bf_skey.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bf/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/bf/asm/bf-586.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/bio/bf_buff.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bio/bf_lbuf.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/bio/bf_nbio.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/bio/bf_null.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/bio/bio_cb.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/bio/bio_err.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bio/bio_lib.c up to 1.9
crypto/external/bsd/openssl/dist/crypto/bio/bio_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/bio/bio_meth.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bio/bss_acpt.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/bio/bss_bio.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/bio/bss_conn.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/bio/bss_dgram.c up to 1.1.1.20
crypto/external/bsd/openssl/dist/crypto/bio/bss_fd.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bio/bss_file.c up to 1.14
crypto/external/bsd/openssl/dist/crypto/bio/bss_log.c up to 1.14
crypto/external/bsd/openssl/dist/crypto/bio/bss_mem.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/bio/bss_null.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/bio/bss_sock.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bio/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/bn/README.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/bn/bn_add.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/bn/bn_asm.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/bn/bn_blind.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/bn/bn_const.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/bn/bn_ctx.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/bn/bn_depr.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/bn_dh.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/bn/bn_div.c up to 1.1.1.16
crypto/external/bsd/openssl/dist/crypto/bn/bn_err.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/bn/bn_exp.c up to 1.22
crypto/external/bsd/openssl/dist/crypto/bn/bn_exp2.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bn/bn_gcd.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/bn/bn_gf2m.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/bn/bn_intern.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/bn/bn_kron.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/bn/bn_lib.c up to 1.17
crypto/external/bsd/openssl/dist/crypto/bn/bn_local.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/bn/bn_mod.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/bn/bn_mont.c up to 1.14
crypto/external/bsd/openssl/dist/crypto/bn/bn_mpi.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/bn_mul.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/bn/bn_nist.c up to 1.9
crypto/external/bsd/openssl/dist/crypto/bn/bn_prime.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/bn/bn_prime.h up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/bn/bn_prime.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/bn_print.c up to 1.5
crypto/external/bsd/openssl/dist/crypto/bn/bn_rand.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/bn/bn_recp.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bn/bn_shift.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/bn/bn_sqr.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/bn/bn_sqrt.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bn/bn_srp.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/bn/bn_word.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bn/bn_x931p.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/bn/build.info up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/rsaz_exp.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/bn/rsaz_exp.h up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/asm/alpha-mont.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bn/asm/armv4-gf2m.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/bn/asm/armv4-mont.pl up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/bn/asm/armv8-mont.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/bn/asm/bn-586.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/bn/asm/bn-c64xplus.asm up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/bn/asm/c64xplus-gf2m.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/bn/asm/co-586.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/bn/asm/ia64-mont.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/asm/ia64.S up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/asm/mips-mont.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bn/asm/mips.pl up to 1.11
crypto/external/bsd/openssl/dist/crypto/bn/asm/parisc-mont.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/bn/asm/ppc-mont.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bn/asm/ppc.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bn/asm/ppc64-mont.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bn/asm/rsaz-avx2.pl up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/bn/asm/rsaz-x86_64.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/asm/s390x-gf2m.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/asm/s390x-mont.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/bn/asm/s390x.S up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/asm/sparct4-mont.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/asm/sparcv8.S up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/bn/asm/sparcv8plus.S up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/bn/asm/sparcv9-gf2m.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/bn/asm/sparcv9-mont.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/asm/sparcv9a-mont.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/bn/asm/via-mont.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/asm/vis3-mont.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/asm/x86-gf2m.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/bn/asm/x86-mont.pl up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/bn/asm/x86_64-gcc.c up to 1.13
crypto/external/bsd/openssl/dist/crypto/bn/asm/x86_64-gf2m.pl up to 1.11
crypto/external/bsd/openssl/dist/crypto/bn/asm/x86_64-mont.pl up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/bn/asm/x86_64-mont5.pl up to 1.1.1.15
crypto/external/bsd/openssl/dist/crypto/buffer/buf_err.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/buffer/buffer.c up to 1.9
crypto/external/bsd/openssl/dist/crypto/buffer/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/camellia/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/camellia/camellia.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/camellia/cmll_cbc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/camellia/cmll_cfb.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/camellia/cmll_ctr.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/camellia/cmll_ecb.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/camellia/cmll_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/camellia/cmll_misc.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/camellia/cmll_ofb.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/camellia/asm/cmll-x86.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/camellia/asm/cmll-x86_64.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/camellia/asm/cmllt4-sparcv9.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/cast/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/cast/c_cfb64.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/cast/c_ecb.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/cast/c_enc.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/cast/c_ofb64.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/cast/c_skey.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/cast/cast_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cast/cast_s.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/cast/asm/cast-586.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/chacha/build.info up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/chacha/chacha_enc.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/chacha/asm/chacha-armv4.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/chacha/asm/chacha-armv8.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/chacha/asm/chacha-c64xplus.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/chacha/asm/chacha-ppc.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/chacha/asm/chacha-s390x.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/chacha/asm/chacha-x86.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/chacha/asm/chacha-x86_64.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/cmac/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cmac/cmac.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/cms/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cms/cms_asn1.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/cms/cms_att.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/cms/cms_cd.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/cms/cms_dd.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/cms/cms_enc.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/cms/cms_env.c up to 1.1.1.15
crypto/external/bsd/openssl/dist/crypto/cms/cms_err.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/cms/cms_ess.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/cms/cms_io.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/cms/cms_kari.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/cms/cms_lib.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/cms/cms_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/cms/cms_pwri.c up to 1.13
crypto/external/bsd/openssl/dist/crypto/cms/cms_sd.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/cms/cms_smime.c up to 1.1.1.16
crypto/external/bsd/openssl/dist/crypto/comp/c_zlib.c up to 1.10
crypto/external/bsd/openssl/dist/crypto/comp/comp_err.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/comp/comp_lib.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/comp/comp_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/conf/conf_api.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/conf/conf_def.c up to 1.15
crypto/external/bsd/openssl/dist/crypto/conf/conf_def.h up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/conf/conf_err.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/conf/conf_lib.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/conf/conf_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/conf/conf_mall.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/conf/conf_mod.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/conf/conf_sap.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/conf/conf_ssl.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/conf/keysets.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/ct/ct_b64.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ct/ct_err.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ct/ct_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ct/ct_log.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ct/ct_oct.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ct/ct_policy.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ct/ct_prn.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ct/ct_sct.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ct/ct_sct_ctx.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ct/ct_vfy.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ct/ct_x509v3.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/des/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/des/cbc_cksm.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/des/cbc_enc.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/des/cfb64ede.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/des/cfb64enc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/des/cfb_enc.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/des/des_enc.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/des/des_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/des/ecb3_enc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/des/ecb_enc.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/des/fcrypt.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/des/fcrypt_b.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/des/ncbc_enc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/des/ofb64ede.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/des/ofb64enc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/des/ofb_enc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/des/pcbc_enc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/des/qud_cksm.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/des/rand_key.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/des/set_key.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/des/spr.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/des/str2key.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/des/xcbc_enc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/des/asm/crypt586.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/des/asm/des-586.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/des/asm/des_enc.m4 up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/des/asm/desboth.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/des/asm/dest4-sparcv9.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/dh/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/dh/dh_ameth.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/dh/dh_asn1.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/dh/dh_check.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/dh/dh_depr.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/dh/dh_err.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/dh/dh_gen.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/dh/dh_kdf.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/dh/dh_key.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/dh/dh_lib.c up to 1.7
crypto/external/bsd/openssl/dist/crypto/dh/dh_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/dh/dh_meth.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/dh/dh_pmeth.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/dh/dh_prn.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/dh/dh_rfc5114.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/dsa/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_ameth.c up to 1.12
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_asn1.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_depr.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_err.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_gen.c up to 1.1.1.14
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_key.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_lib.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_meth.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_ossl.c up to 1.1.1.15
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_pmeth.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_prn.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_sign.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/dsa/dsa_vrf.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/dso/dso_dl.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/dso/dso_dlfcn.c up to 1.17
crypto/external/bsd/openssl/dist/crypto/dso/dso_err.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/dso/dso_lib.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/dso/dso_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/dso/dso_openssl.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/dso/dso_vms.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/dso/dso_win32.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/ec/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/curve25519.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/ec/ec2_oct.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/ec/ec2_smpl.c up to 1.11
crypto/external/bsd/openssl/dist/crypto/ec/ec_ameth.c up to 1.13
crypto/external/bsd/openssl/dist/crypto/ec/ec_asn1.c up to 1.14
crypto/external/bsd/openssl/dist/crypto/ec/ec_check.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/ec/ec_curve.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/ec/ec_cvt.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/ec/ec_err.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/ec/ec_key.c up to 1.8
crypto/external/bsd/openssl/dist/crypto/ec/ec_kmeth.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ec/ec_lib.c up to 1.11
crypto/external/bsd/openssl/dist/crypto/ec/ec_local.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/ec_mult.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/ec/ec_oct.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/ec/ec_pmeth.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/ec/ec_print.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/ec/ecdh_kdf.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ec/ecdh_ossl.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/ec/ecdsa_ossl.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/ec/ecdsa_sign.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/ecdsa_vrf.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/eck_prn.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/ec/ecp_mont.c up to 1.8
crypto/external/bsd/openssl/dist/crypto/ec/ecp_nist.c up to 1.8
crypto/external/bsd/openssl/dist/crypto/ec/ecp_nistp224.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/ec/ecp_nistp256.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/ec/ecp_nistp521.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/ec/ecp_nistputil.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/ec/ecp_nistz256.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/ec/ecp_nistz256_table.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/ecp_oct.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/ec/ecp_smpl.c up to 1.13
crypto/external/bsd/openssl/dist/crypto/ec/ecx_meth.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/ec/asm/ecp_nistz256-armv4.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/ec/asm/ecp_nistz256-armv8.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/ec/asm/ecp_nistz256-ppc64.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/asm/ecp_nistz256-sparcv9.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/ec/asm/ecp_nistz256-x86.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ec/asm/ecp_nistz256-x86_64.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/ec/asm/x25519-ppc64.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ec/asm/x25519-x86_64.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ec/curve448/curve448.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ec/curve448/curve448_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ec/curve448/curve448_tables.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/curve448/curve448utils.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ec/curve448/ed448.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/curve448/eddsa.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ec/curve448/f_generic.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/curve448/field.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ec/curve448/point_448.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ec/curve448/scalar.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/curve448/word.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/curve448/arch_32/arch_intrinsics.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ec/curve448/arch_32/f_impl.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/engine/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/engine/eng_all.c up to 1.15
crypto/external/bsd/openssl/dist/crypto/engine/eng_cnf.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/engine/eng_ctrl.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/engine/eng_dyn.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/engine/eng_err.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/engine/eng_fat.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/engine/eng_init.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/engine/eng_lib.c up to 1.11
crypto/external/bsd/openssl/dist/crypto/engine/eng_list.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/engine/eng_local.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/engine/eng_openssl.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/engine/eng_pkey.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/engine/eng_rdrand.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/engine/eng_table.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/engine/tb_asnmth.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/engine/tb_cipher.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/engine/tb_dh.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/engine/tb_digest.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/engine/tb_dsa.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/engine/tb_eckey.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/engine/tb_pkmeth.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/engine/tb_rand.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/engine/tb_rsa.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/err/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/err/err.c up to 1.1.1.15
crypto/external/bsd/openssl/dist/crypto/err/err_all.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/err/err_prn.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/err/openssl.ec up to 1.7
crypto/external/bsd/openssl/dist/crypto/err/openssl.txt up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/evp/bio_b64.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/evp/bio_enc.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/evp/bio_md.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/evp/bio_ok.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/evp/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/evp/c_allc.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/evp/c_alld.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/evp/cmeth_lib.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/evp/digest.c up to 1.1.1.15
crypto/external/bsd/openssl/dist/crypto/evp/e_aes.c up to 1.26
crypto/external/bsd/openssl/dist/crypto/evp/e_aes_cbc_hmac_sha1.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/evp/e_aes_cbc_hmac_sha256.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/evp/e_aria.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/evp/e_bf.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/evp/e_camellia.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/evp/e_cast.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/evp/e_chacha20_poly1305.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/evp/e_des.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/evp/e_des3.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/evp/e_idea.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/evp/e_null.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/evp/e_old.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/evp/e_rc2.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/evp/e_rc4.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/evp/e_rc4_hmac_md5.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/evp/e_rc5.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/evp/e_seed.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/evp/e_sm4.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/evp/e_xcbc_d.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/evp/encode.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/evp/evp_cnf.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/evp/evp_enc.c up to 1.16
crypto/external/bsd/openssl/dist/crypto/evp/evp_err.c up to 1.1.1.17
crypto/external/bsd/openssl/dist/crypto/evp/evp_key.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/evp/evp_lib.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/evp/evp_local.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/evp/evp_pbe.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/evp/evp_pkey.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/evp/m_null.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/evp/m_sigver.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/evp/names.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/evp/p5_crpt.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/evp/p5_crpt2.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/evp/p_dec.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/evp/p_enc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/evp/p_lib.c up to 1.1.1.14
crypto/external/bsd/openssl/dist/crypto/evp/p_open.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/evp/p_seal.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/evp/p_sign.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/evp/p_verify.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/evp/pbe_scrypt.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/evp/pmeth_gn.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/evp/pmeth_lib.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/hmac/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/hmac/hmac.c up to 1.9
crypto/external/bsd/openssl/dist/crypto/hmac/hmac_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/idea/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/idea/i_cbc.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/idea/i_cfb64.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/idea/i_ecb.c up to 1.7
crypto/external/bsd/openssl/dist/crypto/idea/i_ofb64.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/idea/i_skey.c up to 1.9
crypto/external/bsd/openssl/dist/crypto/idea/idea_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/kdf/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/kdf/kdf_err.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/lhash/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/lhash/lh_stats.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/lhash/lhash.c up to 1.11
crypto/external/bsd/openssl/dist/crypto/lhash/lhash_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/md2/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/md2/md2_dgst.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/md2/md2_one.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/md4/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/md4/md4_dgst.c up to 1.10
crypto/external/bsd/openssl/dist/crypto/md4/md4_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/md4/md4_one.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/md5/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/md5/md5_dgst.c up to 1.8
crypto/external/bsd/openssl/dist/crypto/md5/md5_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/md5/md5_one.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/md5/asm/md5-586.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/md5/asm/md5-sparcv9.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/md5/asm/md5-x86_64.pl up to 1.6
crypto/external/bsd/openssl/dist/crypto/mdc2/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/mdc2/mdc2_one.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/mdc2/mdc2dgst.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/modes/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/modes/cbc128.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/modes/ccm128.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/modes/cfb128.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/modes/ctr128.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/modes/cts128.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/modes/gcm128.c up to 1.13
crypto/external/bsd/openssl/dist/crypto/modes/ocb128.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/modes/ofb128.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/modes/wrap128.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/modes/xts128.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/modes/asm/aesni-gcm-x86_64.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/modes/asm/ghash-alpha.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/modes/asm/ghash-armv4.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/modes/asm/ghash-c64xplus.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/modes/asm/ghash-ia64.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/modes/asm/ghash-parisc.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/modes/asm/ghash-s390x.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/modes/asm/ghash-sparcv9.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/modes/asm/ghash-x86.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/modes/asm/ghash-x86_64.pl up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/modes/asm/ghashp8-ppc.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/modes/asm/ghashv8-armx.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/objects/o_names.c up to 1.11
crypto/external/bsd/openssl/dist/crypto/objects/obj_dat.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/objects/obj_dat.h up to 1.1.1.14
crypto/external/bsd/openssl/dist/crypto/objects/obj_dat.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/objects/obj_err.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/objects/obj_lib.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/objects/obj_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/objects/obj_mac.num up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/objects/obj_xref.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/objects/obj_xref.h up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/objects/obj_xref.txt up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/objects/objects.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/objects/objects.txt up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/objects/objxref.pl up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/ocsp/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ocsp/ocsp_asn.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ocsp/ocsp_cl.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/ocsp/ocsp_err.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ocsp/ocsp_ext.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/ocsp/ocsp_lib.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/ocsp/ocsp_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ocsp/ocsp_prn.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/ocsp/ocsp_srv.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/ocsp/ocsp_vfy.c up to 1.8
crypto/external/bsd/openssl/dist/crypto/ocsp/v3_ocsp.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/pem/pem_all.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/pem/pem_err.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/pem/pem_info.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/pem/pem_lib.c up to 1.1.1.17
crypto/external/bsd/openssl/dist/crypto/pem/pem_oth.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/pem/pem_pk8.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/pem/pem_pkey.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/pem/pem_sign.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/pem/pem_x509.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/pem/pem_xaux.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/pem/pvkfmt.c up to 1.1.1.16
crypto/external/bsd/openssl/dist/crypto/perlasm/arm-xlate.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/perlasm/cbc.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/perlasm/ppc-xlate.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/perlasm/sparcv9_modes.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/perlasm/x86_64-xlate.pl up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/perlasm/x86asm.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/perlasm/x86gas.pl up to 1.7
crypto/external/bsd/openssl/dist/crypto/perlasm/x86masm.pl up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/perlasm/x86nasm.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_add.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_asn.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_attr.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_crpt.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_crt.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_decr.c up to 1.7
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_init.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_key.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_kiss.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_mutl.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_npas.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_p8d.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_p8e.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_sbag.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_utl.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/pkcs12/pk12err.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/pkcs7/bio_pk7.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/pkcs7/pk7_asn1.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/pkcs7/pk7_attr.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/pkcs7/pk7_doit.c up to 1.11
crypto/external/bsd/openssl/dist/crypto/pkcs7/pk7_lib.c up to 1.7
crypto/external/bsd/openssl/dist/crypto/pkcs7/pk7_mime.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/pkcs7/pk7_smime.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/pkcs7/pkcs7err.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/poly1305/build.info up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/poly1305/poly1305.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/poly1305/poly1305_base2_44.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/poly1305/poly1305_ieee754.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/poly1305/asm/poly1305-armv4.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/poly1305/asm/poly1305-armv8.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/poly1305/asm/poly1305-c64xplus.pl up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/poly1305/asm/poly1305-mips.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/poly1305/asm/poly1305-ppc.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/poly1305/asm/poly1305-ppcfp.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/poly1305/asm/poly1305-s390x.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/poly1305/asm/poly1305-sparcv9.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/poly1305/asm/poly1305-x86.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/poly1305/asm/poly1305-x86_64.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/rand/build.info up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/rand/rand_egd.c up to 1.7
crypto/external/bsd/openssl/dist/crypto/rand/rand_err.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/rand/rand_lib.c up to 1.1.1.18
crypto/external/bsd/openssl/dist/crypto/rand/rand_local.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/rand/randfile.c up to 1.14
crypto/external/bsd/openssl/dist/crypto/rc2/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/rc2/rc2_cbc.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/rc2/rc2_ecb.c up to 1.7
crypto/external/bsd/openssl/dist/crypto/rc2/rc2_local.h up to 1.3
crypto/external/bsd/openssl/dist/crypto/rc2/rc2_skey.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/rc2/rc2cfb64.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/rc2/rc2ofb64.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/rc4/build.info up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/rc4/rc4_enc.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/rc4/rc4_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/rc4/rc4_skey.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/rc4/asm/rc4-586.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/rc4/asm/rc4-c64xplus.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/rc4/asm/rc4-md5-x86_64.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/rc4/asm/rc4-parisc.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/rc4/asm/rc4-s390x.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/rc4/asm/rc4-x86_64.pl up to 1.8
crypto/external/bsd/openssl/dist/crypto/rc5/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/rc5/rc5_ecb.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/rc5/rc5_enc.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/rc5/rc5_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/rc5/rc5_skey.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/rc5/rc5cfb64.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/rc5/rc5ofb64.c up to 1.6
crypto/external/bsd/openssl/dist/crypto/rc5/asm/rc5-586.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ripemd/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ripemd/rmd_dgst.c up to 1.10
crypto/external/bsd/openssl/dist/crypto/ripemd/rmd_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ripemd/rmd_one.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ripemd/rmdconst.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/ripemd/asm/rmd-586.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/rsa/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_ameth.c up to 1.1.1.17
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_asn1.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_chk.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_crpt.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_depr.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_err.c up to 1.8
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_gen.c up to 1.7
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_lib.c up to 1.8
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_meth.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_mp.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_none.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_oaep.c up to 1.12
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_ossl.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_pk1.c up to 1.10
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_pmeth.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_prn.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_pss.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_saos.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_sign.c up to 1.10
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_x931.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/rsa/rsa_x931g.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/seed/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/seed/seed.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/seed/seed_cbc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/seed/seed_cfb.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/seed/seed_ecb.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/seed/seed_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/seed/seed_ofb.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/sha/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sha/keccak1600.c up to 1.4
crypto/external/bsd/openssl/dist/crypto/sha/sha1_one.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/sha/sha1dgst.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/sha/sha256.c up to 1.11
crypto/external/bsd/openssl/dist/crypto/sha/sha512.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/sha/sha_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/sha/asm/keccak1600-armv4.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/sha/asm/keccak1600-armv8.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/sha/asm/keccak1600-avx2.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sha/asm/keccak1600-avx512.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sha/asm/keccak1600-avx512vl.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sha/asm/keccak1600-c64x.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sha/asm/keccak1600-mmx.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sha/asm/keccak1600-ppc64.pl up to 1.4
crypto/external/bsd/openssl/dist/crypto/sha/asm/keccak1600-s390x.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/sha/asm/keccak1600-x86_64.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sha/asm/keccak1600p8-ppc.pl up to 1.4
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-586.pl up to 1.1.1.12
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-alpha.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-armv4-large.pl up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-armv8.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-c64xplus.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-ia64.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-mb-x86_64.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-mips.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-parisc.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-ppc.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-s390x.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-sparcv9.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-sparcv9a.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-thumb.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha1-x86_64.pl up to 1.11
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha256-586.pl up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha256-armv4.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha256-c64xplus.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha256-mb-x86_64.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512-586.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512-armv4.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512-armv8.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512-c64xplus.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512-ia64.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512-mips.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512-parisc.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512-ppc.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512-s390x.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512-sparcv9.pl up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512-x86_64.pl up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/sha/asm/sha512p8-ppc.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/siphash/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/siphash/siphash.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/sm2/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/sm2/sm2_crypt.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/sm2/sm2_err.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sm2/sm2_sign.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/sm3/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/sm3/sm3.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/sm3/sm3_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/sm4/sm4.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/srp/srp_lib.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/srp/srp_vfy.c up to 1.1.1.14
crypto/external/bsd/openssl/dist/crypto/stack/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/stack/stack.c up to 1.5
crypto/external/bsd/openssl/dist/crypto/store/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/store/store_err.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/store/store_init.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/store/store_lib.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/store/store_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/store/store_register.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/store/store_strings.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ts/ts_asn1.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/ts/ts_conf.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ts/ts_err.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ts/ts_lib.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/ts/ts_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ts/ts_req_print.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ts/ts_req_utils.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ts/ts_rsp_print.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ts/ts_rsp_sign.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/ts/ts_rsp_utils.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ts/ts_rsp_verify.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/ts/ts_verify_ctx.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/txt_db/txt_db.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/ui/ui_err.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/ui/ui_lib.c up to 1.9
crypto/external/bsd/openssl/dist/crypto/ui/ui_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/ui/ui_null.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/ui/ui_openssl.c up to 1.19
crypto/external/bsd/openssl/dist/crypto/ui/ui_util.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/whrlpool/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/whrlpool/wp_block.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/whrlpool/wp_dgst.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/whrlpool/wp_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/crypto/whrlpool/asm/wp-mmx.pl up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/whrlpool/asm/wp-x86_64.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/x509/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/x509/by_dir.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/crypto/x509/by_file.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/x509/t_crl.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/x509/t_req.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/x509/t_x509.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/x509/x509_att.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/crypto/x509/x509_cmp.c up to 1.1.1.18
crypto/external/bsd/openssl/dist/crypto/x509/x509_d2.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/x509/x509_def.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/x509/x509_err.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/crypto/x509/x509_ext.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/x509/x509_local.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/x509/x509_lu.c up to 1.1.1.15
crypto/external/bsd/openssl/dist/crypto/x509/x509_meth.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/crypto/x509/x509_obj.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/x509/x509_r2x.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/x509/x509_req.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/x509/x509_set.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/x509/x509_txt.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/crypto/x509/x509_v3.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/x509/x509_vfy.c up to 1.28
crypto/external/bsd/openssl/dist/crypto/x509/x509_vpm.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/crypto/x509/x509cset.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/x509/x509name.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/x509/x509rset.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/x509/x509spki.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/x509/x509type.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/x509/x_all.c up to 1.1.1.14
crypto/external/bsd/openssl/dist/crypto/x509/x_attrib.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/x509/x_crl.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/x509/x_exten.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/x509/x_name.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/crypto/x509/x_pubkey.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/crypto/x509/x_req.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/crypto/x509/x_x509.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/crypto/x509/x_x509a.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/demos/bio/Makefile up to 1.1.1.5
crypto/external/bsd/openssl/dist/demos/bio/accept.cnf up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/bio/client-arg.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/bio/client-conf.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/bio/cmod.cnf up to 1.1.1.3
crypto/external/bsd/openssl/dist/demos/bio/connect.cnf up to 1.1.1.3
crypto/external/bsd/openssl/dist/demos/bio/saccept.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/demos/bio/sconnect.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/demos/bio/server-arg.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/bio/server-cmod.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/demos/bio/server-conf.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/certs/ca.cnf up to 1.1.1.2
crypto/external/bsd/openssl/dist/demos/certs/apps/apps.cnf up to 1.1.1.2
crypto/external/bsd/openssl/dist/demos/cms/cms_comp.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/demos/cms/cms_ddec.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/cms/cms_dec.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/demos/cms/cms_denc.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/cms/cms_enc.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/demos/cms/cms_sign.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/demos/cms/cms_sign2.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/cms/cms_uncomp.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/cms/cms_ver.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/demos/pkcs12/pkread.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/demos/pkcs12/pkwrite.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/smime/smdec.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/smime/smenc.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/smime/smsign.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/smime/smsign2.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/demos/smime/smver.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/fingerprints.txt up to 1.1.1.9
crypto/external/bsd/openssl/dist/doc/HOWTO/certificates.txt up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/HOWTO/keys.txt up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man1/CA.pl.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man1/openssl.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man1/tsget.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/ADMISSIONS.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/ASN1_INTEGER_get_int64.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/ASN1_ITEM_lookup.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/ASN1_OBJECT_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/ASN1_STRING_TABLE_add.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/ASN1_STRING_length.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/ASN1_STRING_new.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/ASN1_STRING_print_ex.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/ASN1_TIME_set.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/ASN1_TYPE_get.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/ASN1_generate_nconf.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/ASYNC_WAIT_CTX_new.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/ASYNC_start_job.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/BF_encrypt.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_ADDR.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_ADDRINFO.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_connect.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/BIO_ctrl.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BIO_f_base64.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BIO_f_buffer.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_f_cipher.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BIO_f_md.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BIO_f_null.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BIO_f_ssl.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BIO_find_type.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_get_data.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_get_ex_new_index.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_meth_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BIO_new.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_new_CMS.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_parse_hostserv.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_printf.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BIO_push.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BIO_read.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_s_accept.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BIO_s_bio.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BIO_s_connect.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BIO_s_fd.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BIO_s_file.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BIO_s_mem.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BIO_s_null.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BIO_s_socket.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BIO_set_callback.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BIO_should_retry.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BN_BLINDING_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BN_CTX_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BN_CTX_start.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BN_add.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BN_add_word.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BN_bn2bin.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BN_cmp.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BN_copy.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BN_generate_prime.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man3/BN_mod_inverse.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BN_mod_mul_montgomery.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BN_mod_mul_reciprocal.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BN_new.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BN_num_bytes.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BN_rand.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/BN_security_bits.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/BN_set_bit.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/BN_swap.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BN_zero.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/BUF_MEM_new.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/CMS_add0_cert.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/CMS_add1_recipient_cert.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CMS_add1_signer.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CMS_compress.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CMS_decrypt.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/CMS_encrypt.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CMS_final.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/CMS_get0_RecipientInfos.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CMS_get0_SignerInfos.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CMS_get0_type.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/CMS_get1_ReceiptRequest.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CMS_sign.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CMS_sign_receipt.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CMS_uncompress.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CMS_verify.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/CMS_verify_receipt.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CONF_modules_free.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CONF_modules_load_file.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/CRYPTO_THREAD_run_once.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/CRYPTO_get_ex_new_index.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/CRYPTO_memcmp.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/CTLOG_STORE_get0_log_by_id.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/CTLOG_STORE_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CTLOG_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/CT_POLICY_EVAL_CTX_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DEFINE_STACK_OF.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/DES_random_key.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man3/DH_generate_key.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/DH_generate_parameters.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DH_get0_pqg.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/DH_get_1024_160.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DH_meth_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DH_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DH_new_by_nid.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DH_set_method.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/DH_size.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/DSA_SIG_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DSA_do_sign.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DSA_dup_DH.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DSA_generate_key.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/DSA_generate_parameters.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DSA_get0_pqg.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DSA_meth_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DSA_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DSA_set_method.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/DSA_sign.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/DSA_size.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/DTLS_get_data_mtu.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/DTLS_set_timer_cb.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/DTLSv1_listen.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/ECDSA_SIG_new.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/ECPKParameters_print.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EC_GFp_simple_method.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EC_GROUP_copy.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/EC_GROUP_new.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EC_KEY_get_enc_flags.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EC_KEY_new.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/EC_POINT_add.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EC_POINT_new.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/ENGINE_add.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/ERR_GET_LIB.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/ERR_clear_error.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/ERR_error_string.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/ERR_get_error.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/ERR_load_crypto_strings.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/ERR_load_strings.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/ERR_print_errors.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/ERR_put_error.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/ERR_remove_state.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/ERR_set_mark.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_BytesToKey.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_CIPHER_CTX_get_cipher_data.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_CIPHER_meth_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_DigestInit.pod up to 1.1.1.7
crypto/external/bsd/openssl/dist/doc/man3/EVP_DigestSignInit.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man3/EVP_DigestVerifyInit.pod up to 1.1.1.7
crypto/external/bsd/openssl/dist/doc/man3/EVP_EncodeInit.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_EncryptInit.pod up to 1.1.1.9
crypto/external/bsd/openssl/dist/doc/man3/EVP_MD_meth_new.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_OpenInit.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_ASN1_METHOD.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_CTX_ctrl.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_CTX_new.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_CTX_set1_pbe_pass.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_CTX_set_hkdf_md.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_CTX_set_rsa_pss_keygen_md.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_CTX_set_scrypt_N.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_CTX_set_tls1_prf_md.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_asn1_get_count.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_decrypt.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_derive.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_encrypt.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_get_default_digest_nid.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_keygen.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_meth_get_count.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_meth_new.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_new.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_print_private.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_set1_RSA.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_sign.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_verify.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_PKEY_verify_recover.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_SealInit.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_SignInit.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man3/EVP_VerifyInit.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_bf_cbc.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_blake2b512.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_cast5_cbc.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_chacha20.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_desx_cbc.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_idea_cbc.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_md2.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_md4.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_md5.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/EVP_mdc2.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_rc2_cbc.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_rc4.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_rc5_32_12_16_cbc.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/EVP_ripemd160.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_seed_cbc.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_sha1.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_sha224.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_sha3_224.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_sm3.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/EVP_sm4_cbc.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/EVP_whirlpool.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/HMAC.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/MD5.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/MDC2_Init.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/OBJ_nid2obj.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/OCSP_REQUEST_new.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/OCSP_cert_to_id.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/OCSP_request_add1_nonce.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/OCSP_resp_find_status.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/OCSP_response_status.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/OCSP_sendreq_new.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_Applink.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_LH_COMPFUNC.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_LH_stats.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_config.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_fork_prepare.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_ia32cap.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_init_crypto.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_init_ssl.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_instrument_bus.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_load_builtin_modules.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_malloc.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_secure_malloc.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/OSSL_STORE_INFO.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/OSSL_STORE_LOADER.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/OSSL_STORE_SEARCH.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/OSSL_STORE_expect.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/OSSL_STORE_open.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/OpenSSL_add_all_algorithms.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/PEM_bytes_read_bio.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/PEM_read.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/PEM_read_CMS.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/PEM_read_bio_PrivateKey.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/PEM_read_bio_ex.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/PEM_write_bio_CMS_stream.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/PEM_write_bio_PKCS7_stream.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_create.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_newpass.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/PKCS12_parse.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/PKCS5_PBKDF2_HMAC.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/PKCS7_decrypt.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/PKCS7_encrypt.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/PKCS7_sign.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/PKCS7_sign_add_signer.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/PKCS7_verify.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/RAND_add.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/RAND_bytes.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/RAND_cleanup.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/RAND_egd.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/RAND_load_file.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/RAND_set_rand_method.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/RC4_set_key.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/RIPEMD160_Init.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/RSA_blinding_on.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/RSA_check_key.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/RSA_generate_key.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/RSA_get0_key.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/RSA_meth_new.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/RSA_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/RSA_padding_add_PKCS1_type_1.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/RSA_print.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/RSA_private_encrypt.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/RSA_public_encrypt.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/RSA_set_method.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/RSA_sign.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/RSA_sign_ASN1_OCTET_STRING.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/RSA_size.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SCT_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SCT_print.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SCT_validate.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SHA256_Init.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SMIME_read_CMS.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SMIME_read_PKCS7.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SMIME_write_CMS.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SMIME_write_PKCS7.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CIPHER_get_name.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_COMP_add_compression_method.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CONF_CTX_new.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CONF_CTX_set1_prefix.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CONF_CTX_set_flags.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CONF_CTX_set_ssl_ctx.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CONF_cmd.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man3/SSL_CONF_cmd_argv.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_add1_chain_cert.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_add_extra_chain_cert.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_add_session.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_config.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_ctrl.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_dane_enable.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_flush_sessions.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_free.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_get0_param.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_get_verify_mode.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_has_client_custom_ext.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_load_verify_locations.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_new.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_sess_number.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_sess_set_cache_size.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_sess_set_get_cb.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_sessions.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set0_CA_list.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set1_curves.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set1_sigalgs.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set1_verify_cert_store.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_alpn_select_cb.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_cert_cb.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_cert_store.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_cert_verify_callback.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_cipher_list.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_client_cert_cb.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_client_hello_cb.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_ct_validation_callback.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_ctlog_list_file.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_default_passwd_cb.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_generate_session_id.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_info_callback.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_keylog_callback.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_max_cert_list.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_min_proto_version.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_mode.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_msg_callback.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_num_tickets.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_options.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_psk_client_callback.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_quiet_shutdown.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_read_ahead.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_record_padding_callback.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_security_level.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_session_cache_mode.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_session_id_context.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_session_ticket_cb.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_split_send_fragment.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_ssl_version.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_stateless_cookie_generate_cb.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_timeout.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_tlsext_servername_callback.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_tlsext_status_cb.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_tlsext_ticket_key_cb.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_tlsext_use_srtp.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_tmp_dh_callback.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_verify.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_use_certificate.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_use_psk_identity_hint.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_use_serverinfo.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_free.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_get0_cipher.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_get0_hostname.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_get0_id_context.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_get0_peer.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_get_compress_id.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_get_protocol_version.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_get_time.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_has_ticket.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_is_resumable.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_print.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_SESSION_set1_id.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_accept.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_alert_type_string.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_alloc_buffers.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_check_chain.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_clear.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_connect.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_do_handshake.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_export_keying_material.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_extension_supported.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_free.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get0_peer_scts.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_SSL_CTX.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_all_async_fds.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_ciphers.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_client_random.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_current_cipher.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_default_timeout.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_error.pod up to 1.1.1.8
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_extms_support.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_fd.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_peer_cert_chain.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_peer_certificate.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_peer_signature_nid.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_peer_tmp_key.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_psk_identity.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_rbio.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_session.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_shared_sigalgs.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_verify_result.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_get_version.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_in_init.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_key_update.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_library_init.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_load_client_CA_file.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_new.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_pending.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_read.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/SSL_read_early_data.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_rstate_string.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_session_reused.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_set1_host.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/SSL_set_bio.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_set_connect_state.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_set_fd.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_set_session.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_set_shutdown.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_set_verify_result.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/SSL_shutdown.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man3/SSL_state_string.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/SSL_want.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/SSL_write.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man3/UI_STRING.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/UI_UTIL_read_pw.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/UI_create_method.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/UI_new.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/X509V3_get_d2i.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_ALGOR_dup.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_CRL_get0_by_serial.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_EXTENSION_set_object.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_LOOKUP.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_LOOKUP_hash_dir.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_LOOKUP_meth_new.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/X509_NAME_ENTRY_get_object.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_NAME_add_entry_by_txt.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_NAME_get0_der.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_NAME_get_index_by_NID.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_NAME_print_ex.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_PUBKEY_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_SIG_get0.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_STORE_CTX_get_error.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/X509_STORE_CTX_new.pod up to 1.1.1.7
crypto/external/bsd/openssl/dist/doc/man3/X509_STORE_CTX_set_verify_cb.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/X509_STORE_add_cert.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/X509_STORE_get0_param.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_STORE_new.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/X509_STORE_set_verify_cb_func.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/X509_VERIFY_PARAM_set_flags.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man3/X509_check_ca.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_check_host.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_check_issued.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_check_private_key.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_check_purpose.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_cmp.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_cmp_time.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_digest.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_dup.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_get0_notBefore.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_get0_signature.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/X509_get0_uids.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_get_extension_flags.pod up to 1.1.1.5
crypto/external/bsd/openssl/dist/doc/man3/X509_get_pubkey.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_get_serialNumber.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_get_subject_name.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/X509_get_version.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_new.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509_sign.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/X509_verify_cert.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/X509v3_get_ext_by_NID.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/d2i_PKCS8PrivateKey_bio.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/d2i_PrivateKey.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man3/d2i_SSL_SESSION.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/d2i_X509.pod up to 1.1.1.7
crypto/external/bsd/openssl/dist/doc/man3/i2d_CMS_bio_stream.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/i2d_PKCS7_bio_stream.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man3/i2d_re_X509_tbs.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man3/o2i_SCT_LIST.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man5/config.pod up to 1.1.1.6
crypto/external/bsd/openssl/dist/doc/man5/x509v3_config.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man7/RAND.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man7/RSA-PSS.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/X25519.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man7/bio.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man7/crypto.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man7/ct.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man7/des_modes.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/evp.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man7/ossl_store-file.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/ossl_store.pod up to 1.1.1.4
crypto/external/bsd/openssl/dist/doc/man7/passphrase-encoding.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/doc/man7/proxy-certificates.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/ssl.pod up to 1.1.1.2
crypto/external/bsd/openssl/dist/doc/man7/x509.pod up to 1.1.1.3
crypto/external/bsd/openssl/dist/engines/build.info up to 1.1.1.4
crypto/external/bsd/openssl/dist/engines/e_afalg.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/engines/e_afalg.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/engines/e_afalg.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/engines/e_afalg_err.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/engines/e_afalg_err.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/engines/e_capi.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/engines/e_capi.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/engines/e_capi_err.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/engines/e_capi_err.h up to 1.1.1.7
crypto/external/bsd/openssl/dist/engines/e_dasync.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/engines/e_dasync.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/engines/e_dasync_err.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/engines/e_dasync_err.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/engines/e_ossltest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/engines/e_ossltest.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/engines/e_ossltest_err.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/engines/e_ossltest_err.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/engines/e_padlock.c up to 1.9
crypto/external/bsd/openssl/dist/engines/asm/e_padlock-x86.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/engines/asm/e_padlock-x86_64.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/external/perl/Downloaded.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/fuzz/README.md up to 1.1.1.4
crypto/external/bsd/openssl/dist/fuzz/asn1.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/fuzz/asn1parse.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/bignum.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/bndiv.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/client.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/fuzz/cms.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/conf.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/crl.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/ct.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/driver.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/fuzzer.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/helper.py up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/mkfuzzoids.pl up to 1.1.1.2
crypto/external/bsd/openssl/dist/fuzz/oids.txt up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/server.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/fuzz/test-corpus.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/fuzz/x509.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/include/crypto/__DECC_INCLUDE_EPILOGUE.H up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/__DECC_INCLUDE_PROLOGUE.H up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/aria.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/asn1.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/async.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/bn.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/crypto/bn_conf.h.in up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/bn_dh.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/bn_srp.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/chacha.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/cryptlib.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/ctype.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/dso_conf.h.in up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/ec.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/engine.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/err.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/evp.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/lhash.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/md32_common.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/objects.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/poly1305.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/rand.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/crypto/sha.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/siphash.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/sm2.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/crypto/sm2err.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/sm4.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/store.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/crypto/x509.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/internal/__DECC_INCLUDE_EPILOGUE.H up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/internal/__DECC_INCLUDE_PROLOGUE.H up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/internal/bio.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/internal/comp.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/internal/conf.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/include/internal/constant_time.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/internal/cryptlib.h up to 1.1.1.6
crypto/external/bsd/openssl/dist/include/internal/dane.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/internal/dso.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/internal/dsoerr.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/include/internal/err.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/internal/nelem.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/internal/numbers.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/internal/o_dir.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/internal/refcount.h up to 1.7
crypto/external/bsd/openssl/dist/include/internal/sockets.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/include/internal/sslconf.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/internal/thread_once.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/internal/tsan_assist.h up to 1.7
crypto/external/bsd/openssl/dist/include/openssl/__DECC_INCLUDE_EPILOGUE.H up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/__DECC_INCLUDE_PROLOGUE.H up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/aes.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/asn1_mac.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/asn1err.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/async.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/asyncerr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/bioerr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/blowfish.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/bn.h up to 1.5
crypto/external/bsd/openssl/dist/include/openssl/bnerr.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/buffer.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/buffererr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/camellia.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/cast.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/cmac.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/cmserr.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/comp.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/comperr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/conf_api.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/conferr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/cryptoerr.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/cterr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/des.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/dh.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/dherr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/dsa.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/include/openssl/dsaerr.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/dtls1.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/e_os2.h up to 1.1.1.7
crypto/external/bsd/openssl/dist/include/openssl/ebcdic.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/ec.h up to 1.1.1.7
crypto/external/bsd/openssl/dist/include/openssl/ecdh.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/ecdsa.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/ecerr.h up to 1.1.1.6
crypto/external/bsd/openssl/dist/include/openssl/engine.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/engineerr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/evp.h up to 1.1.1.9
crypto/external/bsd/openssl/dist/include/openssl/evperr.h up to 1.1.1.6
crypto/external/bsd/openssl/dist/include/openssl/hmac.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/idea.h up to 1.3
crypto/external/bsd/openssl/dist/include/openssl/kdf.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/kdferr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/md2.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/md4.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/md5.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/mdc2.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/modes.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/obj_mac.h up to 1.1.1.8
crypto/external/bsd/openssl/dist/include/openssl/objects.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/objectserr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/ocsperr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/ossl_typ.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/pem.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/pem2.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/pemerr.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/pkcs12err.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/pkcs7err.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/rand.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/randerr.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/include/openssl/rc2.h up to 1.3
crypto/external/bsd/openssl/dist/include/openssl/rc4.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/rc5.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/ripemd.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/rsa.h up to 1.1.1.6
crypto/external/bsd/openssl/dist/include/openssl/rsaerr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/seed.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/sha.h up to 1.3
crypto/external/bsd/openssl/dist/include/openssl/srtp.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/ssl2.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/ssl3.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/include/openssl/sslerr.h up to 1.1.1.7
crypto/external/bsd/openssl/dist/include/openssl/stack.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/store.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/storeerr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/symhacks.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/tls1.h up to 1.1.1.6
crypto/external/bsd/openssl/dist/include/openssl/ts.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/tserr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/txt_db.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/uierr.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/include/openssl/whrlpool.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/include/openssl/x509err.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/include/openssl/x509v3err.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/ms/applink.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/ms/cmp.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/ms/uplink-common.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/ms/uplink-ia64.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/ms/uplink-x86.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/ms/uplink-x86_64.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/ms/uplink.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/ms/uplink.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/os-dep/haiku.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/ssl/bio_ssl.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/ssl/build.info up to 1.1.1.3
crypto/external/bsd/openssl/dist/ssl/d1_lib.c up to 1.13
crypto/external/bsd/openssl/dist/ssl/d1_msg.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/ssl/d1_srtp.c up to 1.8
crypto/external/bsd/openssl/dist/ssl/methods.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/ssl/pqueue.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/ssl/s3_cbc.c up to 1.12
crypto/external/bsd/openssl/dist/ssl/s3_enc.c up to 1.18
crypto/external/bsd/openssl/dist/ssl/s3_lib.c up to 1.31
crypto/external/bsd/openssl/dist/ssl/s3_msg.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/ssl/ssl_asn1.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/ssl/ssl_cert.c up to 1.1.1.19
crypto/external/bsd/openssl/dist/ssl/ssl_cert_table.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/ssl/ssl_ciph.c up to 1.24
crypto/external/bsd/openssl/dist/ssl/ssl_conf.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/ssl/ssl_err.c up to 1.20
crypto/external/bsd/openssl/dist/ssl/ssl_init.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/ssl/ssl_lib.c up to 1.23
crypto/external/bsd/openssl/dist/ssl/ssl_local.h up to 1.1.1.5
crypto/external/bsd/openssl/dist/ssl/ssl_mcnf.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/ssl/ssl_rsa.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/ssl/ssl_sess.c up to 1.12
crypto/external/bsd/openssl/dist/ssl/ssl_stat.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/ssl/ssl_txt.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/ssl/ssl_utst.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/ssl/t1_enc.c up to 1.23
crypto/external/bsd/openssl/dist/ssl/t1_lib.c up to 1.37
crypto/external/bsd/openssl/dist/ssl/t1_trce.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/ssl/tls13_enc.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/ssl/tls_srp.c up to 1.8
crypto/external/bsd/openssl/dist/ssl/record/dtls1_bitmap.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/ssl/record/rec_layer_d1.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/ssl/record/rec_layer_s3.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/ssl/record/record.h up to 1.1.1.4
crypto/external/bsd/openssl/dist/ssl/record/record_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/ssl/record/ssl3_buffer.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/ssl/record/ssl3_record.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/ssl/record/ssl3_record_tls13.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/ssl/statem/extensions.c up to 1.1.1.11
crypto/external/bsd/openssl/dist/ssl/statem/extensions_clnt.c up to 1.1.1.9
crypto/external/bsd/openssl/dist/ssl/statem/extensions_cust.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/ssl/statem/extensions_srvr.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/ssl/statem/statem.c up to 1.1.1.8
crypto/external/bsd/openssl/dist/ssl/statem/statem.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/ssl/statem/statem_clnt.c up to 1.1.1.15
crypto/external/bsd/openssl/dist/ssl/statem/statem_dtls.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/ssl/statem/statem_lib.c up to 1.1.1.12
crypto/external/bsd/openssl/dist/ssl/statem/statem_local.h up to 1.1.1.3
crypto/external/bsd/openssl/dist/ssl/statem/statem_srvr.c up to 1.1.1.13
crypto/external/bsd/openssl/dist/test/CAtsa.cnf up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/README.ssltest.md up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/aborttest.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/afalgtest.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/asn1_decode_test.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/asn1_encode_test.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/asn1_internal_test.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/asn1_string_table_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/asn1_time_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/asynciotest.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/asynctest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/bad_dtls_test.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/bftest.c up to 1.5
crypto/external/bsd/openssl/dist/test/bio_callback_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/bio_enc_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/bio_memleak_test.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/bioprinttest.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/bntest.c up to 1.11
crypto/external/bsd/openssl/dist/test/bntests.pl up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/build.info up to 1.1.1.15
crypto/external/bsd/openssl/dist/test/casttest.c up to 1.4
crypto/external/bsd/openssl/dist/test/chacha_internal_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/cipher_overhead_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/cipherbytes_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/cipherlist_test.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/ciphername_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/clienthellotest.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/test/cmactest.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/cms-examples.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/cmsapitest.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/conf_include_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/constant_time_test.c up to 1.6
crypto/external/bsd/openssl/dist/test/crltest.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/ct_test.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/test/ctype_internal_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/curve448_internal_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/d2i_test.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/dane-cross.in up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/danetest.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/danetest.in up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/destest.c up to 1.5
crypto/external/bsd/openssl/dist/test/dhtest.c up to 1.6
crypto/external/bsd/openssl/dist/test/drbgtest.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/test/dsa_no_digest_size_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/dsatest.c up to 1.6
crypto/external/bsd/openssl/dist/test/dtls_mtu_test.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/dtlstest.c up to 1.1.1.10
crypto/external/bsd/openssl/dist/test/dtlsv1listentest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/ec_internal_test.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/test/ecdsatest.c up to 1.8
crypto/external/bsd/openssl/dist/test/ecstresstest.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/ectest.c up to 1.10
crypto/external/bsd/openssl/dist/test/enginetest.c up to 1.5
crypto/external/bsd/openssl/dist/test/errtest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/evp_extra_test.c up to 1.13
crypto/external/bsd/openssl/dist/test/evp_test.c up to 1.10
crypto/external/bsd/openssl/dist/test/exdatatest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/exptest.c up to 1.6
crypto/external/bsd/openssl/dist/test/fatalerrtest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/generate_buildtest.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/generate_ssl_tests.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/gmdifftest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/hmactest.c up to 1.6
crypto/external/bsd/openssl/dist/test/ideatest.c up to 1.4
crypto/external/bsd/openssl/dist/test/igetest.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/test/lhash_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/mdc2_internal_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/mdc2test.c up to 1.4
crypto/external/bsd/openssl/dist/test/memleaktest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/modes_internal_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/ocspapitest.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/packettest.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/pbelutest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/pemtest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/pkey_meth_kdf_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/pkey_meth_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/pkits-test.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/poly1305_internal_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/rc2test.c up to 1.4
crypto/external/bsd/openssl/dist/test/rc4test.c up to 1.4
crypto/external/bsd/openssl/dist/test/rc5test.c up to 1.4
crypto/external/bsd/openssl/dist/test/rdrand_sanitytest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recordlentest.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/rsa_complex.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/rsa_mp_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/rsa_test.c up to 1.10
crypto/external/bsd/openssl/dist/test/run_tests.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/sanitytest.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/secmemtest.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/servername_test.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/shlibloadtest.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/test/siphash_internal_test.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/sm2_internal_test.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/sm4_internal_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/srptest.c up to 1.4
crypto/external/bsd/openssl/dist/test/ssl_cert_table_internal_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/ssl_ctx_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/ssl_test.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/ssl_test_ctx_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/sslapitest.c up to 1.1.1.14
crypto/external/bsd/openssl/dist/test/sslbuffertest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/sslcorrupttest.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/stack_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/sysdefault.cnf up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/sysdefaulttest.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/test.cnf up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/test_test.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/testrsa.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/testsid.pem up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/testutil.h up to 1.1.1.7
crypto/external/bsd/openssl/dist/test/testx509.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/threadstest.c up to 1.2
crypto/external/bsd/openssl/dist/test/time_offset_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/tls13ccstest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/tls13encryptiontest.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/tls13secretstest.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/uitest.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/v3ext.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/v3nametest.c up to 1.1.1.6
crypto/external/bsd/openssl/dist/test/verify_extra_test.c up to 1.1.1.7
crypto/external/bsd/openssl/dist/test/versions.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/wpackettest.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/x509_check_cert_pkey_test.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/x509_dup_cert_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/x509_internal_test.c up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/x509_time_test.c up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/x509aux.c up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/certs/ca-cert-768.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-cert-768i.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-cert-ec-explicit.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-cert-ec-named.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-cert-md5-any.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-cert-md5.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-cert.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-cert2.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-expired.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-name2.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-nonbc.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-nonca.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ca-root2.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/cca+anyEKU.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/cca+clientAuth.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/cca+serverAuth.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/cca-anyEKU.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/cca-cert.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/cca-clientAuth.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/cca-serverAuth.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/croot-cert.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/cyrillic.msb up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/cyrillic.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/cyrillic.utf8 up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/cyrillic_crl.utf8 up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/dhp2048.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ee-pathlen.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/embeddedSCTs1.pem up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/certs/embeddedSCTs1.sct up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/certs/embeddedSCTs1_issuer-key.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/embeddedSCTs1_issuer.pem up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/certs/embeddedSCTs3.sct up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/mkcert.sh up to 1.1.1.6
crypto/external/bsd/openssl/dist/test/certs/nca+anyEKU.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ncca1-cert.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ncca2-cert.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/ncca3-cert.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/root-cert-768.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/root-cert-md5.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/root-cert.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/root-cert2.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/root-ed448-cert.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/root-expired.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/root-name2.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/sca+anyEKU.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/sca+clientAuth.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/sca+serverAuth.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/sca-anyEKU.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/sca-cert.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/sca-clientAuth.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/sca-serverAuth.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/certs/setup.sh up to 1.1.1.12
crypto/external/bsd/openssl/dist/test/certs/sroot-cert.pem up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/01-test_abort.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/01-test_sanity.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/01-test_symbol_presence.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/01-test_test.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/02-test_errstr.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/02-test_internal_ctype.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/02-test_lhash.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/02-test_ordinals.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/02-test_stack.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/03-test_exdata.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_asn1.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_chacha.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_curve448.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_mdc2.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_modes.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_poly1305.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_siphash.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_sm2.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_sm4.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_ssl_cert_table.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/03-test_internal_x509.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/03-test_ui.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/04-test_asn1_decode.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/04-test_asn1_encode.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/04-test_asn1_string_table.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/04-test_bio_callback.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/04-test_bioprint.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/04-test_err.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/05-test_bf.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/05-test_cast.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/05-test_des.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/05-test_hmac.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/05-test_idea.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/05-test_rand.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/05-test_rc2.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/05-test_rc4.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/05-test_rc5.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/10-test_bn.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/10-test_exp.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/15-test_dh.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/15-test_dsa.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/15-test_ec.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecdsa.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/15-test_ecparam.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/15-test_genec.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/15-test_genrsa.t up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/recipes/15-test_mp_rsa.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/15-test_out_option.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/15-test_rsa.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/15-test_rsapss.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/20-test_dgst.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/20-test_enc.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/20-test_enc_more.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/20-test_passwd.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/25-test_crl.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/25-test_d2i.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/25-test_pkcs7.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/25-test_req.t up to 1.1.1.6
crypto/external/bsd/openssl/dist/test/recipes/25-test_sid.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/25-test_verify.t up to 1.1.1.10
crypto/external/bsd/openssl/dist/test/recipes/25-test_x509.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/30-test_afalg.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/30-test_engine.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_extra.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/30-test_pbelu.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/30-test_pkey_meth.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/30-test_pkey_meth_kdf.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/40-test_rehash.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/60-test_x509_check_cert_pkey.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/60-test_x509_dup_cert.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/60-test_x509_store.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/60-test_x509_time.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/70-test_asyncio.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_bad_dtls.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_clienthello.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/70-test_comp.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_key_share.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_packet.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_recordlen.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_renegotiation.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/70-test_servername.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_sslcbcpadding.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/70-test_sslcertstatus.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/70-test_sslextension.t up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/recipes/70-test_sslmessages.t up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/recipes/70-test_sslrecords.t up to 1.1.1.5
crypto/external/bsd/openssl/dist/test/recipes/70-test_sslsessiontick.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/70-test_sslsigalgs.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/70-test_sslsignature.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_sslskewith0p.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/70-test_sslversions.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_sslvertol.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/70-test_tls13alerts.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_tls13cookie.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_tls13downgrade.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_tls13hrr.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/70-test_tls13kexmodes.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/70-test_tls13messages.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/70-test_tls13psk.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/70-test_tlsextms.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/70-test_verify_extra.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/70-test_wpacket.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_ca.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/80-test_cipherbytes.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_cipherlist.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/80-test_ciphername.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_cms.t up to 1.1.1.6
crypto/external/bsd/openssl/dist/test/recipes/80-test_cmsapi.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_ct.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_dane.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/80-test_dtls.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_dtls_mtu.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_dtlsv1listen.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_ocsp.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/80-test_pkcs12.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/80-test_ssl_new.t up to 1.1.1.7
crypto/external/bsd/openssl/dist/test/recipes/80-test_ssl_old.t up to 1.1.1.6
crypto/external/bsd/openssl/dist/test/recipes/80-test_ssl_test_ctx.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_sslcorrupt.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_tsa.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/80-test_x509aux.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/90-test_asn1_time.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_async.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_bio_enc.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_bio_memleak.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_constant_time.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_fatalerr.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_gmdiff.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_ige.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_includes.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/90-test_memleak.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_overhead.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_secmem.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_shlibload.t up to 1.1.1.6
crypto/external/bsd/openssl/dist/test/recipes/90-test_srp.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_sslapi.t up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/90-test_sslbuffers.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_store.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_sysdefault.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_threads.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_time_offset.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_tls13ccs.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_tls13encryption.t up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/recipes/90-test_tls13secrets.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_v3name.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/95-test_external_krb5.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/95-test_external_pyca.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/99-test_ecstress.t up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/tconversion.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/10-test_bn_data/bnexp.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/10-test_bn_data/bnmod.txt up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/recipes/10-test_bn_data/bnmul.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/10-test_bn_data/bnshift.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/10-test_bn_data/bnsum.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpencod.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey_ecc.txt up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/90-test_includes_data/conf-includes/includes1.cnf up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/95-test_external_krb5_data/krb5.sh up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/recipes/95-test_external_pyca_data/cryptography.sh up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/smime-certs/ca.cnf up to 1.1.1.3
crypto/external/bsd/openssl/dist/test/smime-certs/mksmime-certs.sh up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/ssl-tests/protocol_version.pm up to 1.1.1.4
crypto/external/bsd/openssl/dist/test/ssl-tests/ssltests_base.pm up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/testutil/basic_output.c up to 1.2
crypto/external/bsd/openssl/dist/test/testutil/cb.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/testutil/driver.c up to 1.5
crypto/external/bsd/openssl/dist/test/testutil/format_output.c up to 1.7
crypto/external/bsd/openssl/dist/test/testutil/main.c up to 1.6
crypto/external/bsd/openssl/dist/test/testutil/output.h up to 1.5
crypto/external/bsd/openssl/dist/test/testutil/stanza.c up to 1.3
crypto/external/bsd/openssl/dist/test/testutil/test_cleanup.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/testutil/tests.c up to 1.7
crypto/external/bsd/openssl/dist/test/testutil/testutil_init.c up to 1.1.1.2
crypto/external/bsd/openssl/dist/test/testutil/tu_local.h up to 1.1.1.2
crypto/external/bsd/openssl/dist/tools/c_rehash.in up to 1.1.1.8
crypto/external/bsd/openssl/dist/util/add-depends.pl up to 1.1.1.3
crypto/external/bsd/openssl/dist/util/build.info up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/check-malloc-errs up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/ck_errf.pl up to 1.1.1.6
crypto/external/bsd/openssl/dist/util/copy.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/util/dofile.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/util/echo.pl up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/find-doc-nits up to 1.1.1.7
crypto/external/bsd/openssl/dist/util/find-unused-errs up to 1.1.1.3
crypto/external/bsd/openssl/dist/util/fix-includes up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/fix-includes.sed up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/indent.pro up to 1.1.1.8
crypto/external/bsd/openssl/dist/util/libcrypto.num up to 1.1.1.12
crypto/external/bsd/openssl/dist/util/libssl.num up to 1.1.1.4
crypto/external/bsd/openssl/dist/util/local_shlib.com.in up to 1.1.1.3
crypto/external/bsd/openssl/dist/util/mkbuildinf.pl up to 1.1.1.5
crypto/external/bsd/openssl/dist/util/mkdef.pl up to 1.12
crypto/external/bsd/openssl/dist/util/mkdir-p.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/util/mkerr.pl up to 1.1.1.11
crypto/external/bsd/openssl/dist/util/mkrc.pl up to 1.1.1.7
crypto/external/bsd/openssl/dist/util/opensslwrap.sh up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/shlib_wrap.sh.in up to 1.1.1.5
crypto/external/bsd/openssl/dist/util/su-filter.pl up to 1.1.1.4
crypto/external/bsd/openssl/dist/util/unlocal_shlib.com.in up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/perl/checkhandshake.pm up to 1.1.1.3
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/Test.pm up to 1.1.1.7
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/copyright.pm up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/Test/Simple.pm up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/Test/Utils.pm up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/perl/OpenSSL/Util/Pod.pm up to 1.1.1.3
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/Alert.pm up to 1.1.1.3
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/Certificate.pm up to 1.1.1.3
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/CertificateRequest.pm up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/CertificateVerify.pm up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/ClientHello.pm up to 1.1.1.4
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/EncryptedExtensions.pm up to 1.1.1.3
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/Message.pm up to 1.1.1.6
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/NewSessionTicket.pm up to 1.1.1.2
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/Proxy.pm up to 1.1.1.6
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/Record.pm up to 1.1.1.4
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/ServerHello.pm up to 1.1.1.4
crypto/external/bsd/openssl/dist/util/perl/TLSProxy/ServerKeyExchange.pm up to 1.1.1.4
crypto/external/bsd/openssl/include/progs.h up to 1.3
crypto/external/bsd/openssl/include/crypto/bn_conf.h up to 1.3
crypto/external/bsd/openssl/include/crypto/dso_conf.h up to 1.2
crypto/external/bsd/openssl/lib/Makefile up to 1.9
crypto/external/bsd/openssl/lib/engines/Makefile up to 1.6
crypto/external/bsd/openssl/lib/engines/engines.mk up to 1.6
crypto/external/bsd/openssl/lib/engines/dasync/Makefile up to 1.4
crypto/external/bsd/openssl/lib/engines/ossltest/Makefile up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/Makefile up to 1.33
crypto/external/bsd/openssl/lib/libcrypto/aes.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/aria.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/asn1.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/async.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/bf.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/bio.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/blake2.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/bn.inc up to 1.10
crypto/external/bsd/openssl/lib/libcrypto/buffer.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/camellia.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/cast.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/chacha.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/cmac.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/cms.inc up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/comp.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/conf.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/crypto.inc up to 1.12
crypto/external/bsd/openssl/lib/libcrypto/crypto.map up to 1.12
crypto/external/bsd/openssl/lib/libcrypto/ct.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/curve448.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/des.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/dh.inc up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/dsa.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/dso.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/ec.inc up to 1.12
crypto/external/bsd/openssl/lib/libcrypto/engine.inc up to 1.14
crypto/external/bsd/openssl/lib/libcrypto/err.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/evp.inc up to 1.11
crypto/external/bsd/openssl/lib/libcrypto/hmac.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/idea.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/kdf.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/lhash.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/libc-sha256.c up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/libc-sha2xx.c up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/libc-sha512.c up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man.inc up to 1.17
crypto/external/bsd/openssl/lib/libcrypto/md4.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/md5.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/mdc2.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/modes.inc up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/objects.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/ocsp.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/pem.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/pkcs12.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/pkcs7.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/poly1305.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/rand.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/rc2.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/rc4.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/ripemd.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/rsa.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/seed.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/sha.inc up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/shlib_version up to 1.16
crypto/external/bsd/openssl/lib/libcrypto/siphash.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/sm2.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/sm3.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/sm4.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/srcs.inc up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/srp.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/stack.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/store.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/ts.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/txt_db.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/ui.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/whrlpool.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/x509.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/Makefile up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/aes.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/aesv8-armx.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/arm64cpuid.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/ec.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/ecp_nistz256-armv8.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/modes.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/sha512-armv8.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/aes-armv4.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/aes.inc up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/aesv8-armx.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/arm64cpuid.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/armv4-gf2m.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/armv4-mont.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/armv4cpuid.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/armv8-mont.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/bsaes-armv7.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/chacha-armv4.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/chacha-armv8.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/crypto.inc up to 1.15
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/ecp_nistz256-armv4.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/ecp_nistz256-armv8.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/ghash-armv4.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/ghashv8-armx.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/keccak1600-armv4.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/sha1-armv8.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/sha256-armv4.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/sha512-armv4.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/sha512-armv8.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/hppa/crypto.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/aesni-x86.S up to 1.11
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/bf-586.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/bn-586.S up to 1.11
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/cast-586.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/chacha-x86.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/cmll-x86.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/co-586.S up to 1.8
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/crypt586.S up to 1.9
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/crypto.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/des-586.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/ec.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/ecp_nistz256-x86.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/ghash-x86.S up to 1.8
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/md5-586.S up to 1.9
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/poly1305-x86.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/rc4-586.S up to 1.9
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/rc5-586.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/rmd-586.S up to 1.8
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/sha1-586.S up to 1.9
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/sha256-586.S up to 1.8
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/sha512-586.S up to 1.8
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/uplink-x86.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/vpaes-x86.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/i386/x86cpuid.S up to 1.18
crypto/external/bsd/openssl/lib/libcrypto/arch/m68k/crypto.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/mips/aes-mips.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/mips/aes-mips64.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/mips/crypto.inc up to 1.9
crypto/external/bsd/openssl/lib/libcrypto/arch/mips/mips.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/mips/mips64.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/Makefile up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/bn.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/chacha.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/crypto.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/poly1305-ppc.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/sha512-ppc.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/sha512p8-ppc.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/vpaes-ppc.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/bn.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/chacha.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/ec.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/keccak1600-ppc64.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/poly1305-ppc.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/sha512-ppc.S up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/sha512p8-ppc.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/vpaes-ppc.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/sh3/crypto.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/aes-sparcv9.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/aesfx-sparcv9.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/aest4-sparcv9.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/bn-sparcv8.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/cmllt4-sparcv9.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/crypto.inc up to 1.15
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/des_enc-sparc.S up to 1.8
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/dest4-sparcv9.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/ec.inc up to 1.8
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/ecp_nistz256-sparcv9.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/ghash-sparcv9.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/md5-sparcv9.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/poly1305-sparcv9.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/sha1-sparcv9.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/sha512-sparcv9.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/sparct4-mont.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/sparcv9-gf2m.S up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/sparcv9-mont.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/sparcv9a-mont.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/vis3-mont.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/Makefile up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/aes-sparcv9.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/aesfx-sparcv9.S up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/aest4-sparcv9.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/cmllt4-sparcv9.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/crypto.inc up to 1.10
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/des_enc-sparc.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/dest4-sparcv9.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/ec.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/ecp_nistz256-sparcv9.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/ghash-sparcv9.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/md5-sparcv9.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/poly1305-sparcv9.S up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/sha.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/sha1-sparcv9.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/sha512-sparcv9.S up to 1.9
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/sparct4-mont.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/sparcv9-gf2m.S up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/sparcv9-mont.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/sparcv9a-mont.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/vis3-mont.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/vax/crypto.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/Makefile up to 1.13
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/aes-x86_64.S up to 1.12
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/aesni-gcm-x86_64.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/aesni-mb-x86_64.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/aesni-sha1-x86_64.S up to 1.11
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/aesni-sha256-x86_64.S up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/aesni-x86_64.S up to 1.12
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/bn.inc up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/bsaes-x86_64.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/chacha-x86_64.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/cmll-x86_64.S up to 1.9
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/crypto.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/e_padlock-x86_64.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/ec.inc up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/ecp_nistz256-x86_64.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/ghash-x86_64.S up to 1.8
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/keccak1600-x86_64.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/md5-x86_64.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/poly1305-x86_64.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/rc4-md5-x86_64.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/rc4-x86_64.S up to 1.13
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/rsaz-avx2.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/rsaz-x86_64.S up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/sha.inc up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/sha1-mb-x86_64.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/sha1-x86_64.S up to 1.15
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/sha256-mb-x86_64.S up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/sha512-x86_64.S up to 1.11
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/vpaes-x86_64.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/whrlpool.inc up to 1.2
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/wp-x86_64.S up to 1.9
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/x25519-x86_64.S up to 1.3
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/x86_64-gf2m.S up to 1.8
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/x86_64-mont.S up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/x86_64-mont5.S up to 1.10
crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/x86_64cpuid.S up to 1.13
crypto/external/bsd/openssl/lib/libcrypto/man/ADMISSIONS.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_INTEGER_get_int64.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_ITEM_lookup.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_OBJECT_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_STRING_TABLE_add.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_STRING_length.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_STRING_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_STRING_print_ex.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_TIME_set.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_TYPE_get.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_generate_nconf.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ASYNC_WAIT_CTX_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/ASYNC_start_job.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/BF_encrypt.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_ADDR.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_ADDRINFO.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_connect.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_ctrl.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_base64.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_buffer.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_cipher.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_md.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_null.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_ssl.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_find_type.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_get_data.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_get_ex_new_index.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_meth_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_new_CMS.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_parse_hostserv.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_printf.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_push.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_read.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_s_accept.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_s_bio.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_s_connect.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_s_fd.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_s_file.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_s_mem.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_s_null.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_s_socket.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_set_callback.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BIO_should_retry.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_BLINDING_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_CTX_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_CTX_start.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_add.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_add_word.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_bn2bin.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_cmp.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_copy.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_generate_prime.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_mod_inverse.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_mod_mul_montgomery.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_mod_mul_reciprocal.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_num_bytes.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_rand.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_security_bits.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/BN_set_bit.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_swap.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BN_zero.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/BUF_MEM_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_add0_cert.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_add1_recipient_cert.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_add1_signer.3 up to 1.11
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_compress.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_decrypt.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_encrypt.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_final.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_get0_RecipientInfos.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_get0_SignerInfos.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_get0_type.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_get1_ReceiptRequest.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_sign.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_sign_receipt.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_uncompress.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_verify.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CMS_verify_receipt.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CONF_modules_free.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CONF_modules_load_file.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/CRYPTO_THREAD_run_once.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/CRYPTO_get_ex_new_index.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/CTLOG_STORE_get0_log_by_id.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/CTLOG_STORE_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/CTLOG_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/CT_POLICY_EVAL_CTX_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/DEFINE_STACK_OF.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/DES_random_key.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/DH_generate_key.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DH_generate_parameters.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DH_get0_pqg.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/DH_get_1024_160.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/DH_meth_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/DH_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DH_new_by_nid.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/DH_set_method.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DH_size.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DSA_SIG_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DSA_do_sign.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DSA_dup_DH.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DSA_generate_key.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DSA_generate_parameters.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DSA_get0_pqg.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/DSA_meth_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/DSA_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DSA_set_method.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DSA_sign.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DSA_size.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/DTLS_get_data_mtu.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/DTLS_set_timer_cb.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/DTLSv1_listen.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/ECDSA_SIG_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/ECPKParameters_print.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/EC_GFp_simple_method.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/EC_GROUP_copy.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/EC_GROUP_new.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/EC_KEY_get_enc_flags.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/EC_KEY_new.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/EC_POINT_add.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/EC_POINT_new.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/ENGINE_add.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/ERR_GET_LIB.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ERR_clear_error.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ERR_error_string.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ERR_get_error.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ERR_load_crypto_strings.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ERR_load_strings.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ERR_print_errors.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ERR_put_error.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ERR_remove_state.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/ERR_set_mark.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_BytesToKey.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER_CTX_get_cipher_data.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_CIPHER_meth_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_DigestInit.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_DigestSignInit.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_DigestVerifyInit.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_EncodeInit.3 up to 1.9
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_EncryptInit.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_MD_meth_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_OpenInit.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_ASN1_METHOD.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_CTX_ctrl.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_CTX_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_CTX_set1_pbe_pass.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_CTX_set_hkdf_md.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_CTX_set_rsa_pss_keygen_md.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_CTX_set_scrypt_N.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_CTX_set_tls1_prf_md.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_asn1_get_count.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_decrypt.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_derive.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_encrypt.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_get_default_digest_nid.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_keygen.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_meth_get_count.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_meth_new.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_print_private.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_set1_RSA.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_sign.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_verify.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_PKEY_verify_recover.3 up to 1.17
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_SealInit.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_SignInit.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_VerifyInit.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_bf_cbc.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_blake2b512.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_cast5_cbc.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_chacha20.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_desx_cbc.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_idea_cbc.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_md2.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_md4.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_md5.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_mdc2.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_rc2_cbc.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_rc4.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_rc5_32_12_16_cbc.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_ripemd160.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_seed_cbc.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_sha1.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_sha224.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_sha3_224.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_sm3.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_sm4_cbc.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/EVP_whirlpool.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/HMAC.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/MD5.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/MDC2_Init.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/Makefile up to 1.10
crypto/external/bsd/openssl/lib/libcrypto/man/OBJ_nid2obj.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/OCSP_REQUEST_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OCSP_cert_to_id.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OCSP_request_add1_nonce.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OCSP_resp_find_status.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OCSP_response_status.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OCSP_sendreq_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_Applink.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_LH_COMPFUNC.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_LH_stats.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_config.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_fork_prepare.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_ia32cap.3 up to 1.24
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_init_crypto.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_init_ssl.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_instrument_bus.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_load_builtin_modules.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_malloc.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OPENSSL_secure_malloc.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_STORE_INFO.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_STORE_LOADER.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_STORE_SEARCH.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_STORE_expect.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/OSSL_STORE_open.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/OpenSSL_add_all_algorithms.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/PEM_bytes_read_bio.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/PEM_read.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/PEM_read_CMS.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/PEM_read_bio_PrivateKey.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/PEM_read_bio_ex.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/PEM_write_bio_CMS_stream.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/PEM_write_bio_PKCS7_stream.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_create.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_newpass.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS12_parse.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS5_PBKDF2_HMAC.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS7_decrypt.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS7_encrypt.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS7_sign.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS7_sign_add_signer.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/PKCS7_verify.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RAND.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/RAND_add.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RAND_bytes.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RAND_cleanup.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RAND_egd.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RAND_load_file.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RAND_set_rand_method.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RC4_set_key.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/RIPEMD160_Init.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/RSA-PSS.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_blinding_on.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_check_key.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_generate_key.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_get0_key.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_meth_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_padding_add_PKCS1_type_1.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_print.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_private_encrypt.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_public_encrypt.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_set_method.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_sign.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_sign_ASN1_OCTET_STRING.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/RSA_size.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SCT_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SCT_print.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SCT_validate.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SHA256_Init.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SMIME_read_CMS.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SMIME_read_PKCS7.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SMIME_write_CMS.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SMIME_write_PKCS7.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CIPHER_get_name.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_COMP_add_compression_method.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CONF_CTX_new.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CONF_CTX_set1_prefix.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CONF_CTX_set_flags.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CONF_CTX_set_ssl_ctx.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CONF_cmd.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CONF_cmd_argv.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_add1_chain_cert.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_add_extra_chain_cert.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_add_session.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_config.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_ctrl.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_dane_enable.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_flush_sessions.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_free.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_get0_param.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_get_verify_mode.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_has_client_custom_ext.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_load_verify_locations.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_sess_number.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_sess_set_cache_size.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_sess_set_get_cb.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_sessions.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set0_CA_list.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set1_curves.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set1_sigalgs.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set1_verify_cert_store.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_alpn_select_cb.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_cert_cb.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_cert_store.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_cert_verify_callback.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_cipher_list.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_client_cert_cb.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_client_hello_cb.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_ct_validation_callback.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_ctlog_list_file.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_default_passwd_cb.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_generate_session_id.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_info_callback.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_keylog_callback.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_max_cert_list.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_min_proto_version.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_mode.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_msg_callback.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_num_tickets.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_options.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_psk_client_callback.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_quiet_shutdown.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_read_ahead.3 up to 1.10
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_record_padding_callback.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_security_level.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_session_cache_mode.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_session_id_context.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_session_ticket_cb.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_split_send_fragment.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_ssl_version.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_stateless_cookie_generate_cb.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_timeout.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_tlsext_servername_callback.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_tlsext_status_cb.3 up to 1.9
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_tlsext_ticket_key_cb.3 up to 1.12
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_tlsext_use_srtp.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_tmp_dh_callback.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_set_verify.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_use_certificate.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_use_psk_identity_hint.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_CTX_use_serverinfo.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_free.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_get0_cipher.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_get0_hostname.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_get0_id_context.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_get0_peer.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_get_compress_id.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_get_protocol_version.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_get_time.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_has_ticket.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_is_resumable.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_print.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_SESSION_set1_id.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_accept.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_alert_type_string.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_alloc_buffers.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_check_chain.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_clear.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_connect.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_do_handshake.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_export_keying_material.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_extension_supported.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_free.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get0_peer_scts.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_SSL_CTX.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_all_async_fds.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_ciphers.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_client_random.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_current_cipher.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_default_timeout.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_error.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_extms_support.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_fd.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_peer_cert_chain.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_peer_certificate.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_peer_signature_nid.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_peer_tmp_key.3 up to 1.4
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_psk_identity.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_rbio.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_session.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_shared_sigalgs.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_verify_result.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_get_version.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_in_init.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_key_update.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_library_init.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_load_client_CA_file.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_pending.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_read.3 up to 1.23
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_read_early_data.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_rstate_string.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_session_reused.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_set1_host.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_set_bio.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_set_connect_state.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_set_fd.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_set_session.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_set_shutdown.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_set_verify_result.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_shutdown.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_state_string.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_want.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/SSL_write.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/UI_STRING.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/UI_UTIL_read_pw.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/UI_create_method.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/UI_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X25519.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/X509V3_get_d2i.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_ALGOR_dup.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_CRL_get0_by_serial.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_EXTENSION_set_object.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_LOOKUP_hash_dir.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_LOOKUP_meth_new.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/X509_NAME_ENTRY_get_object.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/X509_NAME_add_entry_by_txt.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/X509_NAME_get0_der.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_NAME_get_index_by_NID.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/X509_NAME_print_ex.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/X509_PUBKEY_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_SIG_get0.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_STORE_CTX_get_error.3 up to 1.21
crypto/external/bsd/openssl/lib/libcrypto/man/X509_STORE_CTX_new.3 up to 1.21
crypto/external/bsd/openssl/lib/libcrypto/man/X509_STORE_CTX_set_verify_cb.3 up to 1.21
crypto/external/bsd/openssl/lib/libcrypto/man/X509_STORE_add_cert.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/X509_STORE_get0_param.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_STORE_new.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_STORE_set_verify_cb_func.3 up to 1.21
crypto/external/bsd/openssl/lib/libcrypto/man/X509_VERIFY_PARAM_set_flags.3 up to 1.21
crypto/external/bsd/openssl/lib/libcrypto/man/X509_check_ca.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_check_host.3 up to 1.7
crypto/external/bsd/openssl/lib/libcrypto/man/X509_check_issued.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_check_private_key.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/X509_cmp_time.3 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/X509_digest.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_dup.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_get0_notBefore.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_get0_signature.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_get0_uids.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_get_extension_flags.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_get_pubkey.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_get_serialNumber.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_get_subject_name.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_get_version.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_new.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/X509_sign.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/X509_verify_cert.3 up to 1.21
crypto/external/bsd/openssl/lib/libcrypto/man/X509v3_get_ext_by_NID.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/bio.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/crypto.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/ct.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/d2i_PKCS8PrivateKey_bio.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/d2i_PrivateKey.3 up to 1.9
crypto/external/bsd/openssl/lib/libcrypto/man/d2i_SSL_SESSION.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/d2i_X509.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/des_modes.7 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/evp.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/i2d_CMS_bio_stream.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/i2d_PKCS7_bio_stream.3 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/i2d_re_X509_tbs.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/o2i_SCT_LIST.3 up to 1.6
crypto/external/bsd/openssl/lib/libcrypto/man/openssl.1 up to 1.21
crypto/external/bsd/openssl/lib/libcrypto/man/openssl_CA.pl.1 up to 1.22
crypto/external/bsd/openssl/lib/libcrypto/man/openssl_config.5 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/openssl_tsget.1 up to 1.23
crypto/external/bsd/openssl/lib/libcrypto/man/ossl_store-file.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/ossl_store.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/passphrase-encoding.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/ssl.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/x509.7 up to 1.5
crypto/external/bsd/openssl/lib/libcrypto/man/x509v3_config.5 up to 1.5
crypto/external/bsd/openssl/lib/libcryptotest/Makefile up to 1.5
crypto/external/bsd/openssl/lib/libdes/shlib_version up to 1.7
crypto/external/bsd/openssl/lib/libssl/Makefile up to 1.18
crypto/external/bsd/openssl/lib/libssl/record.inc up to 1.3
crypto/external/bsd/openssl/lib/libssl/shlib_version up to 1.16
crypto/external/bsd/openssl/lib/libssl/ssl.inc up to 1.11
crypto/external/bsd/openssl/lib/libssl/ssl.map up to 1.4
crypto/external/bsd/openssl/lib/libssl/statem.inc up to 1.3
crypto/Makefile.openssl up to 1.19
crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c 1.29
crypto/external/bsd/libsaslc/lib/Makefile 1.10
crypto/external/bsd/netpgp/lib/netpgp/Makefile 1.5
crypto/external/bsd/openssh/bin/ssh-agent/Makefile 1.6
crypto/external/bsd/openssh/bin/ssh-keygen/Makefile 1.9
crypto/external/bsd/openssh/bin/ssh-keyscan/Makefile 1.6
crypto/external/bsd/openssh/bin/ssh-pkcs11-helper/Makefile 1.4
crypto/external/bsd/openssh/bin/sshd/Makefile 1.26
crypto/external/bsd/openssh/lib/Makefile 1.35
crypto/external/bsd/openssh/libexec/ssh-sk-helper/Makefile 1.4
distrib/sets/deps 1.23
distrib/sets/lists/base/ad.aarch64 1.38-1.43 (patch)
distrib/sets/lists/base/ad.mips 1.84,1.87,1.88,1.90 (patch)
distrib/sets/lists/base/ad.powerpc 1.41,1.42,1.45-1.47 (patch)
distrib/sets/lists/base/ad.riscv 1.24,1.25,1.28,1.29,1.30 (patch)
distrib/sets/lists/base/md.amd64 1.288,1.291-1.293,1.295 (patch)
distrib/sets/lists/base/md.i386 1.158 (patch)
distrib/sets/lists/base/md.riskv64 delete
distrib/sets/lists/base/md.sparc64 1.258,1.261,1.262 (patch)
distrib/sets/lists/base/mi 1.1316-1.1319,1.1322-1.1324 (patch)
distrib/sets/lists/base/shl.mi 1.948 (patch)
distrib/sets/lists/comp/mi 1.2427,1.2428,1.2431,1.2432 (patch)
distrib/sets/lists/debug/mi 1.398,1.404,1.405 (patch)
distrib/sets/lists/debug/shl.mi 1.305 (patch)
distrib/sets/lists/man/mi 1.1760,1.1761 (patch)
distrib/sets/lists/tests/mi 1.1261,1.1262,1.1270 (patch)
etc/mtree/NetBSD.compat.mips64 1.2 (patch)
etc/mtree/NetBSD.compat.powerpc64 1.2 (patch)
etc/mtree/NetBSD.compat.riscv64 1.2 (patch)
etc/mtree/NetBSD.dist.aarch64 1.10,1.11 (patch)
etc/mtree/NetBSD.dist.base 1.248 (patch)
etc/mtree/NetBSD.dist.compat.in 1.3,1.4 (patch)
etc/mtree/NetBSD.dist.sparc64 1.15,1.16 (patch)
etc/mtree/NetBSD.dist.x86_64 1.17-1.19 (patch)
external/bsd/libarchive/lib/libarchive/Makefile 1.15
external/bsd/libfido2/bin/fido2-assert/Makefile 1.3
external/bsd/libfido2/bin/fido2-cred/Makefile 1.3
external/bsd/libfido2/bin/fido2-token/Makefile 1.3
external/bsd/libfido2/dist/src/assert.c 1.2
external/bsd/libfido2/dist/src/cred.c 1.2
external/bsd/libfido2/lib/Makefile 1.9
external/bsd/ntp/bin/ntp-keygen/Makefile 1.8
external/bsd/ntp/bin/ntpd/Makefile 1.29
external/bsd/ntp/bin/sntp/Makefile 1.10
external/bsd/ntp/dist/ntpd/ntp_crypto.c 1.17
external/bsd/ntp/dist/util/ntp-keygen.c 1.15
external/bsd/ntp/lib/libntp/Makefile 1.26
external/bsd/openldap/lib/libldap/Makefile.libldap 1.14
external/bsd/pam-u2f/bin/pamu2fcfg/Makefile 1.5
external/bsd/pam-u2f/lib/security/pam-u2f/Makefile 1.6
external/bsd/tcpdump/bin/Makefile 1.22
external/bsd/unbound/lib/libunbound/Makefile 1.8
external/bsd/wpa/bin/hostapd/Makefile 1.16
external/bsd/wpa/bin/wpa_passphrase/Makefile 1.6
external/bsd/wpa/bin/wpa_supplicant/Makefile 1.11
external/mpl/dhcp/dist/common/dispatch.c 1.4,1.5
games/factor/Makefile 1.15
lib/Makefile 1.295
libexec/httpd/Makefile 1.32
libexec/httpd/libbozohttpd/Makefile 1.4
share/mk/bsd.lib.mk 1.391
share/mk/bsd.own.mk 1.1316
share/mk/bsd.prog.mk 1.342,1.343
tests/crypto/libcrypto/Makefile 1.15
tests/crypto/libcrypto/Makefile.inc 1.11
tests/crypto/libcrypto/conf/Makefile 1.2
tests/crypto/libcrypto/conf/d_conf-1x.out 1.1
tests/crypto/libcrypto/conf/d_conf-3x.out 1.1
tests/crypto/libcrypto/conf/d_conf.out delete
tests/crypto/libcrypto/dh/Makefile 1.2
tests/crypto/libcrypto/evp/Makefile 1.3
tests/crypto/libcrypto/t_hashes.sh 1.5
tests/crypto/libcrypto/t_libcrypto.sh 1.9
tests/crypto/libcrypto/t_pubkey.sh 1.7
tests/crypto/libcrypto/threads/Makefile 1.6
usr.bin/moduli/qsafe/Makefile 1.2
usr.sbin/plainrsa-gen/Makefile 1.2
usr.sbin/racoon/Makefile 1.41,1.42
usr.sbin/syslogd/Makefile 1.32
crypto/external/bsd/openssl.old/ (removed)

Import of OpenSSL 3.0.
Import of bind 9.16.42.
Import of heimdal 7.8.0.
 1.3.12.1 05-Mar-2021  martin Pull up the following (all via patch), requested by mrg in ticket #1221:

lib/lua/bozohttpd/Makefile (apply patch)
libexec/httpd/Makefile 1.30-1.31
libexec/httpd/Makefile.boot 1.7-1.9
libexec/httpd/auth-bozo.c 1.25-1.26
libexec/httpd/bozohttpd.8 1.80-1.87
libexec/httpd/bozohttpd.c 1.114-1.123,1.125-1.128
libexec/httpd/bozohttpd.h 1.61-1.68
libexec/httpd/cgi-bozo.c 1.49-1.53
libexec/httpd/content-bozo.c 1.17-1.20
libexec/httpd/daemon-bozo.c 1-.22
libexec/httpd/dir-index-bozo.c 1.33-1.34
libexec/httpd/main.c 1.23-1.27
libexec/httpd/printenv.lua 1.4-1.5
libexec/httpd/ssl-bozo.c 1.27-1.29
libexec/httpd/libbozohttpd/libbozohttpd.3 1.5-1.6
libexec/httpd/small/Makefile 1.4
libexec/httpd/testsuite/Makefile 1.14
libexec/httpd/testsuite/t16.in 1.1
libexec/httpd/testsuite/t16.out 1.1
libexec/httpd/testsuite/t17.in 1.1
libexec/httpd/testsuite/t17.out 1.1
libexec/httpd/testsuite/t18.in 1.1
libexec/httpd/testsuite/t18.out 1.1


Update to bozohttpd 20210227.
Apply lua build fix (no blocklist support on this branch).

changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.3.2.1 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.1 22-Nov-2024  riastradh branches: 1.1.4;
libbozohttpd: Add expected symbols list.

PR lib/58838: shared libraries in base should all have expsym lists
 1.1.4.2 02-Aug-2025  perseant Sync with HEAD
 1.1.4.1 22-Nov-2024  perseant file bozohttpd.expsym was added on branch perseant-exfatfs on 2025-08-02 05:55:00 +0000
 1.7 04-Feb-2024  mrg update my email address.
 1.6 27-Feb-2021  mrg belated call version 20210211 after previous memory leak fix.
 1.5 11-Feb-2021  mrg clean up issues detected by address sanitizer (just some memory
leaks that only apply to the library version.)

XXX: the handling of hr_file and its variants is more crappy
again - the prior clean up is slightly less clean now, but at
least it does not leak memory.

XXX2: cgi-bin test hangs with address sanitizer. don't know
why yet..
 1.4 04-Feb-2017  mrg branches: 1.4.4; 1.4.14;
fix the prototype for bozo_set_pref(). from cfkoch
 1.3 18-Mar-2014  riastradh branches: 1.3.4; 1.3.6; 1.3.8; 1.3.10; 1.3.12; 1.3.14; 1.3.16; 1.3.18;
Merge riastradh-drm2 to HEAD.
 1.2 20-Jul-2013  wiz Use Mt for email addresses.
 1.1 10-May-2010  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 10-May-2010  mrg branches: 1.1.1.1.6; 1.1.1.1.8; 1.1.1.1.12; 1.1.1.1.14; 1.1.1.1.16; 1.1.1.1.20;
import bozohttpd 20100509. it has these changes:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
 1.1.1.1.20.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437:
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.1.1.1.20.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.1.1.1.16.1 23-Jul-2013  riastradh sync with HEAD
 1.1.1.1.14.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.1.1.1.14.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.1.1.1.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.1.1.8.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.1.1.1.8.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.1.1.1.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3.18.1 21-Apr-2017  bouyer Sync with HEAD
 1.3.16.1 13-Mar-2017  skrll Sync with netbsd-7-1-RELEASE
 1.3.14.1 20-Mar-2017  pgoyette Sync with HEAD
 1.3.12.1 12-Feb-2017  snj Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.3.10.1 12-Feb-2017  snj Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.3.8.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.3.8.1 18-Mar-2014  msaitoh file libbozohttpd.3 was added on branch netbsd-5-1 on 2014-07-09 16:09:39 +0000
 1.3.6.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.3.6.1 18-Mar-2014  msaitoh file libbozohttpd.3 was added on branch netbsd-5-2 on 2014-07-09 16:04:13 +0000
 1.3.4.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.3.4.1 18-Mar-2014  msaitoh file libbozohttpd.3 was added on branch netbsd-5 on 2014-07-09 15:21:21 +0000
 1.4.14.1 05-Mar-2021  martin Pull up the following (all via patch), requested by mrg in ticket #1221:

lib/lua/bozohttpd/Makefile (apply patch)
libexec/httpd/Makefile 1.30-1.31
libexec/httpd/Makefile.boot 1.7-1.9
libexec/httpd/auth-bozo.c 1.25-1.26
libexec/httpd/bozohttpd.8 1.80-1.87
libexec/httpd/bozohttpd.c 1.114-1.123,1.125-1.128
libexec/httpd/bozohttpd.h 1.61-1.68
libexec/httpd/cgi-bozo.c 1.49-1.53
libexec/httpd/content-bozo.c 1.17-1.20
libexec/httpd/daemon-bozo.c 1-.22
libexec/httpd/dir-index-bozo.c 1.33-1.34
libexec/httpd/main.c 1.23-1.27
libexec/httpd/printenv.lua 1.4-1.5
libexec/httpd/ssl-bozo.c 1.27-1.29
libexec/httpd/libbozohttpd/libbozohttpd.3 1.5-1.6
libexec/httpd/small/Makefile 1.4
libexec/httpd/testsuite/Makefile 1.14
libexec/httpd/testsuite/t16.in 1.1
libexec/httpd/testsuite/t16.out 1.1
libexec/httpd/testsuite/t17.in 1.1
libexec/httpd/testsuite/t17.out 1.1
libexec/httpd/testsuite/t18.in 1.1
libexec/httpd/testsuite/t18.out 1.1


Update to bozohttpd 20210227.
Apply lua build fix (no blocklist support on this branch).

changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.4.4.1 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.2 06-Sep-2023  riastradh libbozohttpd, libluabozohttpd: Bump major for libssl.so bump.

libluabozohttpd doesn't appear to be installed, but let's bump the
major just in case.

PR lib/57603

XXX pullup-10
 1.1 10-May-2010  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 10-May-2010  mrg branches: 1.1.1.1.24; 1.1.1.1.26; 1.1.1.1.28; 1.1.1.1.62;
import bozohttpd 20100509. it has these changes:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
 1.1.1.1.62.1 06-Sep-2023  martin Pull up following revision(s) (requested by riastradh in ticket #351):

libexec/httpd/lua/shlib_version: revision 1.2
distrib/sets/lists/base/shl.mi: revision 1.971
libexec/httpd/libbozohttpd/shlib_version: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.332
(all via patch)

libbozohttpd, libluabozohttpd: Bump major for libssl.so bump.
libluabozohttpd doesn't appear to be installed, but let's bump the
major just in case.

PR lib/57603
 1.1.1.1.28.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.28.1 10-May-2010  msaitoh file shlib_version was added on branch netbsd-5-1 on 2014-07-09 16:09:39 +0000
 1.1.1.1.26.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.26.1 10-May-2010  msaitoh file shlib_version was added on branch netbsd-5-2 on 2014-07-09 16:04:13 +0000
 1.1.1.1.24.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.24.1 10-May-2010  msaitoh file shlib_version was added on branch netbsd-5 on 2014-07-09 15:21:21 +0000
 1.1 10-May-2010  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 10-May-2010  mrg branches: 1.1.1.1.24; 1.1.1.1.26; 1.1.1.1.28;
import bozohttpd 20100509. it has these changes:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
 1.1.1.1.28.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.28.1 10-May-2010  msaitoh file Makefile was added on branch netbsd-5-1 on 2014-07-09 16:09:39 +0000
 1.1.1.1.26.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.26.1 10-May-2010  msaitoh file Makefile was added on branch netbsd-5-2 on 2014-07-09 16:04:13 +0000
 1.1.1.1.24.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.24.1 10-May-2010  msaitoh file Makefile was added on branch netbsd-5 on 2014-07-09 15:21:21 +0000
 1.3 02-May-2018  sevan Pass the expected httpd instance when calling set_pref()
process_request() only takes a single argument.
 1.2 28-Oct-2015  shm branches: 1.2.8; 1.2.14;
* add CGI support for ~user translation (-E switch)
* add redirects to ~user translation
* fix bugs around ~user translation
* add schema detection for absolute redirects
* fixed few memory leaks
* bunch of minor tweaks
* removed -r support
* smarter redirects

OK mrg@
 1.1 10-May-2010  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 10-May-2010  mrg branches: 1.1.1.1.8; 1.1.1.1.14; 1.1.1.1.20; 1.1.1.1.24; 1.1.1.1.26; 1.1.1.1.28; 1.1.1.1.30; 1.1.1.1.32;
import bozohttpd 20100509. it has these changes:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
 1.1.1.1.32.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.1.1.32.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.1.1.1.30.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.1.1.30.1 15-Apr-2016  snj branches: 1.1.1.1.30.1.4;
Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.1.1.1.30.1.4.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.1.1.28.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.28.1 10-May-2010  msaitoh file bozo.lua was added on branch netbsd-5-1 on 2014-07-09 16:09:39 +0000
 1.1.1.1.26.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.26.1 10-May-2010  msaitoh file bozo.lua was added on branch netbsd-5-2 on 2014-07-09 16:04:13 +0000
 1.1.1.1.24.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.24.1 10-May-2010  msaitoh file bozo.lua was added on branch netbsd-5 on 2014-07-09 15:21:21 +0000
 1.1.1.1.20.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.1.1.1.14.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.1.1.1.8.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.2.14.1 02-May-2018  pgoyette Synch with HEAD
 1.2.8.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.5 11-May-2018  sevan remove definition of LUA_USE_APICHECK, it is a build time option for Lua
itself. Not for modules.
 1.4 04-May-2018  sevan Do not try and process empty requests. This resolves a crash when issuing a
carriage return to read_request() in foreground mode.
In the C daemon, a NULL check is performed on bozo_read_request in main.c
before moving on to bozo_process_request & bozo_clean_request. Here,
process_request & clean_request just return instead.
 1.3 01-May-2018  sevan Enable checking arguments for validity.
Remove disabled code.
Fix function parameters.
Add support for Lua 5.3
 1.2 27-Dec-2015  mrg branches: 1.2.8; 1.2.14;
several clean ups:

- bozostrdup() gains a request parameter, and uses it to determine
what sort of error handling is required
- bozo_strdup() dies
- size_arrays() reduced slightly, pushing error handling into the caller
- convert to size_t for some array indices
- bozo_set_pref() and bozo_init_prefs() gain httpd parameters
- apply a bunch of manual CSE to vastly reduce the number of times the
string "request->hr_httpd" appears.
- CGI parse_header() takes a request not httpd now

XXX: lua glue updated to call bozo_init_prefs() with htttpd parameter,
but i'm only guessing here.
 1.1 10-May-2010  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 10-May-2010  mrg branches: 1.1.1.1.8; 1.1.1.1.14; 1.1.1.1.20; 1.1.1.1.24; 1.1.1.1.26; 1.1.1.1.28; 1.1.1.1.30; 1.1.1.1.32;
import bozohttpd 20100509. it has these changes:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
 1.1.1.1.32.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.1.1.32.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.1.1.1.30.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.1.1.30.1 15-Apr-2016  snj branches: 1.1.1.1.30.1.4;
Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.1.1.1.30.1.4.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.1.1.28.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.28.1 10-May-2010  msaitoh file glue.c was added on branch netbsd-5-1 on 2014-07-09 16:09:39 +0000
 1.1.1.1.26.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.26.1 10-May-2010  msaitoh file glue.c was added on branch netbsd-5-2 on 2014-07-09 16:04:13 +0000
 1.1.1.1.24.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.24.1 10-May-2010  msaitoh file glue.c was added on branch netbsd-5 on 2014-07-09 15:21:21 +0000
 1.1.1.1.20.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.1.1.1.14.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.1.1.1.8.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.2.14.2 21-May-2018  pgoyette Sync with HEAD
 1.2.14.1 02-May-2018  pgoyette Synch with HEAD
 1.2.8.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.2 02-May-2018  sevan Unbreak script for Lua 5.3.
This change breaks support for older releases of Lua.
 1.1 10-May-2010  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 10-May-2010  mrg branches: 1.1.1.1.24; 1.1.1.1.26; 1.1.1.1.28; 1.1.1.1.30; 1.1.1.1.32; 1.1.1.1.40; 1.1.1.1.44; 1.1.1.1.50;
import bozohttpd 20100509. it has these changes:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
 1.1.1.1.50.1 02-May-2018  pgoyette Synch with HEAD
 1.1.1.1.44.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.1.1.40.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.1.1.32.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.1.1.30.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.1.1.28.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.28.1 10-May-2010  msaitoh file optparse.lua was added on branch netbsd-5-1 on 2014-07-09 16:09:39 +0000
 1.1.1.1.26.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.26.1 10-May-2010  msaitoh file optparse.lua was added on branch netbsd-5-2 on 2014-07-09 16:04:13 +0000
 1.1.1.1.24.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.24.1 10-May-2010  msaitoh file optparse.lua was added on branch netbsd-5 on 2014-07-09 15:21:21 +0000
 1.2 06-Sep-2023  riastradh libbozohttpd, libluabozohttpd: Bump major for libssl.so bump.

libluabozohttpd doesn't appear to be installed, but let's bump the
major just in case.

PR lib/57603

XXX pullup-10
 1.1 10-May-2010  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 10-May-2010  mrg branches: 1.1.1.1.24; 1.1.1.1.26; 1.1.1.1.28; 1.1.1.1.62;
import bozohttpd 20100509. it has these changes:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
 1.1.1.1.62.1 06-Sep-2023  martin Pull up following revision(s) (requested by riastradh in ticket #351):

libexec/httpd/lua/shlib_version: revision 1.2
distrib/sets/lists/base/shl.mi: revision 1.971
libexec/httpd/libbozohttpd/shlib_version: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.332
(all via patch)

libbozohttpd, libluabozohttpd: Bump major for libssl.so bump.
libluabozohttpd doesn't appear to be installed, but let's bump the
major just in case.

PR lib/57603
 1.1.1.1.28.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.28.1 10-May-2010  msaitoh file shlib_version was added on branch netbsd-5-1 on 2014-07-09 16:09:39 +0000
 1.1.1.1.26.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.26.1 10-May-2010  msaitoh file shlib_version was added on branch netbsd-5-2 on 2014-07-09 16:04:13 +0000
 1.1.1.1.24.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.24.1 10-May-2010  msaitoh file shlib_version was added on branch netbsd-5 on 2014-07-09 15:21:21 +0000
 1.6 08-Apr-2021  rillig bozohttpd-small: fix typo in SRCS, fix targets dependall and lint

The additional ':' after 'main.c' had no effect on the compilation since
the suffix is removed when computing the list of object files. The ':'
excluded main.c from the dependency computation and from lint.

By defining CPPFLAGS instead of CFLAGS, the default "-O2" steps in
again, and the proper flags are passed to lint, which did not work
before at all because it could not find an included file.
 1.5 08-Apr-2021  rillig bozohttpd-small: fix error handling for unifdef

The second of the '$$?' was spelled only '$?'. At the time where this
shell expression was evaluated, it had already been overwritten by the
preceding command '['.
 1.4 13-Jul-2020  jruoho Add -DNO_BLOCKLIST_SUPPORT also to small/Makefile.
 1.3 17-Jul-2014  mrg branches: 1.3.16; 1.3.26;
link against main.c and ssl-bozo.c (which provides the IO backend.)
 1.2 02-Jan-2014  mrg branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8;
- update CHANGES with recent changes
- update version to 20140102
- update copyrights
- use getcwd() over getwd()
- fix lean build (don't include lua)
 1.1 23-May-2009  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 23-May-2009  mrg branches: 1.1.1.1.6; 1.1.1.1.8; 1.1.1.1.12; 1.1.1.1.14; 1.1.1.1.20;
import bozohttpd 20090522, which has these changes:
o close more leaking file descriptors for CGI and daemon mode
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child
 1.1.1.1.20.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437:
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.1.1.1.20.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.1.1.1.14.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.1.1.1.14.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.1.1.1.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.1.1.8.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.1.1.1.8.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1095):
libexec/httpd/CHANGES 1.12-1.18
libexec/httpd/Makefile 1.13-1.22
libexec/httpd/Makefile.boot 1.6
libexec/httpd/auth-bozo.c 1.11-1.13
libexec/httpd/bozohttpd.8 1.33-1.46
libexec/httpd/bozohttpd.c 1.31-1.54
libexec/httpd/bozohttpd.h 1.21-1.32
libexec/httpd/cgi-bozo.c 1.21-1.25
libexec/httpd/content-bozo.c 1.8-1.10
libexec/httpd/daemon-bozo.c 1.16-1.16
libexec/httpd/dir-index-bozo.c 1.15-1.19
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.6-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/ssl-bozo.c 1.14-1.16
libexec/httpd/tilde-luzah-bozo.c 1.10
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.2-1.3
libexec/httpd/small/Makefile 1.2

Update bozohttpd from 20111118 to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs
 1.1.1.1.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2.8.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.8.1 02-Jan-2014  msaitoh file Makefile was added on branch netbsd-5-1 on 2014-07-09 16:09:39 +0000
 1.2.6.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.6.1 02-Jan-2014  msaitoh file Makefile was added on branch netbsd-5-2 on 2014-07-09 16:04:13 +0000
 1.2.4.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.4.1 02-Jan-2014  msaitoh file Makefile was added on branch netbsd-5 on 2014-07-09 15:21:21 +0000
 1.2.2.1 10-Aug-2014  tls Rebase.
 1.3.26.1 05-Mar-2021  martin Pull up the following (all via patch), requested by mrg in ticket #1221:

lib/lua/bozohttpd/Makefile (apply patch)
libexec/httpd/Makefile 1.30-1.31
libexec/httpd/Makefile.boot 1.7-1.9
libexec/httpd/auth-bozo.c 1.25-1.26
libexec/httpd/bozohttpd.8 1.80-1.87
libexec/httpd/bozohttpd.c 1.114-1.123,1.125-1.128
libexec/httpd/bozohttpd.h 1.61-1.68
libexec/httpd/cgi-bozo.c 1.49-1.53
libexec/httpd/content-bozo.c 1.17-1.20
libexec/httpd/daemon-bozo.c 1-.22
libexec/httpd/dir-index-bozo.c 1.33-1.34
libexec/httpd/main.c 1.23-1.27
libexec/httpd/printenv.lua 1.4-1.5
libexec/httpd/ssl-bozo.c 1.27-1.29
libexec/httpd/libbozohttpd/libbozohttpd.3 1.5-1.6
libexec/httpd/small/Makefile 1.4
libexec/httpd/testsuite/Makefile 1.14
libexec/httpd/testsuite/t16.in 1.1
libexec/httpd/testsuite/t16.out 1.1
libexec/httpd/testsuite/t17.in 1.1
libexec/httpd/testsuite/t17.out 1.1
libexec/httpd/testsuite/t18.in 1.1
libexec/httpd/testsuite/t18.out 1.1


Update to bozohttpd 20210227.
Apply lua build fix (no blocklist support on this branch).

changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.3.16.1 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.14 11-Feb-2021  mrg changes in bozohttpd 20210210:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
 1.13 27-Mar-2019  mrg branches: 1.13.2;
add $NetBSD$
 1.12 14-Dec-2018  maya Don't pass ${HOST} to test scripts.
htnl_cmp compares against the output of `hostname`.

This makes the tests pass on my machine.
 1.11 21-Nov-2018  mrg - move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.
 1.10 20-Nov-2018  mrg from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.


the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.


reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.


clean up option and usage handling some.
 1.9 19-Nov-2018  mrg fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.
 1.8 24-Aug-2018  martin Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@
 1.7 31-Jan-2017  mrg branches: 1.7.4; 1.7.10; 1.7.12;
- fix a bug in cgi processing. from Dennis Lindroos.
- add a testcase for this, and expand test-simple to handle additional
args to bozohttpd for eg, cgi-bin setting.
- fix objdir bugs in the testsuite.
 1.6 23-Sep-2016  schmonz branches: 1.6.2;
Add a VERBOSE knob to the testsuite ("yes" by default, producing
basically the same output as before). When turned off, tests run
silently except when there's a failure.

Reviewed by mrg@.
 1.5 27-Dec-2015  mrg branches: 1.5.2;
fix running the testsuite from the build tree
 1.4 23-May-2009  mrg branches: 1.4.8; 1.4.14; 1.4.20; 1.4.24; 1.4.26;
merge bozohttpd 20090522
 1.3 18-Apr-2009  mrg re-add a lot of the distribution files
 1.2 16-Oct-2007  tls branches: 1.2.10; 1.2.12; 1.2.16; 1.2.20;
Get httpd ready for inclusion in build.
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.4 23-May-2009  mrg import bozohttpd 20090522, which has these changes:
o close more leaking file descriptors for CGI and daemon mode
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child
 1.1.1.3 18-Apr-2009  mrg import latest bozohttpd sources. changes include:

o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.2 03-Mar-2008  mrg import latest bozohttpd. changes include:

o fix some cgi header processing, from <thelsdj@gmail.com>
o add simple Range: header processing, from <bad@bsd.de>
o man page fixes, from NetBSD
o clean up various parts, from NetBSD
o prefix some function names with "bozo"
o align directory indexing <hr> markers
o clean up some code GCC4 grumbled about
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.2.20.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.16.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.12.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.10.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.4.26.5 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.4.26.4 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.4.26.3 12-Feb-2017  snj Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.4.26.2 23-Dec-2016  snj Pull up following revision(s) (requested by mrg in ticket #1309):
libexec/httpd/CHANGES: revisions 1.23, 1.24
libexec/httpd/bozohttpd.8: revisions 1.60-1.62
libexec/httpd/bozohttpd.c: revisions 1.81-1.84
libexec/httpd/bozohttpd.h: revision 1.46
libexec/httpd/cgi-bozo.c: revision 1.35
libexec/httpd/content-bozo.c: revision 1.14
libexec/httpd/main.c: revisions 1.14-1.16
libexec/httpd/testsuite/Makefile: revision 1.6
libexec/httpd/testsuite/test-bigfile: revision 1.3
libexec/httpd/testsuite/test-simple: revisions 1.1, 1.2
update bozohttpd to 2016072:
- fix memory leak
- addd -G option to display version
- fix some content type issues
- fix issues in testsuite
 1.4.26.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.4.24.5 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.4.24.4 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.4.24.3 12-Feb-2017  snj branches: 1.4.24.3.2;
Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.4.24.2 23-Dec-2016  snj Pull up following revision(s) (requested by mrg in ticket #1309):
libexec/httpd/CHANGES: revisions 1.23, 1.24
libexec/httpd/bozohttpd.8: revisions 1.60-1.62
libexec/httpd/bozohttpd.c: revisions 1.81-1.84
libexec/httpd/bozohttpd.h: revision 1.46
libexec/httpd/cgi-bozo.c: revision 1.35
libexec/httpd/content-bozo.c: revision 1.14
libexec/httpd/main.c: revisions 1.14-1.16
libexec/httpd/testsuite/Makefile: revision 1.6
libexec/httpd/testsuite/test-bigfile: revision 1.3
libexec/httpd/testsuite/test-simple: revisions 1.1, 1.2
update bozohttpd to 2016072:
- fix memory leak
- addd -G option to display version
- fix some content type issues
- fix issues in testsuite
 1.4.24.1 10-Apr-2016  martin branches: 1.4.24.1.2;
Catch up to -current (via patch), requested by mspo in #1141:

libexec/httpd/CHANGES up to 1.21
libexec/httpd/Makefile up to 1.26
libexec/httpd/auth-bozo.c up to 1.18
libexec/httpd/bozohttpd.8 up to 1.58
libexec/httpd/bozohttpd.c up to 1.79
libexec/httpd/bozohttpd.h up to 1.44
libexec/httpd/cgi-bozo.c up to 1.32
libexec/httpd/content-bozo.c up to 1.13
libexec/httpd/daemon-bozo.c up to 1.17
libexec/httpd/dir-index-bozo.c up to 1.25
libexec/httpd/lua-bozo.c up to 1.14
libexec/httpd/main.c up to 1.13
libexec/httpd/netbsd_queue.h up to 1.1
libexec/httpd/printenv.lua up to 1.3
libexec/httpd/ssl-bozo.c up to 1.22
libexec/httpd/tilde-luzah-bozo.c up to 1.14
libexec/httpd/testsuite/Makefile up to 1.5
libexec/httpd/testsuite/test-bigfile up to 1.2

Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
 1.4.24.3.2.2 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.4.24.3.2.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.4.24.1.2.2 13-Mar-2017  skrll Sync with netbsd-7-1-RELEASE
 1.4.24.1.2.1 18-Jan-2017  skrll Sync with netbsd-5
 1.4.20.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437:
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.4.20.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.4.14.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.4.14.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.4.8.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.4.8.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.5.2.2 20-Mar-2017  pgoyette Sync with HEAD
 1.5.2.1 04-Nov-2016  pgoyette Sync with HEAD
 1.6.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.7.12.1 10-Jun-2019  christos Sync with HEAD
 1.7.10.3 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.7.10.2 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.7.10.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.7.4.3 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.7.4.2 12-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1281:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6


Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.7.4.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.13.2.1 05-Mar-2021  martin Pull up the following (all via patch), requested by mrg in ticket #1221:

lib/lua/bozohttpd/Makefile (apply patch)
libexec/httpd/Makefile 1.30-1.31
libexec/httpd/Makefile.boot 1.7-1.9
libexec/httpd/auth-bozo.c 1.25-1.26
libexec/httpd/bozohttpd.8 1.80-1.87
libexec/httpd/bozohttpd.c 1.114-1.123,1.125-1.128
libexec/httpd/bozohttpd.h 1.61-1.68
libexec/httpd/cgi-bozo.c 1.49-1.53
libexec/httpd/content-bozo.c 1.17-1.20
libexec/httpd/daemon-bozo.c 1-.22
libexec/httpd/dir-index-bozo.c 1.33-1.34
libexec/httpd/main.c 1.23-1.27
libexec/httpd/printenv.lua 1.4-1.5
libexec/httpd/ssl-bozo.c 1.27-1.29
libexec/httpd/libbozohttpd/libbozohttpd.3 1.5-1.6
libexec/httpd/small/Makefile 1.4
libexec/httpd/testsuite/Makefile 1.14
libexec/httpd/testsuite/t16.in 1.1
libexec/httpd/testsuite/t16.out 1.1
libexec/httpd/testsuite/t17.in 1.1
libexec/httpd/testsuite/t17.out 1.1
libexec/httpd/testsuite/t18.in 1.1
libexec/httpd/testsuite/t18.out 1.1


Update to bozohttpd 20210227.
Apply lua build fix (no blocklist support on this branch).

changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.6 21-Nov-2018  mrg - move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.
 1.5 27-Dec-2016  schmonz branches: 1.5.6; 1.5.12; 1.5.14;
When testing non-verbosely, show diff on failure. ok mrg@
 1.4 18-Nov-2011  mrg branches: 1.4.2; 1.4.8; 1.4.14; 1.4.18; 1.4.20; 1.4.22; 1.4.24;
merge bozohttpd 20111118
 1.3 18-Apr-2009  mrg branches: 1.3.6;
re-add a lot of the distribution files
 1.2 16-Oct-2007  tls branches: 1.2.10; 1.2.12; 1.2.16; 1.2.20;
Get httpd ready for inclusion in build.
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.2 18-Nov-2011  mrg update to bozohttpd 20111118. nothing major is missing here but
the changes since the prior import were:

o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.2.20.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.16.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.12.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.10.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.3.6.1 17-Apr-2012  yamt sync with head
 1.4.24.1 13-Mar-2017  skrll Sync with netbsd-7-1-RELEASE
 1.4.22.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.4.20.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.4.20.1 12-Feb-2017  snj Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.4.18.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.4.18.1 12-Feb-2017  snj branches: 1.4.18.1.2;
Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.4.18.1.2.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.4.14.1 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437:
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.4.8.1 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.4.2.1 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.5.14.1 10-Jun-2019  christos Sync with HEAD
 1.5.12.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.5.6.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.3 18-Apr-2009  mrg re-add a lot of the distribution files
 1.2 16-Oct-2007  tls branches: 1.2.10; 1.2.12; 1.2.16; 1.2.20;
Get httpd ready for inclusion in build.
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.2.20.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.16.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.12.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.10.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.3 18-Apr-2009  mrg re-add a lot of the distribution files
 1.2 16-Oct-2007  tls branches: 1.2.10; 1.2.12; 1.2.16; 1.2.20;
Get httpd ready for inclusion in build.
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.2.20.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.16.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.12.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.10.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1 18-Apr-2009  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 18-Apr-2009  mrg branches: 1.1.1.1.2; 1.1.1.1.26; 1.1.1.1.28; 1.1.1.1.30;
import latest bozohttpd sources. changes include:

o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.30.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.30.1 18-Apr-2009  msaitoh file t10.in was added on branch netbsd-5-1 on 2014-07-09 16:09:39 +0000
 1.1.1.1.28.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.28.1 18-Apr-2009  msaitoh file t10.in was added on branch netbsd-5-2 on 2014-07-09 16:04:13 +0000
 1.1.1.1.26.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.26.1 18-Apr-2009  msaitoh file t10.in was added on branch netbsd-5 on 2014-07-09 15:21:21 +0000
 1.1.1.1.2.2 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.1.1.1.2.1 18-Apr-2009  jym file t10.in was added on branch jym-xensuspend on 2009-05-13 19:18:38 +0000
 1.3 05-May-2021  mrg don't assume host BUFSIZ is sufficent. small BUFSIZ leads to
always happens errors in the testsuite. switch all these buffers
to be 4KiB sized. reported by embr <git@liclac.eu>
 1.2 16-Jul-2014  mrg make a minor output change match again.
 1.1 18-Apr-2009  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 18-Apr-2009  mrg branches: 1.1.1.1.2; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.16; 1.1.1.1.22; 1.1.1.1.24; 1.1.1.1.26; 1.1.1.1.28; 1.1.1.1.30;
import latest bozohttpd sources. changes include:

o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.30.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.30.1 18-Apr-2009  msaitoh file t10.out was added on branch netbsd-5-1 on 2014-07-09 16:09:39 +0000
 1.1.1.1.28.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.28.1 18-Apr-2009  msaitoh file t10.out was added on branch netbsd-5-2 on 2014-07-09 16:04:13 +0000
 1.1.1.1.26.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.26.1 18-Apr-2009  msaitoh file t10.out was added on branch netbsd-5 on 2014-07-09 15:21:21 +0000
 1.1.1.1.24.1 10-Aug-2014  tls Rebase.
 1.1.1.1.22.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.1.1.1.16.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.1.1.1.14.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.1.1.10.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.1.1.1.2.2 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.1.1.1.2.1 18-Apr-2009  jym file t10.out was added on branch jym-xensuspend on 2009-05-13 19:18:38 +0000
 1.1 31-Jan-2017  mrg branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.10; 1.1.12; 1.1.14; 1.1.16;
- fix a bug in cgi processing. from Dennis Lindroos.
- add a testcase for this, and expand test-simple to handle additional
args to bozohttpd for eg, cgi-bin setting.
- fix objdir bugs in the testsuite.
 1.1.16.2 21-Apr-2017  bouyer Sync with HEAD
 1.1.16.1 31-Jan-2017  bouyer file t11.in was added on branch bouyer-socketcan on 2017-04-21 16:53:13 +0000
 1.1.14.2 20-Mar-2017  pgoyette Sync with HEAD
 1.1.14.1 31-Jan-2017  pgoyette file t11.in was added on branch pgoyette-localcount on 2017-03-20 06:57:01 +0000
 1.1.12.2 13-Mar-2017  skrll Sync with netbsd-7-1-RELEASE
 1.1.12.1 31-Jan-2017  skrll file t11.in was added on branch netbsd-7-nhusb on 2017-03-13 07:41:25 +0000
 1.1.10.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.1.10.1 31-Jan-2017  snj file t11.in was added on branch netbsd-6 on 2017-03-07 07:25:19 +0000
 1.1.8.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437:
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.1.8.1 31-Jan-2017  snj file t11.in was added on branch netbsd-6-1 on 2017-03-07 07:21:54 +0000
 1.1.6.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.1.6.1 31-Jan-2017  snj file t11.in was added on branch netbsd-6-0 on 2017-03-07 07:16:08 +0000
 1.1.4.2 12-Feb-2017  snj Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.1.4.1 31-Jan-2017  snj file t11.in was added on branch netbsd-7 on 2017-02-12 22:07:17 +0000
 1.1.2.2 12-Feb-2017  snj Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.1.2.1 31-Jan-2017  snj file t11.in was added on branch netbsd-7-0 on 2017-02-12 21:59:45 +0000
 1.2 17-Jan-2019  mrg add 'check' target to toplevel makefile.

fix the t11.out output now that CGI parsing works better.
 1.1 31-Jan-2017  mrg branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.10; 1.1.12; 1.1.14; 1.1.16; 1.1.20; 1.1.26; 1.1.28;
- fix a bug in cgi processing. from Dennis Lindroos.
- add a testcase for this, and expand test-simple to handle additional
args to bozohttpd for eg, cgi-bin setting.
- fix objdir bugs in the testsuite.
 1.1.28.1 10-Jun-2019  christos Sync with HEAD
 1.1.26.1 18-Jan-2019  pgoyette Synch with HEAD
 1.1.20.1 12-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1281:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6


Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.1.16.2 21-Apr-2017  bouyer Sync with HEAD
 1.1.16.1 31-Jan-2017  bouyer file t11.out was added on branch bouyer-socketcan on 2017-04-21 16:53:13 +0000
 1.1.14.2 20-Mar-2017  pgoyette Sync with HEAD
 1.1.14.1 31-Jan-2017  pgoyette file t11.out was added on branch pgoyette-localcount on 2017-03-20 06:57:01 +0000
 1.1.12.2 13-Mar-2017  skrll Sync with netbsd-7-1-RELEASE
 1.1.12.1 31-Jan-2017  skrll file t11.out was added on branch netbsd-7-nhusb on 2017-03-13 07:41:25 +0000
 1.1.10.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.1.10.1 31-Jan-2017  snj file t11.out was added on branch netbsd-6 on 2017-03-07 07:25:19 +0000
 1.1.8.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437:
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.1.8.1 31-Jan-2017  snj file t11.out was added on branch netbsd-6-1 on 2017-03-07 07:21:54 +0000
 1.1.6.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.1.6.1 31-Jan-2017  snj file t11.out was added on branch netbsd-6-0 on 2017-03-07 07:16:08 +0000
 1.1.4.3 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.1.4.2 12-Feb-2017  snj branches: 1.1.4.2.2;
Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.1.4.1 31-Jan-2017  snj file t11.out was added on branch netbsd-7 on 2017-02-12 22:07:17 +0000
 1.1.4.2.2.1 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.1.2.3 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.1.2.2 12-Feb-2017  snj Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.1.2.1 31-Jan-2017  snj file t11.out was added on branch netbsd-7-0 on 2017-02-12 21:59:45 +0000
 1.1 24-Aug-2018  martin branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.10; 1.1.12;
Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@
 1.1.12.2 10-Jun-2019  christos Sync with HEAD
 1.1.12.1 24-Aug-2018  christos file t12.in was added on branch phil-wifi on 2019-06-10 22:05:29 +0000
 1.1.10.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.10.1 24-Aug-2018  martin file t12.in was added on branch netbsd-7-0 on 2018-11-24 17:23:48 +0000
 1.1.8.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.8.1 24-Aug-2018  martin file t12.in was added on branch netbsd-7-1 on 2018-11-24 17:23:21 +0000
 1.1.6.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.6.1 24-Aug-2018  martin file t12.in was added on branch netbsd-7 on 2018-11-24 17:22:58 +0000
 1.1.4.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.4.1 24-Aug-2018  martin file t12.in was added on branch netbsd-8 on 2018-11-24 17:13:51 +0000
 1.1.2.2 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.1.2.1 24-Aug-2018  pgoyette file t12.in was added on branch pgoyette-compat on 2018-09-06 06:55:20 +0000
 1.1 24-Aug-2018  martin branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.10; 1.1.12;
Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@
 1.1.12.2 10-Jun-2019  christos Sync with HEAD
 1.1.12.1 24-Aug-2018  christos file t12.out was added on branch phil-wifi on 2019-06-10 22:05:29 +0000
 1.1.10.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.10.1 24-Aug-2018  martin file t12.out was added on branch netbsd-7-0 on 2018-11-24 17:23:48 +0000
 1.1.8.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.8.1 24-Aug-2018  martin file t12.out was added on branch netbsd-7-1 on 2018-11-24 17:23:21 +0000
 1.1.6.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.6.1 24-Aug-2018  martin file t12.out was added on branch netbsd-7 on 2018-11-24 17:22:58 +0000
 1.1.4.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.4.1 24-Aug-2018  martin file t12.out was added on branch netbsd-8 on 2018-11-24 17:13:51 +0000
 1.1.2.2 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.1.2.1 24-Aug-2018  pgoyette file t12.out was added on branch pgoyette-compat on 2018-09-06 06:55:20 +0000
 1.1 24-Aug-2018  martin branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.10; 1.1.12;
Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@
 1.1.12.2 10-Jun-2019  christos Sync with HEAD
 1.1.12.1 24-Aug-2018  christos file t13.in was added on branch phil-wifi on 2019-06-10 22:05:29 +0000
 1.1.10.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.10.1 24-Aug-2018  martin file t13.in was added on branch netbsd-7-0 on 2018-11-24 17:23:48 +0000
 1.1.8.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.8.1 24-Aug-2018  martin file t13.in was added on branch netbsd-7-1 on 2018-11-24 17:23:21 +0000
 1.1.6.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.6.1 24-Aug-2018  martin file t13.in was added on branch netbsd-7 on 2018-11-24 17:22:58 +0000
 1.1.4.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.4.1 24-Aug-2018  martin file t13.in was added on branch netbsd-8 on 2018-11-24 17:13:51 +0000
 1.1.2.2 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.1.2.1 24-Aug-2018  pgoyette file t13.in was added on branch pgoyette-compat on 2018-09-06 06:55:20 +0000
 1.1 24-Aug-2018  martin branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.10; 1.1.12;
Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@
 1.1.12.2 10-Jun-2019  christos Sync with HEAD
 1.1.12.1 24-Aug-2018  christos file t13.out was added on branch phil-wifi on 2019-06-10 22:05:29 +0000
 1.1.10.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.10.1 24-Aug-2018  martin file t13.out was added on branch netbsd-7-0 on 2018-11-24 17:23:48 +0000
 1.1.8.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.8.1 24-Aug-2018  martin file t13.out was added on branch netbsd-7-1 on 2018-11-24 17:23:21 +0000
 1.1.6.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.6.1 24-Aug-2018  martin file t13.out was added on branch netbsd-7 on 2018-11-24 17:22:58 +0000
 1.1.4.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.4.1 24-Aug-2018  martin file t13.out was added on branch netbsd-8 on 2018-11-24 17:13:51 +0000
 1.1.2.2 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.1.2.1 24-Aug-2018  pgoyette file t13.out was added on branch pgoyette-compat on 2018-09-06 06:55:20 +0000
 1.1 19-Nov-2018  mrg branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.10; 1.1.12;
fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.
 1.1.12.2 10-Jun-2019  christos Sync with HEAD
 1.1.12.1 19-Nov-2018  christos file t14.in was added on branch phil-wifi on 2019-06-10 22:05:29 +0000
 1.1.10.2 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.1.10.1 19-Nov-2018  pgoyette file t14.in was added on branch pgoyette-compat on 2018-11-26 01:52:13 +0000
 1.1.8.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.8.1 19-Nov-2018  martin file t14.in was added on branch netbsd-7-0 on 2018-11-24 17:23:48 +0000
 1.1.6.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.6.1 19-Nov-2018  martin file t14.in was added on branch netbsd-7-1 on 2018-11-24 17:23:21 +0000
 1.1.4.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.4.1 19-Nov-2018  martin file t14.in was added on branch netbsd-7 on 2018-11-24 17:22:58 +0000
 1.1.2.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.2.1 19-Nov-2018  martin file t14.in was added on branch netbsd-8 on 2018-11-24 17:13:51 +0000
 1.1 19-Nov-2018  mrg branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.10; 1.1.12;
fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.
 1.1.12.2 10-Jun-2019  christos Sync with HEAD
 1.1.12.1 19-Nov-2018  christos file t14.out was added on branch phil-wifi on 2019-06-10 22:05:29 +0000
 1.1.10.2 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.1.10.1 19-Nov-2018  pgoyette file t14.out was added on branch pgoyette-compat on 2018-11-26 01:52:13 +0000
 1.1.8.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.8.1 19-Nov-2018  martin file t14.out was added on branch netbsd-7-0 on 2018-11-24 17:23:48 +0000
 1.1.6.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.6.1 19-Nov-2018  martin file t14.out was added on branch netbsd-7-1 on 2018-11-24 17:23:21 +0000
 1.1.4.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.4.1 19-Nov-2018  martin file t14.out was added on branch netbsd-7 on 2018-11-24 17:22:58 +0000
 1.1.2.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.2.1 19-Nov-2018  martin file t14.out was added on branch netbsd-8 on 2018-11-24 17:13:51 +0000
 1.1 20-Nov-2018  mrg branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.10; 1.1.12;
from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.


the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.


reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.


clean up option and usage handling some.
 1.1.12.2 10-Jun-2019  christos Sync with HEAD
 1.1.12.1 20-Nov-2018  christos file t15.in was added on branch phil-wifi on 2019-06-10 22:05:29 +0000
 1.1.10.2 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.1.10.1 20-Nov-2018  pgoyette file t15.in was added on branch pgoyette-compat on 2018-11-26 01:52:13 +0000
 1.1.8.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.8.1 20-Nov-2018  martin file t15.in was added on branch netbsd-7-0 on 2018-11-24 17:23:48 +0000
 1.1.6.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.6.1 20-Nov-2018  martin file t15.in was added on branch netbsd-7-1 on 2018-11-24 17:23:21 +0000
 1.1.4.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.4.1 20-Nov-2018  martin file t15.in was added on branch netbsd-7 on 2018-11-24 17:22:58 +0000
 1.1.2.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.2.1 20-Nov-2018  martin file t15.in was added on branch netbsd-8 on 2018-11-24 17:13:51 +0000
 1.1 20-Nov-2018  mrg branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.10; 1.1.12;
from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.


the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.


reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.


clean up option and usage handling some.
 1.1.12.2 10-Jun-2019  christos Sync with HEAD
 1.1.12.1 20-Nov-2018  christos file t15.out was added on branch phil-wifi on 2019-06-10 22:05:29 +0000
 1.1.10.2 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.1.10.1 20-Nov-2018  pgoyette file t15.out was added on branch pgoyette-compat on 2018-11-26 01:52:13 +0000
 1.1.8.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.8.1 20-Nov-2018  martin file t15.out was added on branch netbsd-7-0 on 2018-11-24 17:23:48 +0000
 1.1.6.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.6.1 20-Nov-2018  martin file t15.out was added on branch netbsd-7-1 on 2018-11-24 17:23:21 +0000
 1.1.4.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.4.1 20-Nov-2018  martin file t15.out was added on branch netbsd-7 on 2018-11-24 17:22:58 +0000
 1.1.2.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.2.1 20-Nov-2018  martin file t15.out was added on branch netbsd-8 on 2018-11-24 17:13:51 +0000
 1.1 11-Feb-2021  mrg branches: 1.1.2;
changes in bozohttpd 20210210:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
 1.1.2.2 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.1.2.1 11-Feb-2021  martin file t16.in was added on branch netbsd-8 on 2021-03-27 13:38:52 +0000
 1.1 11-Feb-2021  mrg branches: 1.1.2; 1.1.4;
changes in bozohttpd 20210210:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
 1.1.4.2 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.1.4.1 11-Feb-2021  martin file t16.out was added on branch netbsd-8 on 2021-03-27 13:38:52 +0000
 1.1.2.2 05-Mar-2021  martin Pull up the following (all via patch), requested by mrg in ticket #1221:

lib/lua/bozohttpd/Makefile (apply patch)
libexec/httpd/Makefile 1.30-1.31
libexec/httpd/Makefile.boot 1.7-1.9
libexec/httpd/auth-bozo.c 1.25-1.26
libexec/httpd/bozohttpd.8 1.80-1.87
libexec/httpd/bozohttpd.c 1.114-1.123,1.125-1.128
libexec/httpd/bozohttpd.h 1.61-1.68
libexec/httpd/cgi-bozo.c 1.49-1.53
libexec/httpd/content-bozo.c 1.17-1.20
libexec/httpd/daemon-bozo.c 1-.22
libexec/httpd/dir-index-bozo.c 1.33-1.34
libexec/httpd/main.c 1.23-1.27
libexec/httpd/printenv.lua 1.4-1.5
libexec/httpd/ssl-bozo.c 1.27-1.29
libexec/httpd/libbozohttpd/libbozohttpd.3 1.5-1.6
libexec/httpd/small/Makefile 1.4
libexec/httpd/testsuite/Makefile 1.14
libexec/httpd/testsuite/t16.in 1.1
libexec/httpd/testsuite/t16.out 1.1
libexec/httpd/testsuite/t17.in 1.1
libexec/httpd/testsuite/t17.out 1.1
libexec/httpd/testsuite/t18.in 1.1
libexec/httpd/testsuite/t18.out 1.1


Update to bozohttpd 20210227.
Apply lua build fix (no blocklist support on this branch).

changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.1.2.1 11-Feb-2021  martin file t16.out was added on branch netbsd-9 on 2021-03-05 13:34:19 +0000
 1.1 11-Feb-2021  mrg branches: 1.1.2;
changes in bozohttpd 20210210:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
 1.1.2.2 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.1.2.1 11-Feb-2021  martin file t17.in was added on branch netbsd-8 on 2021-03-27 13:38:52 +0000
 1.1 11-Feb-2021  mrg branches: 1.1.2; 1.1.4;
changes in bozohttpd 20210210:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
 1.1.4.2 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.1.4.1 11-Feb-2021  martin file t17.out was added on branch netbsd-8 on 2021-03-27 13:38:52 +0000
 1.1.2.2 05-Mar-2021  martin Pull up the following (all via patch), requested by mrg in ticket #1221:

lib/lua/bozohttpd/Makefile (apply patch)
libexec/httpd/Makefile 1.30-1.31
libexec/httpd/Makefile.boot 1.7-1.9
libexec/httpd/auth-bozo.c 1.25-1.26
libexec/httpd/bozohttpd.8 1.80-1.87
libexec/httpd/bozohttpd.c 1.114-1.123,1.125-1.128
libexec/httpd/bozohttpd.h 1.61-1.68
libexec/httpd/cgi-bozo.c 1.49-1.53
libexec/httpd/content-bozo.c 1.17-1.20
libexec/httpd/daemon-bozo.c 1-.22
libexec/httpd/dir-index-bozo.c 1.33-1.34
libexec/httpd/main.c 1.23-1.27
libexec/httpd/printenv.lua 1.4-1.5
libexec/httpd/ssl-bozo.c 1.27-1.29
libexec/httpd/libbozohttpd/libbozohttpd.3 1.5-1.6
libexec/httpd/small/Makefile 1.4
libexec/httpd/testsuite/Makefile 1.14
libexec/httpd/testsuite/t16.in 1.1
libexec/httpd/testsuite/t16.out 1.1
libexec/httpd/testsuite/t17.in 1.1
libexec/httpd/testsuite/t17.out 1.1
libexec/httpd/testsuite/t18.in 1.1
libexec/httpd/testsuite/t18.out 1.1


Update to bozohttpd 20210227.
Apply lua build fix (no blocklist support on this branch).

changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.1.2.1 11-Feb-2021  martin file t17.out was added on branch netbsd-9 on 2021-03-05 13:34:19 +0000
 1.1 11-Feb-2021  mrg branches: 1.1.2;
changes in bozohttpd 20210210:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
 1.1.2.2 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.1.2.1 11-Feb-2021  martin file t18.in was added on branch netbsd-8 on 2021-03-27 13:38:52 +0000
 1.1 11-Feb-2021  mrg branches: 1.1.2; 1.1.4;
changes in bozohttpd 20210210:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
 1.1.4.2 27-Mar-2021  martin Pull up the following via patch, requested by mrg in ticket #1668:

Makefile 1.30-1.31
Makefile.boot 1.7-1.9
auth-bozo.c 1.25-1.26
bozohttpd.8 1.80-1.87
bozohttpd.c 1.114-1.123,1.125-1.128
bozohttpd.h 1.61-1.68
cgi-bozo.c 1.49-1.53
content-bozo.c 1.17-1.20
daemon-bozo.c 1-.22
dir-index-bozo.c 1.33-1.34
main.c 1.23-1.27
printenv.lua 1.4-1.5
ssl-bozo.c 1.27-1.29
libbozohttpd/libbozohttpd.3 1.5-1.6
small/Makefile 1.4
testsuite/Makefile 1.14
testsuite/t16.in 1.1
testsuite/t16.out 1.1
testsuite/t17.in 1.1
testsuite/t17.out 1.1
testsuite/t18.in 1.1
testsuite/t18.out 1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.1.4.1 11-Feb-2021  martin file t18.out was added on branch netbsd-8 on 2021-03-27 13:38:52 +0000
 1.1.2.2 05-Mar-2021  martin Pull up the following (all via patch), requested by mrg in ticket #1221:

lib/lua/bozohttpd/Makefile (apply patch)
libexec/httpd/Makefile 1.30-1.31
libexec/httpd/Makefile.boot 1.7-1.9
libexec/httpd/auth-bozo.c 1.25-1.26
libexec/httpd/bozohttpd.8 1.80-1.87
libexec/httpd/bozohttpd.c 1.114-1.123,1.125-1.128
libexec/httpd/bozohttpd.h 1.61-1.68
libexec/httpd/cgi-bozo.c 1.49-1.53
libexec/httpd/content-bozo.c 1.17-1.20
libexec/httpd/daemon-bozo.c 1-.22
libexec/httpd/dir-index-bozo.c 1.33-1.34
libexec/httpd/main.c 1.23-1.27
libexec/httpd/printenv.lua 1.4-1.5
libexec/httpd/ssl-bozo.c 1.27-1.29
libexec/httpd/libbozohttpd/libbozohttpd.3 1.5-1.6
libexec/httpd/small/Makefile 1.4
libexec/httpd/testsuite/Makefile 1.14
libexec/httpd/testsuite/t16.in 1.1
libexec/httpd/testsuite/t16.out 1.1
libexec/httpd/testsuite/t17.in 1.1
libexec/httpd/testsuite/t17.out 1.1
libexec/httpd/testsuite/t18.in 1.1
libexec/httpd/testsuite/t18.out 1.1


Update to bozohttpd 20210227.
Apply lua build fix (no blocklist support on this branch).

changes in bozohttpd 20210227:
o new support for content types: .tar.bz2, .tar.xz, .tar.lz,
.tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
.lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar. should fix
netbsd PR#56026:
MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.
o fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
o also set -D_GNU_SOURCE in Makefile.boot. from
hadrien.lacour@posteo.net.
o fix array size botch (assertion, not exploitable.) from
martin@netbsd.org.
o also match %2F as well as %2f. from leah@vuxu.org.
o many manual and help fixes. clean ups for higher lint levels,
consistency/style clean ups. various option fixes including made
-f imply -b. from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
o add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
o make this work on sun2 by reducing mmap window there.
o fix SSL shutdown sequence. from spz@netbsd.org.
o add readme support to directory indexing. from jmcneill@netbsd.org
o add blocklist(8) support. from jruoho@netbsd.org.
 1.1.2.1 11-Feb-2021  martin file t18.out was added on branch netbsd-9 on 2021-03-05 13:34:19 +0000
 1.3 18-Apr-2009  mrg re-add a lot of the distribution files
 1.2 16-Oct-2007  tls branches: 1.2.10; 1.2.12; 1.2.16; 1.2.20;
Get httpd ready for inclusion in build.
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.2.20.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.16.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.12.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.10.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.3 18-Apr-2009  mrg re-add a lot of the distribution files
 1.2 16-Oct-2007  tls branches: 1.2.10; 1.2.12; 1.2.16; 1.2.20;
Get httpd ready for inclusion in build.
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.2 03-Mar-2008  mrg import latest bozohttpd. changes include:

o fix some cgi header processing, from <thelsdj@gmail.com>
o add simple Range: header processing, from <bad@bsd.de>
o man page fixes, from NetBSD
o clean up various parts, from NetBSD
o prefix some function names with "bozo"
o align directory indexing <hr> markers
o clean up some code GCC4 grumbled about
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.2.20.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.16.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.12.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.10.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.3 18-Apr-2009  mrg re-add a lot of the distribution files
 1.2 16-Oct-2007  tls branches: 1.2.10; 1.2.12; 1.2.16; 1.2.20;
Get httpd ready for inclusion in build.
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.2.20.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.16.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.12.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.10.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.4 24-Aug-2018  mrg fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)
 1.3 18-Apr-2009  mrg branches: 1.3.24; 1.3.26; 1.3.34; 1.3.38; 1.3.44; 1.3.46;
re-add a lot of the distribution files
 1.2 16-Oct-2007  tls branches: 1.2.10; 1.2.12; 1.2.16; 1.2.20;
Get httpd ready for inclusion in build.
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.2 18-Apr-2009  mrg import latest bozohttpd sources. changes include:

o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.2.20.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.16.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.12.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.10.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.3.46.1 10-Jun-2019  christos Sync with HEAD
 1.3.44.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.3.38.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.3.34.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.3.26.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.3.24.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.3 18-Apr-2009  mrg re-add a lot of the distribution files
 1.2 16-Oct-2007  tls branches: 1.2.10; 1.2.12; 1.2.16; 1.2.20;
Get httpd ready for inclusion in build.
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.2.20.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.16.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.12.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.10.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.3 18-Apr-2009  mrg re-add a lot of the distribution files
 1.2 16-Oct-2007  tls branches: 1.2.10; 1.2.12; 1.2.16; 1.2.20;
Get httpd ready for inclusion in build.
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.2 03-Mar-2008  mrg import latest bozohttpd. changes include:

o fix some cgi header processing, from <thelsdj@gmail.com>
o add simple Range: header processing, from <bad@bsd.de>
o man page fixes, from NetBSD
o clean up various parts, from NetBSD
o prefix some function names with "bozo"
o align directory indexing <hr> markers
o clean up some code GCC4 grumbled about
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.2.20.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.16.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.12.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.10.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.3 18-Apr-2009  mrg re-add a lot of the distribution files
 1.2 16-Oct-2007  tls branches: 1.2.10; 1.2.12; 1.2.16; 1.2.20;
Get httpd ready for inclusion in build.
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.2.20.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.16.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.12.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.10.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.4 24-Aug-2018  mrg fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)
 1.3 18-Apr-2009  mrg branches: 1.3.24; 1.3.26; 1.3.34; 1.3.38; 1.3.44; 1.3.46;
re-add a lot of the distribution files
 1.2 16-Oct-2007  tls branches: 1.2.10; 1.2.12; 1.2.16; 1.2.20;
Get httpd ready for inclusion in build.
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.2 18-Apr-2009  mrg import latest bozohttpd sources. changes include:

o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.2.20.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.16.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.12.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.10.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.3.46.1 10-Jun-2019  christos Sync with HEAD
 1.3.44.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.3.38.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.3.34.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.3.26.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.3.24.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.3 18-Apr-2009  mrg re-add a lot of the distribution files
 1.2 16-Oct-2007  tls branches: 1.2.10; 1.2.12; 1.2.16; 1.2.20;
Get httpd ready for inclusion in build.
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.2.20.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.16.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.12.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.10.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.4 24-Aug-2018  mrg fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)
 1.3 18-Apr-2009  mrg branches: 1.3.24; 1.3.26; 1.3.34; 1.3.38; 1.3.44; 1.3.46;
re-add a lot of the distribution files
 1.2 16-Oct-2007  tls branches: 1.2.10; 1.2.12; 1.2.16; 1.2.20;
Get httpd ready for inclusion in build.
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.2 18-Apr-2009  mrg import latest bozohttpd sources. changes include:

o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.2.20.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.16.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.12.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.10.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.3.46.1 10-Jun-2019  christos Sync with HEAD
 1.3.44.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.3.38.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.3.34.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.3.26.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.3.24.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.3 18-Apr-2009  mrg re-add a lot of the distribution files
 1.2 03-Mar-2008  mrg branches: 1.2.4; 1.2.6; 1.2.8; 1.2.12;
merge bozohttpd 20080303
 1.1 03-Mar-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 03-Mar-2008  mrg import latest bozohttpd. changes include:

o fix some cgi header processing, from <thelsdj@gmail.com>
o add simple Range: header processing, from <bad@bsd.de>
o man page fixes, from NetBSD
o clean up various parts, from NetBSD
o prefix some function names with "bozo"
o align directory indexing <hr> markers
o clean up some code GCC4 grumbled about
 1.2.12.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.8.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.6.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.4.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.3 18-Apr-2009  mrg re-add a lot of the distribution files
 1.2 03-Mar-2008  mrg branches: 1.2.4; 1.2.6; 1.2.8; 1.2.12;
merge bozohttpd 20080303
 1.1 03-Mar-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 03-Mar-2008  mrg import latest bozohttpd. changes include:

o fix some cgi header processing, from <thelsdj@gmail.com>
o add simple Range: header processing, from <bad@bsd.de>
o man page fixes, from NetBSD
o clean up various parts, from NetBSD
o prefix some function names with "bozo"
o align directory indexing <hr> markers
o clean up some code GCC4 grumbled about
 1.2.12.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.8.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.6.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.4.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.3 18-Apr-2009  mrg re-add a lot of the distribution files
 1.2 03-Mar-2008  mrg branches: 1.2.4; 1.2.6; 1.2.8; 1.2.12;
merge bozohttpd 20080303
 1.1 03-Mar-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 03-Mar-2008  mrg import latest bozohttpd. changes include:

o fix some cgi header processing, from <thelsdj@gmail.com>
o add simple Range: header processing, from <bad@bsd.de>
o man page fixes, from NetBSD
o clean up various parts, from NetBSD
o prefix some function names with "bozo"
o align directory indexing <hr> markers
o clean up some code GCC4 grumbled about
 1.2.12.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.8.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.6.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.4.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.3 18-Apr-2009  mrg re-add a lot of the distribution files
 1.2 03-Mar-2008  mrg branches: 1.2.4; 1.2.6; 1.2.8; 1.2.12;
merge bozohttpd 20080303
 1.1 03-Mar-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 03-Mar-2008  mrg import latest bozohttpd. changes include:

o fix some cgi header processing, from <thelsdj@gmail.com>
o add simple Range: header processing, from <bad@bsd.de>
o man page fixes, from NetBSD
o clean up various parts, from NetBSD
o prefix some function names with "bozo"
o align directory indexing <hr> markers
o clean up some code GCC4 grumbled about
 1.2.12.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.8.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.6.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.4.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.3 18-Apr-2009  mrg re-add a lot of the distribution files
 1.2 03-Mar-2008  mrg branches: 1.2.4; 1.2.6; 1.2.8; 1.2.12;
merge bozohttpd 20080303
 1.1 03-Mar-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 03-Mar-2008  mrg import latest bozohttpd. changes include:

o fix some cgi header processing, from <thelsdj@gmail.com>
o add simple Range: header processing, from <bad@bsd.de>
o man page fixes, from NetBSD
o clean up various parts, from NetBSD
o prefix some function names with "bozo"
o align directory indexing <hr> markers
o clean up some code GCC4 grumbled about
 1.2.12.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.8.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.6.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.4.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.3 18-Apr-2009  mrg re-add a lot of the distribution files
 1.2 03-Mar-2008  mrg branches: 1.2.4; 1.2.6; 1.2.8; 1.2.12;
merge bozohttpd 20080303
 1.1 03-Mar-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 03-Mar-2008  mrg import latest bozohttpd. changes include:

o fix some cgi header processing, from <thelsdj@gmail.com>
o add simple Range: header processing, from <bad@bsd.de>
o man page fixes, from NetBSD
o clean up various parts, from NetBSD
o prefix some function names with "bozo"
o align directory indexing <hr> markers
o clean up some code GCC4 grumbled about
 1.2.12.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.8.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.6.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.4.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.6 14-Dec-2018  maya Don't pass ${HOST} to test scripts.
htnl_cmp compares against the output of `hostname`.

This makes the tests pass on my machine.
 1.5 21-Nov-2018  mrg - move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.
 1.4 31-Jan-2017  mrg branches: 1.4.4; 1.4.10; 1.4.12;
- fix a bug in cgi processing. from Dennis Lindroos.
- add a testcase for this, and expand test-simple to handle additional
args to bozohttpd for eg, cgi-bin setting.
- fix objdir bugs in the testsuite.
 1.3 23-Sep-2016  schmonz branches: 1.3.2;
Add a VERBOSE knob to the testsuite ("yes" by default, producing
basically the same output as before). When turned off, tests run
silently except when there's a failure.

Reviewed by mrg@.
 1.2 27-Dec-2015  mrg branches: 1.2.2;
fix running the testsuite from the build tree
 1.1 23-May-2009  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 23-May-2009  mrg branches: 1.1.1.1.8; 1.1.1.1.14; 1.1.1.1.20; 1.1.1.1.24; 1.1.1.1.26; 1.1.1.1.28; 1.1.1.1.30; 1.1.1.1.32;
import bozohttpd 20090522, which has these changes:
o close more leaking file descriptors for CGI and daemon mode
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child
 1.1.1.1.32.5 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.1.1.1.32.4 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.1.1.32.3 12-Feb-2017  snj Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.1.1.1.32.2 23-Dec-2016  snj Pull up following revision(s) (requested by mrg in ticket #1309):
libexec/httpd/CHANGES: revisions 1.23, 1.24
libexec/httpd/bozohttpd.8: revisions 1.60-1.62
libexec/httpd/bozohttpd.c: revisions 1.81-1.84
libexec/httpd/bozohttpd.h: revision 1.46
libexec/httpd/cgi-bozo.c: revision 1.35
libexec/httpd/content-bozo.c: revision 1.14
libexec/httpd/main.c: revisions 1.14-1.16
libexec/httpd/testsuite/Makefile: revision 1.6
libexec/httpd/testsuite/test-bigfile: revision 1.3
libexec/httpd/testsuite/test-simple: revisions 1.1, 1.2
update bozohttpd to 2016072:
- fix memory leak
- addd -G option to display version
- fix some content type issues
- fix issues in testsuite
 1.1.1.1.32.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.1.1.1.30.5 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.1.1.1.30.4 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.1.1.30.3 12-Feb-2017  snj branches: 1.1.1.1.30.3.2;
Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.1.1.1.30.2 23-Dec-2016  snj Pull up following revision(s) (requested by mrg in ticket #1309):
libexec/httpd/CHANGES: revisions 1.23, 1.24
libexec/httpd/bozohttpd.8: revisions 1.60-1.62
libexec/httpd/bozohttpd.c: revisions 1.81-1.84
libexec/httpd/bozohttpd.h: revision 1.46
libexec/httpd/cgi-bozo.c: revision 1.35
libexec/httpd/content-bozo.c: revision 1.14
libexec/httpd/main.c: revisions 1.14-1.16
libexec/httpd/testsuite/Makefile: revision 1.6
libexec/httpd/testsuite/test-bigfile: revision 1.3
libexec/httpd/testsuite/test-simple: revisions 1.1, 1.2
update bozohttpd to 2016072:
- fix memory leak
- addd -G option to display version
- fix some content type issues
- fix issues in testsuite
 1.1.1.1.30.1 10-Apr-2016  martin branches: 1.1.1.1.30.1.2;
Catch up to -current (via patch), requested by mspo in #1141:

libexec/httpd/CHANGES up to 1.21
libexec/httpd/Makefile up to 1.26
libexec/httpd/auth-bozo.c up to 1.18
libexec/httpd/bozohttpd.8 up to 1.58
libexec/httpd/bozohttpd.c up to 1.79
libexec/httpd/bozohttpd.h up to 1.44
libexec/httpd/cgi-bozo.c up to 1.32
libexec/httpd/content-bozo.c up to 1.13
libexec/httpd/daemon-bozo.c up to 1.17
libexec/httpd/dir-index-bozo.c up to 1.25
libexec/httpd/lua-bozo.c up to 1.14
libexec/httpd/main.c up to 1.13
libexec/httpd/netbsd_queue.h up to 1.1
libexec/httpd/printenv.lua up to 1.3
libexec/httpd/ssl-bozo.c up to 1.22
libexec/httpd/tilde-luzah-bozo.c up to 1.14
libexec/httpd/testsuite/Makefile up to 1.5
libexec/httpd/testsuite/test-bigfile up to 1.2

Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
 1.1.1.1.30.3.2.2 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.1.1.1.30.3.2.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.1.1.30.1.2.2 13-Mar-2017  skrll Sync with netbsd-7-1-RELEASE
 1.1.1.1.30.1.2.1 18-Jan-2017  skrll Sync with netbsd-5
 1.1.1.1.28.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.28.1 23-May-2009  msaitoh file test-bigfile was added on branch netbsd-5-1 on 2014-07-09 16:09:40 +0000
 1.1.1.1.26.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.26.1 23-May-2009  msaitoh file test-bigfile was added on branch netbsd-5-2 on 2014-07-09 16:04:13 +0000
 1.1.1.1.24.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.24.1 23-May-2009  msaitoh file test-bigfile was added on branch netbsd-5 on 2014-07-09 15:21:21 +0000
 1.1.1.1.20.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437:
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.1.1.1.20.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.1.1.1.14.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.1.1.1.14.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.1.1.1.8.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.1.1.1.8.1 15-Apr-2016  snj Pull up following revision(s) (requested by mrg in ticket #1377):
libexec/httpd/CHANGES: up to 1.22
libexec/httpd/Makefile: up to 1.26 via patch
libexec/httpd/auth-bozo.c: up to 1.18
libexec/httpd/bozohttpd.8: up to 1.59
libexec/httpd/bozohttpd.c: up to 1.80 via patch
libexec/httpd/bozohttpd.h: up to 1.45
libexec/httpd/cgi-bozo.c: up to 1.33
libexec/httpd/content-bozo.c: up to 1.13
libexec/httpd/daemon-bozo.c: up to 1.17
libexec/httpd/dir-index-bozo.c: up to 1.25
libexec/httpd/lua-bozo.c: up to 1.14
libexec/httpd/lua/bozo.lua: up to 1.2
libexec/httpd/lua/glue.c: up to 1.2
libexec/httpd/main.c: up to 1.13
libexec/httpd/printenv.lua: up to 1.3
libexec/httpd/ssl-bozo.c: up to 1.22
libexec/httpd/testsuite/Makefile: up to 1.5
libexec/httpd/testsuite/t10.out: up to 1.2
libexec/httpd/testsuite/test-bigfile: up to 1.2
libexec/httpd/tilde-luzah-bozo.c: up to 1.14
Import bozohttpd 20151028:
o add CGI support for ~user translation (-E switch)
o add redirects to ~user translation
o fix bugs around ~user translation
o add schema detection for absolute redirects
o fixed few memory leaks
o bunch of minor tweaks
o removed -r support
o smarter redirects
--
Changes in 20150320:
o fix redirection handling
o support transport stream (.ts) and video object (.vob) files
o directory listings show correct file sizes for large files
--
updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only
 1.2.2.2 20-Mar-2017  pgoyette Sync with HEAD
 1.2.2.1 04-Nov-2016  pgoyette Sync with HEAD
 1.3.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.4.12.1 10-Jun-2019  christos Sync with HEAD
 1.4.10.2 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.4.10.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.4.4.2 12-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1281:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6


Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.4.4.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.6 14-Dec-2018  maya Don't pass ${HOST} to test scripts.
htnl_cmp compares against the output of `hostname`.

This makes the tests pass on my machine.
 1.5 21-Nov-2018  mrg - move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.
 1.4 31-Jan-2017  mrg branches: 1.4.2; 1.4.4; 1.4.6; 1.4.10; 1.4.16; 1.4.18;
- fix a bug in cgi processing. from Dennis Lindroos.
- add a testcase for this, and expand test-simple to handle additional
args to bozohttpd for eg, cgi-bin setting.
- fix objdir bugs in the testsuite.
 1.3 27-Dec-2016  schmonz branches: 1.3.2; 1.3.4;
When testing non-verbosely, show diff on failure. ok mrg@
 1.2 26-Sep-2016  schmonz branches: 1.2.2; 1.2.4; 1.2.6;
Missed in previous: exit 1 if html_cmp says no match.
 1.1 23-Sep-2016  schmonz Add a VERBOSE knob to the testsuite ("yes" by default, producing
basically the same output as before). When turned off, tests run
silently except when there's a failure.

Reviewed by mrg@.
 1.2.6.5 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.2.6.4 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.2.6.3 12-Feb-2017  snj Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.2.6.2 23-Dec-2016  snj Pull up following revision(s) (requested by mrg in ticket #1309):
libexec/httpd/CHANGES: revisions 1.23, 1.24
libexec/httpd/bozohttpd.8: revisions 1.60-1.62
libexec/httpd/bozohttpd.c: revisions 1.81-1.84
libexec/httpd/bozohttpd.h: revision 1.46
libexec/httpd/cgi-bozo.c: revision 1.35
libexec/httpd/content-bozo.c: revision 1.14
libexec/httpd/main.c: revisions 1.14-1.16
libexec/httpd/testsuite/Makefile: revision 1.6
libexec/httpd/testsuite/test-bigfile: revision 1.3
libexec/httpd/testsuite/test-simple: revisions 1.1, 1.2
update bozohttpd to 2016072:
- fix memory leak
- addd -G option to display version
- fix some content type issues
- fix issues in testsuite
 1.2.6.1 26-Sep-2016  snj file test-simple was added on branch netbsd-7-0 on 2016-12-23 07:47:40 +0000
 1.2.4.5 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.2.4.4 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.2.4.3 12-Feb-2017  snj branches: 1.2.4.3.2;
Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.2.4.2 23-Dec-2016  snj Pull up following revision(s) (requested by mrg in ticket #1309):
libexec/httpd/CHANGES: revisions 1.23, 1.24
libexec/httpd/bozohttpd.8: revisions 1.60-1.62
libexec/httpd/bozohttpd.c: revisions 1.81-1.84
libexec/httpd/bozohttpd.h: revision 1.46
libexec/httpd/cgi-bozo.c: revision 1.35
libexec/httpd/content-bozo.c: revision 1.14
libexec/httpd/main.c: revisions 1.14-1.16
libexec/httpd/testsuite/Makefile: revision 1.6
libexec/httpd/testsuite/test-bigfile: revision 1.3
libexec/httpd/testsuite/test-simple: revisions 1.1, 1.2
update bozohttpd to 2016072:
- fix memory leak
- addd -G option to display version
- fix some content type issues
- fix issues in testsuite
 1.2.4.1 26-Sep-2016  snj file test-simple was added on branch netbsd-7 on 2016-12-23 07:42:09 +0000
 1.2.4.3.2.2 15-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1699:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6

Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.2.4.3.2.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.2.2.4 20-Mar-2017  pgoyette Sync with HEAD
 1.2.2.3 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.2.2.2 04-Nov-2016  pgoyette Sync with HEAD
 1.2.2.1 26-Sep-2016  pgoyette file test-simple was added on branch pgoyette-localcount on 2016-11-04 14:48:55 +0000
 1.3.4.3 13-Mar-2017  skrll Sync with netbsd-7-1-RELEASE
 1.3.4.2 18-Jan-2017  skrll Sync with netbsd-5
 1.3.4.1 27-Dec-2016  skrll file test-simple was added on branch netbsd-7-nhusb on 2017-01-18 08:46:23 +0000
 1.3.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.4.18.1 10-Jun-2019  christos Sync with HEAD
 1.4.16.2 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.4.16.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.4.10.2 12-Jun-2019  martin Pull up the following revisions (via patch) requested by mrg in ticket #1281:

libexec/httpd/CHANGES 1.31-1.40
libexec/httpd/Makefile 1.28
libexec/httpd/auth-bozo.c 1.23-1.24
libexec/httpd/bozohttpd.8 1.75-1.79
libexec/httpd/bozohttpd.c 1.100-1.113
libexec/httpd/bozohttpd.h 1.58-1.60
libexec/httpd/cgi-bozo.c 1.46-1.48
libexec/httpd/daemon-bozo.c 1.20-1.21
libexec/httpd/dir-index-bozo.c 1.29-1.32
libexec/httpd/ssl-bozo.c 1.26
libexec/httpd/testsuite/Makefile 1.12-1.13
libexec/httpd/testsuite/t11.out 1.2
libexec/httpd/testsuite/test-bigfile 1.6
libexec/httpd/testsuite/test-simple 1.6


Don't display special files in the directory index. They aren't
served, but links to them are generated.
---
All from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>:
- use html tables for directory index.
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().
- avoid sign extension in % handling
fix a few problems pointed out by clang static analyzer:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().
- fix bozoprefs->size setting when increasing the size (new total was
being added to the prior total.)
however, bozostrdup() may reference request->hr_file.
---
Add ssl specific timeout value (30s). If SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.
---
Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing)
---
Avoid .htpasswd exposure to authenticated users when .htpasswd is
in the slashdir too.
---
Avoid possible NULL dereference when sending a big request that timeout.
---
Use strings.h for strcasecmp (on linux)
---
Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.
 1.4.10.1 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.4.6.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.4.6.1 31-Jan-2017  snj file test-simple was added on branch netbsd-6 on 2017-03-07 07:25:19 +0000
 1.4.4.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437:
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.4.4.1 31-Jan-2017  snj file test-simple was added on branch netbsd-6-1 on 2017-03-07 07:21:54 +0000
 1.4.2.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.4.2.1 31-Jan-2017  snj file test-simple was added on branch netbsd-6-0 on 2017-03-07 07:16:08 +0000
 1.1 31-Jan-2017  mrg branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.10; 1.1.12; 1.1.14;
- fix a bug in cgi processing. from Dennis Lindroos.
- add a testcase for this, and expand test-simple to handle additional
args to bozohttpd for eg, cgi-bin setting.
- fix objdir bugs in the testsuite.
 1.1.14.2 20-Mar-2017  pgoyette Sync with HEAD
 1.1.14.1 31-Jan-2017  pgoyette file empty was added on branch pgoyette-localcount on 2017-03-20 06:57:01 +0000
 1.1.12.2 13-Mar-2017  skrll Sync with netbsd-7-1-RELEASE
 1.1.12.1 31-Jan-2017  skrll file empty was added on branch netbsd-7-nhusb on 2017-03-13 07:41:26 +0000
 1.1.10.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.1.10.1 31-Jan-2017  snj file empty was added on branch netbsd-6 on 2017-03-07 07:25:19 +0000
 1.1.8.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437:
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.1.8.1 31-Jan-2017  snj file empty was added on branch netbsd-6-1 on 2017-03-07 07:21:54 +0000
 1.1.6.2 07-Mar-2017  snj Pull up following revision(s) (requested by mrg in ticket #1437):
libexec/httpd/CHANGES: up to 1.25
libexec/httpd/bozohttpd.8: up to 1.65
libexec/httpd/bozohttpd.c: up to 1.86
libexec/httpd/bozohttpd.h: up to 1.47
libexec/httpd/cgi-bozo.c: up to 1.37
libexec/httpd/content-bozo.c: up to 1.14
libexec/httpd/libbozohttpd/libbozohttpd.3: up to 1.4
libexec/httpd/main.c: up to 1.16
libexec/httpd/small/Makefile: up to 1.3
libexec/httpd/testsuite/Makefile: up to 1.7
libexec/httpd/testsuite/cgi-bin/empty: up to 1.1
libexec/httpd/testsuite/html_cmp: up to 1.5
libexec/httpd/testsuite/t11.in: up to 1.1
libexec/httpd/testsuite/t11.out: up to 1.1
libexec/httpd/testsuite/test-bigfile: up to 1.4
libexec/httpd/testsuite/test-simple: up to 1.4
Update bozohttpd to 20170201. Changes:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
- add a bozo_get_version() function which returns the version number
 1.1.6.1 31-Jan-2017  snj file empty was added on branch netbsd-6-0 on 2017-03-07 07:16:08 +0000
 1.1.4.2 12-Feb-2017  snj Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.1.4.1 31-Jan-2017  snj file empty was added on branch netbsd-7 on 2017-02-12 22:07:17 +0000
 1.1.2.2 12-Feb-2017  snj Pull up following revision(s) (requested by mrg in ticket #1357):
libexec/httpd/CHANGES: revision 1.25
libexec/httpd/bozohttpd.8: revisions 1.63-1.65
libexec/httpd/bozohttpd.c: revisions 1.85, 1.86
libexec/httpd/bozohttpd.h: revision 1.47
libexec/httpd/cgi-bozo.c: revisions 1.36, 1.37
libexec/httpd/libbozohttpd/libbozohttpd.3: revision 1.4
libexec/httpd/testsuite/Makefile: revision 1.7
libexec/httpd/testsuite/html_cmp: revision 1.5
libexec/httpd/testsuite/test-bigfile: revision 1.4
libexec/httpd/testsuite/test-simple: revisions 1.3, 1.4
libexec/httpd/testsuite/t11.in: revision 1.1
libexec/httpd/testsuite/t11.out: revision 1.1
libexec/httpd/testsuite/cgi-bin/empty: revision 1.1
Update bozohttpd to 20170201:
- fix an infinite loop in cgi processing
- fixes and clean up for the testsuite
- no longer sends encoding header for compressed formats
 1.1.2.1 31-Jan-2017  snj file empty was added on branch netbsd-7-0 on 2017-02-12 21:59:45 +0000
 1.1 24-Aug-2018  martin branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.10; 1.1.12;
Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@
 1.1.12.2 10-Jun-2019  christos Sync with HEAD
 1.1.12.1 24-Aug-2018  christos file .bzremap was added on branch phil-wifi on 2019-06-10 22:05:29 +0000
 1.1.10.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.10.1 24-Aug-2018  martin file .bzremap was added on branch netbsd-7-0 on 2018-11-24 17:23:48 +0000
 1.1.8.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.8.1 24-Aug-2018  martin file .bzremap was added on branch netbsd-7-1 on 2018-11-24 17:23:21 +0000
 1.1.6.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1655):

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/Makefile up to 1.27
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/lua-bozo.c up to 1.15
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/libbozohttpd/Makefile up to 1.3
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.6.1 24-Aug-2018  martin file .bzremap was added on branch netbsd-7 on 2018-11-24 17:22:58 +0000
 1.1.4.2 24-Nov-2018  martin Sync to HEAD (requested by mrg in ticket #1104)

libexec/httpd/testsuite/data/.bzremap up to 1.1
libexec/httpd/testsuite/t12.out up to 1.1
libexec/httpd/testsuite/t12.in up to 1.1
libexec/httpd/testsuite/t13.out up to 1.1
libexec/httpd/testsuite/t13.in up to 1.1
libexec/httpd/testsuite/t14.out up to 1.1
libexec/httpd/testsuite/t14.in up to 1.1
libexec/httpd/testsuite/t15.out up to 1.1
libexec/httpd/testsuite/t15.in up to 1.1
libexec/httpd/CHANGES up to 1.28
libexec/httpd/auth-bozo.c up to 1.22
libexec/httpd/bozohttpd.8 up to 1.74
libexec/httpd/bozohttpd.c up to 1.96
libexec/httpd/bozohttpd.h up to 1.56
libexec/httpd/cgi-bozo.c up to 1.44
libexec/httpd/content-bozo.c up to 1.16
libexec/httpd/daemon-bozo.c up to 1.19
libexec/httpd/dir-index-bozo.c up to 1.28
libexec/httpd/main.c up to 1.21
libexec/httpd/ssl-bozo.c up to 1.25
libexec/httpd/tilde-luzah-bozo.c up to 1.16
libexec/httpd/lua/bozo.lua up to 1.3
libexec/httpd/lua/glue.c up to 1.5
libexec/httpd/lua/optparse.lua up to 1.2
libexec/httpd/testsuite/Makefile up to 1.11
libexec/httpd/testsuite/html_cmp up to 1.6
libexec/httpd/testsuite/t3.out up to 1.4
libexec/httpd/testsuite/t5.out up to 1.4
libexec/httpd/testsuite/t6.out up to 1.4
libexec/httpd/testsuite/test-bigfile up to 1.5
libexec/httpd/testsuite/test-simple up to 1.5


Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
manual. Those functions may throw (longjump) and leak data allocated
by C function. In one case, I use luaL_Buffer, in the other case,
I rearranged calls a bit.


fix ordering of a couple of words. from Edgar Pettijohn in PR#52375.
thanks!


s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


Document script handler issues with httpd(8).
From martin@, addressing PR 52194.

While here, use American spelling consistently and upper-case some
abbreviations.

Bump date.


fix output since protocol agnostic change went in.

XXX: i thought someone hooked this into atf already, please do :)


Add support for remapping requested paths via a .bzredirect file.
Fixes PR 52772. Ok: mrg@


Bump date


Remove trailing whitespace.


use __func__ in debug().


fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


avoid memory leak in sending multiple auth headers.
mostly mitigated by previous patch to limit total header size,
but still a real problem here.


note the changes present in bozohttpd 20181118:

o add url remap support via .bzremap file, from martin%netbsd.org@localhost
o handle redirections for any protocol, not just http:
o fix a denial of service attack against header contents, which
is now bounded at 16KiB. reported by JP.


from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.

the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.

reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.

clean up option and usage handling some.


move some #if support into bozohttpd.h.


fix previous: have_debug was reversed.


also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.


- move special files defines into bozohttpd.h, so we can ...
- consolidate all the special file checks into
bozo_check_special_files() so that all builds check the same
list of special files, regardless of build options.
- convert "(void)bozo_http_error(...); return -1;" into plain
"return bozo_http_error(...);"
- fix the call to bozo_check_special_files() to be used on all
input types. part of the fixes for failure to reject access
to /.htpasswd as reported by JP on tech-security.
- use warn_unused_result attribute on bozo_check_special_files(),
and fix the failures to return failure. second part of the
htpasswd access fix.
- update testsuite to use a fixed fake hostname.

call this bozohttpd 20181121.


two fixes reported by mouse:
- don't check contents of 'st' if stat(2) failed.
- round up instead of truncate. now 10000 byte files say 10kB not 9kB.


use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:

WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)


many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines


alpha sort the option switch.


add an assert() check on array bounds.


minor style fixes. simplify bozo_match_content_map().
 1.1.4.1 24-Aug-2018  martin file .bzremap was added on branch netbsd-8 on 2018-11-24 17:13:51 +0000
 1.1.2.2 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.1.2.1 24-Aug-2018  pgoyette file .bzremap was added on branch pgoyette-compat on 2018-09-06 06:55:20 +0000
 1.1 23-May-2009  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 23-May-2009  mrg branches: 1.1.1.1.24; 1.1.1.1.26; 1.1.1.1.28;
import bozohttpd 20090522, which has these changes:
o close more leaking file descriptors for CGI and daemon mode
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child
 1.1.1.1.28.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.28.1 23-May-2009  msaitoh file bigfile was added on branch netbsd-5-1 on 2014-07-09 16:09:40 +0000
 1.1.1.1.26.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.26.1 23-May-2009  msaitoh file bigfile was added on branch netbsd-5-2 on 2014-07-09 16:04:13 +0000
 1.1.1.1.24.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.24.1 23-May-2009  msaitoh file bigfile was added on branch netbsd-5 on 2014-07-09 15:21:21 +0000
 1.1 23-May-2009  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 23-May-2009  mrg branches: 1.1.1.1.24; 1.1.1.1.26; 1.1.1.1.28;
import bozohttpd 20090522, which has these changes:
o close more leaking file descriptors for CGI and daemon mode
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child
 1.1.1.1.28.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.28.1 23-May-2009  msaitoh file bigfile.partial4000 was added on branch netbsd-5-1 on 2014-07-09 16:09:40 +0000
 1.1.1.1.26.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.26.1 23-May-2009  msaitoh file bigfile.partial4000 was added on branch netbsd-5-2 on 2014-07-09 16:04:13 +0000
 1.1.1.1.24.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.24.1 23-May-2009  msaitoh file bigfile.partial4000 was added on branch netbsd-5 on 2014-07-09 15:21:21 +0000
 1.1 23-May-2009  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 23-May-2009  mrg branches: 1.1.1.1.24; 1.1.1.1.26; 1.1.1.1.28;
import bozohttpd 20090522, which has these changes:
o close more leaking file descriptors for CGI and daemon mode
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child
 1.1.1.1.28.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.28.1 23-May-2009  msaitoh file bigfile.partial8000 was added on branch netbsd-5-1 on 2014-07-09 16:09:40 +0000
 1.1.1.1.26.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.26.1 23-May-2009  msaitoh file bigfile.partial8000 was added on branch netbsd-5-2 on 2014-07-09 16:04:13 +0000
 1.1.1.1.24.2 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.1.1.1.24.1 23-May-2009  msaitoh file bigfile.partial8000 was added on branch netbsd-5 on 2014-07-09 15:21:21 +0000
 1.3 05-Nov-2009  agc Re-add two files necessary for the testsuite to run properly.
 1.2 03-Mar-2008  mrg branches: 1.2.4; 1.2.6; 1.2.12;
merge bozohttpd 20080303
 1.1 03-Mar-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 03-Mar-2008  mrg import latest bozohttpd. changes include:

o fix some cgi header processing, from <thelsdj@gmail.com>
o add simple Range: header processing, from <bad@bsd.de>
o man page fixes, from NetBSD
o clean up various parts, from NetBSD
o prefix some function names with "bozo"
o align directory indexing <hr> markers
o clean up some code GCC4 grumbled about
 1.2.12.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.6.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.4.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.3 05-Nov-2009  agc Re-add two files necessary for the testsuite to run properly.
 1.2 16-Oct-2007  tls branches: 1.2.10; 1.2.16; 1.2.20;
Get httpd ready for inclusion in build.
 1.1 16-Oct-2007  tls branches: 1.1.1;
Initial revision
 1.1.1.1 16-Oct-2007  tls Import of bozohttpd for its originally intended purpose: a small (~30k)
simple run-from-inetd httpd suitable for small systems (and some large
ones).
 1.2.20.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.16.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.2.10.1 09-Jul-2014  msaitoh Pull up following revision(s) (requested by mrg in ticket #1913):
libexec/httpd/CHANGES 1.3-1.18
libexec/httpd/Makefile 1.8-1.22 via patch
libexec/httpd/Makefile.boot 1.3-1.6
libexec/httpd/auth-bozo.c 1.5-1.13
libexec/httpd/bozohttpd.8 1.6-1.46
libexec/httpd/bozohttpd.c 1.8,1.12-1.54
libexec/httpd/bozohttpd.h 1.8-1.32
libexec/httpd/cgi-bozo.c 1.11-1.25
libexec/httpd/content-bozo.c 1.4-1.10
libexec/httpd/daemon-bozo.c 1.5-1.16
libexec/httpd/dir-index-bozo.c 1.6-1.19
libexec/httpd/ssl-bozo.c 1.5-1.16
libexec/httpd/tilde-luzah-bozo.c 1.5-1.10
libexec/httpd/lua-bozo.c 1.1-1.9
libexec/httpd/main.c 1.1-1.7
libexec/httpd/netbsd_queue.h 1.1
libexec/httpd/printenv.lua 1.1-1.2
libexec/httpd/debug/Makefile 1.1
libexec/httpd/libbozohttpd/Makefile 1.2
libexec/httpd/libbozohttpd/libbozohttpd.3 1.3
libexec/httpd/libbozohttpd/shlib_version 1.1
libexec/httpd/lua/Makefile 1.1
libexec/httpd/lua/bozo.lua 1.1
libexec/httpd/lua/glue.c 1.1
libexec/httpd/lua/optparse.lua 1.1
libexec/httpd/lua/shlib_version 1.1
libexec/httpd/small/Makefile 1.1-1.2
libexec/httpd/testsuite/Makefile 1.4
libexec/httpd/testsuite/html_cmp 1.4
libexec/httpd/testsuite/t1.in 1.3
libexec/httpd/testsuite/t1.out 1.3
libexec/httpd/testsuite/t10.in 1.1
libexec/httpd/testsuite/t10.out 1.1
libexec/httpd/testsuite/t2.in 1.3
libexec/httpd/testsuite/t2.out 1.3
libexec/httpd/testsuite/t3.in 1.3
libexec/httpd/testsuite/t3.out 1.3
libexec/httpd/testsuite/t4.in 1.3
libexec/httpd/testsuite/t4.out 1.3
libexec/httpd/testsuite/t5.in 1.3
libexec/httpd/testsuite/t5.out 1.3
libexec/httpd/testsuite/t6.in 1.3
libexec/httpd/testsuite/t6.out 1.3
libexec/httpd/testsuite/t7.in 1.3
libexec/httpd/testsuite/t7.out 1.3
libexec/httpd/testsuite/t8.in 1.3
libexec/httpd/testsuite/t8.out 1.3
libexec/httpd/testsuite/t9.in 1.3
libexec/httpd/testsuite/t9.out 1.3
libexec/httpd/testsuite/test-bigfile 1.1
libexec/httpd/testsuite/data/bigfile 1.1
libexec/httpd/testsuite/data/bigfile.partial4000 1.1
libexec/httpd/testsuite/data/bigfile.partial8000 1.1
libexec/httpd/testsuite/data/file 1.3
libexec/httpd/testsuite/data/index.html 1.3

Update bozohttpd from 20080303+patches to 20140708.

changes in bozohttpd 20140708:
o fixes for virtual host support, from rajeev_v_pillai@yahoo.com
o avoid printing double errors, from shm@netbsd.org
o fix a security issue in basic HTTP authentication which would allow
authentication to be bypassed, from shm@netbsd.org

changes in bozohttpd 20140201:
o support .svg files
o fix a core dump when requests timeout

changes in bozohttpd 20140102:
o update a few content types
o add support for directly calling lua scripts to handle
processes, from mbalmer@netbsd.org
o properly escape generated HTML
o add authentication for redirections, from martin@netbsd.org
o handle chained ssl certifications, from elric@netbsd.org
o add basic support for gzipped files, from elric@netbsd.org
o properly escape generated URIs

changes in bozohttpd 20111118:
o add -P <pidfile> option, from jmmv@netbsd.org
o avoid crashes with http basic auth, from pooka@netbsd.org
o add support for REDIRECT_STATUS variable, from tls@netbsd.org
o support .mp4 files in the default map
o directory indexes with files with : are now displayed properly, from
reed@netbsd.org
o allow -I option to be useful in non-inetd mode as well

changes in bozohttpd 20100920:
o properly fully disable multi-file mode for now
o fix the -t and -U options when used without the -e option, broken since
the library-ifcation
o be explicit that logs go to the FTP facility in syslog
o use scandir() with alphasort() for sorted directory lists, from moof
o fix a serious error in vhost handling; "Host:.." would allow access to
the next level directory from the virtual root directory, from seanb
o fix some various non standard compile time errors, from rudolf
o fix dynamic CGI content maps, from rudolf

changes in bozohttpd 20100617:
o fix some compile issues
o fix SSL mode. from rtr
o fix some cgi-bin issues, as seen with cvsweb
o disable multi-file daemon mode for now, it breaks
o return 404's instead of 403's when chdir of ~user dirs fail
o remove "noreturn" attribute from bozo_http_error() that was
causing incorrect runtime behaviour

changes in bozohttpd 20100509:
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325

changes in bozohttpd 20090522:
o avoid dying in daemon mode for some uncommon, but recoverable, errors
o close leaking file descriptors for CGI and daemon mode
o handle poll errors properly
o don't try to handle more than one request per process yet
o add subdirs for build "debug" and "small" versions
o clean up a bad merge / duplicate code
o make mmap() usage portable, fixes linux & ranges: support
o document the -f option
o daemon mode now serves 6 files per child

changes in bozohttpd 20090417:
o make bozohttpd internally more modular, preparing the way
to handle more than one request per process
o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix
cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
o fix an uninitialised variable use in daemon mode
o fix ssl mode with newer OpenSSL
o mmap large files in manageable sizes so we can serve any size file
o refactor url processing to handle query strings correctly for CGI
from Sergey Katsev at Coyote Point
o add If-Modified-Since support, from Joerg Sonnenberger
<joerg@netbsd.org>
o many more manual fixes, from NetBSD
 1.4 31-Jan-2004  christos remove unused pidentd files.
 1.3 15-Jul-1998  msaitoh Upgrade to version 2.8.3.
 1.2 08-Oct-1997  mrg WARNS?=1. RCS ids.
 1.1 04-Feb-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 04-Feb-1994  cgd import of pidentd 2.1.2, by Peter Eriksson <pen@lysator.liu.se>. needs clennup
 1.20 03-Jun-2023  lukem bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER

Provide a single variable
CC_WNO_ADDRESS_OF_PACKED_MEMBER
with options for both clang and gcc, to replace
CLANG_NO_ADDR_OF_PACKED_MEMBER
CC_NO_ADDR_OF_PACKED_MEMBER
GCC_NO_ADDR_OF_PACKED_MEMBER

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.19 06-Sep-2020  mrg add support for new GCC 9 warnings that may be too much to fix
right now. new address-of-packed-member and format-overflow
warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd
GCC_NO_FORMAT_OVERFLOW variables to remove these warnings.

apply to a bunch of the tree. mostly, these are real bugs that
should be fixed, but in many cases, only by removing the 'packed'
attribute from some structure that doesn't really need it. (i
looked at many different ones, and while perhaps 60-80% were
already properly aligned, it wasn't clear to me that the uses
were always coming from sane data vs network alignment, so it
doesn't seem safe to remove packed without careful research for
each affect struct.) clang already warned (and was not erroring)
for many of these cases, but gcc picked up dozens more.
 1.18 24-Aug-2019  rmind libnpf fix: link the library itself to libnv; libnpf users should not be
expected to assume this dependency.
 1.17 29-Sep-2018  rmind branches: 1.17.2;
NPF: Major rework -- migrate NPF to the libnv library.
- This conversion significantly simplifies the code and moves NPF to
a binary serialisation format (replacing the XML-like format).
- Fix some memory/reference leaks and possibly use-after-free bugs.
- Bump NPF_VERSION as this change makes libnpf incompatible with the
previous versions. Also, different serialisation format means NPF
connection/config saving and loading is not compatible with the
previous versions either.

Thanks to christos@ for extra testing.
 1.16 04-Feb-2018  mrg branches: 1.16.2; 1.16.4;
updates for GCC 6.4:

identd has aliasing violations, use -fno-strict-aliasing.

newfs_msdos's getbpbinfo() has missing {} issues.

sysctl's kern_cp_id() has missing {} issues.
 1.15 11-Dec-2016  christos Add libprop for static linking
 1.14 10-Dec-2016  christos add npf support.
 1.13 15-Sep-2012  plunky branches: 1.13.12;
does not need -I${NETBSDSRCDIR}/sys/dist/ipf here, the files are
installed in /usr/include/netinet
 1.12 16-Mar-2009  lukem branches: 1.12.6; 1.12.12;
Default to WARNS=4
Exceptions that need a lower level are:
getty ld.elf_so lfs_cleanerd makewhatis telnetd tftpd
hpropd ipropd-master ipropd-slave kadmind kpasswdd
 1.11 03-Apr-2005  peter branches: 1.11.28;
Add forward/proxy support to identd(8).

Approved by christos.
 1.10 31-Jan-2004  christos new identd from Peter Postma.
 1.9 19-Apr-2003  christos PR/2352: Tor Egge: Use sysctl to get uid.
 1.8 30-Nov-2002  lukem don't need -lutil here
 1.7 18-May-1999  jwise Add a -L (lie brazenly) flag, to demonstrate the perils of proof by
assertion^W^W^W^W^W^W^Wprovide admins with a means of providing a
standard host-wide identd response. From the man page:

The -L<user name> option instructs identd to lie brazenly
about the identity of the user in question. You didn't
really intend to trust my assertion about who I was any-
way, right?
This flag provides a way for a site to support services
requiring the ident protocol while providing a standard
answer to all ident queries. All queries to identd will
respond with a host type of `OTHER' and a username of
<user name>.
 1.6 15-Jul-1998  msaitoh Upgrade to version 2.8.3.
 1.5 08-Oct-1997  mrg merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.4 08-Oct-1997  mrg WARNS?=1. RCS ids.
 1.3 30-Aug-1996  thorpej RCS id police.
 1.2 22-Dec-1994  cgd specify man pages the new way.
 1.1 04-Feb-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 04-Feb-1994  cgd import of pidentd 2.1.2, by Peter Eriksson <pen@lysator.liu.se>. needs clennup
 1.11.28.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.12.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.12.6.1 30-Oct-2012  yamt sync with head
 1.13.12.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.16.4.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.16.4.1 10-Jun-2019  christos Sync with HEAD
 1.16.2.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.17.2.1 01-Sep-2019  martin Pull up following revision(s) (requested by rmind in ticket #140):

external/bsd/libnv/lib/Makefile: revision 1.3
usr.sbin/npf/npfd/Makefile: revision 1.7
lib/libnpf/Makefile: revision 1.11
lib/libnpf/Makefile: revision 1.12
libexec/identd/Makefile: revision 1.18
usr.sbin/npf/npfctl/Makefile: revision 1.14
lib/npf/mod.mk: revision 1.8
external/bsd/libnv/lib/srcs.mk: revision 1.1

libnpf fix: link the library itself to libnv; libnpf users should not be
expected to assume this dependency.

Move common parts into a makefile fragment usable from elsewhere.
Suggested by mrg.

Include libnv directly into this library
 1.4 31-Jan-2004  christos remove unused pidentd files.
 1.3 15-Jul-1998  msaitoh Upgrade to version 2.8.3.
 1.2 08-Oct-1997  mrg WARNS?=1. RCS ids.
 1.1 04-Feb-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 04-Feb-1994  cgd import of pidentd 2.1.2, by Peter Eriksson <pen@lysator.liu.se>. needs clennup
 1.7 31-Jan-2004  christos remove unused pidentd files.
 1.6 03-Jul-2000  matt Make things builds with GCC 2.96
 1.5 15-Jul-1998  msaitoh Upgrade to version 2.8.3.
 1.4 08-Oct-1997  mrg WARNS?=1. RCS ids.
 1.3 30-Aug-1996  thorpej RCS id police.
 1.2 04-Feb-1994  cgd clean up, rcs ids, etc.
 1.1 04-Feb-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 04-Feb-1994  cgd import of pidentd 2.1.2, by Peter Eriksson <pen@lysator.liu.se>. needs clennup
 1.6 31-Jan-2004  christos remove unused pidentd files.
 1.5 14-Sep-2003  christos downgrade the accept error to a warning so that we don't exit if we are being
port scanned.
 1.4 08-Oct-1997  mrg WARNS?=1. RCS ids.
 1.3 30-Aug-1996  thorpej RCS id police.
 1.2 04-Feb-1994  cgd clean up, rcs ids, etc.
 1.1 04-Feb-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 04-Feb-1994  cgd import of pidentd 2.1.2, by Peter Eriksson <pen@lysator.liu.se>. needs clennup
 1.22 12-Dec-2016  wiz Whitespace.
 1.21 10-Dec-2016  christos add npf support.
 1.20 04-Apr-2005  peter branches: 1.20.66;
Fix a typo; some minor nits and tweaks; add a CAVEATS section which
describes where identd needs access to when using certain flags.
 1.19 03-Apr-2005  peter Add forward/proxy support to identd(8).

Approved by christos.
 1.18 31-Jan-2004  wiz Standardize flag listing; sort options; remove ending dot in Nd argument;
sort sections and SEE ALSO; new sentence, new line; replace some man
macros with mdoc macros.
 1.17 31-Jan-2004  christos new identd from Peter Postma.
 1.16 15-Mar-2003  wiz Use "its" instead of "it's" where appropriate.
From Soren Jacobsen in PR 20730.
 1.15 15-Mar-2003  wiz Correct spelling of "preferred". From PR 20716 by Igor Sobrado.
 1.14 29-Oct-2002  wiz Fix typos. Found by Adrian Mrva.
 1.13 29-Sep-2002  wiz Begin new sentences on new lines.
Patch from Robert Elz (kre at munnari oz au).
 1.12 28-Mar-2002  sommerfeld Truth in advertising.
 1.11 08-Feb-2002  ross Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
 1.10 15-Jan-2002  wiz Whitespace nits and fix xref section.
 1.9 19-May-1999  bad Do not xref non-existant man pages.
 1.8 18-May-1999  jwise Add a -L (lie brazenly) flag, to demonstrate the perils of proof by
assertion^W^W^W^W^W^W^Wprovide admins with a means of providing a
standard host-wide identd response. From the man page:

The -L<user name> option instructs identd to lie brazenly
about the identity of the user in question. You didn't
really intend to trust my assertion about who I was any-
way, right?
This flag provides a way for a site to support services
requiring the ident protocol while providing a standard
answer to all ident queries. All queries to identd will
respond with a host type of `OTHER' and a username of
<user name>.
 1.7 15-Jul-1998  msaitoh Upgrade to version 2.8.3.
 1.6 08-Oct-1997  mrg WARNS?=1. RCS ids.
 1.5 30-Aug-1996  thorpej RCS id police.
 1.4 13-May-1996  christos Explain why identd is using LOG_DAEMON to log messages instead of LOG_AUTH.
 1.3 04-Feb-1994  cgd add a use for -v, for happy paranoid sysadmins
 1.2 04-Feb-1994  cgd clean up, rcs ids, etc.
 1.1 04-Feb-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 04-Feb-1994  cgd import of pidentd 2.1.2, by Peter Eriksson <pen@lysator.liu.se>. needs clennup
 1.20.66.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.38 05-Dec-2021  msaitoh s/numberic/numeric/ in comment.
 1.37 16-Sep-2021  andvar fix typos in word "successfully", mainly s/succesfully/successfully/.
 1.36 10-Dec-2016  christos Fix varargs.
 1.35 10-Dec-2016  christos add npf support.
 1.34 15-Mar-2012  joerg branches: 1.34.14;
Add __printflike attribution to use vprintf and friends with an argument
as format string.
 1.33 29-Aug-2011  joerg branches: 1.33.2;
Use __dead
 1.32 18-Jan-2009  lukem fix -Wsign-compare issues
 1.31 29-Sep-2006  christos Avoid buffer overflow.
 1.30 29-Sep-2006  christos PR/34658: der Mouse: identd truncates queries to first segment
 1.29 14-Jun-2005  peter Minor cleanup:
- remove the silly limit of 490 chars in change_format
- improve the timeout message
- delint (where it makes sense)
 1.28 01-Jun-2005  lukem appease gcc -Wuninitialized
 1.27 18-May-2005  peter Remove the zombie reaper and set SIG_IGN on SIGCHLD. We won't get a zombie
when the child exists this way and it should also fix the race condition
as mentioned in PR bin/30253 from Patrick McPhee.

Approved by christos.
 1.26 03-Apr-2005  peter Add forward/proxy support to identd(8).

Approved by christos.
 1.25 11-Mar-2005  peter branches: 1.25.2;
Some minor cleanup:

* Improve some comments and (error) messages.
* Use EXIT_FAILURE and EXIT_SUCCESS.
* Add function `maybe_syslog' (only log when -l is enabled).

Reviewed by christos.
 1.24 05-Nov-2004  dsl Add (unsigned char) cast to ctype functions
 1.23 05-Aug-2004  kim The "FORMAL SYNTAX" on RFC-1314 (page 5) does not show any spaces
around the delimiters (commas and colons). Also, at the end of
the "RESPONSE TYPES" section for "USERID" it is explicitly noted
that any spaces after the colon following the OSTYPE field *are*
part of the identifier.
 1.22 05-Feb-2004  christos branches: 1.22.2;
PR/24320: Alan Barrett: new identd does not report random data when getpwuid()
fails. Also improve some log messages.
 1.21 31-Jan-2004  christos add RCSID.
 1.20 31-Jan-2004  christos new identd from Peter Postma.
 1.19 14-Sep-2003  christos downgrade the accept error to a warning so that we don't exit if we are being
port scanned.
 1.18 17-May-2003  itojun use snprintf
 1.17 19-Apr-2003  christos PR/2352: Tor Egge: Use sysctl to get uid.
 1.16 23-Sep-2002  mycroft null commit
 1.15 23-Sep-2002  itojun poll.h, not sys/poll.h
 1.14 18-Sep-2002  mycroft Fix an error message.
 1.13 18-Sep-2002  mycroft select() -> poll()
 1.12 26-May-2002  wiz __STDC__ is always defined on NetBSD.
 1.11 16-Sep-2001  wiz Spell 'occurred' with two 'r's.
 1.10 18-May-1999  jwise Add a -L (lie brazenly) flag, to demonstrate the perils of proof by
assertion^W^W^W^W^W^W^Wprovide admins with a means of providing a
standard host-wide identd response. From the man page:

The -L<user name> option instructs identd to lie brazenly
about the identity of the user in question. You didn't
really intend to trust my assertion about who I was any-
way, right?
This flag provides a way for a site to support services
requiring the ident protocol while providing a standard
answer to all ident queries. All queries to identd will
respond with a host type of `OTHER' and a username of
<user name>.
 1.9 15-Jul-1998  msaitoh Upgrade to version 2.8.3.
 1.8 08-Oct-1997  mrg WARNS?=1. RCS ids.
 1.7 04-Aug-1997  mycroft Ignore SIGCHLD.
 1.6 30-Aug-1996  thorpej RCS id police.
 1.5 07-Jun-1995  cgd typeof(timeval.tv_sec) != time_t
 1.4 03-Jun-1995  mycroft Fill in sin_len.
 1.3 21-May-1995  mycroft Use inet_aton(), not inet_addr().
 1.2 04-Feb-1994  cgd clean up, rcs ids, etc.
 1.1 04-Feb-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 04-Feb-1994  cgd import of pidentd 2.1.2, by Peter Eriksson <pen@lysator.liu.se>. needs clennup
 1.22.2.1 18-Sep-2004  he branches: 1.22.2.1.2;
Pull up revision 1.23 (requested by daniel in ticket #857):
Make this conform to the "FORMAL SYNTAX" in RFC 1314.
 1.22.2.1.2.1 18-May-2005  riz Pull up patch (requested by peter in ticket #1529):
Save/restore errno in the zombie reaper to fix a race condition.
Fixes PR bin/30253 from Patrick McPhee.
 1.25.2.1 27-May-2005  riz Pull up patch (requested by peter in ticket #319):
Save/restore errno in the zombie reaper to fix a race condition.
Fixes PR bin/30253 from Patrick McPhee.
 1.33.2.1 17-Apr-2012  yamt sync with head
 1.34.14.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.11 10-Dec-2016  christos add npf support.
 1.10 14-Oct-2015  christos branches: 1.10.2;
this is syslog-like
 1.9 15-Mar-2012  joerg Add __printflike attribution to use vprintf and friends with an argument
as format string.
 1.8 03-Apr-2005  peter branches: 1.8.42;
Add forward/proxy support to identd(8).

Approved by christos.
 1.7 31-Jan-2004  christos remove unused pidentd files.
 1.6 18-May-1999  jwise Add a -L (lie brazenly) flag, to demonstrate the perils of proof by
assertion^W^W^W^W^W^W^Wprovide admins with a means of providing a
standard host-wide identd response. From the man page:

The -L<user name> option instructs identd to lie brazenly
about the identity of the user in question. You didn't
really intend to trust my assertion about who I was any-
way, right?
This flag provides a way for a site to support services
requiring the ident protocol while providing a standard
answer to all ident queries. All queries to identd will
respond with a host type of `OTHER' and a username of
<user name>.
 1.5 15-Jul-1998  msaitoh Upgrade to version 2.8.3.
 1.4 08-Oct-1997  mrg WARNS?=1. RCS ids.
 1.3 30-Aug-1996  thorpej RCS id police.
 1.2 04-Feb-1994  cgd clean up, rcs ids, etc.
 1.1 04-Feb-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 04-Feb-1994  cgd import of pidentd 2.1.2, by Peter Eriksson <pen@lysator.liu.se>. needs clennup
 1.8.42.1 17-Apr-2012  yamt sync with head
 1.10.2.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.4 13-Dec-2018  sborrill IPFilter 5 requires you to specify IPv4 or IPv6
 1.3 10-Dec-2016  christos branches: 1.3.12; 1.3.14;
add npf support.
 1.2 14-Jun-2005  peter branches: 1.2.66;
Add RCSID.
 1.1 03-Apr-2005  peter Add forward/proxy support to identd(8).

Approved by christos.
 1.2.66.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.3.14.1 10-Jun-2019  christos Sync with HEAD
 1.3.12.1 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.22 31-Jan-2004  christos remove unused pidentd files.
 1.21 05-Jul-2003  tsutsui Include <stdlib.h> for exit(3) prototype, warned by gcc-3.3.
 1.20 27-Jun-2003  christos fix botch in sysctl arg.
 1.19 26-Jun-2003  christos Rewrite from scratch; modify sysctl so that it does not abuse the new pointer.
 1.18 26-Jun-2003  christos No need to define _KERNEL
 1.17 22-Apr-2003  tron Output a usefull error message if sysctl(3) fails.
 1.16 19-Apr-2003  christos PR/2352: Tor Egge: Use sysctl to get uid.
 1.15 02-Feb-2003  christos undo mallocvar.h change!
 1.14 01-Feb-2003  tron Include "sys/mallocvar.h" with "_KERNEL" defined in time to avoid
build failure because MALLOC_DECLARE() is not defined.
 1.13 01-Feb-2003  tron Fix build problem by rearranging the order of "#include" statements so
that "sys/mallocvar.h" gets include while "_KERNEL" is defined.
 1.12 15-Jul-1998  msaitoh Upgrade to version 2.8.3.
 1.11 08-Oct-1997  mrg fix warnings on the alpha.
 1.10 08-Oct-1997  mrg WARNS?=1. RCS ids.
 1.9 30-Aug-1996  thorpej RCS id police.
 1.8 08-Jul-1995  pk Oops, previous needs <limits.h>
Also, previous addresses PR#1183.
 1.7 08-Jul-1995  pk Call kvm_openfiles() with suitable arguments.
(Note, the error reporting mechanism in here is quite braindead)
 1.6 18-Jun-1995  cgd update for new networking queue structures
 1.5 28-Mar-1995  jtc KERNEL -> _KERNEL
 1.4 23-Dec-1994  cgd be a bit more careful with types, casts, and and function declarations.
 1.3 14-May-1994  cgd update for sysctl/new kvm
 1.2 04-Feb-1994  cgd clean up, rcs ids, etc.
 1.1 04-Feb-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 04-Feb-1994  cgd import of pidentd 2.1.2, by Peter Eriksson <pen@lysator.liu.se>. needs clennup
 1.2 10-Dec-2016  christos branches: 1.2.2;
Fix the direction; ipf/pf seem to be wrong...
 1.1 10-Dec-2016  christos add npf support.
 1.2.2.2 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.2.2.1 10-Dec-2016  pgoyette file npf.c was added on branch pgoyette-localcount on 2017-01-07 08:56:05 +0000
 1.16 31-Jan-2004  christos remove unused pidentd files.
 1.15 06-Sep-2003  itojun use arc4random
 1.14 17-May-2003  itojun string manipulation cleanup
 1.13 27-Mar-2003  jdolecek s/USER-ID/USERID/ in response when -L is used
fixes PR bin/20911 by der Mouse
 1.12 18-May-1999  jwise Add a -L (lie brazenly) flag, to demonstrate the perils of proof by
assertion^W^W^W^W^W^W^Wprovide admins with a means of providing a
standard host-wide identd response. From the man page:

The -L<user name> option instructs identd to lie brazenly
about the identity of the user in question. You didn't
really intend to trust my assertion about who I was any-
way, right?
This flag provides a way for a site to support services
requiring the ident protocol while providing a standard
answer to all ident queries. All queries to identd will
respond with a host type of `OTHER' and a username of
<user name>.
 1.11 27-Jul-1998  mycroft const propagation.
 1.10 26-Jul-1998  mycroft const poisoning.
 1.9 15-Jul-1998  msaitoh Upgrade to version 2.8.3.
 1.8 08-Oct-1997  mrg WARNS?=1. RCS ids.
 1.7 30-Aug-1996  thorpej RCS id police.
 1.6 02-Jan-1996  jtc Fix userid format to conform to RFC1413. Fix from der Mouse in PR1848.
 1.5 21-May-1995  mycroft Use inet_aton(), not inet_addr().
 1.4 23-Dec-1994  cgd be a bit more careful with types, casts, and and function declarations.
 1.3 04-Feb-1994  cgd add a use for -v, for happy paranoid sysadmins
 1.2 04-Feb-1994  cgd clean up, rcs ids, etc.
 1.1 04-Feb-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 04-Feb-1994  cgd import of pidentd 2.1.2, by Peter Eriksson <pen@lysator.liu.se>. needs clennup
 1.6 31-Jan-2004  christos remove unused pidentd files.
 1.5 15-Jul-1998  msaitoh Upgrade to version 2.8.3.
 1.4 08-Oct-1997  mrg WARNS?=1. RCS ids.
 1.3 30-Aug-1996  thorpej RCS id police.
 1.2 04-Feb-1994  cgd clean up, rcs ids, etc.
 1.1 04-Feb-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 04-Feb-1994  cgd import of pidentd 2.1.2, by Peter Eriksson <pen@lysator.liu.se>. needs clennup
 1.3 10-Dec-2016  christos add npf support.
 1.2 14-Jun-2005  peter branches: 1.2.66;
Add RCSID.
 1.1 03-Apr-2005  peter Add forward/proxy support to identd(8).

Approved by christos.
 1.2.66.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.3 31-Jan-2004  christos remove unused pidentd files.
 1.2 30-Nov-2002  lukem don't need -lutil here
 1.1 15-Jul-1998  msaitoh Add a perl script to convert a standard distribution directory for
pidentd into a NetBSD source tree.
 1.7 31-Jan-2004  christos remove unused pidentd files.
 1.6 04-Feb-2001  christos remove redundant decls
 1.5 15-Jul-1998  msaitoh Upgrade to version 2.8.3.
 1.4 08-Oct-1997  mrg WARNS?=1. RCS ids.
 1.3 30-Aug-1996  thorpej RCS id police.
 1.2 04-Feb-1994  cgd clean up, rcs ids, etc.
 1.1 04-Feb-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 04-Feb-1994  cgd import of pidentd 2.1.2, by Peter Eriksson <pen@lysator.liu.se>. needs clennup
 1.7 31-Jan-2004  christos remove unused pidentd files.
 1.6 15-Jul-1998  msaitoh Upgrade to version 2.8.3.
 1.5 08-Oct-1997  mrg WARNS?=1. RCS ids.
 1.4 30-Aug-1996  thorpej RCS id police.
 1.3 04-Feb-1994  cgd previous change was somewhat nonsensical
 1.2 04-Feb-1994  cgd clean up, rcs ids, etc.
 1.1 04-Feb-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 04-Feb-1994  cgd import of pidentd 2.1.2, by Peter Eriksson <pen@lysator.liu.se>. needs clennup
 1.51 18-Mar-2014  riastradh Merge riastradh-drm2 to HEAD.
 1.50 18-Jul-2013  matt Use ${MACHINE_CPU} for m68k
 1.49 05-Feb-2013  martin branches: 1.49.2;
Make sure UUDECODE_FILES is empty if we do not have an old ld.so_aout
(on architectures that never used a.out)
 1.48 05-Feb-2013  matt There are other little endian arm machine_arches other than "arm"
 1.47 06-Jul-2010  mrg branches: 1.47.6; 1.47.12;
remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format. ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k. this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
 1.46 31-Oct-2008  mrg make MKPIC=no builds work on i368, shark, vax, pmax, sgimips, sparc,
maybe all mips and all arm as well.
 1.45 19-Mar-2004  jmc branches: 1.45.38;
Convert to usage of UUDECODE_FILES and standardize on filename extension
 1.44 21-Oct-2003  lukem Rework how MAKEVERBOSE operates:

* Don't bother prefixing commands with a line of ${_MKCMD}\
and instead rely upon "make -s". This is less intrusive on
all the Makefiles than the former. Idea from David Laight.

* Rename the variables use to print messages. The scheme now is:
_MKMSG_FOO Run _MKMSG 'foo'
_MKTARGET_FOO Run _MKMSG_FOO ${.TARGET}
From discussion with Alistair Crooks.
 1.43 19-Oct-2003  lukem rework to use the newer _MKMSGCREATE (et al) macros
 1.42 19-Oct-2003  lukem support MAKEVERBOSE
 1.41 10-Jul-2003  lukem Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
 1.40 12-Nov-2002  itohy MKDYNAMICROOT for a.out
 1.39 19-Aug-2002  lukem Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path
 1.38 24-Apr-2002  lukem - in <bsd.files.mk>, don't clear FILES after using it, as that prevents
make -V FILES
from being useful (and given that every other variable can be
extracted using make -V, the behaviour was unusually inconsistent
given that the original reason for clearing it doesn't seem to be
relevant anymore)
- use <bsd.prog.mk> instead of directly including <bsd.files.mk>
(and possibly <bsd.man.mk> or <bsd.own.mk>)
- remove obsolete NOPROG
 1.37 29-Mar-2002  matt Add support for a VAX ld.so when VAX is ELF
 1.36 05-Mar-2002  thorpej Use ${PRINTOBJDIR}.
 1.35 06-Feb-2002  thorpej MACHINE_ARCH for ELF ARM platforms is "arm", not "arm32".
 1.34 31-Jan-2002  tv Make it possible for uudecode to be a host tool.
 1.33 22-Jan-2002  skrll Add a uuencoded binary of a.out arm32 ld.so and update Makefile to extract
on ELF platforms.

This file was created using the following revisions:

ld.h,v 1.2 1998/12/17 23:36:38 pk
malloc.c,v 1.7 2000/11/28 06:01:34 mycroft
rtld.c,v 1.82 2001/09/20 20:55:29 wiz
shlib.c,v 1.18 2000/05/27 06:53:30 matt
shlib.h,v 1.1 1998/12/15 23:16:14 pk

arm32 specific files:

md-static-funcs.c,v 1.1 1997/10/17 21:25:42 mark
md.c,v 1.11 1999/02/27 03:34:05 tv
md.h,v 1.4 2000/05/28 01:53:05 matt
mdprologue.S,v 1.1 1997/10/17 21:25:59 mark
 1.32 06-May-2001  wiz Rename rtld.1 to ld.aout_so.1, since it only describes ld.so for a.out.
 1.31 18-Apr-2001  tsutsui Add a uuencoded binary of a.out m68k ld.so.
Created using following revisions in 1.5.1_BETA source tree:
ld.h,v 1.2 1998/12/17 23:36:38 pk
malloc.c,v 1.6.8.1 2001/04/06 09:39:23 he
rtld.c,v 1.76.4.2 2001/04/06 09:39:43 he
shlib.c,v 1.18 2000/05/27 06:53:30 matt
shlib.h,v 1.1 1998/12/15 23:16:14 pk
m68k specific files:
md-static-funcs.c,v 1.4 1998/01/05 22:00:38 cgd
md.c,v 1.16 1999/04/12 00:52:44 gwr
md.h,v 1.9 2000/05/28 01:53:09 matt
mdprologue.S,v 1.8 1998/01/05 22:00:40 cgd
 1.30 12-Sep-2000  tron - Add "dependall" target so that "make build" will really uudecode the
"ld.so" binaries for i386 and sparc.
- Remove bogus "${DESTDIR}/" from "FILESDIR".
 1.29 11-Sep-2000  fvdl Add uuencoded binaries for a.out dynamic loaders on i386 and sparc,
who are ELF now. Needed because cross-building them is still a
problem. These loaders will try /emul/aout first, but do not
have the baggage that COMPAT_AOUT has.
 1.28 19-Mar-1999  thorpej branches: 1.28.10;
Move the link.h files for the different shlib formats via repository copy,
and rename them to match the executable format. Introduce a new link.h
file which automatically picks the correct header based on the target of
the toolchain.
 1.27 09-Feb-1999  christos Build depending on OBJECT_FMT not a list of MACHINE_ARCH's
 1.26 17-Dec-1998  pk * Add header file containing definitions shared among all a.out
linker related utilities.
* Adjust makefile to new location in `src/libexec'
* Have rtld.c use the new shlib.h and ld.h headers.
 1.25 13-Aug-1998  mycroft Small changes to make debugging a little easier.
 1.24 25-Jul-1998  mycroft Remove bogus change to use -O0.
 1.23 21-May-1998  tv In case NOPICINSTALL is set, get -lc_pic from src/lib/libc/(objdirname).
 1.22 25-Oct-1997  lukem use CPPFLAGS instead of CFLAGS
 1.21 14-Jul-1997  christos branches: 1.21.2;
Add the necessary -I flag to pick up the libc/include/extern.h
 1.20 23-Jun-1997  mrg install all man pages.
 1.19 31-May-1997  cjs Back out BUILDDIR and NOINSTALL changes.
 1.18 30-May-1997  cjs branches: 1.18.2;
Remove an ifdef. Add comment about -nostdlib vs. ELF ld.
 1.17 30-May-1997  veego Use the extra LDFLAGS if OBJDIR is defined.
 1.16 16-Apr-1997  christos Ld directory reorganization:
- separate out the common files used by rtld ldd ld
- move machine dependent files into arch
- move ld in its own directory
- factor out .PATH and CFLAGS common to all Makefiles
 1.15 24-Mar-1997  christos Makefile cleanups
 1.14 23-Dec-1996  pk <link.h> has moved in with the run-time linker source.
 1.13 08-Jun-1996  pk Use DESTDIR to point at libraries like bsd.prog.mk does (PR#2524).
 1.12 02-Jan-1996  thorpej Add -fno-function-cse to PICFLAGS. Without it, Very Bad Things happen
when ld.so is compiled with gcc 2.7.2 on the m68k. From
Niklas Hallqvist <niklas@appli.se> in PR #1557. (Thanks, Nik, for reminding
me about this PR...)
 1.11 09-Oct-1995  pk New style RCS IDs.
 1.10 25-Aug-1995  pk Install the manual page.
 1.9 19-Sep-1994  mycroft Shrink ld.so by 12k.
 1.8 28-Jan-1994  pk Use somewhat customized version of malloc, in stead of relying on a
crummy sbrk() backend; proper aligment must be guaranteed on all archs.
Drafting dlopen, dlsym, et.al.
 1.7 10-Dec-1993  mycroft Minor cleanup.
 1.6 08-Dec-1993  mycroft Use MACHINE_ARCH.
 1.5 08-Dec-1993  pk Parcelled out the heap allocator into separate file.
Changes prototype for findshlib() (corrected library search order for ld).
 1.4 05-Dec-1993  cgd MACHINE_ARCH support
 1.3 08-Nov-1993  pk Use strsep() in stead of strtok() and restore colons in eg. env. vars.
 1.2 27-Oct-1993  pk -Bshareable added to CFLAGS.
 1.1 16-Oct-1993  pk A linker supporting shared libraries (run-time part).
 1.18.2.1 02-Aug-1997  cjs update to 1.21
 1.21.2.1 08-Nov-1997  lukem sync with trunk (approved by thorpej)
 1.28.10.2 12-Sep-2000  tron Pull up from current (approved by thorpej):

- Add "dependall" target so that "make build" will really uudecode the
"ld.so" binaries for i386 and sparc.
- Remove bogus "${DESTDIR}/" from "FILESDIR".

basesrc/libexec/ld.aout_so/Makefile 1.29 -> 1.30
 1.28.10.1 12-Sep-2000  fvdl Bring in uuencoded, 1.4.3-built a.out ld.so binaries for i386 and
sparc from the trunk. Pull up revision 1.29 of the Makefile
to build and install them.

Approved by thorpej
 1.45.38.1 06-Nov-2008  snj branches: 1.45.38.1.4;
Pull up following revision(s) (requested by mrg in ticket #20):
compat/libexec/ld.elf_so/Makefile: revision 1.2
distrib/sets/lists/base/md.shark: revision 1.7
distrib/sets/lists/base/md.vax: revision 1.26
distrib/sets/lists/base/md.i386: revision 1.130
distrib/sets/lists/base/ad.arm: revision 1.10
distrib/sets/lists/comp/md.shark: revision 1.13
distrib/sets/lists/comp/md.sparc: revision 1.68
distrib/sets/lists/comp/ad.arm: revision 1.31
distrib/sets/lists/comp/md.vax: revision 1.35
distrib/sets/lists/comp/md.i386: revision 1.108
distrib/sets/lists/base/md.sparc: revision 1.75
distrib/sets/lists/comp/md.pmax: revision 1.59
libexec/ld.aout_so/Makefile: revision 1.46
sbin/ldconfig/Makefile: revision 1.22
make MKPIC=no builds work on i368, shark, vax, pmax, sgimips, sparc,
maybe all mips and all arm as well.
 1.45.38.1.4.1 24-Mar-2014  matt Make these work with a machine_arch of armv7
 1.47.12.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.47.12.1 25-Feb-2013  tls resync with head
 1.47.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.49.2.1 23-Jul-2013  riastradh sync with HEAD
 1.10 01-Jan-2011  plunky the Name for this manpage is "ld.aout_so". Use it.
 1.9 08-Apr-2009  joerg Don't use .\" as callable macro.
 1.8 30-Apr-2008  martin branches: 1.8.8;
Convert TNF licenses to new 2 clause variant
 1.7 26-Jun-2003  wiz branches: 1.7.30;
Add Ns where needed.
 1.6 26-Jun-2003  wiz Remove superfluous Ns and quoting.
 1.5 31-Mar-2003  perry spell fixes (most from me, one from Igor Sobrado in PR misc/19700)
 1.4 29-Sep-2002  wiz Begin new sentences on new lines.
Patch from Robert Elz (kre at munnari oz au).
 1.3 07-Feb-2002  ross Edit -mdoc usage.

* There is no -indent option to .Bd or .Bl, although you would
never know that from its frequent use in this tree. There is a
"-offset indent" combination that makes sense, and you can certainly
say "-width indent".

* Also, you can't markup the -width option argument, tho you CAN
use a callable macro. So "-width Ar filename" doesn't make sense,
but either "-width Ar" or "-width filename" does, as might something
like "-width xxfilename" for a little extra space.

* There are a lot of needlessly complex hanging tag macros in man4 used
to create simple item lists. Those should be simplified one of these
days before someone copies and edits yet another man4 page.
 1.2 15-Jan-2002  wiz Drop some unnecessary .Pps.
 1.1 06-May-2001  wiz Rename rtld.1 to ld.aout_so.1, since it only describes ld.so for a.out.
 1.7.30.1 18-May-2008  yamt sync with head.
 1.8.8.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.4 06-Jul-2010  mrg remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format. ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k. this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 17-Dec-1998  pk branches: 1.2.42;
Duh! Hang on to SUN_COMPAT.. something is bust.
 1.1 17-Dec-1998  pk * Add header file containing definitions shared among all a.out
linker related utilities.
* Adjust makefile to new location in `src/libexec'
* Have rtld.c use the new shlib.h and ld.h headers.
 1.2.42.1 18-May-2008  yamt sync with head.
 1.1 06-Feb-2002  thorpej Rename to reflect the MACHINE_ARCH that will be used on ARM ELF
platforms.
 1.2 06-Feb-2002  thorpej Rename to reflect the MACHINE_ARCH that will be used on ARM ELF
platforms.
 1.1 22-Jan-2002  skrll Add a uuencoded binary of a.out arm32 ld.so and update Makefile to extract
on ELF platforms.

This file was created using the following revisions:

ld.h,v 1.2 1998/12/17 23:36:38 pk
malloc.c,v 1.7 2000/11/28 06:01:34 mycroft
rtld.c,v 1.82 2001/09/20 20:55:29 wiz
shlib.c,v 1.18 2000/05/27 06:53:30 matt
shlib.h,v 1.1 1998/12/15 23:16:14 pk

arm32 specific files:

md-static-funcs.c,v 1.1 1997/10/17 21:25:42 mark
md.c,v 1.11 1999/02/27 03:34:05 tv
md.h,v 1.4 2000/05/28 01:53:05 matt
mdprologue.S,v 1.1 1997/10/17 21:25:59 mark
 1.2 06-May-2001  he Newly built binaries from netbsd-1-4 sources, including fix for
PR#10940.
 1.1 11-Sep-2000  fvdl branches: 1.1.2;
Add uuencoded binaries for a.out dynamic loaders on i386 and sparc,
who are ELF now. Needed because cross-building them is still a
problem. These loaders will try /emul/aout first, but do not
have the baggage that COMPAT_AOUT has.
 1.1.2.3 06-May-2001  he Pull up revision 1.2 (requested by he):
Regenerated binaries including fix for PR#10940.
 1.1.2.2 12-Sep-2000  fvdl Bring in uuencoded, 1.4.3-built a.out ld.so binaries for i386 and
sparc from the trunk. Pull up revision 1.29 of the Makefile
to build and install them.

Approved by thorpej
 1.1.2.1 11-Sep-2000  fvdl file ld.so.i386.uue was added on branch netbsd-1-5 on 2000-09-12 00:56:57 +0000
 1.1 18-Apr-2001  tsutsui Add a uuencoded binary of a.out m68k ld.so.
Created using following revisions in 1.5.1_BETA source tree:
ld.h,v 1.2 1998/12/17 23:36:38 pk
malloc.c,v 1.6.8.1 2001/04/06 09:39:23 he
rtld.c,v 1.76.4.2 2001/04/06 09:39:43 he
shlib.c,v 1.18 2000/05/27 06:53:30 matt
shlib.h,v 1.1 1998/12/15 23:16:14 pk
m68k specific files:
md-static-funcs.c,v 1.4 1998/01/05 22:00:38 cgd
md.c,v 1.16 1999/04/12 00:52:44 gwr
md.h,v 1.9 2000/05/28 01:53:09 matt
mdprologue.S,v 1.8 1998/01/05 22:00:40 cgd
 1.3 20-Jul-2004  pk Newly built binary from netbsd-1-4 sources + arch/sparc/mdprologue.S, rev 1.8.
Workaround for non-executably mapped PLT in the data segment.
 1.2 06-May-2001  he branches: 1.2.4;
Newly built binaries from netbsd-1-4 sources, including fix for
PR#10940.
 1.1 11-Sep-2000  fvdl branches: 1.1.2;
Add uuencoded binaries for a.out dynamic loaders on i386 and sparc,
who are ELF now. Needed because cross-building them is still a
problem. These loaders will try /emul/aout first, but do not
have the baggage that COMPAT_AOUT has.
 1.1.2.3 06-May-2001  he Pull up revision 1.2 (requested by he):
Regenerated binaries including fix for PR#10940.
 1.1.2.2 12-Sep-2000  fvdl Bring in uuencoded, 1.4.3-built a.out ld.so binaries for i386 and
sparc from the trunk. Pull up revision 1.29 of the Makefile
to build and install them.

Approved by thorpej
 1.1.2.1 11-Sep-2000  fvdl file ld.so.sparc.uue was added on branch netbsd-1-5 on 2000-09-12 00:56:58 +0000
 1.2.4.1 23-Jul-2004  tron Pull up revision 1.3 (requested by pk in ticket #683):
Newly built binary from netbsd-1-4 sources + arch/sparc/mdprologue.S, rev 1.8.
Workaround for non-executably mapped PLT in the data segment.
 1.2 26-Jul-2003  salo netbsd.org->NetBSD.org
 1.1 29-Mar-2002  matt Add support for a VAX ld.so when VAX is ELF
 1.17 19-Mar-1999  thorpej Move the link.h files for the different shlib formats via repository copy,
and rename them to match the executable format. Introduce a new link.h
file which automatically picks the correct header based on the target of
the toolchain.
 1.16 15-Dec-1998  pk Pull in <a.out.h>.
 1.15 19-Oct-1998  matt Add AUX_LABEL (need for VAX JSB/JMP "jmp" slots).
 1.14 05-Sep-1998  pk Assign my copyrights to TNF.
 1.13 14-May-1998  thorpej Need <dlfcn.h> for Dl_info.
 1.12 12-May-1998  pk Add `dladdr()' rtld entry point.
 1.11 03-Jan-1997  scottr Catch up with const changes to dlopen() and dlsym() prototypes in
<dlfcn.h>. Tested on i386 and hp300 for crt0.o and ld.so, verified
other references by inspection.
 1.10 09-Jan-1996  pk Define LD_HINTS_VERSION_2:
- no longer hash on minor version number in hints file.
- add list of ldconfig(8) search directories.
 1.9 23-Sep-1995  pk branches: 1.9.2;
Define `dlexit()' in crt<=>rtld interface (active in v4).
 1.8 05-Jun-1995  pk Put dlopen() et.al. declarations in separate header file for compatibility.
 1.7 04-Jun-1995  pk Revive library search paths.
 1.6 23-Dec-1994  pk Put a reserved field into use (weak symbol support).
 1.5 26-Oct-1994  cgd new RCS ID format.
 1.4 24-May-1994  pk Enable dl*() prototypes.
 1.3 28-Jan-1994  pk Redone from scratch, but maintain SunOS compatibility.
 1.2 22-Oct-1993  pk Some definitions for the `ld.so.hints' file.
 1.1 17-Oct-1993  pk Moved <link.h> here from usr.bin/ld as it is needed by other modules
and utilities (eg. crt0, libc, nm).
 1.9.2.1 16-Feb-1996  pk Update from trunk; needed for rtld patch.
 1.9 06-Jul-2010  mrg remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format. ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k. this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
 1.8 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.7 28-Nov-2000  mycroft Make this compile with -DDEBUG.
 1.6 17-Jun-1999  thorpej branches: 1.6.8;
MAP_COPY -> MAP_PRIVATE
 1.5 15-Dec-1998  pk branches: 1.5.2;
Prototypes.
 1.4 03-Jul-1996  thorpej RCS id police.
 1.3 19-Sep-1994  deraadt NBPG --> getpagesize()
 1.2 10-Jun-1994  pk Conversion to err()/warn() for error reports.
 1.1 28-Jan-1994  pk Use somewhat customized version of malloc, in stead of relying on a
crummy sbrk() backend; proper aligment must be guaranteed on all archs.
Drafting dlopen, dlsym, et.al.
 1.5.2.1 01-Apr-2001  he Pull up revisions 1.6-1.7 (requested by itohy)
Several changes to consolidate with main trunk:
o Use MAP_PRIVATE instead of MAP_COPY.
o A few minor fixes.
 1.6.8.1 06-Apr-2001  he Pull up revision 1.7 (requested by itohy):
Several changes to consolidate with main trunk:
o A few minor fixes.
 1.4 06-Jul-2010  mrg remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format. ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k. this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
 1.3 05-Apr-2004  veego Remove duplicated include of <sys/types.h>
Fixes bin/25062.
 1.2 03-Jul-1996  thorpej RCS id police.
 1.1 16-Oct-1993  pk A linker supporting shared libraries (run-time part).
 1.13 06-May-2001  wiz Rename rtld.1 to ld.aout_so.1, since it only describes ld.so for a.out.
 1.12 06-May-2001  wiz This man page only documents behaviour on a.out. ld.aout_so uses
a colon separated LD_PRELOAD (in contrast to ld.elf_so), so undo last
commit.
 1.11 06-May-2001  wiz LD_PRELOAD wants a space (not colon) separated list of libraries.
misc/11961 by Masao Uebayashi.
 1.10 24-Mar-2000  kleink Document LD_PRELOAD, fixing PR lib/9663, and note that (and why) neither
this nor LD_LIBRARY_PATH are honored when executing set[ug]id.
 1.9 18-Nov-1999  kristerw Spelling
 1.8 22-Mar-1999  garbled branches: 1.8.2; 1.8.6;
More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.7 05-Sep-1998  pk Assign my copyrights to TNF.
 1.6 13-Nov-1997  pk Expand on shared object's `.init' functions a bit, and mention
`/usr/lib/c++rt.o'.
 1.5 20-Jun-1997  pk branches: 1.5.2;
Fix typos (PR#3761).
 1.4 03-Jun-1997  mikel fix typo; from Saitoh Masanobu in PR misc/3696.
also comma-separate and reorder xrefs.
 1.3 26-May-1997  cjs PR 3670 from SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp>
Fix typos.
 1.2 08-Oct-1995  pk Allow customized trace output, so ldd(1) can be more conveniently used
as a filter.

Rearrange cascading stuff: remove two-level limit.
 1.1 30-Jun-1995  pk man page for the run-time linker
 1.5.2.1 14-Nov-1997  mellon Pull rev 1.6 up from trunk (pk)
 1.8.6.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.8.2.1 29-Mar-2000  he Pull up revisions 1.9-1.10 (requested by kleink and he):
Document LD_PRELOAD and note the security restrictions.
Fixes PR#9663. Also some spelling fixes.
 1.89 06-Jul-2010  mrg remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format. ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k. this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
 1.88 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.87 16-Jan-2003  itohy branches: 1.87.30;
Fix problem where dlclose() falls into infinite loop.
 1.86 10-Dec-2002  thorpej Rename __LDPGSZ to AOUT_LDPGSZ, to accurately reflect what it is.
 1.85 08-Aug-2002  soren Remove extraneous \n's in {err,warn}{,x} that used to be printfs.
 1.84 20-Jul-2002  grant sweep of errx/warnx, remove unnecessary trailing \n
 1.83 26-May-2002  wiz __STDC__ is always defined on NetBSD.
 1.82 20-Sep-2001  wiz Use vsnprintf instead of vsprintf.
[XXX: not compiled, since I'm on ELF -- .uue should probably be rebuilt]
 1.81 21-Jun-2001  christos make sure we remove all the global references refering to a shared object
when we remove it. Similar to the fix I applied a while ago to ld.elf_so
 1.80 19-Mar-2001  itohy Common symbol is not a member of particular shlib have particular shlib,
so avoid adding the base address of a shlib to the common symbol.
Fix PR #10940, hopefully.
 1.79 17-Dec-2000  pk Deal with an empty hints file.
 1.78 28-Nov-2000  mycroft Add another debugging message.
 1.77 29-Oct-2000  mycroft In dlopen(), use the main program's library search path, to match semantics of
other systems (and our ELF).
 1.76 11-Feb-2000  thorpej branches: 1.76.4;
Const poison dladdr().
 1.75 17-Jun-1999  thorpej MAP_COPY -> MAP_PRIVATE
 1.74 23-Apr-1999  tv Allow rpaths in setuid binaries, noticed by tron. This is already done
for ELF systems; make it uniform for a.out.
 1.73 27-Feb-1999  tv branches: 1.73.2;
Add ld.so hacks for arm32, and reenable ld.aout_so on arm32. As is well
known, XXX this needs a real fix.
 1.72 28-Jan-1999  fvdl Move the ldentry initialization up so that dl*() from init sections
works.
 1.71 17-Dec-1998  pk * Add header file containing definitions shared among all a.out
linker related utilities.
* Adjust makefile to new location in `src/libexec'
* Have rtld.c use the new shlib.h and ld.h headers.
 1.70 15-Dec-1998  pk Deal with compiler warnings: format strings, prototypes, variable initialization.
 1.69 23-Oct-1998  matt Make the BINDER debug messages a bit more useful (print index and jmpslot
address too).
 1.68 19-Oct-1998  matt Back out change to md_make_gotreloc which added 4 arguement of got_t *.
Add argument to md_fix_jmpslot indicating whether this the first (i.e
tranfer) jmpslot or not. Add better support for VAX (the VAX can support
pure text code; let ld that advantage of it). Checking in verified and
working versions of rtld VAX support routines.
 1.67 12-Sep-1998  pk Exit early from alloc_link_map() if we have no object; only relevant
when tracing. (PR#6140)
 1.66 05-Sep-1998  pk Assign my copyrights to TNF.
 1.65 13-Aug-1998  mycroft Small changes to make debugging a little easier.
 1.64 06-Aug-1998  mycroft When DEBUG, log init and fini calls.
 1.63 14-Jul-1998  tv Change ld.so default behavior to RTLD_LOCAL, and make RTLD_LOCAL into a
new flag bit. Keep RTLD_GLOBAL as an actual flag bit so it won't be
re-used, or may be used for something later. Mask the dlopen() mode bits
in ld.elf_so so a comparison against RTLD_NOW works. (RTLD_{LOCAL,GLOBAL}
needs to be implemented for ld.elf_so.)
 1.62 30-May-1998  kleink branches: 1.62.2;
Clear the error indicator after retrieval (xref. dlerror(3)).
 1.61 19-May-1998  pk Optimize symbol/string table access slightly by precomputing their
locations at load time. These values don't change once the object is loaded.
 1.60 12-May-1998  pk Implement `dladdr()': find nearest symbol given an address.
 1.59 26-Mar-1998  mycroft Allow a non-RTLD_GLOBAL object to refer to symbols in itself.
 1.58 18-Mar-1998  pk Use file size from fstat(2) to map the hints file, instead of fiddling
with incremental mmap()'s. Squashes a bug which caused only the first
page of the hints file to unmapped.
 1.57 15-Mar-1998  pk Implement RTLD_GLOBAL dlopen(3) flag.
Rename internal flags to avoid <dlfcn.h> name space collisions.
 1.56 15-Mar-1998  pk Check for short hints file (noticed by Chuck Silvers).
 1.55 03-Mar-1998  mycroft Remove spurious extra newline.
 1.54 20-Feb-1998  mycroft Fill in missing (default) mmap(2) flags.
 1.53 17-Feb-1998  pk Print a warning message if we detect that a "copy symbol" has changed
size in a shared library. Also, always use our expected size to copy
the item in, on the assumption that doing so generally minimizes the
damage (maybe it's better to just bail out?).
 1.52 05-Jan-1998  cgd RCS Id police
 1.51 30-Jun-1997  pk Do not free dlopen'ed map structures twice.
Plug memory leak when opening the same object mor than once.
 1.50 30-Jun-1997  pk Fix typo in free_link_map(); noticed by Mike Grupenhoff.
 1.49 26-Jun-1997  pk Patch from Chris Demetriou to unmap an object on last dlclose(), which
had not be implemented. It would cause an "adress space leak" and, if
the same object would opened multiple time, unwanted relocations.
Re: Comment from Chris:

"The a.out ld.so has some problems with dlclose. It doesn't properly
unmap objects which are dlclosed. That's a known problem (though a
serious one for programs which dlopen then dlclose lots of objects,
because it causes address space exhaustion), but it has a
previously-unknown side-effect.

If a single object is dlopened, then dlclosed, then dlopened _again_,
the relocations will be processed again. That causes obvious
problems."
 1.48 03-May-1997  pk Keep track of `dlsym()' symbol lookup scope differently. There's (currently)
only one special case: a NULL argument to dlopen(); return a special
token for that case.
 1.47 03-Jan-1997  scottr Catch up with const changes to dlopen() and dlsym() prototypes in
<dlfcn.h>. Tested on i386 and hp300 for crt0.o and ld.so, verified
other references by inspection.
 1.46 21-Dec-1996  pk Deal with weak symbols when looking up in shared libraries.
 1.45 06-Oct-1996  pk Actually set the RTLD_DL flag in dlopen'ed shared objects, per PR#2791.
 1.44 10-Sep-1996  thorpej Iff __m68k__, use a `slight hack' to determine the magic of the executable
we're doing a dynamic link for, and change the page size used for offset
and size calculations if necessary. Allows the same ld.so to be used with
mixed m68k4k and m68k8k executables and libraries.

Thanks a million to Gordon Ross for the help in making this work!
 1.43 14-Jan-1996  pk Relax checking of minor version number in `findhint()'. Also use the
directories from the hints (v.2) file for directory traversing.
This should take care of PR#1146.
 1.42 09-Jan-1996  pk Deal with v.2 hint files (hint srch dirs not yet used).
 1.41 28-Dec-1995  pk Make dlopen() search for libraries if given a name of the form
`lib<name>.so[.xx[.yy]]' (per Erik M. Theisen; PR#1763; patch from PR
used in simplified form).
 1.40 09-Oct-1995  pk branches: 1.40.2;
Fix typo.
 1.39 09-Oct-1995  pk New style RCS IDs.
 1.38 08-Oct-1995  pk Allow customized trace output, so ldd(1) can be more conveniently used
as a filter.

Rearrange cascading stuff: remove two-level limit.
 1.37 23-Sep-1995  pk Interface version 4:
implement dlexit() (per Doug Rabson)
get actual rtld path from crt0
pass ld_entry back to crt0 in a better place
 1.36 31-Aug-1995  pk Check for zero sized BSS to avoid a big no-op syscall (per Mike Hibler).
 1.35 20-Jun-1995  pk Initialise after malloc (fixes PR#1149).
Also, correct comparison when looking in `prefered' paths.
 1.34 05-Jun-1995  pk #include <dlfcn.h>
 1.33 04-Jun-1995  pk Cache two more environment variable values.
 1.32 04-Jun-1995  pk Implement compiled-in library search paths: any `-L' argument encountered
while `dynamic link-mode' is on, is recorded in the executable. The
run-time linker will search these paths after $LD_LIBRARY_PATH but
before the default set and those currently in the hints file.
The feature is disabled whenever for set[ug]id programs.
 1.31 01-Apr-1995  pk Fix bogosities in cascade stuff.
 1.30 06-Mar-1995  pk Burn LD_RUN_PATH; I didn't read the SVR5 man-pages carefully enough.
 1.29 06-Mar-1995  pk Code from Matthew Green to do DL cascading "in the first degree".
Two `fprintf(stderr, ..)' => `warnx(..)'.
 1.28 19-Dec-1994  pk Bummer! Undo mmap() changes in rev. 1.26; they royally screw up the
kernel's pmap address preference mechanism.
 1.27 18-Dec-1994  pk Handle "/dev/zero" stuff more globally.
 1.26 18-Dec-1994  pk Re-arrange mmap() calls, per Charles' suggestion.
 1.25 07-Dec-1994  pk Ensure contiguous chunks for all of an object's address space (text+data+bss).
 1.24 26-Oct-1994  mycroft Don't close the hints file while it's mapped, but unmap and close it after
loading.
 1.23 12-Aug-1994  pk Re-add `LD_WARN_NON_PURE_CODE' that went missing.
 1.22 07-Aug-1994  pk Relax minor version number checking somewhat; issue warning if minor
version is less than expected.
 1.21 24-Jun-1994  pk branches: 1.21.2;
strdup() doesn't grok NULL pointers
 1.20 10-Jun-1994  pk Conversion to err()/warn() for error reports.
 1.19 25-May-1994  pk Another move to .data to please gdb.
 1.18 24-May-1994  pk Force some string constants into the data segment (for core-dump reading).
Rename internal dl_*() functions.
Do run-time symbol alias processing.
 1.17 07-Apr-1994  pk dlopen() should make a copy of argument (Thomas Eberhardt).
 1.16 28-Mar-1994  cgd no more MAP_FILE
 1.15 15-Feb-1994  pk Libraries which are in the hints file but not in one's LD_LIBRARY_PATH (if
set) were not found.
 1.14 29-Jan-1994  jtc Fix spelling error in Copyright notice
 1.13 28-Jan-1994  pk Use somewhat customized version of malloc, in stead of relying on a
crummy sbrk() backend; proper aligment must be guaranteed on all archs.
Drafting dlopen, dlsym, et.al.
 1.12 12-Jan-1994  pk Fill in gdb hook.
 1.11 20-Dec-1993  pk Hooks for for shared C++ objects with static contructors/destructors.
 1.10 08-Dec-1993  pk Parcelled out the heap allocator into separate file.
Changes prototype for findshlib() (corrected library search order for ld).
 1.9 10-Nov-1993  pk Do the debugger hooks.
Revised algorithm for finding symbols using `nz_other' (auxialiary type info).
 1.8 08-Nov-1993  pk Use strsep() in stead of strtok() and restore colons in eg. env. vars.
 1.7 03-Nov-1993  pk Print symbol name in "undefined" error msg.
 1.6 03-Nov-1993  mycroft This warning is fucking annoying, and ld already told us about it when we
linked the executable. Make it #ifdef DEBUG.
 1.5 26-Oct-1993  pk Search for top-of-stack blew up if program had no environment strings.
 1.4 22-Oct-1993  pk Support for `ld.so.hints'.
Handle set[ug]id programs.
No longer use the `lm_lob' field to access parent objects, add private
link map `parent' field in stead (SUN_COMPAT weirdness).
 1.3 21-Oct-1993  pk Renamed confusingly named macro.
Fixed bug that was the result of said confusion.
 1.2 17-Oct-1993  pk Define our copy of `errno', as it is no longer defined in libc.
 1.1 16-Oct-1993  pk A linker supporting shared libraries (run-time part).
 1.21.2.2 12-Aug-1994  mycroft update from trunk
 1.21.2.1 08-Aug-1994  mycroft update from trunk
 1.40.2.1 16-Feb-1996  pk Pick up fixes from -current for patch2.
 1.62.2.2 14-Jul-1998  tv Merge changes from trunk.
 1.62.2.1 10-Jun-1998  tv Get the arm32 changes under source control, only on a branch until they are
fixed to work properly.
 1.73.2.3 01-Apr-2001  he Pull up revisions 1.75,1.78-1.80 (requested by itohy)
Several changes to consolidate with main trunk:
o Use MAP_PRIVATE instead of MAP_COPY.
o Deal correctly with an empty hints file.
o Deal correctly with common symbols in shared libraries.
Fixes PR#10940.
 1.73.2.2 31-Oct-2000  he Pull up revision 1.77 (requested by tv and mycroft):
In dlopen(), use the main program's library search path, to match
semantics of other systems (and our ELF).
 1.73.2.1 23-Apr-1999  perry pullup 1.73->1.74 (tv)
 1.76.4.2 06-Apr-2001  he Pull up revisions 1.78-1.80 (requested by itohy):
Several changes to consolidate with main trunk:
o Deal correctly with common symbols in shared libraries.
Fixes PR#10940.
o Deal correctly with an empty hints file.
o A few minor fixes.
 1.76.4.1 30-Oct-2000  tv Pullup 1.77 [mycroft]:
In dlopen(), use the main program's library search path, to match semantics of
other systems (and our ELF).
 1.87.30.1 18-May-2008  yamt sync with head.
 1.24 06-Jul-2010  mrg remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format. ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k. this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
 1.23 16-Aug-2009  martin Add <sys/exec_aout.h> includes
 1.22 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.21 09-Nov-2006  christos branches: 1.21.16;
eliminate alloca for ssp.
 1.20 26-Jun-2005  christos sprinkle little const.
 1.19 28-Oct-2004  dsl Another (unsigned char) cast - for ldconfig
 1.18 27-May-2000  matt Changes to put the COMPAT_AOUT code into ld.aout_so. Search <dir> for <lib>
then search /emul/aout/<dir> for <lib>. To make sure we don't get false
postives on ELF libraries we make the .so is a ZMAGIC dynamic library.
 1.17 29-Nov-1999  itohy Use <link_aout.h> instead of <link.h>
for the benefit of building a.out (cross) ld on ELF platforms.
Suggested by Minoura Makoto.
 1.16 15-Dec-1998  pk branches: 1.16.2; 1.16.6;
Export the common shared library search functions in its own header file.
 1.15 15-Sep-1998  pk Prevent spurious matches matches against unwanted major versions.
Patch based on PR#6139.
 1.14 05-Sep-1998  pk Assign my copyrights to TNF.
 1.13 04-Apr-1998  fvdl If a good matching shared library is found, don't look in the next
directories. This is compatible with the SunOS behaviour. Also,
it fixes a problem where it was not possible for some 3rd party
package to have a library with the same name as a library already
in the system, and a lower version number. The highest version
would always be picked. This particular problem shows up with Mozilla,
which has a libutil.so.1.0
 1.12 05-Jan-1998  cgd RCS Id police
 1.11 04-Jun-1995  pk Implement compiled-in library search paths: any `-L' argument encountered
while `dynamic link-mode' is on, is recorded in the executable. The
run-time linker will search these paths after $LD_LIBRARY_PATH but
before the default set and those currently in the hints file.
The feature is disabled whenever for set[ug]id programs.
 1.10 10-Jun-1994  pk Conversion to err()/warn() for error reports.
Minor bug fixes:
a case of free()ing in the wrong order. (from Rick Murphey).
processing alias symbol twice (sometimes).
Some miscellaneous cleanup.
 1.9 29-Jan-1994  jtc Fix spelling error in Copyright notice
 1.8 28-Jan-1994  pk Use `.type' directives generated by gcc.
Numerous internal changes & bug fixes.
NOTE: must re-compile & re-link shared libraries before used to link programs.
 1.7 08-Dec-1993  pk Many internal changes, most notably in the symbol counting stuff.
`ld -r -x' now supported on all object files.
Support for long archive member names (AR_EFMT1 format),
thanks to Bill Sommerfeld/Mark Eichin
Do the right(?) thing with symbol aliases (N_INDR) for POSIX lover, especially
when equiping shared libraries with these (this was *not* fun).
Handle silly archives (.sa) for people who needs them; turn on by `-Bsilly'.
 1.6 07-Dec-1993  mycroft #include ctype.h, since we use isdigit().
 1.5 21-Nov-1993  mycroft Add /usr/X386/lib to the standard list of library paths.
 1.4 08-Nov-1993  pk Use strsep() in stead of strtok() and restore colons in eg. env. vars.
 1.3 23-Oct-1993  pk Changed prototype and internals of std_search_dir().
 1.2 21-Oct-1993  pk No rounding of bss size to page boundary in ZMAGIC a.out's, the kernel
chokes on it.
Some other minor changes.
 1.1 16-Oct-1993  pk A linker supporting shared libraries.
 1.16.6.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.16.2.2 01-Apr-2001  he Pull up revsion 1.17 (via patch, requested by itohy):
Several changes to consolidate with main trunk:
o Use <link_aout.h> for the benefit of cross compiling.
 1.16.2.1 01-Jun-2000  he Pull up revision 1.18 (via patch, requested by matt):
Enable searching for libraries under /emul/aout, and make sure
that ELF libraries are not erroneously accepted.
 1.21.16.1 18-May-2008  yamt sync with head.
 1.4 06-Jul-2010  mrg remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format. ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k. this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 26-Jun-2005  christos branches: 1.2.18;
sprinkle little const.
 1.1 15-Dec-1998  pk Export the common shared library search functions in its own header file.
 1.2.18.1 18-May-2008  yamt sync with head.
 1.151 02-May-2025  riastradh ld.elf_so(1): Skip the ctype(3) guard pages.

These came in via libc_pic.a. They aren't very useful because
nothing mprotects them in ld.elf_so -- ld.elf_so ignores its own
constructors. We could fill them with gibberish in a feeble attempt
to highlight ctype(3) abuse...or we could just audit ld.elf_so and
save on the memory by.

This uses a .PATH.c reachover for the ctype_.c file rather than
pulling ctype_.pico out of libc_pic.a.

Sampling of space savings:

(amd64)
$ size ld.elf_so.{before,after}/ld.elf_so
text data bss dec hex filename
81168 2456 1928 85552 14e30 ld.elf_so.before/ld.elf_so
65068 2408 1928 69404 10f1c ld.elf_so.after/ld.elf_so

(mips64)
$ size ld.elf_so.{before,after}/ld.elf_so
text data bss dec hex filename
131729 752 1408 133889 20b01 ld.elf_so.before/ld.elf_so
73185 748 1408 75341 1264d ld.elf_so.after/ld.elf_so

(alpha)
$ size ld.elf_so.{before,after}/ld.elf_so
text data bss dec hex filename
113893 1096 1860 116849 1c871 ld.elf_so.before/ld.elf_so
79680 1048 1860 82588 1429c ld.elf_so.after/ld.elf_so

20-50% reduction in ld.elf_so size isn't too shabby (except this was
all just bloat I had inadvertently caused last month, oops).

PR lib/58208: ctype(3) provides poor runtime feedback of abuse
 1.150 02-May-2025  riastradh ld.elf_so: Narrow scope of -Wno-stack-protector.

Don't need it outside immediate _rtld_donelist_init callers.

PR lib/59388: ld.elf_so: -Wno-stack-protector applies too broadly
 1.149 19-Jan-2024  christos branches: 1.149.2;
use header decl of __fork()
 1.148 07-Oct-2023  rin Drop -O[01] hacks for vax; no longer necessary for patched GCC 10

PR port-vax/57646: Import major vax toolchain fix by Kalvis Duckmanton

XXXRO: GCC 12 may require hacks for a while, but it turned out that
GCC 12 should be treated differently from older versions; a lot of new
files need -O[01] flags, while some may no longer require it.

I will take a look later.

Note that these hacks are not required if Kalvis's patches for GCC 12
are applied.

Keep doc/HACKS entries for a while (will be sync with update for GCC 12).

diff --git a/crypto/external/bsd/openssh/lib/Makefile b/crypto/external/bsd/openssh/lib/Makefile
index 96a93f5e396..4e38be1b642 100644
--- a/crypto/external/bsd/openssh/lib/Makefile
+++ b/crypto/external/bsd/openssh/lib/Makefile
@@ -117,12 +117,6 @@ COPTS.${f}.c+= -Wno-pointer-sign
# XXX
COPTS.channels.c+= -fno-strict-aliasing

-# XXX
-.if ${MACHINE} == "vax"
-COPTS.poly1305.c+= -O0
-COPTS.umac.c+= -O0
-.endif
-
COPTS.hostfile.c+= ${CC_WNO_FORMAT_TRUNCATION}
COPTS.sshkey.c+= ${CC_WNO_FORMAT_TRUNCATION}
COPTS.cipher.c+= -Wno-error=deprecated-declarations
diff --git a/distrib/utils/x_ping/Makefile b/distrib/utils/x_ping/Makefile
index f1c452a0d60..8ee77580a3f 100644
--- a/distrib/utils/x_ping/Makefile
+++ b/distrib/utils/x_ping/Makefile
@@ -12,10 +12,6 @@ CPPFLAGS+= -I${SRCDIR} -DCRUNCHOPS
DPADD= ${LIBM}
LDADD= -lm

-.if ${MACHINE_ARCH} == "vax"
-COPTS.ping.c=-O0
-.endif
-
.include <bsd.prog.mk>

.PATH: ${SRCDIR}
diff --git a/external/apache2/argon2/lib/libargon2/Makefile.inc b/external/apache2/argon2/lib/libargon2/Makefile.inc
index d3f4470c6c7..6a1dd146d7d 100644
--- a/external/apache2/argon2/lib/libargon2/Makefile.inc
+++ b/external/apache2/argon2/lib/libargon2/Makefile.inc
@@ -16,7 +16,3 @@ CFLAGS+= -pthread
LDADD+=-lpthread
DPADD+=${LIBPTHREAD}
.endif
-
-.if ${MACHINE} == "vax"
-COPTS.blake2b.c+= -O0
-.endif
diff --git a/external/bsd/jemalloc/lib/Makefile.inc b/external/bsd/jemalloc/lib/Makefile.inc
index 2f524358f46..d5da774f293 100644
--- a/external/bsd/jemalloc/lib/Makefile.inc
+++ b/external/bsd/jemalloc/lib/Makefile.inc
@@ -53,12 +53,6 @@ COPTS.ctl.c+=-Wno-error=stack-protector
COPTS.stats.c+=-Wno-error=stack-protector
COPTS.tcache.c+=-Wno-error=stack-protector

-.if ${MACHINE_ARCH} == "vax"
-# in merge_overlapping_regs, at regrename.c
-COPTS.arena.c+=-O0
-COPTS.extent.c+=-O0
-.endif
-
SRCS+=${JEMALLOC_SRCS}

jemalloc.d jemalloc.pico jemalloc.o jemalloc.ln jemalloc.po jemalloc.go: \
diff --git a/external/bsd/mdocml/lib/libmandoc/Makefile b/external/bsd/mdocml/lib/libmandoc/Makefile
index 40d7e29ae88..dfd3077a2c7 100644
--- a/external/bsd/mdocml/lib/libmandoc/Makefile
+++ b/external/bsd/mdocml/lib/libmandoc/Makefile
@@ -39,11 +39,6 @@ tbl_opts.c

MAN= mandoc.3

-# XXX
-.if ${MACHINE} == "vax"
-COPTS.mdoc_macro.c+=-O0
-.endif
-
COPTS.man_validate.c+=-Wno-error=array-bounds

.include <bsd.lib.mk>
diff --git a/external/gpl3/binutils.old/lib/libbfd/Makefile b/external/gpl3/binutils.old/lib/libbfd/Makefile
index 03477232b55..74a354532fa 100644
--- a/external/gpl3/binutils.old/lib/libbfd/Makefile
+++ b/external/gpl3/binutils.old/lib/libbfd/Makefile
@@ -41,10 +41,6 @@ CPPFLAGS+= -I${.CURDIR}/arch/${BFD_MACHINE_ARCH} -I${DIST}/include -I. \
-DDEBUGDIR=\"${DEBUGDIR}\" -DLIBDIR=\"${LIBDIR}\" \
-DBINDIR=\"${BINDIR}\"

-.if (${BFD_MACHINE_ARCH} == "vax")
-CPPFLAGS.elf.c += -O0
-.endif
-
COPTS.pei-x86_64.c+= -Wno-stack-protector
COPTS.elfxx-mips.c+= -Wno-stack-protector
COPTS.elf.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-overflow :}
diff --git a/external/gpl3/binutils/lib/libbfd/Makefile b/external/gpl3/binutils/lib/libbfd/Makefile
index 00cb2b20081..a3f0c25fd35 100644
--- a/external/gpl3/binutils/lib/libbfd/Makefile
+++ b/external/gpl3/binutils/lib/libbfd/Makefile
@@ -41,10 +41,6 @@ CPPFLAGS+= -I${.CURDIR}/arch/${BFD_MACHINE_ARCH} -I${DIST}/include -I. \
-DDEBUGDIR=\"${DEBUGDIR}\" -DLIBDIR=\"${LIBDIR}\" \
-DBINDIR=\"${BINDIR}\"

-.if (${BFD_MACHINE_ARCH} == "vax")
-CPPFLAGS.elf.c += -O0
-.endif
-
COPTS.pei-x86_64.c+= -Wno-stack-protector
COPTS.elfxx-mips.c+= -Wno-stack-protector
COPTS.elf.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-overflow :}
diff --git a/external/gpl3/gcc.old/lib/Makefile.sanitizer b/external/gpl3/gcc.old/lib/Makefile.sanitizer
index efd36ae4bee..5173a5109a0 100644
--- a/external/gpl3/gcc.old/lib/Makefile.sanitizer
+++ b/external/gpl3/gcc.old/lib/Makefile.sanitizer
@@ -88,22 +88,3 @@ COPTS+=-fno-builtin -fno-exceptions -fno-rtti -funwind-tables

# Can't profile without it`
#-fomit-frame-pointer
-
-.if ${MACHINE_ARCH} == "vax"
-COPTS.sanitizer_allocator.cc += -O1
-COPTS.sanitizer_common.cc += -O1
-COPTS.sanitizer_common_libcdep.cc += -O1
-COPTS.sanitizer_coverage_libcdep.cc += -O1
-COPTS.sanitizer_coverage_mapping_libcdep.cc += -O1
-COPTS.sanitizer_deadlock_detector1.cc += -O1
-COPTS.sanitizer_mac.cc += -O1
-COPTS.sanitizer_netbsd.cc += -O1
-COPTS.sanitizer_posix.cc += -O1
-COPTS.sanitizer_printf.cc += -O1
-COPTS.sanitizer_procmaps_common.cc += -O1
-COPTS.sanitizer_stackdepot.cc += -O1
-COPTS.sanitizer_symbolizer_libcdep.cc += -O1
-COPTS.sanitizer_symbolizer_report.cc += -O1
-COPTS.ubsan_diag.cc += -O1
-COPTS.ubsan_init.cc += -O1
-.endif
diff --git a/external/gpl3/gcc.old/lib/libasan/Makefile b/external/gpl3/gcc.old/lib/libasan/Makefile
index 1e6f9608abe..3da7bbf2f58 100644
--- a/external/gpl3/gcc.old/lib/libasan/Makefile
+++ b/external/gpl3/gcc.old/lib/libasan/Makefile
@@ -49,14 +49,6 @@ LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm
LIBDPLIBS+= pthread ${NETBSDSRCDIR}/lib/libpthread
CPPFLAGS+=-DCAN_SANITIZE_UB=0

-.if ${MACHINE_ARCH} == "vax"
-COPTS.asan_allocator.cc += -O1
-COPTS.asan_report.cc += -O1
-COPTS.sanitizer_file.cc += -O1
-COPTS.ubsan_diag.cc += -O1
-COPTS.ubsan_init.cc += -O1
-.endif
-
.if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
COPTS.asan_interceptors.cc += -O1
.endif
diff --git a/external/gpl3/gcc.old/lib/liblsan/Makefile b/external/gpl3/gcc.old/lib/liblsan/Makefile
index 4578544a9a8..ddb7981077c 100644
--- a/external/gpl3/gcc.old/lib/liblsan/Makefile
+++ b/external/gpl3/gcc.old/lib/liblsan/Makefile
@@ -16,11 +16,6 @@ LSAN_SRCS+= \
lsan_linux.cc \
lsan_thread.cc

-.if ${MACHINE_ARCH} == "vax"
-COPTS.lsan_allocator.cc += -O1
-COPTS.sanitizer_file.cc += -O1
-.endif
-
LIB= lsan
SRCS+= ${LSAN_SRCS}
LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm
diff --git a/external/gpl3/gcc.old/lib/libubsan/Makefile b/external/gpl3/gcc.old/lib/libubsan/Makefile
index 2e2faca7b1c..9de82550d14 100644
--- a/external/gpl3/gcc.old/lib/libubsan/Makefile
+++ b/external/gpl3/gcc.old/lib/libubsan/Makefile
@@ -26,10 +26,6 @@ UBSAN_SRCS= \
COPTS.${_s}.cc+=-frtti
.endfor

-.if ${MACHINE_ARCH} == "vax"
-COPTS.sanitizer_file.cc += -O1
-.endif
-
LIB= ubsan
SRCS+= ${UBSAN_SRCS}
LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm
diff --git a/external/gpl3/gcc.old/usr.bin/cc1/Makefile b/external/gpl3/gcc.old/usr.bin/cc1/Makefile
index c55e292ee8e..ff12a5be524 100644
--- a/external/gpl3/gcc.old/usr.bin/cc1/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/cc1/Makefile
@@ -46,17 +46,6 @@ CPPFLAGS.default-c.c+= -I${BACKENDOBJ}
BUILDSYMLINKS+= ${GNUHOSTDIST}/gcc/config/sh/sh-c.cc sh-c.c
.endif

-.if ${MACHINE_CPU} == "vax"
-COPTS.c-decl.c+=-O0
-COPTS.c-typeck.c+=-O0
-COPTS.c-array-notation.c+=-O0
-COPTS.c-common.c+=-O0
-COPTS.c-ada-spec.c+=-O0
-COPTS.cilk.c+=-O0
-COPTS.c-ubsan.c+=-O0
-COPTS.cc1-checksum.c+=-O0
-.endif
-
.if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel"
COPTS.c-common.c+=-O3
.endif
diff --git a/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile b/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile
index 3123ee0d60b..aab82ad3448 100644
--- a/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile
@@ -44,16 +44,8 @@ COPTS.objc-act.c+= -Wno-stack-protector
COPTS.objc-gnu-runtime-abi-01.c+= -Wno-stack-protector
COPTS.objc-next-runtime-abi-01.c+= -Wno-stack-protector

-.if ${MACHINE_ARCH} == "vax"
-COPTS.c-decl.c+=-O0
-COPTS.c-typeck.c+=-O0
-COPTS.c-array-notation.c+=-O0
-COPTS.c-common.c+=-O0
-COPTS.c-ada-spec.c+=-O0
-COPTS.cilk.c+=-O0
-COPTS.c-ubsan.c+=-O0
-COPTS.cc1obj-checksum.c+=-O0
-.endif
+COPTS.c-cppbuiltin.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8:? -Wno-error=format-overflow :}
+COPTS.c-typeck.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8:? -Wno-error=format-overflow :}

.if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel"
COPTS.c-common.c+=-O3
diff --git a/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile b/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile
index b9c108251c5..e04e8fc7f53 100644
--- a/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile
@@ -69,18 +69,6 @@ COPTS.objc-act.c+= -Wno-stack-protector
COPTS.objc-gnu-runtime-abi-01.c+= -Wno-stack-protector
COPTS.objc-next-runtime-abi-01.c+= -Wno-stack-protector

-.if ${MACHINE_ARCH} == "vax"
-COPTS.c-decl.c+=-O0
-COPTS.c-typeck.c+=-O0
-COPTS.c-array-notation.c+=-O0
-COPTS.c-common.c+=-O0
-COPTS.c-ada-spec.c+=-O0
-COPTS.cilk.c+=-O0
-COPTS.c-ubsan.c+=-O0
-COPTS.cc1obj-checksum.c+=-O0
-COPTS.decl.c+=-O0
-.endif
-
.if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel"
COPTS.c-common.c+=-O3
.endif
diff --git a/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile b/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile
index 7936efd3a5e..7c54559e21a 100644
--- a/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile
@@ -31,23 +31,6 @@ CHECKSUM_OBJS= ${LIBBACKTRACEOBJ}/libbacktrace.a \

CFLAGS+= -Wno-error=stack-protector

-.if ${MACHINE_ARCH} == "vax"
-COPTS.call.c+=-O0
-COPTS.decl.c+=-O0
-COPTS.typeck2.c+=-O0
-COPTS.class.c+=-O0
-COPTS.typeck.c+=-O0
-COPTS.init.c+=-O0
-COPTS.semantics.c+=-O0
-COPTS.mangle.c+=-O0
-COPTS.constexpr.c+=-O0
-COPTS.c-common.c+=-O0
-COPTS.c-ada-spec.c+=-O0
-COPTS.cilk.c+=-O0
-COPTS.c-ubsan.c+=-O0
-COPTS.cc1plus-checksum.c+=-O0
-.endif
-
.if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel"
COPTS.c-common.c+=-O3
.endif
diff --git a/external/gpl3/gcc.old/usr.bin/gcc/Makefile b/external/gpl3/gcc.old/usr.bin/gcc/Makefile
index 7a66d77ffc7..a5a4b1c3adf 100644
--- a/external/gpl3/gcc.old/usr.bin/gcc/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/gcc/Makefile
@@ -25,9 +25,6 @@ ${SRCS}: ${GCCARCH}/defs.mk
.include <bsd.info.mk>

COPTS.gcc.c= -Wno-stack-protector
-.if ${MACHINE_ARCH} == "vax"
-COPTS.dse.c= -O1
-.endif

.PATH: ${DIST}/gcc ${DIST}/gcc/doc ${DIST}/gcc/c

diff --git a/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile b/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile
index 751d1513eec..33aeb1c9898 100644
--- a/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile
@@ -14,10 +14,6 @@ SRCS= decNumber.c decContext.c decimal32.c decimal64.c decimal128.c
CPPFLAGS+= -I${.CURDIR}/arch/${GCC_MACHINE_ARCH} -I${DIST}/libdecnumber
CPPFLAGS+= -I${DIST}/libgcc

-.if ${MACHINE_ARCH} == "vax"
-COPTS.decNumber.c=-O0
-.endif
-
.include <bsd.lib.mk>

# Force using C++ for this
diff --git a/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile b/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile
index 90f44a9fcf6..fd251464fb7 100644
--- a/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile
@@ -24,11 +24,6 @@ COPTS.lto-common.c+= -Wno-stack-protector
.include "../Makefile.backtrace"
.include "../Makefile.libdecnumber"

-.if ${MACHINE_ARCH} == "vax"
-COPTS.lto-lang.c+=-O0
-COPTS.lto-symtab.c+=-O0
-.endif
-
LDADD+= ${LIBIBERTY} ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm
DPADD+= ${LIBIBERTY} ${LIBMPC} ${LIBMPFR} ${LIBGMP} ${LIBINTL} ${LIBZ} ${LIBM}

diff --git a/external/gpl3/gcc.old/usr.bin/lto1/Makefile b/external/gpl3/gcc.old/usr.bin/lto1/Makefile
index 4c49161a64c..340d3c6124f 100644
--- a/external/gpl3/gcc.old/usr.bin/lto1/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/lto1/Makefile
@@ -21,11 +21,6 @@ COPTS.lto-common.c+= -Wno-stack-protector
.include "../Makefile.libcpp"
.include "../Makefile.libdecnumber"

-.if ${MACHINE_ARCH} == "vax"
-COPTS.lto-lang.c+=-O0
-COPTS.lto-symtab.c+=-O0
-.endif
-
LDADD+= ${LIBIBERTYOBJ}/libiberty.a
DPADD+= ${LIBIBERTYOBJ}/libiberty.a
LDADD+= ${LIBIBERTY} ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm
diff --git a/external/gpl3/gdb.old/lib/libdecnumber/Makefile b/external/gpl3/gdb.old/lib/libdecnumber/Makefile
index bcd4ae5b222..ce28811526b 100644
--- a/external/gpl3/gdb.old/lib/libdecnumber/Makefile
+++ b/external/gpl3/gdb.old/lib/libdecnumber/Makefile
@@ -18,10 +18,6 @@ CPPFLAGS+= -I${.CURDIR}/arch/${GDB_MACHINE_ARCH} \

SRCS= ${G_OBJS:.o=.c} ${G_SOURCES}

-.if ${MACHINE_ARCH} == "vax"
-COPTS.decNumber.c=-O0
-.endif
-
.PATH: ${DIST}/libdecnumber ${DIST}/libdecnumber/dpd

.include <bsd.lib.mk>
diff --git a/external/gpl3/gdb/lib/libdecnumber/Makefile b/external/gpl3/gdb/lib/libdecnumber/Makefile
index c95d36e3dfa..e3169865304 100644
--- a/external/gpl3/gdb/lib/libdecnumber/Makefile
+++ b/external/gpl3/gdb/lib/libdecnumber/Makefile
@@ -18,10 +18,6 @@ CPPFLAGS+= -I${.CURDIR}/arch/${GDB_MACHINE_ARCH} \

SRCS= ${G_OBJS:.o=.c} ${G_SOURCES}

-.if ${MACHINE_ARCH} == "vax"
-COPTS.decNumber.c=-O0
-.endif
-
.PATH: ${DIST}/libdecnumber ${DIST}/libdecnumber/dpd ${DIST}/libdecnumber/bid

.include <bsd.lib.mk>
diff --git a/external/gpl3/gdb/lib/libgdb/Makefile b/external/gpl3/gdb/lib/libgdb/Makefile
index b87a515d13a..c118c363975 100644
--- a/external/gpl3/gdb/lib/libgdb/Makefile
+++ b/external/gpl3/gdb/lib/libgdb/Makefile
@@ -66,12 +66,6 @@ CFLAGS:= ${CXXFLAGS} -std=gnu++17 -Wno-error=stack-protector

ada-exp.c: ada-lex.c

-.if ${MACHINE} == "vax"
-. if ${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8
-COPTS.read.c+= -O0
-. endif
-.endif
-
# These are generated by implicit rules and are not easy to generate
CLEANDIRFILES+= \
ada-exp.c ada-lex.c \
diff --git a/external/mit/xorg/lib/gallium.old/Makefile b/external/mit/xorg/lib/gallium.old/Makefile
index 55b2fe3d1c1..bfa40c8974f 100644
--- a/external/mit/xorg/lib/gallium.old/Makefile
+++ b/external/mit/xorg/lib/gallium.old/Makefile
@@ -1211,10 +1211,6 @@ SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR}.debug ${DRIDEBUGDIR}/${_d}_dri.so.${SHL
COPTS+= ${${ACTIVE_CC} == "clang":? -Wa,-Av8plus :}
.endif

-.if ${MACHINE_ARCH} == "vax"
-COPTS.nir.c += -O1
-.endif
-
# XXXGCC12
.if ${MACHINE_ARCH} == "m68k"
COPTS.st_glsl_to_tgsi.cpp += -O1
diff --git a/external/mit/xorg/lib/gallium/Makefile b/external/mit/xorg/lib/gallium/Makefile
index 6778a8c11c8..9f1422080fe 100644
--- a/external/mit/xorg/lib/gallium/Makefile
+++ b/external/mit/xorg/lib/gallium/Makefile
@@ -1428,10 +1428,6 @@ SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR}.debug ${DRIDEBUGDIR}/${_d}_dri.so.${SHL
COPTS+= ${${ACTIVE_CC} == "clang":? -Wa,-Av8plus :}
.endif

-.if ${MACHINE_ARCH} == "vax"
-COPTS.nir.c += -O1
-.endif
-
COPTS.u_atomic.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-builtin-declaration-mismatch :}

.include <bsd.lib.mk>
diff --git a/external/mit/xorg/lib/libX11/Makefile.libx11 b/external/mit/xorg/lib/libX11/Makefile.libx11
index e103d9ace12..0e55c2a4732 100644
--- a/external/mit/xorg/lib/libX11/Makefile.libx11
+++ b/external/mit/xorg/lib/libX11/Makefile.libx11
@@ -471,11 +471,6 @@ COPTS.OpenDis.c+= -Wno-error # XXX xf86bigfstr.h
COPTS.XlibInt.c+= -Wno-error # XXX xcmiscstr.h
COPTS.XKBBind.c+= -Wno-deprecated-declarations # uses XKeycodeToKeysym

-# XXX
-.if ${MACHINE} == "vax"
-COPTS.lcWrap.c+= -O0
-.endif
-
CWARNFLAGS.clang+= -Wno-string-plus-int

.include "${NETBSDSRCDIR}/external/mit/xorg/tools/makekeys/Makefile.makekeys"
diff --git a/games/gomoku/Makefile b/games/gomoku/Makefile
index e86a63aaea7..678537066ed 100644
--- a/games/gomoku/Makefile
+++ b/games/gomoku/Makefile
@@ -9,10 +9,6 @@ LDADD= -lcurses -lterminfo
HIDEGAME=hidegame
CPPFLAGS+= ${DEBUG:D-DDEBUG}

-.if ${MACHINE} == "vax"
-COPTS.pickmove.c += -O0
-.endif
-
#WARNS= 6 # would produce warnings about small integer types
LINTFLAGS+= -w # treat warnings as errors
LINTFLAGS+= -T # strict bool mode
diff --git a/games/phantasia/Makefile b/games/phantasia/Makefile
index e9c53f23ae5..b919dac17c6 100644
--- a/games/phantasia/Makefile
+++ b/games/phantasia/Makefile
@@ -52,7 +52,3 @@ map: map.c
./map | plot > /dev/tty

.include <bsd.prog.mk>
-
-.if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax"
-COPTS.misc.c+= -O0
-.endif
diff --git a/lib/i18n_module/UTF7/Makefile b/lib/i18n_module/UTF7/Makefile
index 712c1515d42..7136f7f0cc3 100644
--- a/lib/i18n_module/UTF7/Makefile
+++ b/lib/i18n_module/UTF7/Makefile
@@ -3,6 +3,3 @@
SRCPRE=citrus_
.include <bsd.lib.mk>

-.if ${MACHINE_ARCH} == "vax" && defined(HAVE_GCC)
-COPTS.citrus_utf7.c+= -O0
-.endif
diff --git a/lib/libbz2/Makefile b/lib/libbz2/Makefile
index b2aea1e04b0..e60a2862d48 100644
--- a/lib/libbz2/Makefile
+++ b/lib/libbz2/Makefile
@@ -15,11 +15,6 @@ SRCS= blocksort.c huffman.c crctable.c randtable.c compress.c \
INCS= bzlib.h
INCSDIR= /usr/include

-# XXX huffman.c gets mis-compiled with 2.95.3
-.if ${MACHINE_ARCH} == "vax"
-COPTS+= -O0
-.endif
-
COPTS+= ${CC_WNO_IMPLICIT_FALLTHROUGH}

# XXX blocksort.c gets mis-compiled with 4.1
diff --git a/lib/libc/gdtoa/Makefile.inc b/lib/libc/gdtoa/Makefile.inc
index 132686fc33d..609da919803 100644
--- a/lib/libc/gdtoa/Makefile.inc
+++ b/lib/libc/gdtoa/Makefile.inc
@@ -44,10 +44,3 @@ SRCS+= dmisc.c \
.if ${MACHINE_ARCH} != "vax"
SRCS+= strtord.c
.endif
-
-# XXX revisit with newer GCC.
-# Ensure numbers like 0xffff319f5fa95963 print correctly
-# ("999999999999999.98", not garbage like "?A>C>@>C:BA;A><.:<")
-.if ${MACHINE_ARCH} == "vax" && defined(HAVE_GCC)
-COPTS.misc.c+= -O0
-.endif
diff --git a/lib/libcrypt/Makefile b/lib/libcrypt/Makefile
index cb3f89d6d09..e9c8be820da 100644
--- a/lib/libcrypt/Makefile
+++ b/lib/libcrypt/Makefile
@@ -30,9 +30,6 @@ SRCS+= crypt-argon2.c
SRCS+= ${src}
COPTS.${src}+= -fvisibility=hidden
. endfor
-. if ${MACHINE} == "vax"
-COPTS.blake2b.c+= -O0
-. endif
.endif

WARNS?= 5
diff --git a/libexec/ld.elf_so/Makefile b/libexec/ld.elf_so/Makefile
index f5baae1e883..24f7e1121e5 100644
--- a/libexec/ld.elf_so/Makefile
+++ b/libexec/ld.elf_so/Makefile
@@ -141,10 +141,6 @@ CPPFLAGS+= -DRTLD_DEFAULT_LIBRARY_PATH=\"${SHLIBDIR}:${LIBDIR}\"
COPTS.rtld.c+= -Wno-stack-protector
COPTS.symbol.c+=-Wno-stack-protector

-.if ${MACHINE_CPU} == "vax"
-COPTS.rtld.c+= -O0
-.endif
-
LDADD+= -Wl,--version-script=${.CURDIR}/symbols.map
LDADD+= -L${CLIBOBJ} -L${DESTDIR}${LIBDIR}
.if ${MKPICLIB} != "no"
diff --git a/sbin/fsck_ffs/Makefile.common b/sbin/fsck_ffs/Makefile.common
index 765638b2801..824e3bf2628 100644
--- a/sbin/fsck_ffs/Makefile.common
+++ b/sbin/fsck_ffs/Makefile.common
@@ -36,7 +36,3 @@ COPTS.ffs_appleufs.c+= -Wno-pointer-sign
.if ${MACHINE_ARCH} == "m68000"
COPTS.pass1.c+= -fno-tree-fre -fno-tree-lrs
.endif
-.if ${MACHINE_ARCH} == "vax"
-COPTS.pass1.c+= -O0
-COPTS.inode.c+= -O0
-.endif
diff --git a/sbin/fsdb/Makefile b/sbin/fsdb/Makefile
index c039f73a1eb..3b0331e5880 100644
--- a/sbin/fsdb/Makefile
+++ b/sbin/fsdb/Makefile
@@ -39,12 +39,6 @@ COPTS.${f}.c+= -Wno-pointer-sign
COPTS.pass1.c+= -fno-tree-fre -fno-tree-lrs
.endif

-.if ${MACHINE_ARCH} == "vax"
-COPTS.pass1.c+= -O0
-COPTS.inode.c+= -O0
-COPTS.fsdb.c+= -O0
-.endif
-
CWARNFLAGS.gcc+= ${CC_WNO_ADDRESS_OF_PACKED_MEMBER}

.include <bsd.prog.mk>
diff --git a/sbin/newfs_ext2fs/Makefile b/sbin/newfs_ext2fs/Makefile
index 40a44b9a038..ecfdbff4d3a 100644
--- a/sbin/newfs_ext2fs/Makefile
+++ b/sbin/newfs_ext2fs/Makefile
@@ -20,8 +20,4 @@ DPADD+=${LIBPROP}

.PATH: ${NETBSDSRCDIR}/sys/ufs/ext2fs ${FSCK}

-.if ${MACHINE_ARCH} == "vax"
-COPTS.mke2fs.c=-O0
-.endif
-
.include <bsd.prog.mk>
diff --git a/sbin/ping/Makefile b/sbin/ping/Makefile
index 4f33501ea7a..1f7f56e3ea5 100644
--- a/sbin/ping/Makefile
+++ b/sbin/ping/Makefile
@@ -12,8 +12,4 @@ CPPFLAGS+= -DIPSEC
LDADD+= -lipsec
DPADD+= ${LIBIPSEC}

-.if ${MACHINE_ARCH} == "vax"
-COPTS.ping.c=-O0
-.endif
-
.include <bsd.prog.mk>
diff --git a/sys/arch/vax/conf/Makefile.vax b/sys/arch/vax/conf/Makefile.vax
index cf095d54a86..c483eaa644a 100644
--- a/sys/arch/vax/conf/Makefile.vax
+++ b/sys/arch/vax/conf/Makefile.vax
@@ -34,7 +34,6 @@ GENASSYM_CONF= ${VAX}/vax/genassym.cf
CPPFLAGS+= -D_VAX_INLINE_
AFLAGS+= -x assembler-with-cpp -fno-pic
CFLAGS+= -fno-pic
-COPTS.wsmux.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 9:? -O1 :}


##
diff --git a/sys/lib/libsa/Makefile b/sys/lib/libsa/Makefile
index 718c97ce857..4ef3840c753 100644
--- a/sys/lib/libsa/Makefile
+++ b/sys/lib/libsa/Makefile
@@ -96,7 +96,3 @@ SRCS+= ufs.c
lib${LIB}.o:: ${OBJS:O} __buildstdlib

CPPFLAGS+= -Wno-pointer-sign
-
-.if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax"
-COPTS.bootp.c+= -O0
-.endif
diff --git a/sys/lib/libz/Makefile b/sys/lib/libz/Makefile
index 6945c0da6c6..61fb7d4f652 100644
--- a/sys/lib/libz/Makefile
+++ b/sys/lib/libz/Makefile
@@ -25,7 +25,3 @@ CLEANFILES+= lib${LIB}.o
.include <bsd.lib.mk>

lib${LIB}.o:: ${OBJS:O} __buildstdlib
-
-.if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax"
-COPTS.inftrees.c+= -O0
-.endif
diff --git a/sys/modules/lfs/Makefile b/sys/modules/lfs/Makefile
index 962538821a5..ea8f187e160 100644
--- a/sys/modules/lfs/Makefile
+++ b/sys/modules/lfs/Makefile
@@ -18,9 +18,4 @@ SRCS+= ulfs_bmap.c ulfs_dirhash.c ulfs_inode.c ulfs_lookup.c \

WARNS= 3

-.if ${MACHINE} == "vax"
-# GCC 6.5 and 7.4 cannot compile this with -DDIAGNOSTIC and -O2/-O1
-COPTS.lfs_inode.c+= -O0
-.endif
-
.include <bsd.kmodule.mk>
diff --git a/sys/rump/fs/lib/liblfs/Makefile b/sys/rump/fs/lib/liblfs/Makefile
index abade3767d9..68b74c62502 100644
--- a/sys/rump/fs/lib/liblfs/Makefile
+++ b/sys/rump/fs/lib/liblfs/Makefile
@@ -17,9 +17,6 @@ SRCS+= ulfs_bmap.c ulfs_dirhash.c ulfs_extattr.c \


CFLAGS+= -DLFS_KERNEL_RFW
-.if ${MACHINE_ARCH} == "vax"
-COPTS.lfs_inode.c+=-O0
-.endif

.include <bsd.lib.mk>
.include <bsd.klinks.mk>
diff --git a/usr.sbin/mtrace/Makefile b/usr.sbin/mtrace/Makefile
index aef09db6198..9c125c15265 100644
--- a/usr.sbin/mtrace/Makefile
+++ b/usr.sbin/mtrace/Makefile
@@ -12,10 +12,6 @@ PROG= mtrace
SRCS= igmp.c inet.c kern.c mtrace.c
MAN= mtrace.8

-.if ${MACHINE_ARCH} == "vax"
-COPTS.mtrace.c=-O0
-.endif
-
BINMODE=4555
BINOWN= root

diff --git a/external/gpl3/gcc.old/usr.bin/backend/Makefile b/external/gpl3/gcc.old/usr.bin/backend/Makefile
index d69a26fe619..99e881c783d 100644
--- a/external/gpl3/gcc.old/usr.bin/backend/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/backend/Makefile
@@ -533,68 +533,9 @@ COPTS.insn-recog.c+=-Wno-error

.if ${GCC_MACHINE_ARCH} == "vax"
CPPFLAGS+=-I${.CURDIR}/../../lib/libgcc/libgcov/arch/${GCC_MACHINE_ARCH}
-COPTS.builtins.c+=-O0
-COPTS.calls.c+=-O0
-COPTS.convert.c+=-O0
-COPTS.data-streamer-out.c+=-O0
-COPTS.dse.c+=-O0 # XXX port-vax/51967
-COPTS.dwarf2out.c+=-O0
-COPTS.expmed.c+=-O0
-COPTS.expr.c+=-O0 -Wno-error=tautological-compare
-COPTS.fixed-value.c+=-O0
-COPTS.fold-const.c+=-O0
-COPTS.generic-match.c+=-O0
-COPTS.gimple-fold.c+=-O0
-COPTS.gimple-match.c+=-O0
-COPTS.gimple-ssa-strength-reduction.c+=-O0
-COPTS.gimple-ssa-warn-restrict.c+=-O0
-COPTS.gimple.c+=-O0
-COPTS.internal-fn.c+=-O0
-COPTS.lto-streamer-out.c+=-O0
-COPTS.omp-low.c+=-O0
-COPTS.predict.c+=-O0
-COPTS.range-op.cc+=-O0
-COPTS.recog.c+=-O0
-COPTS.sanopt.c+=-O0
-COPTS.stmt.c+=-O0
-COPTS.stor-layout.c+=-O0
-COPTS.targhooks.c+=-O0
-COPTS.tree-affine.c+=-O0
-COPTS.tree-cfg.c+=-O0
-COPTS.tree-data-ref.c+=-O0
-COPTS.tree-eh.c+=-O0
-COPTS.tree-if-conv.c+=-O0
-COPTS.tree-object-size.c+=-O0
-COPTS.tree-parloops.c+=-O0
-COPTS.tree-predcom.c+=-O0
-COPTS.tree-pretty-print.c+=-O0
-COPTS.tree-ssa-alias.c+=-O0
-COPTS.tree-ssa-ccp.c+=-O0
-COPTS.tree-ssa-forwprop.c+=-O0
-COPTS.tree-ssa-loop-ivopts.c+=-O0
-COPTS.tree-ssa-loop-manip.c+=-O0
-COPTS.tree-ssa-loop-niter.c+=-O0
-COPTS.tree-ssa-math-opts.c+=-O0
-COPTS.tree-ssa-phiopt.c+= -O0
-COPTS.tree-ssa-pre.c+=-O0
-COPTS.tree-ssa-reassoc.c+=-O0
-COPTS.tree-ssa-strlen.c+=-O0
-COPTS.tree-ssa-uninit.c+=-O0
-COPTS.tree-ssa.c+=-O0
-COPTS.tree-switch-conversion.c+=-O0
-COPTS.tree-vect-data-refs.c+=-O0
-COPTS.tree-vect-loop-manip.c+=-O0
-COPTS.tree-vect-loop.c+=-O0
-COPTS.tree-vect-patterns.c+=-O0
-COPTS.tree-vect-stmts.c+=-O0
-COPTS.tree-vrp.c+=-O0
-COPTS.tree.c+=-O0
-COPTS.ubsan.c+=-O0
-COPTS.varasm.c+=-O0
-COPTS.vr-values.c+=-O0
-COPTS.web.c+=-O0
-COPTS.wide-int-range.cc+=-O0
-COPTS.wide-int.cc+=-O0
+
+COPTS.expmed.c+=-Wno-error=tautological-compare
+COPTS.expr.c+=-Wno-error=tautological-compare
.else
COPTS.tree.c= ${${ACTIVE_CC} == "clang" :? -O0 :}
.endif
 1.147 30-Jul-2023  riastradh ld.elf_so: Split hash functions into a separate file.

This way we can test them in isolation.

No functional change intended.
 1.146 30-Jul-2023  riastradh ld.elf_so: Sort SRCS.

No functional change intended.
 1.145 30-Jul-2023  riastradh ld.elf_so: Split SRCS onto multiple lines.

Makes updates easier.

No functional change intended.
 1.144 04-Dec-2021  skrll branches: 1.144.2;
Error if there are undefined symbols, e.g. _rtld_call_ifunc
 1.143 09-Feb-2020  kamil Specify NOLIBCSANITIZER for the ELF loader

The sanitizer does not work reliably before finishing initialization of
ld.elf_so. There is also a number of false positives that are not real
problems here.
 1.142 04-Nov-2019  joerg PR 54093: Align static TLS area to max_align_t.
 1.141 03-Apr-2019  christos branches: 1.141.2;
Disable optimization for rtld.c on the vax with gcc-7.
 1.140 27-Dec-2018  christos initfini array support for everyone.
 1.139 17-Oct-2018  joerg Move compatibility for pre-2.0 ELF binaries into separate file.
Early ELF binaries defined dlopen and friends in crt0.o by
using function pointers in the object handle passed from rtld.
This contract wastes space when many shared objects are allocated
and ties dynamic linker and rest of the system tightly together.
Fake the entry points in a static object and restrict them to the
platforms that had working ELF support at the time. Keep the magic and
version field used by modern crt0.o for all architectures. The checks
will be removed from crt0.o in a follow-up step.
 1.138 09-Jun-2018  christos branches: 1.138.2;
We can't build those three with MKSANITIZER, they are used too early.
 1.137 19-Jun-2017  joerg branches: 1.137.4;
Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.

The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.

Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
 1.136 01-Dec-2016  christos branches: 1.136.6;
Instead of using a function to resolve symbols that should be supplied by
the dynamic linker itself, use a version script that exposes them. From joerg@
 1.135 07-Oct-2016  christos revert, I'll fix libc instead.
 1.134 07-Oct-2016  christos Mips o32 needs -lgcc for __udivdi3 in headers.c for fast_divide32_prepare().
 1.133 16-Jun-2016  christos branches: 1.133.2;
Move relro after we've computed out relocbase and re-enable it.
(Matthias Weckbecker)
 1.132 15-Jun-2016  christos Turn off GNU_RELRO for now.
 1.131 14-Jun-2016  christos Add support for GNU RELRO headers from Matthias Weckbecker.
 1.130 23-Jan-2016  christos Define _KERNTYPES for things that need it.
 1.129 19-Sep-2014  matt RISC-V support.
 1.128 03-Sep-2014  matt OR1K support
 1.127 10-Aug-2014  matt Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.
 1.126 06-Mar-2014  matt Enable building ld.elf_so for powerpc
Produce a link map for ld.elf_so
 1.125 16-Nov-2013  skrll Remove hack now it's fixed in 4.8.2
 1.124 13-Nov-2013  skrll Apply hack for gcc 4.8 bug on rtld.c.
 1.123 09-Oct-2013  matt Use MACHINE_CPU for m68k. Use similar logic for both tests.
 1.122 12-Aug-2013  joerg Some architectures can't create unwind tables without the frame pointer,
so don't use -fomit-frame-pointer on those.
 1.121 18-Jul-2013  matt Support MACHINE_ARCH of coldfire
 1.120 09-May-2013  skrll branches: 1.120.2;
Fix debug symlink
 1.119 08-May-2013  christos provide debug symlink.
 1.118 06-May-2013  christos don't overwrite COPTS
 1.117 03-May-2013  matt Consistently use LDELFSO_MACHINE_ARCH.
 1.116 24-Apr-2013  matt Add support for PT_ARM_EXIDX and __gnu_Unwind_Find_exidx for libgcc's support
of the ARM EHABI.
 1.115 05-Apr-2013  christos split debug info for rtld
 1.114 23-Aug-2012  joerg branches: 1.114.2;
Revert last, it breaks the tricks xsrc uses.
 1.113 23-Aug-2012  joerg Remove SHLIBINSTALLDIR and SHLINKINSTALLLIBDIR. Add rpath entries, if
SHLIBDIR differs from /usr/lib.
 1.112 04-Aug-2012  matt Don't abuse DBG, use COPTS instead.
 1.111 15-Mar-2012  christos Add __diagassert13() so that if libc is compiled with _DIAGNOSTIC, it does
not end up bringing in all of stdio.
XXX: This is temporary.
 1.110 07-Oct-2011  mrg branches: 1.110.2; 1.110.6;
obsolete libgcc_pic and friends. all libgcc's are supposed to be pic
for platforms with shlibs already (and are.)

this obsoletes our hacks for the libgcc specs to use libgcc_pic, and
fixes a couple of other issues reported to me directly.
 1.109 27-Jun-2011  uwe sh3 also needs libgcc_pic for millicode (cf. revision 1.107)
 1.108 25-Jun-2011  nonaka PR/45015: ld.elf_so: support ELF symbol versioning
Applied latest patch.
 1.107 05-Jun-2011  christos Add libgcc_pic for millicode.
 1.106 30-May-2011  joerg branches: 1.106.2;
Use -Wl,-Bsymbolic directly for clang
 1.105 20-May-2011  joerg Disable use of various X86 extensions since _rtld_bind_start doesn't
save the necessary registers.
 1.104 20-May-2011  joerg Explicitly disable linking against libgcc and friends.
 1.103 09-Mar-2011  joerg Add TLS support infrastructure. For dynamic binaries, ld.elf_so exports
_rtld_tls_allocate and _rtld_tls_free. libpthread uses this functions to
setup the thread private area of all new threads. ld.elf_so is
responsible for setting up the private area for the initial thread.
Similar functions are called from _libc_init for static binaries, using
dl_iterate_phdr to access the ELF Program Header.

Add test cases to exercise the different TLS storage models. Test cases
are compiled and installed on all platforms, but are skipped on
platforms not marked for TLS support.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.

It is inspired by the TLS support in FreeBSD by Doug Rabson and the
clean ups of the DragonFly port of the original FreeBSD modifications.
 1.102 16-Jan-2011  matt Warn about DT_TEXTRELs
 1.101 16-Dec-2010  joerg Replace use of errlist with a single concatenated version and an offset
array. This requires less storage and avoids one runtime relocation per
errno value.
 1.100 16-Dec-2010  joerg Don't use normal environment handling functions from libc, but iterate
once over the array and clean out entries as needed.
 1.99 05-Dec-2010  joerg Build ld.elf_so with -fvisibility=hidden. Exploit this for i386/x86_64
to simplify the assembler code.
 1.98 29-Oct-2010  christos PR/44010: YAMAMOTO Takashi: sbrk: grow 0xb3ba2000 failed, error = 12"
(due to setenv changes?)
Provide a mini unsetenv that does not allocate/free memory and does not
bother about locking.
 1.97 06-Jul-2010  mrg remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format. ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k. this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
 1.96 20-Mar-2010  skrll Only apply -Wno-stack-protector where alloca is used.
 1.95 19-Mar-2010  roy Use the gcc directive to disable SSP warnings.
 1.94 18-Mar-2010  roy Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
We need to disable SSP when using alloca.
 1.93 13-Dec-2009  mrg simplify the logic for compat ld.elf_so and move it here. we now can
find the libc objdir for multiple compat ld.elf_so's, too.
 1.92 13-Dec-2009  mrg if BSD_MK_COMPAT_FILE is defined, .include it.
 1.91 13-Dec-2009  mrg rename LD32DIR to MLIBDIR.
 1.90 20-May-2009  ad Add a reminder about ldd depending on ld.so.
 1.89 19-May-2009  christos warns=4
 1.88 16-Mar-2009  lukem Default to WARNS=4
Exceptions that need a lower level are:
getty ld.elf_so lfs_cleanerd makewhatis telnetd tftpd
hpropd ipropd-master ipropd-slave kadmind kpasswdd
 1.87 26-Oct-2008  mrg branches: 1.87.2; 1.87.4; 1.87.8;
if LD32DIR is defined:
- look in src/compat/lib/libc for libc_pic.
- define RTLD_ARCH_SUBDIR to "i386" or "sparc" for amd64 and sparc64
builds, respectively
if RTLD_ARCH_SUBDIR is defined, add this path before
RTLD_DEFAULT_LIBRARY_PATH in the default search path.
 1.86 16-Oct-2008  christos Never build this with PIE.
 1.85 26-Dec-2007  christos No need for stack_protector.o if USE_FORT is no.
XXX: compiling a binary with -Wl,--dynamic-linker,${NETBSDSRCDIR}/libexec/...
results in stack overflow. Investigate!
 1.84 13-Nov-2007  ad stack_protector.c has moved.
 1.83 30-Oct-2007  skrll Build a local copy of exit that doesn't call __cxa_finalize. It's not
needed and drags in a lot of libc via free.
 1.82 29-Oct-2007  christos build stack protector locally so that we don't call syslog_ss that results
in 1/2 of libc dragged in.
 1.81 05-Oct-2007  ad - Don't use the names malloc/free/etc, since we can end up pulling in libc's
malloc which is not what we want.
- Remove ancient memory compaction hack. Realloc on free memory is now an
error again (from joerg@).

Ok christos@.
 1.80 27-Sep-2007  christos If we are using SSP, compile in a separate copy of the stack protector
functions so that we don't end up calling syslog_ss() which drags in
a large portion of libc. Found by skrll...
 1.79 18-May-2007  christos branches: 1.79.4;
Support Solaris-like $ORIGIN etc. expansions in paths.
 1.78 08-Apr-2007  scw Remove support for NetBSD/{,evb}sh5.
 1.77 15-Mar-2007  matt Deal with MKPICLIB != no.
 1.76 23-Feb-2007  matt Remove MD COMBRELOC support since it's now MI.
Enable COMBRELOC for all arches
 1.75 27-Aug-2006  simonb branches: 1.75.2; 1.75.4;
Simplify multiple MACHINE_ARCH endian checks with single MACHINE_CPU
checks.
 1.74 29-Jun-2006  skrll Add (back) -Wl,-static to the link.
 1.73 03-Feb-2006  rpaulo Remove -Wl,-non_shared (same meaing as -static).
 1.72 04-Jun-2005  lukem Explicitly prefix ld(1) options in LDFLAGS with "-Wl," rather than
using the ${LDFLAGS:@F@-Wl,$F@} make substitution because that breaks
if LDFLAGS is already set.
 1.71 11-Jan-2005  martin Backout -DDEBUG that I accidently commited with the last change
 1.70 09-Jan-2005  martin Add LD_BIND_NOW support for sparc and remove some relocation types that
are not supposed to happen in 32bit code.
From Nick Hudson.
 1.69 24-Mar-2004  skrll Be more pedantic about where we use -shared, etc.
 1.68 26-Feb-2004  enami Whitespace.
 1.67 23-Feb-2004  skrll Whitespace.
 1.66 22-Feb-2004  uwe Use CC instead of LD to link the ld.elf_so. This will correctly link
"millicode" from libgcc_pic.a on platforms that need it.

From Nick Hudson <skrll@netbsd>.
 1.65 21-Feb-2004  skrll Move common LDFLAGS into Makefile from arch/*/Makefile.inc
 1.64 21-Oct-2003  lukem Rework how MAKEVERBOSE operates:

* Don't bother prefixing commands with a line of ${_MKCMD}\
and instead rely upon "make -s". This is less intrusive on
all the Makefiles than the former. Idea from David Laight.

* Rename the variables use to print messages. The scheme now is:
_MKMSG_FOO Run _MKMSG 'foo'
_MKTARGET_FOO Run _MKMSG_FOO ${.TARGET}
From discussion with Alistair Crooks.
 1.63 19-Oct-2003  lukem rework to use the newer _MKMSGCREATE (et al) macros
 1.62 19-Oct-2003  lukem support MAKEVERBOSE
 1.61 25-Mar-2003  scw Add support for shared libraries/dynamically linked binaries on sh5.
With the latest SuperH toolchain, NetBSD/evbsh5 can now
run with a fully dynamic userland (modulo a few remaining
gremlins affecting a couple of binaries).
 1.60 26-Feb-2003  uwe Do not add ${LIBC_PIC} to DPADD if MKPICINSTALL is "no".
 1.59 05-Oct-2002  junyoung Disable DEBUG again.
 1.58 05-Oct-2002  junyoung Don't call _rtld_process_mapping() with null string.
 1.57 27-Sep-2002  thorpej Only use the MKDYNAMICROOT semantics (i.e. -rpath=/lib,/usr/lib and
-dynamic-linker=/libexec/ld.elf_so) if the BINDIR of the program being
built is /bin or /sbin.

The reason we do this is because now all programs *except* those in
/bin and /sbin (i.e. the "special cases") match the default the compiler
uses, which is what is used for things in e.g. xsrc, pkgsrc, and other
random 3rd party programs.

This is done by decoupling where a shlib is installed from how it
is located. Two new variables, SHLIBINSTALLDIR and SHLINKINSTALLDIR,
contain the former information, and key off MKDYNAMICROOT only. SHLIBDIR
and SHLINKDIR contain the latter, and key off MKDYNAMICROOT and BINDIR.

The SHLIBINSTALLDIR, SHLIBDIR, _LIBSODIR, SHLINKINSTALLDIR, and
SHLINKDIR parameters are moved to a new <bsd.shlib.mk>; see bsd.README
for usage details.
 1.56 26-Sep-2002  mycroft *poof*
-fomit-frame-pointer works on 68k.
 1.55 26-Sep-2002  mycroft -vomit-frame-pointer is buggy on 68k. *sigh*
 1.54 26-Sep-2002  mycroft By default, compile without DEBUG, and with -fomit-frame-pointer.
 1.53 13-Sep-2002  mycroft Turn DEBUG back on by default. It doesn't take much space.
 1.52 31-Aug-2002  mycroft Turn off DEBUG by default, and compile with -O3. (Tested on Alpha, ARM,
x86 and PowerPC.)
 1.51 19-Aug-2002  lukem Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path
 1.50 10-Aug-2002  thorpej Build for "armeb".
 1.49 10-Jul-2002  fredette Add support for dynamic linking on HP PA-RISC.
 1.48 01-Mar-2002  tv branches: 1.48.2;
Don't bomb if the ${DPADD} files are missing -- we want at least one of
them, where the other may not exist, and the linker will fail for us if
both don't exist.
 1.47 04-Feb-2002  thorpej Use ${MACHINE_CPU} to assign ARCHSUBDIR.
 1.46 03-Feb-2002  thorpej Add support for dynamic linking on the SuperH. From Marcus Comstedt,
with some bug fixes (namely, don't forget to consider the addend when
processing relocations) from me.
 1.45 23-Jan-2002  skrll Install the man page on a.out systems as well so that the man set is the
same for all.
 1.44 04-Jan-2002  tv Revert rev. 1.30 (partly). If MKPICINSTALL=no in mk.conf, libc_pic.a will
NOT be installed by the time we build here.

However, allow the link to look in both src/lib/libc and $DESTDIR/usr/lib.
 1.43 28-Dec-2001  lukem - Allow RTLD_DEFAULT_LIBRARY_PATH to be overridden.
- If ${SHLIBDIR} != ${LIBDIR}, then set RTLD_DEFAULT_LIBRARY_PATH to
${SHLIBDIR}:${LIBDIR}
 1.42 28-Dec-2001  lukem if SHLINKDIR != /usr/libexec, install compat symlink
 1.41 28-Dec-2001  lukem * Add user-controlled mk.conf variables
- SHLIBDIR Location to install shared libraries if ${USE_SHLIBDIR}
is "yes". Defaults to "/usr/lib".

- USE_SHLIBDIR If "yes", install shared libraries in ${SHLIBDIR}
instead of ${LIBDIR}. Defaults to "no".
Sets ${_LIBSODIR} to the appropriate value.
This may be set by individual Makefiles as well.

- SHLINKDIR Location of shared linker. Defaults to "/usr/libexec".
If != "/usr/libexec", change the dynamic-linker
encoded in shared programs

* Set USE_SHLIBDIR for libraries used by /bin and /sbin:
libc libcrypt libcrypto libedit libipsec libkvm libm libmi387
libtermcap libutil libz

* If ${_LIBSODIR} != ${LIBDIR}, add symlinks from ${LIBDIR}/${LIB}.so*
to ${_LIBSODIR}/${LIB}.so* for compatibility.

* Always install /sbin/init statically (for now)


The net effect of these changes depends on how the variables are set:

1.) If nothing is set or changed, there is no change from the
current behaviour:
- Static /bin, /sbin, and bits of /usr/*
- Dynamic rest
- Shared linker is /usr/libexec/ld*so

2.) If the following make variables are set:
LDSTATIC=
SHLINKDIR=/lib
SHLIBDIR=/lib
Then the behaviour becomes:
- Dynamic tools
- .so libraries used by /bin and /sbin are installed to /lib,
with symlinks from /usr/lib/lib*so to -> /lib/lib*so
where appropriate
- Shared linker is /lib/ld*so

3.) As per 2.), but add the following variable:
USE_SHLIBDIR=yes
This forces all .so's to be instaleld in /lib (with compat
symlinks), not just those tagged by their Makefiles to be.
Again, compat symlinks are installed
 1.40 14-Dec-2001  thorpej Don't put compiler options into CPPFLAGS.
 1.39 31-Oct-2001  skrll Add a man page for ld.elf_so.
 1.38 15-Jul-2001  matt Enable arm if OBJECT_FMT is ELF. Initialize first few GOT entries for ARM.
 1.37 19-Jun-2001  fvdl Preliminary x86-64 support. Not fully functional yet (toolchain bugs).
 1.36 14-Jan-2001  christos back out previous commit; I found a better way of handling the missing
dependencies.
 1.35 14-Jan-2001  christos Don't use ${OBJS} in the dependency line, cause it is not defined yet.
Also add a .NOTMAIN for good measure.
 1.34 10-Nov-2000  mycroft When dlopen()ing with RTLD_GLOBAL, also make dependent libraries RTLD_GLOBAL.
 1.33 14-Jul-2000  matt Split DEBUG into two lines to make it easier to enable each separately.
 1.32 03-Jul-2000  matt If OBJECT_FMT is ELF and MACHINE_ARCH = vax, build ld.elf_so
 1.31 26-Mar-2000  mycroft Don't try to get libc_pic from the libc compile directory. If we're doing a
build, libc has already been installed.
 1.30 05-Jul-1999  thorpej Protect certain definitions from view by crt0, by wrapping them in
#ifdef _RTLD_SOURCE.

Should fix the "variable page size" build error of crt0 on the SPARC.
 1.29 07-May-1999  thorpej Don't even make depend if we're not going to build ld.elf_so. this is
especially important if the assembler syntax is different.
 1.28 29-Apr-1999  kleink Always use ${MACHINE_ARCH} rather than ${MACHINE}, and reorder architectures
a bit.
 1.27 29-Apr-1999  kleink Add m68k code.
 1.26 19-Mar-1999  thorpej Move the link.h files for the different shlib formats via repository copy,
and rename them to match the executable format. Introduce a new link.h
file which automatically picks the correct header based on the target of
the toolchain.
 1.25 05-Mar-1999  drochner make the mipse[lb]->mips translation really work,
thanks Izumi Tsutsui
 1.24 03-Mar-1999  christos Make this compile without -DRTLD_LOADER and fix printf format problems on
the alpha.
 1.23 03-Mar-1999  jonathan Makefile ${MACHINE_ARCH} changes for mips{eb,el}, as suggested by
Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
 1.22 24-Feb-1999  christos Cleanup global variable access so rtld can be self relocating. Also KNF
reloc.c and move md sparc parts to arch/sparc/mdreloc.c
Now we don't need to load at address 0 on the i386 and the mips should be
trivial to fix.
 1.21 21-Feb-1999  kleink Replace home-grown header file installation with INCS/INCSDIR; from Erik
Bertelsen in PR bin/6869.
 1.20 13-Feb-1999  lukem convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.19 07-Feb-1999  christos Add -DRTLD_DEBUG_RELOC commented out.
 1.18 10-Jan-1999  christos Add i386 bits
 1.17 24-Nov-1998  tsubai Add powerpc support.
 1.16 13-Sep-1998  mrg remove MD asm as(1) comments from sysident.h, placing them in a comment
above the asm() block. now we can share sysident.h across all ports..
change ld.elf_so to be for $MACHINE == sparc64 not sparc (yet!).
 1.15 27-Aug-1998  tv Use -L for libc's objdir in case NOPICINSTALL is set in mk.conf.
 1.14 13-Aug-1998  christos Don't install the ELF link.h in a.out systems!@#$#@
 1.13 04-Aug-1998  tv Use NOPIC to mean "no shared libraries", not NOSHLIB.
 1.12 25-Mar-1998  mhitch Add support for mips.
 1.11 23-Feb-1998  jonathan More table-driven changes for different toolchains:
* new bsd.own.mk variable OBJECT_FMT with values "a.out" or "ELF".
* use OBJECT_FMT in Makefile tests that depend on toolchain.
* Add new bsd.own.mk variable NOSHLIB that, if set indicates a given
port doesnt yet do shared libraries. Set on powerpc.
* Document new feature-test variables in src/share/mk/bsd.README.
Tested on i386, mips, fakedup Alpha environment.
 1.10 25-Oct-1997  cjs Link with the stuff we compiled, rather that whatever random stuff happens
to be installed on the system we're compiling on.
 1.9 23-Oct-1997  jonathan Install our ELF-aware link.h into /usr/include on mips hosts.
 1.8 22-Oct-1997  lukem use CPPFLAGS instead of CFLAGS
 1.7 23-Jun-1997  mrg branches: 1.7.2;
move man pages into share/man.
 1.6 31-May-1997  cjs Back out BUILDDIR and NOINSTALL changes.
 1.5 26-May-1997  cjs branches: 1.5.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.
 1.4 17-Apr-1997  thorpej STRIP -> STRIPFLAG (sign, I guess I forgot to check this one in last night)
 1.3 10-Apr-1997  cgd pull in arch-specific Makefile.inc only if it exists
 1.2 24-Mar-1997  christos - Makefile cleanups
 1.1 16-Dec-1996  cgd First cut at an ELF shared loader. Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.). This runs, but it's
in serious need of cleaning and/or a fair bit of reworking. See the README
file for more information, and a list of things to do.
 1.5.2.3 25-Oct-1997  cjs Update to 1.10.
 1.5.2.2 03-Aug-1997  cjs The include of bsd.own.mk was accidently deleted; put it back in.
 1.5.2.1 01-Aug-1997  cjs update to 1.7
 1.7.2.4 08-May-1998  mycroft Sync with trunk, per request of mycroft.
 1.7.2.3 08-Nov-1997  lukem sync with trunk (approved by thorpej)
 1.7.2.2 27-Oct-1997  mellon Pull rev 1.10 up from trunk (cjs)
 1.7.2.1 23-Oct-1997  mellon Pull rev 1.9 up from trunk
 1.48.2.3 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.48.2.2 17-Nov-2002  lukem Apply patch to fix previous pullup (requested by zuntum in ticket #994)
 1.48.2.1 16-Nov-2002  he Pull up revision 1.50 (via patch, requested by thorpej in ticket #663):
Build for ``armeb''.
 1.75.4.1 03-Sep-2007  wrstuden Sync w/ NetBSD-4-RC_1
 1.75.2.1 19-Jul-2007  liamjfoy Pull up following revision(s) (requested by soren in ticket #774):
build.sh: revision 1.169
gnu/usr.bin/gcc4/backend/Makefile: revision 1.9
sys/arch/evbsh5/README: revision 1.1
distrib/notes/common/contents: revision 1.124
usr.sbin/ndbootd/ndbootd.c: revision 1.12
gnu/lib/libopcodes/arch/sh3eb/defs.mk: revision 1.4
gnu/lib/libbfd/arch/sh3eb/defs.mk: revision 1.8
libexec/ld.elf_so/Makefile: revision 1.78
gnu/dist/binutils/bfd/config.bfd: revision 1.14
doc/HACKS: revision 1.93
distrib/cdrom/current.conf: revision 1.8
gnu/lib/libgcc4/Makefile.inc: revision 1.6
share/mk/sys.mk: revision 1.90
distrib/sets/lists/base/mi: revision 1.700
libexec/ld.elf_so/rtld.c: revision 1.112
distrib/sets/lists/base/mi: revision 1.702
sys/arch/sh5/README: revision 1.1
gnu/lib/libbfd/arch/sh3el/bfd.h: revision 1.7
usr.sbin/traceroute/traceroute.c: revision 1.69
distrib/notes/common/main: revision 1.330
distrib/notes/common/list-setsizes.sh: revision 1.2
sys/arch/Makefile: revision 1.35
gnu/lib/libopcodes/arch/sh3el/defs.mk: revision 1.4
gnu/lib/libbfd/arch/sh3el/defs.mk: revision 1.8
share/mk/bsd.own.mk: revision 1.495
gnu/lib/libbfd/arch/sh3eb/bfd.h: revision 1.7
x11/lib/OSmesa/Makefile: revision 1.20
sys/dev/dkwedge/dkwedge_bsdlabel.c: revision 1.13
gnu/dist/binutils/opcodes/configure.in: revision 1.2
gnu/dist/binutils/opcodes/configure: revision 1.2
gnu/usr.bin/send-pr/categories: revision 1.53
etc/mtree/NetBSD.dist: revision 1.339
sys/arch/README: revision 1.42
lib/libc/gdtoa/Makefile.inc: revision 1.6
usr.bin/crunch/crunchide/Makefile: revision 1.16
sys/lkm/net/bsdcomp/Makefile: revision 1.5
regress/sys/uvm/Makefile: revision 1.6
etc/MAKEDEV.awk: revision 1.18
x11/Xserver/GL/GLcore/Makefile.GLcore: revision 1.10
sys/contrib/dev/ath/netbsd/Makefile.ath.inc: revision 1.14
gnu/lib/libbfd/Makefile: revision 1.42
doc/RESPONSIBLE: revision 1.78
Remove evbsh5.
 1.79.4.2 09-Jan-2008  matt sync with HEAD
 1.79.4.1 06-Nov-2007  matt sync with HEAD
 1.87.8.1 14-Dec-2009  mrg merge from -current:
>rename LD32DIR to MLIBDIR.

>- adjust the logic for compat ldd: add an elf32_compat module and arrange
> for mips64 to build this with MLIBDIR set to o32
>- make mips64 ldd call elf32_compat_ldd as well
>- make mips64 elf64 set MLIBDIR to 64
>- don't need ld.elf_so's Makefile.ld32 files anymore (they are going away
> soon anyway)
>
>tested on amd64 and sparc64, and an earlier version tested on mips64.

>if BSD_MK_COMPAT_FILE is defined, .include it.

>simplify the logic for compat ld.elf_so and move it here. we now can
>find the libc objdir for multiple compat ld.elf_so's, too.
 1.87.4.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.87.2.2 17-Mar-2012  bouyer Pull up following revision(s) via patch (requested by skrll in ticket #1724):
rescue/list.ldd: revision 1.4
lib/libc/dlfcn/dlfcn_elf.c: revision 1.7
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.57
distrib/sets/lists/comp/mi: revision 1.1512
share/man/man3/Makefile: revision 1.56
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.58
usr.bin/ldd/ldd.c: revision 1.15
libexec/ld.elf_so/rtld.h: revision 1.84
share/man/man3/dl_iterate_phdr.3: revision 1.1
libexec/ld.elf_so/rtld.c: revision 1.129
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.44
libexec/ld.elf_so/rtld.h: revision 1.89
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.36
libexec/ld.elf_so/map_object.c: revision 1.41
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.37
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.46
include/link_elf.h: revision 1.10
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.29
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.26
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.34
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.31
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.35
libexec/ld.elf_so/Makefile: revision 1.94
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.32
libexec/ld.elf_so/Makefile: revision 1.95
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.31
libexec/ld.elf_so/Makefile: revision 1.96
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.32
libexec/ld.elf_so/reloc.c: revision 1.98
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.33
sys/sys/exec_elf.h: revision 1.106
libexec/ld.elf_so/rtld.c: revision 1.130
libexec/ld.elf_so/load.c: revision 1.37
libexec/ld.elf_so/rtld.c: revision 1.131
libexec/ld.elf_so/load.c: revision 1.38
libexec/ld.elf_so/rtld.h: revision 1.90
libexec/ld.elf_so/headers.c: revision 1.36
libexec/ld.elf_so/rtld.h: revision 1.95
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.30
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.25
libexec/ld.elf_so/symbol.c: revision 1.50
libexec/ld.elf_so/symbol.c: revision 1.51
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.43
libexec/ld.elf_so/symbol.c: revision 1.52
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.27
libexec/ld.elf_so/symbol.c: revision 1.54
PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
Implement dl_iterate_phdr.
Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.87.2.1 06-Jan-2011  riz Apply patch (requested by mrg in ticket #1499):

src/compat version 2. this allows building any number of alternate
library / program target ABIs. rather than duplicating the list of
subdirs and Makefiles to build, it re-traverses the necessary ones.
details:
- add support for MAKEDIRTARGETENV to share/mk
- renames LD32DIR to MLIBDIR
- fixes library builds for some subdirs (more was built than needed)
- fixes /bin & /sbin apps in compat mode
- reduces complexity in src/compat and the rest of the tree
- updates ldd netbsd32 support
 1.106.2.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.110.6.1 22-Jan-2013  matt Pullup from HEAD:
Add .init_array/.fini_array support (conditionalized on HAVE_INITFINI_ARRAY).
 1.110.2.3 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.110.2.2 30-Oct-2012  yamt sync with head
 1.110.2.1 17-Apr-2012  yamt sync with head
 1.114.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.114.2.1 23-Jun-2013  tls resync from head
 1.120.2.1 23-Jul-2013  riastradh sync with HEAD
 1.133.2.2 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.133.2.1 04-Nov-2016  pgoyette Sync with HEAD
 1.136.6.2 09-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #1886):

distrib/sets/lists/debug/mi 1.409 (patch)
distrib/sets/lists/tests/mi 1.1280 (patch)
libexec/ld.elf_so/Makefile 1.145-1.147 (patch)
libexec/ld.elf_so/hash.c 1.1
libexec/ld.elf_so/hash.h 1.1
libexec/ld.elf_so/reloc.c 1.118 (patch)
libexec/ld.elf_so/rtld.c 1.215 (patch)
libexec/ld.elf_so/rtld.h 1.145,1.147 (patch)
libexec/ld.elf_so/symbol.c 1.74-1.76 (patch)
tests/libexec/ld.elf_so/Makefile 1.21 (patch)
tests/libexec/ld.elf_so/t_hash.c 1.1

The SysV ABI specifies that the symbol hash function should return only 32
bits of hash. Unfortunately due to an implementation bu and the fact that
the return type is unsigned long which is 64 bits in LP64, this can fail
in some cases: "\xff\x0f\x0f\x0f\x0f\x0f\x12". See:
https://maskray.me/blog/2023-04-12-elf-hash-function

From Ed Maste @ FreeBSD:
https://cgit.freebsd.org/src/commit/?id=29e3a06510823edbb91667d21f530d3ec778116d

Need to write Unit Tests for this.

Oops wrong mask.

ld.elf_so: Split SRCS onto multiple lines.
Makes updates easier.
No functional change intended.

ld.elf_so: Sort SRCS.
No functional change intended.

ld.elf_so: Split hash functions into a separate file.
This way we can test them in isolation.
No functional change intended.

ld.elf_so: Add some known-answer tests for hash functions.

Make sure the testing mechanism detects the traditional overflow bug.
 1.136.6.1 04-Jul-2017  martin Pull up following revision(s) (requested by joerg in ticket #64):
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.40
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.41
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.44
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.60
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.32
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.61
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.2
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.50
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.34
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.39
libexec/ld.elf_so/symbol.c: revision 1.68
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.66
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.67
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.68
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.42
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.54
libexec/ld.elf_so/Makefile: revision 1.137
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.32
libexec/ld.elf_so/rtld.h: revision 1.127
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.38
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.42
libexec/ld.elf_so/map_object.c: revision 1.58
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.49
Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.
The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.
Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
Drop symbol number from default branch diagnostic, it isn't set at this
point and most likely not valid either.
Expand symnum, GCC's uninitialized used tracking is too imprecise.
Fix C&P bug. Deal with more MIPS hacks overriding def.
Add last_symnum, move up def and defobj.
Add back symnum, fix debug print.
Replace last use of r_type.
Fix indentation.
Fix indentation.
 1.137.4.3 18-Jan-2019  pgoyette Synch with HEAD
 1.137.4.2 20-Oct-2018  pgoyette Sync with head
 1.137.4.1 25-Jun-2018  pgoyette Sync with HEAD
 1.138.2.3 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.138.2.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.138.2.1 10-Jun-2019  christos Sync with HEAD
 1.141.2.2 11-Aug-2023  sborrill Pull up the following revisions(s) (requested by riastradh in ticket #1712):
distrib/sets/lists/debug/mi: revision 1.409 via patch
distrib/sets/lists/tests/mi: revision 1.1280 via patch
libexec/ld.elf_so/Makefile: revision 1.145-1.147 via patch
libexec/ld.elf_so/hash.c: revision 1.1 via patch
libexec/ld.elf_so/hash.h: revision 1.1 via patch
libexec/ld.elf_so/symbol.c: revision 1.74-1.76 via patch
tests/libexec/ld.elf_so/Makefile: revision 1.21 via patch
tests/libexec/ld.elf_so/t_hash.c: revision 1.1 via patch

ld.elf_so: Fix sysv elf hash on edge cases like `ZZZZZW9p' on LP64
platforms where long is 64-bit.
 1.141.2.1 26-Nov-2019  martin Pull up following revision(s) (requested by nakayama in ticket #469):

lib/libc/tls/tls.c: revision 1.10
lib/libc/tls/tls.c: revision 1.11
lib/libc/tls/tls.c: revision 1.12
lib/libc/tls/tls.c: revision 1.13
libexec/ld.elf_so/tls.c: revision 1.13
libexec/ld.elf_so/tls.c: revision 1.14
libexec/ld.elf_so/Makefile: revision 1.142
lib/libc/tls/Makefile.inc: revision 1.3
usr.bin/ldd/Makefile.elf: revision 1.6

PR 54093: Align static TLS area to max_align_t.
Use alignof and not size_t for platforms with non-natural base
alignments.

Mirror the ld.elf_so logic for handling aligning the TLS size.
Most noticable, recompute the start of the TLS area for variant I
relative to the TCB. This makes a difference when the segment size and
base alignment don't agree.

Fix PR/54074 and PR/54093 completely.
More similar to the ld.elf_so logic, it is necessary to align with
p_align first. Also, invert the #ifdef condition for consistency.

Should fix regression for static linking binaries:
http://releng.netbsd.org/b5reports/sparc/commits-2019.11.html#2019.11.10.23.39.03
http://releng.netbsd.org/b5reports/sparc64/commits-2019.11.html#2019.11.16.04.10.33
 1.144.2.2 08-Oct-2023  martin Pull up following revision(s) (requested by rin in ticket #394):

external/gpl3/binutils/dist/gas/config/tc-vax.h: revision 1.10
tools/gcc/Makefile: revision 1.109
external/gpl3/binutils/dist/gas/config/tc-vax.c: revision 1.16
external/gpl3/binutils/dist/gas/config/tc-vax.c: revision 1.17
external/gpl3/binutils/dist/gas/config/tc-vax.c: revision 1.18
external/gpl3/gcc.old/dist/gcc/recog.c: revision 1.12
external/gpl3/gcc.old/dist/gcc/function.c: revision 1.16
external/gpl3/gcc.old/dist/gcc/dse.c: revision 1.14 - 1.16
external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.13
external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.14
external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.15
external/gpl3/gcc.old/dist/gcc/doc/tm.texi.in: revision 1.10
external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.16
external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.17
external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.18
external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.19
external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.12
external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.13
external/gpl3/gcc.old/usr.bin/backend/Makefile: revision 1.20
external/gpl3/gcc.old/dist/gcc/targhooks.c: revision 1.12
external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.14
external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.15
external/gpl3/gcc.old/dist/gcc/config/vax/builtins.md: revision 1.12
external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.16
external/gpl3/gcc.old/dist/gcc/config/vax/builtins.md: revision 1.13
external/gpl3/gcc.old/dist/gcc/doc/tm.texi: revision 1.12
external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.17
external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.18
external/gpl3/gcc.old/dist/gcc/config/vax/elf.h: revision 1.12
external/gpl3/gcc.old/dist/gcc/config/vax/elf.h: revision 1.13
external/gpl3/gcc.old/dist/gcc/targhooks.h: revision 1.12
external/gpl3/gcc.old/dist/gcc/target.def: revision 1.10
external/gpl3/gcc.old/dist/gcc/rtlanal.c: revision 1.14
external/gpl3/gcc.old/dist/gcc/reload.c: revision 1.12
external/gpl3/gcc.old/usr.bin/gcc/Makefile: revision 1.11
external/gpl3/gcc.old/usr.bin/lto-dump/Makefile: revision 1.3
external/gpl3/gcc.old/lib/Makefile.sanitizer: revision 1.7
external/gpl3/binutils.old/lib/libbfd/Makefile: revision 1.10
distrib/utils/x_ping/Makefile: revision 1.9
games/phantasia/Makefile: revision 1.38
external/apache2/argon2/lib/libargon2/Makefile.inc: revision 1.2
external/gpl3/gcc.old/lib/libubsan/Makefile: revision 1.8
external/bsd/mdocml/lib/libmandoc/Makefile: revision 1.13
sbin/ping/Makefile: revision 1.18
sbin/newfs_ext2fs/Makefile: revision 1.7
sys/lib/libz/Makefile: revision 1.24
sys/lib/libsa/Makefile: revision 1.97
external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile: revision 1.3
external/gpl3/gdb/lib/libgdb/Makefile: revision 1.36
sys/modules/lfs/Makefile: revision 1.11
external/mit/xorg/lib/gallium/Makefile: revision 1.51
external/gpl3/gdb.old/lib/libdecnumber/Makefile: revision 1.10
external/mit/xorg/lib/libX11/Makefile.libx11: revision 1.26
libexec/ld.elf_so/Makefile: revision 1.148
external/bsd/jemalloc/lib/Makefile.inc: revision 1.16
external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile: revision 1.14
crypto/external/bsd/openssh/lib/Makefile: revision 1.38
external/gpl3/gcc.old/usr.bin/backend/Makefile: revision 1.21
external/gpl3/gcc.old/usr.bin/cc1/Makefile: revision 1.12
external/gpl3/gcc.old/lib/libasan/Makefile: revision 1.11
external/gpl3/gcc.old/usr.bin/cc1plus/Makefile: revision 1.13
lib/libcrypt/Makefile: revision 1.36
external/gpl3/gdb/lib/libdecnumber/Makefile: revision 1.5
lib/libc/gdtoa/Makefile.inc: revision 1.13
games/gomoku/Makefile: revision 1.13
sbin/fsdb/Makefile: revision 1.43
external/gpl3/gcc.old/usr.bin/lto1/Makefile: revision 1.9
external/mit/xorg/lib/gallium.old/Makefile: revision 1.8
lib/libbz2/Makefile: revision 1.22
external/gpl3/gcc.old/usr.bin/cc1obj/Makefile: revision 1.12
usr.sbin/mtrace/Makefile: revision 1.14
external/gpl3/gcc.old/usr.bin/cc1obj/Makefile: revision 1.13
sys/arch/vax/conf/Makefile.vax: revision 1.86
sys/rump/fs/lib/liblfs/Makefile: revision 1.18
sbin/fsck_ffs/Makefile.common: revision 1.3
external/gpl3/binutils/lib/libbfd/Makefile: revision 1.27
lib/i18n_module/UTF7/Makefile: revision 1.5
external/gpl3/gcc.old/lib/liblsan/Makefile: revision 1.7
doc/CHANGES (apply patch)
(all external/gpl3/gcc.old/ changes applied to external/gpl3/gcc/)

PR 57646: Import major vax toolchain fix.
 1.144.2.1 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #300):

libexec/ld.elf_so/rtld.h: revision 1.145
libexec/ld.elf_so/symbol.c: revision 1.74
libexec/ld.elf_so/rtld.h: revision 1.147
libexec/ld.elf_so/symbol.c: revision 1.75
libexec/ld.elf_so/symbol.c: revision 1.76
tests/libexec/ld.elf_so/t_hash.c: revision 1.1
libexec/ld.elf_so/Makefile: revision 1.145
libexec/ld.elf_so/Makefile: revision 1.146
libexec/ld.elf_so/Makefile: revision 1.147
libexec/ld.elf_so/reloc.c: revision 1.118
distrib/sets/lists/tests/mi: revision 1.1280
libexec/ld.elf_so/rtld.c: revision 1.215
tests/libexec/ld.elf_so/Makefile: revision 1.21
libexec/ld.elf_so/hash.c: revision 1.1
libexec/ld.elf_so/hash.h: revision 1.1
distrib/sets/lists/debug/mi: revision 1.409

The SysV ABI specifies that the symbol hash function should return only 32
bits of hash. Unfortunately due to an implementation bug and the fact that
the return type is unsigned long which is 64 bits in LP64, this can fail
in some cases: "\xff\x0f\x0f\x0f\x0f\x0f\x12". See:
"https://maskray.me/blog/2023-04-12-elf-hash-function
From Ed Maste @ FreeBSD:
https://cgit.freebsd.org/src/commit/?id=29e3a06510823edbb91667d21f530d3ec778116d

Need to write Unit Tests for this.

Oops wrong mask.

ld.elf_so: Split SRCS onto multiple lines.
Makes updates easier.
No functional change intended.

ld.elf_so: Sort SRCS.
No functional change intended.

ld.elf_so: Split hash functions into a separate file.
This way we can test them in isolation.
No functional change intended.

ld.elf_so: Add some known-answer tests for hash functions.

Make sure the testing mechanism detects the traditional overflow bug.
 1.149.2.1 02-Aug-2025  perseant Sync with HEAD
 1.12 23-Aug-2014  joerg Outdated, kill.
 1.11 24-Nov-2006  wiz s/existance/existence/, from Zafer.
 1.10 13-Sep-2002  mycroft Almost all of the items in here are done.
 1.9 10-Jul-2002  fredette Add support for dynamic linking on HP PA-RISC.
 1.8 20-Dec-2001  thorpej branches: 1.8.2;
Update README. Still not complete.
 1.7 14-Dec-2001  thorpej Garbage-collect the OLD_GOT stuff.
 1.6 20-Aug-1999  christos reflect reality
 1.5 31-May-1999  kleink Update for m68k.
 1.4 01-Mar-1999  christos Reality check.
 1.3 11-Jan-1999  christos Add a few comments about the i386 and others.
 1.2 25-Mar-1998  mhitch Add support for mips.
 1.1 16-Dec-1996  cgd branches: 1.1.2;
First cut at an ELF shared loader. Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.). This runs, but it's
in serious need of cleaning and/or a fair bit of reworking. See the README
file for more information, and a list of things to do.
 1.1.2.1 08-May-1998  mycroft Sync with trunk, per request of mycroft.
 1.8.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.7 22-Jul-2024  riastradh ld.elf_so: Sprinkle comments and references for thread-local storage.

Maybe this will help the TLS business to be less mysterious to the
next traveller to pass by here.

Prompted by PR lib/58154.
 1.6 04-Jun-2023  joerg branches: 1.6.2;
Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).

Fix this by forcing the computation of the correct DSO (the one defining
the symbol).

This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
 1.5 01-Dec-2018  skrll branches: 1.5.2; 1.5.10;
Fix typos
 1.4 10-Mar-2011  joerg branches: 1.4.42; 1.4.44;
Add some clarifications
 1.3 10-Mar-2011  joerg Add source reference for _lwp_makecontext and
__HAVE___LWP_GETPRIVATE_FAST. Fix enumeration.
 1.2 10-Mar-2011  joerg Fix prototype for __tls_get_addr. Add a generic implementation of it
using __tls_get_addr. Update TLS notes.
 1.1 09-Mar-2011  joerg Add TLS support infrastructure. For dynamic binaries, ld.elf_so exports
_rtld_tls_allocate and _rtld_tls_free. libpthread uses this functions to
setup the thread private area of all new threads. ld.elf_so is
responsible for setting up the private area for the initial thread.
Similar functions are called from _libc_init for static binaries, using
dl_iterate_phdr to access the ELF Program Header.

Add test cases to exercise the different TLS storage models. Test cases
are compiled and installed on all platforms, but are skipped on
platforms not marked for TLS support.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.

It is inspired by the TLS support in FreeBSD by Doug Rabson and the
clean ups of the DragonFly port of the original FreeBSD modifications.
 1.4.44.1 10-Jun-2019  christos Sync with HEAD
 1.4.42.1 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.5.10.2 07-Aug-2024  martin Pull up following revision(s) (requested by riastradh in ticket #777):

libexec/ld.elf_so/tls.c: revision 1.15
libexec/ld.elf_so/arch/aarch64/rtld_start.S: revision 1.6
libexec/ld.elf_so/arch/aarch64/rtld_start.S: revision 1.7
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.15
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.16
libexec/ld.elf_so/README.TLS: revision 1.7
libexec/ld.elf_so/tls.c: revision 1.20
libexec/ld.elf_so/tls.c: revision 1.21

Alignment. NFCI.

ld.elf_so: Sprinkle comments and references for thread-local storage.

Maybe this will help the TLS business to be less mysterious to the
next traveller to pass by here.
Prompted by PR lib/58154.

ld.elf_so: Add comments explaining DTV allocation size.
Patch by pho@ for PR lib/58154.

tests/libexec/ld.elf_so/t_tls_extern: Test PR lib/58154.

ld.elf_so aarch64/rtld_start.S: Sprinkle comments.
No functional change intended.
Prompted by PR lib/58154.

ld.elf_so aarch64/rtld_start.S: Fix dynamic TLS fast path branch.
Bug found and patch prepared by pho@.
PR lib/58154
 1.5.10.1 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #297):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44
(all via patch)

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen
(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.
(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.
(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.
PR pkg/57445
Fix MKDEBUGLIB build by adding these installed files to the debug
set list.
XXX
One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.
Fix markup of libh_ MKDEBUGLIB=yes only files
TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.5.2.2 07-Aug-2024  martin Pull up following revision(s) (requested by riastradh in ticket #1864):

libexec/ld.elf_so/tls.c: revision 1.15
libexec/ld.elf_so/arch/aarch64/rtld_start.S: revision 1.6
libexec/ld.elf_so/arch/aarch64/rtld_start.S: revision 1.7
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.15
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.16
libexec/ld.elf_so/README.TLS: revision 1.7
libexec/ld.elf_so/tls.c: revision 1.20
libexec/ld.elf_so/tls.c: revision 1.21

Alignment. NFCI.

ld.elf_so: Sprinkle comments and references for thread-local storage.

Maybe this will help the TLS business to be less mysterious to the
next traveller to pass by here.
Prompted by PR lib/58154.

ld.elf_so: Add comments explaining DTV allocation size.
Patch by pho@ for PR lib/58154.

tests/libexec/ld.elf_so/t_tls_extern: Test PR lib/58154.

ld.elf_so aarch64/rtld_start.S: Sprinkle comments.
No functional change intended.
Prompted by PR lib/58154.

ld.elf_so aarch64/rtld_start.S: Fix dynamic TLS fast path branch.
Bug found and patch prepared by pho@.
PR lib/58154
 1.5.2.1 04-Aug-2023  martin Pull up following revision(s), all via patch,
(requested by riastradh in ticket #1699):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.

This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.

PR pkg/57445

Fix MKDEBUGLIB build by adding these installed files to the debug
set list.

One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.

Fix markup of libh_ MKDEBUGLIB=yes only files

TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.6.2.1 02-Aug-2025  perseant Sync with HEAD
 1.5 09-Mar-2011  joerg Add TLS support infrastructure. For dynamic binaries, ld.elf_so exports
_rtld_tls_allocate and _rtld_tls_free. libpthread uses this functions to
setup the thread private area of all new threads. ld.elf_so is
responsible for setting up the private area for the initial thread.
Similar functions are called from _libc_init for static binaries, using
dl_iterate_phdr to access the ELF Program Header.

Add test cases to exercise the different TLS storage models. Test cases
are compiled and installed on all platforms, but are skipped on
platforms not marked for TLS support.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.

It is inspired by the TLS support in FreeBSD by Doug Rabson and the
clean ups of the DragonFly port of the original FreeBSD modifications.
 1.4 04-Mar-2006  skrll Remove the LD_BIND_NOW item
 1.3 26-Feb-2005  skrll Update and be more descriptive about one of the machine specific #ifdefs
 1.2 15-Feb-2004  enami branches: 1.2.4;
Don't assume past the mmaped region is accessible.
 1.1 24-Sep-2003  mycroft Some notes...
 1.2.4.2 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.2.4.1 15-Feb-2004  tron file TODO was added on branch netbsd-1-6 on 2004-05-28 08:31:22 +0000
 1.1 17-Oct-2018  joerg branches: 1.1.2; 1.1.4;
Move compatibility for pre-2.0 ELF binaries into separate file.
Early ELF binaries defined dlopen and friends in crt0.o by
using function pointers in the object handle passed from rtld.
This contract wastes space when many shared objects are allocated
and ties dynamic linker and rest of the system tightly together.
Fake the entry points in a static object and restrict them to the
platforms that had working ELF support at the time. Keep the magic and
version field used by modern crt0.o for all architectures. The checks
will be removed from crt0.o in a follow-up step.
 1.1.4.2 10-Jun-2019  christos Sync with HEAD
 1.1.4.1 17-Oct-2018  christos file compat.c was added on branch phil-wifi on 2019-06-10 22:05:29 +0000
 1.1.2.2 20-Oct-2018  pgoyette Sync with head
 1.1.2.1 17-Oct-2018  pgoyette file compat.c was added on branch pgoyette-compat on 2018-10-20 06:58:22 +0000
 1.6 22-Oct-2004  skrll Add __RCSIDs.

OK'd by mycroft.
 1.5 22-Sep-2003  enami Space after the keyword `if'.
 1.4 05-Jun-2003  simonb KNF- blank lines before code at start of functions.
 1.3 26-May-2002  wiz __STDC__ is always defined on NetBSD.
 1.2 01-Mar-1999  christos branches: 1.2.12;
KNF
 1.1 16-Dec-1996  cgd First cut at an ELF shared loader. Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.). This runs, but it's
in serious need of cleaning and/or a fair bit of reworking. See the README
file for more information, and a list of things to do.
 1.2.12.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.8 03-Aug-2024  riastradh ld.elf_so(1): Nix trailing whitespace.

No functional change intended.
 1.7 03-Aug-2013  skrll branches: 1.7.38;
Fix DEBUG build.
 1.6 06-May-2013  skrll Trailing whitespace
 1.5 12-Sep-2002  mycroft branches: 1.5.54; 1.5.60;
Nuke -DRTLD_RELOCATE_SELF and `dodebug' from orbit.
 1.4 01-Mar-1999  christos branches: 1.4.12;
KNF
 1.3 24-Feb-1999  christos Cleanup global variable access so rtld can be self relocating. Also KNF
reloc.c and move md sparc parts to arch/sparc/mdreloc.c
Now we don't need to load at address 0 on the i386 and the mips should be
trivial to fix.
 1.2 10-Jan-1999  christos Add __attribute__ for printf like commands.
 1.1 16-Dec-1996  cgd First cut at an ELF shared loader. Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.). This runs, but it's
in serious need of cleaning and/or a fair bit of reworking. See the README
file for more information, and a list of things to do.
 1.4.12.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.5.60.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.5.60.1 23-Jun-2013  tls resync from head
 1.5.54.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.7.38.1 02-Aug-2025  perseant Sync with HEAD
 1.2 16-Mar-2012  joerg branches: 1.2.2;
This version of __diagssert13 is dead.
 1.1 15-Mar-2012  christos Add __diagassert13() so that if libc is compiled with _DIAGNOSTIC, it does
not end up bringing in all of stdio.
XXX: This is temporary.
 1.2.2.2 17-Apr-2012  yamt sync with head
 1.2.2.1 16-Mar-2012  yamt file diagassert.c was added on branch yamt-pagecache on 2012-04-17 00:05:36 +0000
 1.8 02-May-2025  riastradh ld.elf_so: Use __sysctl() syscall stub rather than sysctl() wrapper.

This avoids pulling in some unnecessary junk from libc, saving on a
couple kilobytes of space and some relative relocations at runtime.

PR lib/59387: ld.elf_so: needlessly includes libc/gen/sysctl.c user.*
 1.7 04-Jan-2023  christos branches: 1.7.2;
make the what argument size_t since we are passing in size_t
 1.6 06-May-2013  skrll Trailing whitespace
 1.5 28-Apr-2008  martin branches: 1.5.4; 1.5.26;
Remove clause 3 and 4 from TNF licenses
 1.4 20-Sep-2007  christos branches: 1.4.6;
delete debug printf
make regress compile again.
 1.3 20-Sep-2007  christos Use AT_SUN_EXECPATH instead of argv[0] for the executable name. This needs
kernel support, which is not there yet, thus $ORIGIN is broken at this time.
This is ok, nothing uses it yet.
 1.2 18-May-2007  christos branches: 1.2.4;
fix a comment.
 1.1 18-May-2007  christos Support Solaris-like $ORIGIN etc. expansions in paths.
 1.2.4.1 06-Nov-2007  matt sync with HEAD
 1.4.6.1 18-May-2008  yamt sync with head.
 1.5.26.1 23-Jun-2013  tls resync from head
 1.5.4.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.7.2.1 02-Aug-2025  perseant Sync with HEAD
 1.1 30-Jul-2023  riastradh branches: 1.1.2; 1.1.4; 1.1.6;
ld.elf_so: Split hash functions into a separate file.

This way we can test them in isolation.

No functional change intended.
 1.1.6.2 11-Aug-2023  sborrill Pull up the following revisions(s) (requested by riastradh in ticket #1712):
distrib/sets/lists/debug/mi: revision 1.409 via patch
distrib/sets/lists/tests/mi: revision 1.1280 via patch
libexec/ld.elf_so/Makefile: revision 1.145-1.147 via patch
libexec/ld.elf_so/hash.c: revision 1.1 via patch
libexec/ld.elf_so/hash.h: revision 1.1 via patch
libexec/ld.elf_so/symbol.c: revision 1.74-1.76 via patch
tests/libexec/ld.elf_so/Makefile: revision 1.21 via patch
tests/libexec/ld.elf_so/t_hash.c: revision 1.1 via patch

ld.elf_so: Fix sysv elf hash on edge cases like `ZZZZZW9p' on LP64
platforms where long is 64-bit.
 1.1.6.1 30-Jul-2023  sborrill file hash.c was added on branch netbsd-9 on 2023-08-11 12:13:10 +0000
 1.1.4.2 09-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #1886):

distrib/sets/lists/debug/mi 1.409 (patch)
distrib/sets/lists/tests/mi 1.1280 (patch)
libexec/ld.elf_so/Makefile 1.145-1.147 (patch)
libexec/ld.elf_so/hash.c 1.1
libexec/ld.elf_so/hash.h 1.1
libexec/ld.elf_so/reloc.c 1.118 (patch)
libexec/ld.elf_so/rtld.c 1.215 (patch)
libexec/ld.elf_so/rtld.h 1.145,1.147 (patch)
libexec/ld.elf_so/symbol.c 1.74-1.76 (patch)
tests/libexec/ld.elf_so/Makefile 1.21 (patch)
tests/libexec/ld.elf_so/t_hash.c 1.1

The SysV ABI specifies that the symbol hash function should return only 32
bits of hash. Unfortunately due to an implementation bu and the fact that
the return type is unsigned long which is 64 bits in LP64, this can fail
in some cases: "\xff\x0f\x0f\x0f\x0f\x0f\x12". See:
https://maskray.me/blog/2023-04-12-elf-hash-function

From Ed Maste @ FreeBSD:
https://cgit.freebsd.org/src/commit/?id=29e3a06510823edbb91667d21f530d3ec778116d

Need to write Unit Tests for this.

Oops wrong mask.

ld.elf_so: Split SRCS onto multiple lines.
Makes updates easier.
No functional change intended.

ld.elf_so: Sort SRCS.
No functional change intended.

ld.elf_so: Split hash functions into a separate file.
This way we can test them in isolation.
No functional change intended.

ld.elf_so: Add some known-answer tests for hash functions.

Make sure the testing mechanism detects the traditional overflow bug.
 1.1.4.1 30-Jul-2023  martin file hash.c was added on branch netbsd-8 on 2023-08-09 16:16:40 +0000
 1.1.2.2 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #300):

libexec/ld.elf_so/rtld.h: revision 1.145
libexec/ld.elf_so/symbol.c: revision 1.74
libexec/ld.elf_so/rtld.h: revision 1.147
libexec/ld.elf_so/symbol.c: revision 1.75
libexec/ld.elf_so/symbol.c: revision 1.76
tests/libexec/ld.elf_so/t_hash.c: revision 1.1
libexec/ld.elf_so/Makefile: revision 1.145
libexec/ld.elf_so/Makefile: revision 1.146
libexec/ld.elf_so/Makefile: revision 1.147
libexec/ld.elf_so/reloc.c: revision 1.118
distrib/sets/lists/tests/mi: revision 1.1280
libexec/ld.elf_so/rtld.c: revision 1.215
tests/libexec/ld.elf_so/Makefile: revision 1.21
libexec/ld.elf_so/hash.c: revision 1.1
libexec/ld.elf_so/hash.h: revision 1.1
distrib/sets/lists/debug/mi: revision 1.409

The SysV ABI specifies that the symbol hash function should return only 32
bits of hash. Unfortunately due to an implementation bug and the fact that
the return type is unsigned long which is 64 bits in LP64, this can fail
in some cases: "\xff\x0f\x0f\x0f\x0f\x0f\x12". See:
"https://maskray.me/blog/2023-04-12-elf-hash-function
From Ed Maste @ FreeBSD:
https://cgit.freebsd.org/src/commit/?id=29e3a06510823edbb91667d21f530d3ec778116d

Need to write Unit Tests for this.

Oops wrong mask.

ld.elf_so: Split SRCS onto multiple lines.
Makes updates easier.
No functional change intended.

ld.elf_so: Sort SRCS.
No functional change intended.

ld.elf_so: Split hash functions into a separate file.
This way we can test them in isolation.
No functional change intended.

ld.elf_so: Add some known-answer tests for hash functions.

Make sure the testing mechanism detects the traditional overflow bug.
 1.1.2.1 30-Jul-2023  martin file hash.c was added on branch netbsd-10 on 2023-08-01 17:03:53 +0000
 1.1 30-Jul-2023  riastradh branches: 1.1.2; 1.1.4; 1.1.6;
ld.elf_so: Split hash functions into a separate file.

This way we can test them in isolation.

No functional change intended.
 1.1.6.2 11-Aug-2023  sborrill Pull up the following revisions(s) (requested by riastradh in ticket #1712):
distrib/sets/lists/debug/mi: revision 1.409 via patch
distrib/sets/lists/tests/mi: revision 1.1280 via patch
libexec/ld.elf_so/Makefile: revision 1.145-1.147 via patch
libexec/ld.elf_so/hash.c: revision 1.1 via patch
libexec/ld.elf_so/hash.h: revision 1.1 via patch
libexec/ld.elf_so/symbol.c: revision 1.74-1.76 via patch
tests/libexec/ld.elf_so/Makefile: revision 1.21 via patch
tests/libexec/ld.elf_so/t_hash.c: revision 1.1 via patch

ld.elf_so: Fix sysv elf hash on edge cases like `ZZZZZW9p' on LP64
platforms where long is 64-bit.
 1.1.6.1 30-Jul-2023  sborrill file hash.h was added on branch netbsd-9 on 2023-08-11 12:13:10 +0000
 1.1.4.2 09-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #1886):

distrib/sets/lists/debug/mi 1.409 (patch)
distrib/sets/lists/tests/mi 1.1280 (patch)
libexec/ld.elf_so/Makefile 1.145-1.147 (patch)
libexec/ld.elf_so/hash.c 1.1
libexec/ld.elf_so/hash.h 1.1
libexec/ld.elf_so/reloc.c 1.118 (patch)
libexec/ld.elf_so/rtld.c 1.215 (patch)
libexec/ld.elf_so/rtld.h 1.145,1.147 (patch)
libexec/ld.elf_so/symbol.c 1.74-1.76 (patch)
tests/libexec/ld.elf_so/Makefile 1.21 (patch)
tests/libexec/ld.elf_so/t_hash.c 1.1

The SysV ABI specifies that the symbol hash function should return only 32
bits of hash. Unfortunately due to an implementation bu and the fact that
the return type is unsigned long which is 64 bits in LP64, this can fail
in some cases: "\xff\x0f\x0f\x0f\x0f\x0f\x12". See:
https://maskray.me/blog/2023-04-12-elf-hash-function

From Ed Maste @ FreeBSD:
https://cgit.freebsd.org/src/commit/?id=29e3a06510823edbb91667d21f530d3ec778116d

Need to write Unit Tests for this.

Oops wrong mask.

ld.elf_so: Split SRCS onto multiple lines.
Makes updates easier.
No functional change intended.

ld.elf_so: Sort SRCS.
No functional change intended.

ld.elf_so: Split hash functions into a separate file.
This way we can test them in isolation.
No functional change intended.

ld.elf_so: Add some known-answer tests for hash functions.

Make sure the testing mechanism detects the traditional overflow bug.
 1.1.4.1 30-Jul-2023  martin file hash.h was added on branch netbsd-8 on 2023-08-09 16:16:40 +0000
 1.1.2.2 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #300):

libexec/ld.elf_so/rtld.h: revision 1.145
libexec/ld.elf_so/symbol.c: revision 1.74
libexec/ld.elf_so/rtld.h: revision 1.147
libexec/ld.elf_so/symbol.c: revision 1.75
libexec/ld.elf_so/symbol.c: revision 1.76
tests/libexec/ld.elf_so/t_hash.c: revision 1.1
libexec/ld.elf_so/Makefile: revision 1.145
libexec/ld.elf_so/Makefile: revision 1.146
libexec/ld.elf_so/Makefile: revision 1.147
libexec/ld.elf_so/reloc.c: revision 1.118
distrib/sets/lists/tests/mi: revision 1.1280
libexec/ld.elf_so/rtld.c: revision 1.215
tests/libexec/ld.elf_so/Makefile: revision 1.21
libexec/ld.elf_so/hash.c: revision 1.1
libexec/ld.elf_so/hash.h: revision 1.1
distrib/sets/lists/debug/mi: revision 1.409

The SysV ABI specifies that the symbol hash function should return only 32
bits of hash. Unfortunately due to an implementation bug and the fact that
the return type is unsigned long which is 64 bits in LP64, this can fail
in some cases: "\xff\x0f\x0f\x0f\x0f\x0f\x12". See:
"https://maskray.me/blog/2023-04-12-elf-hash-function
From Ed Maste @ FreeBSD:
https://cgit.freebsd.org/src/commit/?id=29e3a06510823edbb91667d21f530d3ec778116d

Need to write Unit Tests for this.

Oops wrong mask.

ld.elf_so: Split SRCS onto multiple lines.
Makes updates easier.
No functional change intended.

ld.elf_so: Sort SRCS.
No functional change intended.

ld.elf_so: Split hash functions into a separate file.
This way we can test them in isolation.
No functional change intended.

ld.elf_so: Add some known-answer tests for hash functions.

Make sure the testing mechanism detects the traditional overflow bug.
 1.1.2.1 30-Jul-2023  martin file hash.h was added on branch netbsd-10 on 2023-08-01 17:03:53 +0000
 1.75 02-May-2025  riastradh ld.elf_so: Implement RELR relocations.

The SHT_RELR-type .relr.dyn section, pointed to by the DT_RELR
dynamic tag, holds compressed R_*_RELATIVE-type relocations,
substantially reducing the disk space occupied by many programs.

This commit adds support in ld.elf_so for relocating dynamically
linked executables with RELR relocations.

Reference:

Rahul Chaudhry, `Re: Proposal for a new section type SHT_RELR',
generic-abi mailing list, 2018-02-07.

https://groups.google.com/g/generic-abi/c/bX460iggiKg/m/Jnz1lgLJAgAJ
https://web.archive.org/web/20241213012330/https://groups.google.com/g/generic-abi/c/bX460iggiKg/m/Jnz1lgLJAgAJ

Proposed on tech-userlevel:
https://mail-index.NetBSD.org/tech-userlevel/2025/04/27/msg014727.html

PR bin/59360: ld.elf_so(8): missing RELR support
 1.74 18-Apr-2025  riastradh ld.elf_so on alpha: Add support for secureplt.

ok thorpej

PR port-alpha/57511: ld.elf_so(1) does not support secure PLT for alpha
PR port-alpha/57717: Alpha linker generates LOAD segments (and
generates warnings about them)
 1.73 16-Apr-2025  riastradh ld.elf_so: Teach this to handle MIPS PIE rtld debug data.

Adapt t_rtld_r_debug to handle the two MIPS cases too.

XXX t_rtld_r_debug should be tested both as PIE and non-PIE to
exercise both cases.

Context:

The value of a DT_DEBUG .dynamic entry is initialized at load-time,
by ld.elf_so, to a pointer to a data structure set up by ld.elf_so
describing the shared objects loaded by the executable, so debuggers
can find them from, e.g., core dumps. None of this is really
documented anywhere that I can find. Best reference is this post on
the gdb mailing list from a quarter century ago saying there's no
real documentation:

https://web.archive.org/web/20250414021320/https://sourceware.org/pipermail/gdb/2000-April/004509.html

However, on MIPS, the .dynamic section is mapped read-only, so
ld.elf_so can't properly modify it (I imagine technically it could
with some mprotect shenanigans but that's not how it's done on MIPS).
Instead, the linker reserves a location in read/write memory and uses
a DT_MIPS_RLD_MAP entry with a pointer to that location.

However, in position-independent executables, the .dynamic entry
can't have an absolute pointer to that location because it's not
known up front. Instead, the the linker uses a DT_MIPS_RLD_MAP_REL
entry with the relative offset to that location from the Elf_Dyn
entry itself.

I would add a reference for this but it's basically a matter of UTSL
plus some oblique mentions on the web and mailing list discussions:

https://web.archive.org/web/20250414024823/https://cygwin.com/legacy-ml/binutils/2016-04/msg00244.html
https://web.archive.org/web/20250403151803/https://maskray.me/blog/2023-09-04-toolchain-notes-on-mips
https://web.archive.org/web/20211024050833/https://reviews.llvm.org/D12794?id=34533
https://web.archive.org/web/20250407052145/https://wiki.debian.org/MIPSPort
https://web.archive.org/web/20250414024924/https://reviews.freebsd.org/D17867?id=50122

PR port-mips/59296: t_rtld_r_debug test is failing
 1.72 03-Aug-2024  riastradh ld.elf_so(1): Nix trailing whitespace.

No functional change intended.
 1.71 04-Jan-2023  christos branches: 1.71.2;
comment out a function that is only used in rtld
 1.70 04-Dec-2021  skrll Restore the fptr_t type of {init,fini}{,_array} that was removed when initial
support for indirect functions was added. This fixes {init,fini}_array support
on hppa where each member of the array is (already) a plabel.

Discussed with joerg.

4 files changed, 29 insertions(+), 39 deletions(-)
: ----------------------------------------------------------------------
 1.69 16-May-2020  skrll Fix debug build
 1.68 04-Mar-2020  thorpej PT_GNU_RELRO segments are arranged such that their vaddr + memsz ends
on a linker common page size boundary. However, if the common page size
used by the linker is less than the VM page size being used by the kernel,
this can end up in the middle of a VM page and when the region is write-
protected, this can cause objects in neighboring .data to get incorrectly
write-protected, resulting in a crash.

Avoid this situation by calculating the end of the RELRO region not by
rounding memsz up to the VM page size, but rather by adding vaddr + memsz
and then truncating to the VM page size.

Fixes PR toolchain/55043.

XXX pullup-9
 1.67 29-Feb-2020  kamil Add extra cast to suppress incompatible-pointer-types GCC warning
 1.66 29-Feb-2020  kamil Implement DT_GNU_HASH

DT_GNU_HASH serves the same purpose as DT_HASH, however it is a distinct
and faster apprach implemented and designed in the GNU toolchain in 2006.

DT_GNU_HASH is preferred whenever available.

Original GNU benchmarks claim 50% faster dynamic linking time.
https://www.sourceware.org/ml/binutils/2006-06/msg00418.html

Code based on FreeBSD and OpenBSD, both were based on DragonFlyBSD.
 1.65 30-Dec-2018  martin branches: 1.65.2;
Add support for DT_RUNPATH - it is just the same as we always have treated
DT_RPATH. Approved by core.
 1.64 24-Jul-2018  joerg Apply relocbase for tlsinit of the executable itself. Fixes PIE where
relocbase typically is not zero.

PR bin/53465
 1.63 24-May-2018  christos branches: 1.63.2;
rename flag to the official name.
 1.62 23-Jun-2017  joerg branches: 1.62.4;
Remove old assert that only two segments exist. The rest of the code has
been changed to cope with more and at least Go actively creates them.
Adjust the mapping size computation to use the maximum and not depend on
PT_LOAD segments to be in order.
 1.61 14-Jun-2016  christos branches: 1.61.8;
Add support for GNU RELRO headers from Matthias Weckbecker.
 1.60 22-May-2016  joerg obj->phdr must be the absolute address, not the virtual offset from the
main binary. Historically, this has been the same. For PIE though,
relocbase can be pretty much anywhere. Fixes PR toolchain/51159.
 1.59 26-Aug-2014  joerg Restore parenthesis to cast in the right order.
 1.58 26-Aug-2014  christos fix set but not used.
 1.57 26-Aug-2014  joerg Go back to skipping init/fini handling for ldd, makes problems for 32bit
compat on LP64.
 1.56 26-Aug-2014  christos Introduce a cast to fix the build for Elf32 on _LP64.
 1.55 25-Aug-2014  joerg Add basic support for indirect functions. It allows providing a public
function symbol with an implementation choosen at run time.
Refactor calls to functions by address in ld.elf_so to create temporary
function descriptors on the stack, if the address is not leaked outside.

Limitations:
- no support for initialising static storage with function pointers
- no support for unnamed resolver functions

Inspired by FreeBSD's r228435 by kib@freebsd.org.
 1.54 07-Mar-2014  matt branches: 1.54.4;
Make ldd happy
 1.53 06-Mar-2014  matt More PPC64 changes.
Nothing to do for lazy bindings.
Record DT_PPC64_GLINK and make _rtld_bind return it.
When resolving a JMP_SLOT, copy the source function descriptor into the PLTGOT
 1.52 03-Aug-2013  skrll Fix DEBUG build.
 1.51 06-May-2013  christos Fixed handling of DT_SONAME:

- add function to add name aliases for shared libraries loaded
XXX[1]: we don't add a name during load time, only when DT_SONAME
is present.
- search already loaded objects in load_by_name for an already
loaded object that matches our name and return it.
- add missing initialization and cleanup for obj->names
XXX[2]: should we make them SIMPLEQ?
- Add XXX in rtld.c about getting the name of an object.

NB: This makes the jdk work again without resorting to a hack of putting
the build path of libjvm.so into the run path (which is a security
problem).
XXX: Pullup-6?
 1.50 06-May-2013  skrll Trailing whitespace
 1.49 06-May-2013  skrll Add some DEBUG code.
 1.48 02-May-2013  matt Print out PT_DYNAMIC address for objmain.
Print out &_DYNAMIC too.
 1.47 25-Apr-2013  matt Use phdr as start of phdrs (duh)
 1.46 25-Apr-2013  matt Use ph, not phdr, consistently.
 1.45 25-Apr-2013  matt Don't assume that PT_PHDR is always first.
 1.44 24-Apr-2013  matt Add support for PT_ARM_EXIDX and __gnu_Unwind_Find_exidx for libgcc's support
of the ARM EHABI.
 1.43 15-Aug-2012  matt branches: 1.43.2;
Add .init_array/.fini_array support (conditionalized on HAVE_INITFINI_ARRAY).
 1.42 22-Jul-2012  martin Remove a debug assert that does not hold for PIE (e.g. phdr = 0x40, but
obj has not been mapped at 0, so obj->phdr is 0x100040).
OK: skrll
 1.41 25-Jun-2011  nonaka branches: 1.41.2; 1.41.4;
PR/45015: ld.elf_so: support ELF symbol versioning
Applied latest patch.
 1.40 09-Mar-2011  joerg Add TLS support infrastructure. For dynamic binaries, ld.elf_so exports
_rtld_tls_allocate and _rtld_tls_free. libpthread uses this functions to
setup the thread private area of all new threads. ld.elf_so is
responsible for setting up the private area for the initial thread.
Similar functions are called from _libc_init for static binaries, using
dl_iterate_phdr to access the ELF Program Header.

Add test cases to exercise the different TLS storage models. Test cases
are compiled and installed on all platforms, but are skipped on
platforms not marked for TLS support.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.

It is inspired by the TLS support in FreeBSD by Doug Rabson and the
clean ups of the DragonFly port of the original FreeBSD modifications.
 1.39 16-Jan-2011  matt Add secure-plt support for powerpc to ld.elf_so. As part of this, we have to
stop calling into the GOT/_DYNAMIC since they are no longer executable.
 1.38 24-Dec-2010  skrll Add support for DF_1_BIND_NOW, DF_1_NODELETE and DF_1_NOOPEN marked
objects, and the RTLD_NODELETE and RTLD_NOLOAD flags to dlopen(3).

Mark libpthread as DF_1_NOOPEN and use it to test the functionality.

Somewhat taken from FreeBSD.

Fixes PR 42029.

OK from christos and joerg.
 1.37 16-Oct-2010  skrll Add cast so that usr.bin/ldd/elf32 builds.
 1.36 16-Oct-2010  skrll Implement dl_iterate_phdr.

Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.35 15-Oct-2010  skrll Revert previous for now. It's part of a larger commit which will arrive
soon.
 1.34 15-Oct-2010  skrll Be more tolerant to the location of PT_PHDR in the segment list.
 1.33 30-Sep-2010  skrll Oops. Remove trailing whitespace in previous.
 1.32 30-Sep-2010  skrll Improve debug output.
 1.31 30-Sep-2010  skrll Introduce a new type Elf_Symindx for use in decoding the symbol hash table
section and allow this type to be overridden.

The ELF specification says it should always be uint32_t (Elf_Word), but
alpha decided to be different (not sure why). Define Elf_Symindx to be
uint64_t on alpha.

Alpha no longer uses non-standard definitions of Elf64_Sword and
Elf64_Word. Remove the ability to override these types.

Fixes ld.elf_so after Herculean effort from me and martin.
 1.30 23-Sep-2010  joerg Avoid casting from d_val to plttype of different signedness.
Just two booleans for the same purpose.
 1.29 05-Apr-2010  joerg Use fast_remainder32 for the ELF hash. For the hot cache case, this
speeds up Firefox startup by over 2% on AMD64.
Limit hash table buckets to 32bit.
 1.28 12-Apr-2009  lukem Fix const issues (cast const pointers to "const uint8_t *" instead of "caddr_t")
 1.27 06-Jan-2009  mrg branches: 1.27.2;
add some (uintptr_t) to some casts, so these compile with ELFSIZE=32
*and _LP64. necessary for 32/64 bit combo ldd support.
 1.26 29-Dec-2007  christos branches: 1.26.10;
make this compile again.
 1.25 28-Dec-2007  christos simplify; mapbase == vaddrbase from the PaX author.
 1.24 26-Dec-2007  christos Deal with ASLR PIE executables, by recognizing that phdr != phdr->v_addr
for PT_PHDR headers when the program has been loader to a vaddr other than
then one specified (a randomized one), and modifying the relocation base
address appropriately (idea from elad)
 1.23 07-Dec-2007  ad rtld changes for PR bin/37347:

- Apply patch from J.T. Conklin to execute .init/.fini functions in order.
- Support DF_1_INITFIRST and mark libc with DF_1_INITFIRST. Shared libs
should be recording a dependency on libc, but it's too late to do that.

Ok christos@.
 1.22 20-Sep-2007  christos Use AT_SUN_EXECPATH instead of argv[0] for the executable name. This needs
kernel support, which is not there yet, thus $ORIGIN is broken at this time.
This is ok, nothing uses it yet.
 1.21 18-May-2007  christos branches: 1.21.4;
Support Solaris-like $ORIGIN etc. expansions in paths.
 1.20 09-Jan-2005  simonb Don't process DT_DEBUG on MIPS as the dynamic section is mapped
read-only. DT_MIPS_RLD_MAP is used instead.

Patch from Nick Hudson.
 1.19 22-Oct-2004  skrll Add __RCSIDs.

OK'd by mycroft.
 1.18 24-Jul-2003  skrll ANSIfy and de-__P().
 1.17 05-Oct-2002  mycroft Minor cleanup.
 1.16 04-Oct-2002  mycroft Rearrange _rtld_map_object() a little, so that we don't have to have the first
page of the object double-mapped. Not that it matters much, but someone was
whinging about it.
While I'm at it, nuke obj->phdr and obj->phsize; they're unused.
 1.15 26-Sep-2002  mycroft Don't bogusly set obj->pltrela{,lim} if there is no DT_PLTREL.
 1.14 25-Sep-2002  mycroft #if defined -> #ifdef
 1.13 13-Sep-2002  mycroft Figure out obj->pltrel(a) after the dynamic section is parsed, so the relative
order of DT_PLTREL and DT_JMPREL is irrelevant. Removes the need for yet
another weird #ifdef.
Also, be slightly more careful with the rel(a)lim trimming.
 1.12 12-Sep-2002  mycroft Nuke -DRTLD_RELOCATE_SELF and `dodebug' from orbit.
 1.11 05-Sep-2002  mycroft If REL(A)SZ extends into .rel(a).plt, trim rel(a)lim. This is actually due to
what is arguably a bug in BFD on some platforms (at least PPC and SPARC), but
I can't fix old binaries.
 1.10 10-Jul-2002  fredette Add support for dynamic linking on HP PA-RISC.
 1.9 25-Apr-2001  kleink branches: 1.9.2;
Sync with <sys/exec_elf.h> rev. 1.45: ElfNN_RelA -> ElfNN_Rela.
 1.8 26-Jul-2000  mycroft Catch up with type changes. Also:
* Apply DT_PLTRELSZ to (one of) pltrel or pltrela *after* we've finished
parsing the headers, so we know which one.
* Fix sparc64 bogons. (It works now!)
 1.7 18-Jul-2000  eeh Fix some issues with SPARC V9 ELF binaries.
 1.6 07-Nov-1999  mycroft branches: 1.6.4;
Changes from msaitoh to fix local/global symbol confusion, and to fix weak
symbol support -- updated by me for elf.h changes.
 1.5 25-Oct-1999  kleink Update to match new SVR4-style definition names in <sys/exec_elf.h>.
 1.4 01-Mar-1999  christos branches: 1.4.4;
KNF
 1.3 24-Feb-1999  christos Cleanup global variable access so rtld can be self relocating. Also KNF
reloc.c and move md sparc parts to arch/sparc/mdreloc.c
Now we don't need to load at address 0 on the i386 and the mips should be
trivial to fix.
 1.2 25-Mar-1998  mhitch Add support for mips.
 1.1 16-Dec-1996  cgd branches: 1.1.2;
First cut at an ELF shared loader. Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.). This runs, but it's
in serious need of cleaning and/or a fair bit of reworking. See the README
file for more information, and a list of things to do.
 1.1.2.1 08-May-1998  mycroft Sync with trunk, per request of mycroft.
 1.4.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.6.4.2 01-May-2001  he Pull up revision 1.9 (requested by kleink):
Rename ElfNN_RelA to ElfNN_Rela, which is what SVR4 ABIs and the
rest of the world uses. Fixes PR#12274.
 1.6.4.1 26-Jul-2000  mycroft Approved by thorpej:
Add support for sparc64, including MD code and variable page size support.
Modify some variable types to insure they are the correct width on sparc64.

basesrc/libexec/ld.elf_so/arch/sparc64/Makefile.inc 0 -> 1.1
basesrc/libexec/ld.elf_so/arch/sparc64/mdreloc.c 0 -> 1.3
basesrc/libexec/ld.elf_so/arch/sparc64/rtld_start.S 0 -> 1.2
basesrc/libexec/ld.elf_so/headers.c 1.6 -> 1.8
basesrc/libexec/ld.elf_so/reloc.c 1.26 -> 1.27
basesrc/libexec/ld.elf_so/reloc.c 1.29 -> 1.31
basesrc/libexec/ld.elf_so/rtld.c 1.34 -> 1.35
basesrc/libexec/ld.elf_so/rtld.c 1.36 -> 1.40
basesrc/libexec/ld.elf_so/rtld.h 1.26 -> 1.27
basesrc/libexec/ld.elf_so/symbol.c 1.7 -> 1.9
 1.9.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.21.4.2 09-Jan-2008  matt sync with HEAD
 1.21.4.1 06-Nov-2007  matt sync with HEAD
 1.26.10.3 18-Mar-2012  bouyer Apply patch, requested by skrll in ticket 1724:
libexec/ld.elf_so/headers.c 1.37 via patch
Add cast so that usr.bin/ldd/elf32 builds.
 1.26.10.2 17-Mar-2012  bouyer Pull up following revision(s) via patch (requested by skrll in ticket #1724):
rescue/list.ldd: revision 1.4
lib/libc/dlfcn/dlfcn_elf.c: revision 1.7
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.57
distrib/sets/lists/comp/mi: revision 1.1512
share/man/man3/Makefile: revision 1.56
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.58
usr.bin/ldd/ldd.c: revision 1.15
libexec/ld.elf_so/rtld.h: revision 1.84
share/man/man3/dl_iterate_phdr.3: revision 1.1
libexec/ld.elf_so/rtld.c: revision 1.129
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.44
libexec/ld.elf_so/rtld.h: revision 1.89
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.36
libexec/ld.elf_so/map_object.c: revision 1.41
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.37
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.46
include/link_elf.h: revision 1.10
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.29
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.26
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.34
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.31
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.35
libexec/ld.elf_so/Makefile: revision 1.94
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.32
libexec/ld.elf_so/Makefile: revision 1.95
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.31
libexec/ld.elf_so/Makefile: revision 1.96
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.32
libexec/ld.elf_so/reloc.c: revision 1.98
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.33
sys/sys/exec_elf.h: revision 1.106
libexec/ld.elf_so/rtld.c: revision 1.130
libexec/ld.elf_so/load.c: revision 1.37
libexec/ld.elf_so/rtld.c: revision 1.131
libexec/ld.elf_so/load.c: revision 1.38
libexec/ld.elf_so/rtld.h: revision 1.90
libexec/ld.elf_so/headers.c: revision 1.36
libexec/ld.elf_so/rtld.h: revision 1.95
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.30
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.25
libexec/ld.elf_so/symbol.c: revision 1.50
libexec/ld.elf_so/symbol.c: revision 1.51
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.43
libexec/ld.elf_so/symbol.c: revision 1.52
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.27
libexec/ld.elf_so/symbol.c: revision 1.54
PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
Implement dl_iterate_phdr.
Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.26.10.1 16-Jan-2009  bouyer Pull up following revision(s) (requested by mrg in ticket #265):
libexec/ld.elf_so/headers.c: revision 1.27
rescue/list: revision 1.35
libexec/ld.elf_so/arch/sparc/Makefile.ld32: revision 1.1
usr.bin/ldd/Makefile.elf: revision 1.1
usr.bin/ldd/Makefile.elf: revision 1.2
usr.bin/ldd/ldd_aout/ldd.c: file removal
usr.bin/ldd/Makefile.elf: revision 1.3
libexec/ld.elf_so/arch/sparc/Makefile.inc: revision 1.12
usr.bin/ldd/dummy.c: revision 1.1
gnu/usr.bin/binutils/ld/Makefile: revision 1.28
usr.bin/ldd/elf32/Makefile: revision 1.1
usr.bin/ldd/elf32/Makefile: revision 1.2
usr.bin/ldd/ldd.c: revision 1.3
usr.bin/ldd/elf32/Makefile: revision 1.3
usr.bin/ldd/ldd_elf/Makefile: file removal
usr.bin/ldd/ldd.h: revision 1.1
usr.bin/ldd/ldd.c: revision 1.4
usr.bin/ldd/ldd_aout.c: revision 1.1
usr.bin/ldd/Makefile: revision 1.8
usr.bin/ldd/Makefile: revision 1.9
usr.bin/ldd/ldd_elfxx.c: revision 1.1
libexec/ld.elf_so/map_object.c: revision 1.37
usr.bin/ldd/ldd_aout/Makefile: file removal
usr.bin/ldd/elf64/Makefile: revision 1.1
rescue/Makefile: revision 1.22
libexec/ld.elf_so/arch/i386/Makefile.ld32: revision 1.1
usr.bin/ldd/ldd_elf/ldd.c: file removal
usr.bin/ldd/elf64/Makefile: revision 1.2
usr.bin/ldd/elf64/Makefile: revision 1.3
usr.bin/ldd/aout/Makefile: revision 1.1
libexec/ld.elf_so/arch/i386/Makefile.inc: revision 1.12
rescue/list.ldd: revision 1.1
usr.bin/ldd/ldd_elf/README: file removal
usr.bin/ldd/Makefile.common: revision 1.1
move the defines for RTLD_ARCH_SUBDIR into a sub-sub-makefile so we can
grab these values via reach-over more easily.
some fixes for PR#40170:
- set NATIVE=yes in the environment for genscripts.sh
- set LIB_PATH to /usr/lib/{sparc,i386} for those scripts
- set use_sysroot to "yes", to enable LIB_PATH to work in genscripts.sh
- get rid of building an a.out-happy ldd (but keep supporting a.out
binaries for the ELF version.)
- convert a.out, elf32 and elf64 support into convience libraries and
link them right ones in. if elf_ldd() fails on 64 bit platforms,
try elf32_ldd() before aout_ldd().
now ldd on 64 bit platforms works for 32 bit binaries, aka PR#40199,
and it seems that all the issues from README are gone too.
add some (uintptr_t) to some casts, so these compile with ELFSIZE=32
*and _LP64. necessary for 32/64 bit combo ldd support.
- rework this a bunch to make it work inside /rescue/ldd.
- fix alpha build.
make sure we set LIBISPRIVATE.
fixes build issues reported by moof.
make sure we set LIBISPRIVATE.
fixes build issues reported by moof.
 1.27.2.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.41.4.1 08-Aug-2012  jdc branches: 1.41.4.1.2;
Pull up revisions:
src/libexec/ld.elf_so/headers.c revision 1.42
src/libexec/ld.elf_so/arch/sparc64/mdreloc.c revision 1.53
(requested by martin in ticket #447).

Remove a debug assert that does not hold for PIE (e.g. phdr = 0x40, but
obj has not been mapped at 0, so obj->phdr is 0x100040).
OK: skrll

Add special handling needed for OLO10 relocations.
First part of fixing PR port-sparc64/46724.
 1.41.4.1.2.1 22-Jan-2013  matt Pullup from HEAD:
Add .init_array/.fini_array support (conditionalized on HAVE_INITFINI_ARRAY).
 1.41.2.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.41.2.1 30-Oct-2012  yamt sync with head
 1.43.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.43.2.1 23-Jun-2013  tls resync from head
 1.54.4.1 06-Mar-2016  martin Catch up to -current, via patch, requested by christos in ticket #1126:
 1.61.8.2 26-Jul-2018  snj Pull up following revision(s) (requested by joerg in ticket #940):
libexec/ld.elf_so/headers.c: revision 1.64
Apply relocbase for tlsinit of the executable itself. Fixes PIE where
relocbase typically is not zero.
PR bin/53465
 1.61.8.1 30-Jun-2017  snj Pull up following revision(s) (requested by joerg in ticket #63):
libexec/ld.elf_so/headers.c: revision 1.62
Remove old assert that only two segments exist. The rest of the code has
been changed to cope with more and at least Go actively creates them.
Adjust the mapping size computation to use the maximum and not depend on
PT_LOAD segments to be in order.
 1.62.4.3 18-Jan-2019  pgoyette Synch with HEAD
 1.62.4.2 28-Jul-2018  pgoyette Sync with HEAD
 1.62.4.1 25-Jun-2018  pgoyette Sync with HEAD
 1.63.2.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.63.2.1 10-Jun-2019  christos Sync with HEAD
 1.65.2.1 08-Mar-2020  martin Pull up following revision(s) (requested by thorpej in ticket #758):

libexec/ld.elf_so/map_object.c: revision 1.61
libexec/ld.elf_so/headers.c: revision 1.68
libexec/ld.elf_so/rtld.c: revision 1.203

PT_GNU_RELRO segments are arranged such that their vaddr + memsz ends
on a linker common page size boundary. However, if the common page size
used by the linker is less than the VM page size being used by the kernel,
this can end up in the middle of a VM page and when the region is write-
protected, this can cause objects in neighboring .data to get incorrectly
write-protected, resulting in a crash.

Avoid this situation by calculating the end of the RELRO region not by
rounding memsz up to the VM page size, but rather by adding vaddr + memsz
and then truncating to the VM page size.

Fixes PR toolchain/55043.

XXX pullup-9
 1.71.2.1 02-Aug-2025  perseant Sync with HEAD
 1.22 08-Sep-2024  rillig fix a/an grammar in obvious cases
 1.21 15-Apr-2019  maya branches: 1.21.12;
$ORIGIN support is now enabled.

Thanks martin for the heads up.
 1.20 15-Apr-2019  abhinav Typo: s/a indirection/an indirection/
 1.19 14-Apr-2019  wiz Use more Dv.
 1.18 14-Apr-2019  maya Note that we now search DT_RUNPATH paths as well.
 1.17 03-Jul-2017  wiz branches: 1.17.6;
Remove workaround for ancient HTML generation code.
 1.16 03-Jul-2015  joerg Add an explicit note about the search path used by dlopen(3).
 1.15 17-Dec-2010  wiz Remove superfluous Pp.
 1.14 17-Dec-2010  skrll Remove implementation detail.

Bump date.
 1.13 16-Dec-2010  wiz Note that $ORIGIN kernel support (in kern/kern_exec.c) is currently disabled.
Info from skrll@.
Bump date.
 1.12 25-May-2008  wiz Remove trailing whitespace and superfluous .Pp.
 1.11 30-Apr-2008  martin branches: 1.11.2;
Convert TNF licenses to new 2 clause variant
 1.10 13-Sep-2007  tnn branches: 1.10.6;
5 is not a valid version for .Nx, so change it to 5.0.
 1.9 18-May-2007  christos branches: 1.9.4;
Support Solaris-like $ORIGIN etc. expansions in paths.
 1.8 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.7 29-Sep-2002  wiz Begin new sentences on new lines.
Patch from Robert Elz (kre at munnari oz au).
 1.6 11-Sep-2002  bjh21 Correct somewhere where, in rev 1.3, two new sentences had been dropped
into the middle of an existing sentence, and put them after it instead.
 1.5 08-Sep-2002  wiz Mention that -DDEBUG compilation is needed to get LD_DEBUG support.
Noted by Julio Merino in misc/18231.
 1.4 08-Feb-2002  ross branches: 1.4.2;
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
 1.3 02-Nov-2001  skrll Allow both space and colon as a separator in LD_PRELOAD. Document this and
the fact that space may be retired in the future.

Closes misc/11961

Reviewed by christos
 1.2 01-Nov-2001  wiz Sort SEE ALSO, drop some unnecessary .Pp's, whitespace and misc fixes.
 1.1 31-Oct-2001  skrll Add a man page for ld.elf_so.
 1.4.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.9.4.1 06-Nov-2007  matt sync with HEAD
 1.10.6.2 04-Jun-2008  yamt sync with head
 1.10.6.1 18-May-2008  yamt sync with head.
 1.11.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.17.6.1 10-Jun-2019  christos Sync with HEAD
 1.21.12.1 02-Aug-2025  perseant Sync with HEAD
 1.5 19-Mar-1999  thorpej Move the link.h files for the different shlib formats via repository copy,
and rename them to match the executable format. Introduce a new link.h
file which automatically picks the correct header based on the target of
the toolchain.
 1.4 01-Mar-1999  christos KNF
 1.3 30-Oct-1998  jonathan gdb's shared-lib mapping code in solib.c has #ifdef dependencies on
DT_MIPS_RLD_MAP being defined on mips targets with shared libs. Since
netbsd's gdb config.h defines HAVE_LINK_H, link.h is expected to
provide it. So #include <machine/elf_machdep.h> to make it so.
 1.2 25-Mar-1998  mhitch Add support for mips.
 1.1 16-Dec-1996  cgd branches: 1.1.2;
First cut at an ELF shared loader. Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.). This runs, but it's
in serious need of cleaning and/or a fair bit of reworking. See the README
file for more information, and a list of things to do.
 1.1.2.2 30-Oct-1998  cgd pull up rev 1.3 from trunk (jonathan)
 1.1.2.1 08-May-1998  mycroft Sync with trunk, per request of mycroft.
 1.49 21-Sep-2020  kamil Upgrade the SVR4 RTLD r_debug protocol to version 1

Changes:
- Add a new field r_ldbase in the r_debug struct.
- Set r_version to 1.

This harmonizes the support with OpenBSD and Linux.
FreeBSD uses version 0 (or no version).
Solaris uses version 2 that is not implemented elsewhere and relies on
SVR4 specific design and interfaces.

Update the code comments as r_debug and link_map is used by other software
than GDB, namely: sanitizers, rump, LLDB.
 1.48 10-Jan-2017  christos need <sys/stat.h>
 1.47 27-Nov-2013  christos branches: 1.47.8;
CID 1132773: Fix file descriptor leak
 1.46 20-Nov-2013  skrll If dlopen of the dynamic linker is requested, e.g. by rump in
rumpuser_dl_bootstrap, then return &_rtld_objself as the handle and do
not create a duplicate mapping.

The handle is mostly useless as _rtld_objself doesn't appear on
_rtld_objlist.

This fixes a problem on earm platforms where ld.elf_so (currently) has
an init_array section. Calling this caused binaries to segv.
 1.45 09-May-2013  christos Fix refcount of the object we found in our list by name.
 1.44 06-May-2013  christos Fixed handling of DT_SONAME:

- add function to add name aliases for shared libraries loaded
XXX[1]: we don't add a name during load time, only when DT_SONAME
is present.
- search already loaded objects in load_by_name for an already
loaded object that matches our name and return it.
- add missing initialization and cleanup for obj->names
XXX[2]: should we make them SIMPLEQ?
- Add XXX in rtld.c about getting the name of an object.

NB: This makes the jdk work again without resorting to a hack of putting
the build path of libjvm.so into the run path (which is a security
problem).
XXX: Pullup-6?
 1.43 06-May-2013  skrll Trailing whitespace
 1.42 24-Dec-2010  skrll branches: 1.42.6; 1.42.12;
Add support for DF_1_BIND_NOW, DF_1_NODELETE and DF_1_NOOPEN marked
objects, and the RTLD_NODELETE and RTLD_NOLOAD flags to dlopen(3).

Mark libpthread as DF_1_NOOPEN and use it to test the functionality.

Somewhat taken from FreeBSD.

Fixes PR 42029.

OK from christos and joerg.
 1.41 19-Dec-2010  skrll Sprinkle some KNF.
 1.40 16-Dec-2010  skrll s/rdbg/dbg/ in a few places.
 1.39 16-Dec-2010  skrll Remove incorrect comment.
 1.38 16-Oct-2010  skrll Implement dl_iterate_phdr.

Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.37 27-Feb-2010  roy Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
 1.36 19-May-2009  christos warns=4
 1.35 07-Dec-2007  ad branches: 1.35.12;
rtld changes for PR bin/37347:

- Apply patch from J.T. Conklin to execute .init/.fini functions in order.
- Support DF_1_INITFIRST and mark libc with DF_1_INITFIRST. Shared libs
should be recording a dependency on libc, but it's too late to do that.

Ok christos@.
 1.34 05-Oct-2007  ad - Don't use the names malloc/free/etc, since we can end up pulling in libc's
malloc which is not what we want.
- Remove ancient memory compaction hack. Realloc on free memory is now an
error again (from joerg@).

Ok christos@.
 1.33 20-Sep-2007  cube Don't remove the last component of filename before calling
_rtld_digest_dynamic: it is done in expand(), and doing it twice is once
too much. This fixes $ORIGIN expansion for dependencies.
 1.32 18-May-2007  christos branches: 1.32.4;
Support Solaris-like $ORIGIN etc. expansions in paths.
 1.31 21-Mar-2006  christos Coverity CID 2749: Fix another double free. Instead of removing that last
free() call, change the allocation policy to leave the responsibility for
allocation/freeing the pathname to _rtld_map_object(), instead of having
the caller allocate it and _rtld_map_object() free it. This simplifies the
code a lot and it is more efficient.
 1.30 18-Mar-2006  matt Fix some double frees / missing frees / use after freed all
relating to _rtld_load_object. Fix Coverity CID 2601, 2600.
 1.29 22-Oct-2004  skrll Add __RCSIDs.

OK'd by mycroft.
 1.28 05-Jul-2004  cube Make ld.elf_so use the new sysctl API. That allows the user to give any
sysctl variable name in /etc/ld.so.conf. It also makes the ld.elf_so
binary slightly smaller (at least on i386), and has no impact on
performance.

Fixes PR 26100.
 1.27 25-Nov-2003  christos Don't try to preload an empty string.
 1.26 24-Jul-2003  skrll ANSIfy and de-__P().
 1.25 05-Dec-2002  junyoung A bit speedup: in _rtld_load_object(), save the number of calls to
strcmp() by performing path name length comparison first. In the test
with Mozilla, the number was reduced to 1068 from 7182 (yes, we saved
6114 strcmp()!).
 1.24 05-Oct-2002  mycroft Minor cleanup.
 1.23 04-Oct-2002  mycroft Pull out some objlist functions in ldd.
 1.22 04-Oct-2002  mycroft Don't actually bother maintaining _rtld_list_main and _rtld_list_global in
ldd.
 1.21 04-Oct-2002  mycroft Move the definition of _rtld_list_main so ldd builds again.
 1.20 03-Oct-2002  mycroft As seen on tech-userlevel...

There are several optimizations here:

1) Objects on _rtld_list_main do not participate in the DAG structures
at all. This is okay because all symbols must be resolvable at
link/load time, and _rtld_list_main is always searched first, so
any references from those objects must necessarily be resolved to
other objects on _rtld_list_main.

(Making this work completely required setting obj->main a bit
earlier; hence the RTLD_MAIN hack.)

2) Objects on _rtld_list_main are not put on _rtld_list_global,
preventing an extra search.

3) A bit is used to keep track of whether an object is on
_rtld_list_global, so we don't have to do a silly linear search.

4) A small attempt is made to prevent objects being put on the DAG
lists multiple times (using a silly linear search).

The sum of this appears to be a ~10% (.3s) reduction in Mozilla's
startup time on my 800MHz box.

Also, make sure _rtld_objmain->path is always set, just to make the
debug output nicer.
 1.19 23-Sep-2002  mycroft Several small changes that shave 7-8% off the simple-exec-loop test:

* Rename _rtld_find_library() to _rtld_load_library(). It now calls
_rtld_load_object() if necessary to actually load the object, rather
than having the caller do it. To do this, it also takes the `mode'
argument that gets passed to _rtld_load_object().

* On a related note, remove _rtld_check_library(), and instead call
_rtld_load_object() to instead try actually loading the object. We
save two extra namei's and a bunch of redundant work (almost
literally the same code) this way.

* In _rtld_map_object(), mmap(2) the first page read-only, rather than
read(2)ing it.

* In _rtld_symlook_obj(), compare the *second* character of the symbol
name before calling strcmp(). (This first character is too
frequently `_', and turns out to not be helpful, in libc.)

* Also in _rtld_symlook_obj(), remove the bogus STT_FUNC special case
-- this also allows removing the `in_plt' argument to
_rtld_symlook_list() and _rtld_symlook_obj().

Also:

* In _rtld_obj_from_addr(), rather than trying to look up `_end' in
the each object, instead use obj->mapsize as the upper bound.
 1.18 12-Sep-2002  mycroft Nuke -DRTLD_RELOCATE_SELF and `dodebug' from orbit.
 1.17 18-Jul-2002  abs If /etc/ld.so.conf contains an invalid sysctl name any dynamically
executable that uses the library on that line has the rather cryptic
"sysctl" printed when it starts executing.

Switch to (_PATH_LD_HINTS": unknown sysctl for %s", name);

Discovered after someone copied /etc from an i386 to a sparc64 box.
 1.16 01-Jun-2002  lukem SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field). whilst it's O(n),
this mirrors the functionality of SLIST_REMOVE() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups
 1.15 02-Nov-2001  skrll branches: 1.15.2;
Allow both space and colon as a separator in LD_PRELOAD. Document this and
the fact that space may be retired in the future.

Closes misc/11961

Reviewed by christos
 1.14 27-May-2001  christos s/warn/xwarnx/ cuts down size by 50% by not pulling in stdio.
 1.13 10-Nov-2000  mycroft Make ldd(1) build again.
 1.12 10-Nov-2000  mycroft When dlopen()ing with RTLD_GLOBAL, also make dependent libraries RTLD_GLOBAL.
 1.11 27-Dec-1999  christos branches: 1.11.4;
don't stutter when printing error messages.
 1.10 15-Dec-1999  christos make a debugging formatting statement work portably
 1.9 15-Dec-1999  christos Do what the people want. Support full sysctl names.
 1.8 13-Dec-1999  christos indent properly a debugging statement and fix grammar.
 1.7 13-Dec-1999  christos For the benefit of ldd and debuggers, append more Needed_Entry elements
if the library transformation attached more than one element.
 1.6 13-Dec-1999  christos Enable parsing and mapping of hardware dependent libraries in ld.so.conf
To be documented in the man page.
 1.5 07-Nov-1999  mycroft Changes from msaitoh to fix local/global symbol confusion, and to fix weak
symbol support -- updated by me for elf.h changes.
 1.4 31-May-1999  kleink branches: 1.4.4;
Implement LD_PRELOAD support.
 1.3 01-Mar-1999  christos branches: 1.3.2;
KNF
 1.2 24-Feb-1999  christos Cleanup global variable access so rtld can be self relocating. Also KNF
reloc.c and move md sparc parts to arch/sparc/mdreloc.c
Now we don't need to load at address 0 on the i386 and the mips should be
trivial to fix.
 1.1 16-Dec-1996  cgd First cut at an ELF shared loader. Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.). This runs, but it's
in serious need of cleaning and/or a fair bit of reworking. See the README
file for more information, and a list of things to do.
 1.3.2.1 23-Jun-1999  perry pullup 1.3->1.4 (klienk): LD_PRELOAD support
 1.4.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.11.4.1 09-Dec-2001  he Pull up revisions 1.12-1.15 (requested by skrll):
Add init/fini section support in crtbegin and crtend, and introduce
support for DWARF2 exception handling. Fixes PR#12865, PR#13488,
PR#13489, and PR#13491. Also fix ld.elf_so to deal appropriately.
 1.15.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.32.4.2 09-Jan-2008  matt sync with HEAD
 1.32.4.1 06-Nov-2007  matt sync with HEAD
 1.35.12.1 17-Mar-2012  bouyer Pull up following revision(s) via patch (requested by skrll in ticket #1724):
rescue/list.ldd: revision 1.4
lib/libc/dlfcn/dlfcn_elf.c: revision 1.7
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.57
distrib/sets/lists/comp/mi: revision 1.1512
share/man/man3/Makefile: revision 1.56
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.58
usr.bin/ldd/ldd.c: revision 1.15
libexec/ld.elf_so/rtld.h: revision 1.84
share/man/man3/dl_iterate_phdr.3: revision 1.1
libexec/ld.elf_so/rtld.c: revision 1.129
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.44
libexec/ld.elf_so/rtld.h: revision 1.89
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.36
libexec/ld.elf_so/map_object.c: revision 1.41
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.37
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.46
include/link_elf.h: revision 1.10
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.29
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.26
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.34
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.31
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.35
libexec/ld.elf_so/Makefile: revision 1.94
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.32
libexec/ld.elf_so/Makefile: revision 1.95
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.31
libexec/ld.elf_so/Makefile: revision 1.96
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.32
libexec/ld.elf_so/reloc.c: revision 1.98
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.33
sys/sys/exec_elf.h: revision 1.106
libexec/ld.elf_so/rtld.c: revision 1.130
libexec/ld.elf_so/load.c: revision 1.37
libexec/ld.elf_so/rtld.c: revision 1.131
libexec/ld.elf_so/load.c: revision 1.38
libexec/ld.elf_so/rtld.h: revision 1.90
libexec/ld.elf_so/headers.c: revision 1.36
libexec/ld.elf_so/rtld.h: revision 1.95
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.30
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.25
libexec/ld.elf_so/symbol.c: revision 1.50
libexec/ld.elf_so/symbol.c: revision 1.51
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.43
libexec/ld.elf_so/symbol.c: revision 1.52
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.27
libexec/ld.elf_so/symbol.c: revision 1.54
PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
Implement dl_iterate_phdr.
Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.42.12.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.42.12.1 23-Jun-2013  tls resync from head
 1.42.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.47.8.1 20-Mar-2017  pgoyette Sync with HEAD
 1.10 05-Oct-2007  ad - Don't use the names malloc/free/etc, since we can end up pulling in libc's
malloc which is not what we want.
- Remove ancient memory compaction hack. Realloc on free memory is now an
error again (from joerg@).

Ok christos@.
 1.9 22-Oct-2004  skrll branches: 1.9.16;
Add __RCSIDs.

OK'd by mycroft.
 1.8 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.7 24-Jul-2003  skrll ANSIfy and de-__P().
 1.6 24-Sep-2002  mycroft Use/require AT_PAGESZ on all platforms. (The kernel has exported it for ~3
years now.) Use _rtld_pagesz instead of getpagesize() to determine the page
size in our local malloc(). Saves a system call.

Also, since we're now relocated early, we don't need to be careful to avoid
globals, so most of the VARPSZ hacks are eliminated.
 1.5 17-Jun-1999  thorpej branches: 1.5.10;
MAP_COPY -> MAP_PRIVATE
 1.4 03-Mar-1999  christos Make this compile without -DRTLD_LOADER and fix printf format problems on
the alpha.
 1.3 01-Mar-1999  christos KNF
 1.2 08-Oct-1997  mrg WARNS?=1
 1.1 16-Dec-1996  cgd First cut at an ELF shared loader. Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.). This runs, but it's
in serious need of cleaning and/or a fair bit of reworking. See the README
file for more information, and a list of things to do.
 1.5.10.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.9.16.1 06-Nov-2007  matt sync with HEAD
 1.69 03-Aug-2024  riastradh ld.elf_so(1): Nix trailing whitespace.

No functional change intended.
 1.68 02-Aug-2024  skrll KNF
 1.67 04-Jun-2023  joerg branches: 1.67.2;
Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).

Fix this by forcing the computation of the correct DSO (the one defining
the symbol).

This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
 1.66 31-May-2023  riastradh ld.elf_so: Sprinkle tls debug messages.

XXX pullup-10
 1.65 12-Jan-2023  christos fix the ldd build
 1.64 12-Jan-2023  christos Handle program headers properly; fixes c++ exceptions on arm32.
 1.63 06-Jan-2023  christos Remove the limitation of only being able to load binaries with 2 PT_LOAD
sections, like the kernel can. From FreeBSD.
 1.62 30-Mar-2022  hannken branches: 1.62.2;
_rtld_map_object(): no need to mmap an empty bss segment.
 1.61 04-Mar-2020  thorpej PT_GNU_RELRO segments are arranged such that their vaddr + memsz ends
on a linker common page size boundary. However, if the common page size
used by the linker is less than the VM page size being used by the kernel,
this can end up in the middle of a VM page and when the region is write-
protected, this can cause objects in neighboring .data to get incorrectly
write-protected, resulting in a crash.

Avoid this situation by calculating the end of the RELRO region not by
rounding memsz up to the VM page size, but rather by adding vaddr + memsz
and then truncating to the VM page size.

Fixes PR toolchain/55043.

XXX pullup-9
 1.60 06-Jan-2019  joerg branches: 1.60.2;
When loading a non-PIE main binary, the virtual address must match.
Use MAP_TRYFIXED and verify that the result matches the expectation.
 1.59 04-Jan-2019  joerg MAP_ALIGNED has existed for years, just assume it exists.
 1.58 19-Jun-2017  joerg branches: 1.58.4; 1.58.6;
Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.

The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.

Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
 1.57 10-Mar-2017  maya branches: 1.57.4;
Revert to version 1.55 of map_object.c. This reverts:

"really unmap the gap between the text and data rather than just removing
all access with mprotect(). the latter results in the kernel having to
keep track of that range separately since the permissions are different.
avoid calling mmap() with a size of zero."

As per toolchain/52054: src/libexec/ld.elf_so update breaks everything,
this commit is very broken for some people (but not others). chs mentioned
he has a fix, but best not to leave -current broken in the meantime.
 1.56 09-Mar-2017  chs really unmap the gap between the text and data rather than just removing
all access with mprotect(). the latter results in the kernel having to
keep track of that range separately since the permissions are different.
avoid calling mmap() with a size of zero.
 1.55 16-Jun-2016  christos branches: 1.55.2; 1.55.4;
Move relro after we've computed out relocbase and re-enable it.
(Matthias Weckbecker)
 1.54 14-Jun-2016  christos Add support for GNU RELRO headers from Matthias Weckbecker.
 1.53 30-Oct-2014  martin Avoid use after free, reported by the coverity scanner.
 1.52 03-Aug-2013  skrll branches: 1.52.4;
Fix DEBUG build.
 1.51 09-May-2013  christos convert to SIMPLEQ like the rest of the queues.
 1.50 08-May-2013  christos need xfree() instead of free(). Using free() ends us up in an infinite loop.
 1.49 06-May-2013  christos Fixed handling of DT_SONAME:

- add function to add name aliases for shared libraries loaded
XXX[1]: we don't add a name during load time, only when DT_SONAME
is present.
- search already loaded objects in load_by_name for an already
loaded object that matches our name and return it.
- add missing initialization and cleanup for obj->names
XXX[2]: should we make them SIMPLEQ?
- Add XXX in rtld.c about getting the name of an object.

NB: This makes the jdk work again without resorting to a hack of putting
the build path of libjvm.so into the run path (which is a security
problem).
XXX: Pullup-6?
 1.48 06-May-2013  skrll Trailing whitespace
 1.47 25-Apr-2013  skrll Adjust exidx_start by relocbase
 1.46 25-Apr-2013  skrll Handle PT_ARM_EXIDX when mapping objects.
 1.45 13-Oct-2012  dholland Improve the diagnostic messages for invalid/non-ELF files. Proposed a
while back; I forget the context. Has been sitting in one of my trees
awaiting a test run since, apparently, August 2011.
 1.44 25-Jul-2012  martin branches: 1.44.2;
Try to make dbg() printfs realy ELFSIZE independent
 1.43 13-Aug-2011  christos branches: 1.43.2;
consistent debugging info for program headers
 1.42 09-Mar-2011  joerg Add TLS support infrastructure. For dynamic binaries, ld.elf_so exports
_rtld_tls_allocate and _rtld_tls_free. libpthread uses this functions to
setup the thread private area of all new threads. ld.elf_so is
responsible for setting up the private area for the initial thread.
Similar functions are called from _libc_init for static binaries, using
dl_iterate_phdr to access the ELF Program Header.

Add test cases to exercise the different TLS storage models. Test cases
are compiled and installed on all platforms, but are skipped on
platforms not marked for TLS support.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.

It is inspired by the TLS support in FreeBSD by Doug Rabson and the
clean ups of the DragonFly port of the original FreeBSD modifications.
 1.41 16-Oct-2010  skrll Implement dl_iterate_phdr.

Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.40 11-Sep-2010  skrll Wrap long line.
 1.39 10-Jan-2010  skrll Reset the COMBRELOC cache Obj_Entry if it was freed.

Fixes PR 41482. Done slightly differently to the patch in the PR.
 1.38 19-May-2009  christos warns=4
 1.37 06-Jan-2009  mrg add some (uintptr_t) to some casts, so these compile with ELFSIZE=32
*and _LP64. necessary for 32/64 bit combo ldd support.
 1.36 03-Jun-2008  ad branches: 1.36.4;
Don't bother unmapping the ELF header unless it overlaps the first load
section.
 1.35 05-Oct-2007  ad branches: 1.35.6; 1.35.8;
- Don't use the names malloc/free/etc, since we can end up pulling in libc's
malloc which is not what we want.
- Remove ancient memory compaction hack. Realloc on free memory is now an
error again (from joerg@).

Ok christos@.
 1.34 21-Mar-2006  christos branches: 1.34.10;
Coverity CID 2749: Fix another double free. Instead of removing that last
free() call, change the allocation policy to leave the responsibility for
allocation/freeing the pathname to _rtld_map_object(), instead of having
the caller allocate it and _rtld_map_object() free it. This simplifies the
code a lot and it is more efficient.
 1.33 18-Mar-2006  matt Fix some double frees / missing frees / use after freed all
relating to _rtld_load_object. Fix Coverity CID 2601, 2600.
 1.32 01-Jun-2005  lukem appease gcc -Wuninitialized
 1.31 22-Oct-2004  skrll Add __RCSIDs.

OK'd by mycroft.
 1.30 24-Jul-2003  skrll ANSIfy and de-__P().
 1.29 05-Jun-2003  simonb KNF- blank lines before code at start of functions.
 1.28 06-Mar-2003  taca make it compile in /usr/src/rescue directory.
 1.27 06-Mar-2003  matt Align psections to their specified alignment (if possible). Use
mmap(2) MAP_ALIGNED.
 1.26 06-Feb-2003  fvdl If fstat info was passed, and from it it can be seen that the file size
is smaller than an ELF header, don't even bother to try to look at it.
Avoids coredumps with zero-sized files.
 1.25 05-Dec-2002  junyoung A bit speedup: in _rtld_load_object(), save the number of calls to
strcmp() by performing path name length comparison first. In the test
with Mozilla, the number was reduced to 1068 from 7182 (yes, we saved
6114 strcmp()!).
 1.24 05-Oct-2002  mycroft Minor cleanup.
 1.23 05-Oct-2002  mycroft Make this work for ldd again.
 1.22 04-Oct-2002  mycroft Rearrange _rtld_map_object() a little, so that we don't have to have the first
page of the object double-mapped. Not that it matters much, but someone was
whinging about it.
While I'm at it, nuke obj->phdr and obj->phsize; they're unused.
 1.21 27-Sep-2002  mycroft Change the munmap() of the text-data gap to mprotect(PROT_NONE). This avoids
having scattered little mappings, although it's probably not the best way...
 1.20 24-Sep-2002  mycroft Woops, unmap the first page in the `win' case, too.
Tidy up a bit.
 1.19 24-Sep-2002  junyoung Use _rtld_pagesz instead of PAGESIZE.
 1.18 24-Sep-2002  junyoung space -> tab.
 1.17 24-Sep-2002  junyoung Don't need to use union any longer.
 1.16 23-Sep-2002  mycroft Several small changes that shave 7-8% off the simple-exec-loop test:

* Rename _rtld_find_library() to _rtld_load_library(). It now calls
_rtld_load_object() if necessary to actually load the object, rather
than having the caller do it. To do this, it also takes the `mode'
argument that gets passed to _rtld_load_object().

* On a related note, remove _rtld_check_library(), and instead call
_rtld_load_object() to instead try actually loading the object. We
save two extra namei's and a bunch of redundant work (almost
literally the same code) this way.

* In _rtld_map_object(), mmap(2) the first page read-only, rather than
read(2)ing it.

* In _rtld_symlook_obj(), compare the *second* character of the symbol
name before calling strcmp(). (This first character is too
frequently `_', and turns out to not be helpful, in libc.)

* Also in _rtld_symlook_obj(), remove the bogus STT_FUNC special case
-- this also allows removing the `in_plt' argument to
_rtld_symlook_list() and _rtld_symlook_obj().

Also:

* In _rtld_obj_from_addr(), rather than trying to look up `_end' in
the each object, instead use obj->mapsize as the upper bound.
 1.15 13-Sep-2002  mycroft Nuke two frivolous assert()s.
 1.14 06-Sep-2002  mycroft Introduce a new flag, `isdynamic', which is used to remember whether the
executable was of type ET_DYN. Use this instead of `mainprog' to determine
whether we need to do base-relative fixups of the PLT. (This allows loading
non-relocatable objects, should we desire to do that at some point...)
 1.13 01-Jun-2002  lukem SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field). whilst it's O(n),
this mirrors the functionality of SLIST_REMOVE() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups
 1.12 26-Nov-2000  mycroft branches: 1.12.2;
Return an error when there are too many segments rather than abort()ing.
This way `ldd /usr/libexec/ld.elf_so' doesn't core dump.
 1.11 13-Feb-2000  chs branches: 1.11.4;
switch back to using a file mapping for the initial mapping of a new object.
this allows the kernel to use PMAP_PREFER() to give us better alignment on
platforms that care.
 1.10 07-Nov-1999  mycroft Changes from msaitoh to fix local/global symbol confusion, and to fix weak
symbol support -- updated by me for elf.h changes.
 1.9 04-Nov-1999  erh Remove ELFNAME defines since they are defined in sys/exec_elf.h
 1.8 25-Oct-1999  kleink Update to match new SVR4-style definition names in <sys/exec_elf.h>.
 1.7 22-Oct-1999  hannken Undo last change. While these macros are defined in exec_elf.h, they are
enclosed by `#ifdef _KERNEL'.
 1.6 21-Oct-1999  erh Remove ELFNAME macros which are already defines in exec_elf.h
 1.5 06-Aug-1999  thorpej branches: 1.5.2;
When allocating the entire address space of an object, map an anonymous
region first (using the data/bss protection) covering it, then overlay
the text and data regions at the appropriate offsets within the region,
and then unmap any gap between the text and data.

The previous method of maping the entire address space with the actual
file object itself is incorrect, as it may extend past the end of the
file if the section alignment is large enough.

This bug was the source of the libposix failure on the SPARC and another
similar failure (with libc!) on the Alpha (failure was accompanied by
a "uvn_io: size check fired" message on the console).
 1.4 01-Mar-1999  christos KNF
 1.3 20-Feb-1998  mycroft Fill in missing (default) mmap(2) flags.
 1.2 17-Dec-1996  jonathan Mipsel changes to ELF ldd/ld.so:
* don't abort() on NetBSD/pmax 1.1 elf binaries;
* Assume 32-bit elf unless compiling for Alpha;
* note bugs in ldd's README.
 1.1 16-Dec-1996  cgd First cut at an ELF shared loader. Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.). This runs, but it's
in serious need of cleaning and/or a fair bit of reworking. See the README
file for more information, and a list of things to do.
 1.5.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.11.4.1 09-Dec-2001  he Pull up revision 1.12 (requested by skrll):
Add init/fini section support in crtbegin and crtend, and introduce
support for DWARF2 exception handling. Fixes PR#12865, PR#13488,
PR#13489, and PR#13491. Also fix ld.elf_so to deal appropriately.
 1.12.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.34.10.1 06-Nov-2007  matt sync with HEAD
 1.35.8.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.35.6.1 17-Jun-2008  yamt sync with head.
 1.36.4.3 17-Mar-2012  bouyer Pull up following revision(s) via patch (requested by skrll in ticket #1724):
rescue/list.ldd: revision 1.4
lib/libc/dlfcn/dlfcn_elf.c: revision 1.7
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.57
distrib/sets/lists/comp/mi: revision 1.1512
share/man/man3/Makefile: revision 1.56
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.58
usr.bin/ldd/ldd.c: revision 1.15
libexec/ld.elf_so/rtld.h: revision 1.84
share/man/man3/dl_iterate_phdr.3: revision 1.1
libexec/ld.elf_so/rtld.c: revision 1.129
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.44
libexec/ld.elf_so/rtld.h: revision 1.89
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.36
libexec/ld.elf_so/map_object.c: revision 1.41
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.37
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.46
include/link_elf.h: revision 1.10
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.29
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.26
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.34
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.31
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.35
libexec/ld.elf_so/Makefile: revision 1.94
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.32
libexec/ld.elf_so/Makefile: revision 1.95
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.31
libexec/ld.elf_so/Makefile: revision 1.96
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.32
libexec/ld.elf_so/reloc.c: revision 1.98
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.33
sys/sys/exec_elf.h: revision 1.106
libexec/ld.elf_so/rtld.c: revision 1.130
libexec/ld.elf_so/load.c: revision 1.37
libexec/ld.elf_so/rtld.c: revision 1.131
libexec/ld.elf_so/load.c: revision 1.38
libexec/ld.elf_so/rtld.h: revision 1.90
libexec/ld.elf_so/headers.c: revision 1.36
libexec/ld.elf_so/rtld.h: revision 1.95
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.30
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.25
libexec/ld.elf_so/symbol.c: revision 1.50
libexec/ld.elf_so/symbol.c: revision 1.51
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.43
libexec/ld.elf_so/symbol.c: revision 1.52
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.27
libexec/ld.elf_so/symbol.c: revision 1.54
PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
Implement dl_iterate_phdr.
Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.36.4.2 30-Jan-2010  snj Pull up following revision(s) (requested by skrll in ticket #1266):
libexec/ld.elf_so/map_object.c: revision 1.39
libexec/ld.elf_so/rtld.h: revision 1.83
libexec/ld.elf_so/symbol.c: revision 1.49
Reset the COMBRELOC cache Obj_Entry if it was freed.
Fixes PR 41482. Done slightly differently to the patch in the PR.
 1.36.4.1 16-Jan-2009  bouyer branches: 1.36.4.1.4;
Pull up following revision(s) (requested by mrg in ticket #265):
libexec/ld.elf_so/headers.c: revision 1.27
rescue/list: revision 1.35
libexec/ld.elf_so/arch/sparc/Makefile.ld32: revision 1.1
usr.bin/ldd/Makefile.elf: revision 1.1
usr.bin/ldd/Makefile.elf: revision 1.2
usr.bin/ldd/ldd_aout/ldd.c: file removal
usr.bin/ldd/Makefile.elf: revision 1.3
libexec/ld.elf_so/arch/sparc/Makefile.inc: revision 1.12
usr.bin/ldd/dummy.c: revision 1.1
gnu/usr.bin/binutils/ld/Makefile: revision 1.28
usr.bin/ldd/elf32/Makefile: revision 1.1
usr.bin/ldd/elf32/Makefile: revision 1.2
usr.bin/ldd/ldd.c: revision 1.3
usr.bin/ldd/elf32/Makefile: revision 1.3
usr.bin/ldd/ldd_elf/Makefile: file removal
usr.bin/ldd/ldd.h: revision 1.1
usr.bin/ldd/ldd.c: revision 1.4
usr.bin/ldd/ldd_aout.c: revision 1.1
usr.bin/ldd/Makefile: revision 1.8
usr.bin/ldd/Makefile: revision 1.9
usr.bin/ldd/ldd_elfxx.c: revision 1.1
libexec/ld.elf_so/map_object.c: revision 1.37
usr.bin/ldd/ldd_aout/Makefile: file removal
usr.bin/ldd/elf64/Makefile: revision 1.1
rescue/Makefile: revision 1.22
libexec/ld.elf_so/arch/i386/Makefile.ld32: revision 1.1
usr.bin/ldd/ldd_elf/ldd.c: file removal
usr.bin/ldd/elf64/Makefile: revision 1.2
usr.bin/ldd/elf64/Makefile: revision 1.3
usr.bin/ldd/aout/Makefile: revision 1.1
libexec/ld.elf_so/arch/i386/Makefile.inc: revision 1.12
rescue/list.ldd: revision 1.1
usr.bin/ldd/ldd_elf/README: file removal
usr.bin/ldd/Makefile.common: revision 1.1
move the defines for RTLD_ARCH_SUBDIR into a sub-sub-makefile so we can
grab these values via reach-over more easily.
some fixes for PR#40170:
- set NATIVE=yes in the environment for genscripts.sh
- set LIB_PATH to /usr/lib/{sparc,i386} for those scripts
- set use_sysroot to "yes", to enable LIB_PATH to work in genscripts.sh
- get rid of building an a.out-happy ldd (but keep supporting a.out
binaries for the ELF version.)
- convert a.out, elf32 and elf64 support into convience libraries and
link them right ones in. if elf_ldd() fails on 64 bit platforms,
try elf32_ldd() before aout_ldd().
now ldd on 64 bit platforms works for 32 bit binaries, aka PR#40199,
and it seems that all the issues from README are gone too.
add some (uintptr_t) to some casts, so these compile with ELFSIZE=32
*and _LP64. necessary for 32/64 bit combo ldd support.
- rework this a bunch to make it work inside /rescue/ldd.
- fix alpha build.
make sure we set LIBISPRIVATE.
fixes build issues reported by moof.
make sure we set LIBISPRIVATE.
fixes build issues reported by moof.
 1.36.4.1.4.1 21-Apr-2010  matt sync to netbsd-5
 1.43.2.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.43.2.1 30-Oct-2012  yamt sync with head
 1.44.2.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.44.2.2 23-Jun-2013  tls resync from head
 1.44.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.52.4.1 06-Mar-2016  martin Catch up to -current, via patch, requested by christos in ticket #1126:
 1.55.4.1 21-Apr-2017  bouyer Sync with HEAD
 1.55.2.1 20-Mar-2017  pgoyette Sync with HEAD
 1.57.4.1 04-Jul-2017  martin Pull up following revision(s) (requested by joerg in ticket #64):
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.40
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.41
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.44
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.60
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.32
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.61
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.2
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.50
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.34
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.39
libexec/ld.elf_so/symbol.c: revision 1.68
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.66
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.67
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.68
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.42
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.54
libexec/ld.elf_so/Makefile: revision 1.137
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.32
libexec/ld.elf_so/rtld.h: revision 1.127
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.38
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.42
libexec/ld.elf_so/map_object.c: revision 1.58
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.49
Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.
The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.
Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
Drop symbol number from default branch diagnostic, it isn't set at this
point and most likely not valid either.
Expand symnum, GCC's uninitialized used tracking is too imprecise.
Fix C&P bug. Deal with more MIPS hacks overriding def.
Add last_symnum, move up def and defobj.
Add back symnum, fix debug print.
Replace last use of r_type.
Fix indentation.
Fix indentation.
 1.58.6.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.58.6.1 10-Jun-2019  christos Sync with HEAD
 1.58.4.1 18-Jan-2019  pgoyette Synch with HEAD
 1.60.2.2 04-Aug-2023  martin Pull up following revision(s), all via patch,
(requested by riastradh in ticket #1699):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.

This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.

PR pkg/57445

Fix MKDEBUGLIB build by adding these installed files to the debug
set list.

One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.

Fix markup of libh_ MKDEBUGLIB=yes only files

TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.60.2.1 08-Mar-2020  martin Pull up following revision(s) (requested by thorpej in ticket #758):

libexec/ld.elf_so/map_object.c: revision 1.61
libexec/ld.elf_so/headers.c: revision 1.68
libexec/ld.elf_so/rtld.c: revision 1.203

PT_GNU_RELRO segments are arranged such that their vaddr + memsz ends
on a linker common page size boundary. However, if the common page size
used by the linker is less than the VM page size being used by the kernel,
this can end up in the middle of a VM page and when the region is write-
protected, this can cause objects in neighboring .data to get incorrectly
write-protected, resulting in a crash.

Avoid this situation by calculating the end of the RELRO region not by
rounding memsz up to the VM page size, but rather by adding vaddr + memsz
and then truncating to the VM page size.

Fixes PR toolchain/55043.

XXX pullup-9
 1.62.2.1 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #297):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44
(all via patch)

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen
(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.
(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.
(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.
PR pkg/57445
Fix MKDEBUGLIB build by adding these installed files to the debug
set list.
XXX
One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.
Fix markup of libh_ MKDEBUGLIB=yes only files
TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.67.2.1 02-Aug-2025  perseant Sync with HEAD
 1.43 02-May-2025  riastradh ld.elf_so: Use __sysctl() syscall stub rather than sysctl() wrapper.

This avoids pulling in some unnecessary junk from libc, saving on a
couple kilobytes of space and some relative relocations at runtime.

PR lib/59387: ld.elf_so: needlessly includes libc/gen/sysctl.c user.*
 1.42 24-Jan-2016  christos branches: 1.42.28;
we don't need <sys/mbuf.h>
 1.41 06-May-2013  skrll branches: 1.41.6;
Trailing whitespace
 1.40 19-May-2009  christos branches: 1.40.6; 1.40.12;
warns=4
 1.39 05-Jun-2008  ad Fix error in previous. From nakayama@.
 1.38 03-Jun-2008  ad Try read() on ld.so.conf. If the file is small, it avoids stat+mmap+munmap.
 1.37 05-Oct-2007  ad branches: 1.37.6; 1.37.8;
- Don't use the names malloc/free/etc, since we can end up pulling in libc's
malloc which is not what we want.
- Remove ancient memory compaction hack. Realloc on free memory is now an
error again (from joerg@).

Ok christos@.
 1.36 27-Sep-2007  christos provide xrealloc, and don't cast and use malloc and realloc directly.
 1.35 20-Sep-2007  christos Use AT_SUN_EXECPATH instead of argv[0] for the executable name. This needs
kernel support, which is not there yet, thus $ORIGIN is broken at this time.
This is ok, nothing uses it yet.
 1.34 18-May-2007  christos branches: 1.34.4;
Support Solaris-like $ORIGIN etc. expansions in paths.
 1.33 01-Jun-2005  lukem Add some sanity checking inspired by gcc -Wuninitialized.
 1.32 22-Oct-2004  skrll Add __RCSIDs.

OK'd by mycroft.
 1.31 05-Jul-2004  cube Make ld.elf_so use the new sysctl API. That allows the user to give any
sysctl variable name in /etc/ld.so.conf. It also makes the ld.elf_so
binary slightly smaller (at least on i386), and has no impact on
performance.

Fixes PR 26100.
 1.30 16-Mar-2004  atatat The <sys/sysctl.h> header already provides a perfectly good struct for
this purpose, so...uh...use it.
 1.29 15-Feb-2004  enami Don't assume past the mmaped region is accessible.
 1.28 15-Feb-2004  enami Fix warning message: the failed operation is not fstat but mmap.
 1.27 24-Jul-2003  skrll ANSIfy and de-__P().
 1.26 05-Jun-2003  simonb KNF- blank lines before code at start of functions.
 1.25 06-Oct-2002  junyoung Embedded whitespace in dirname is supported again.
 1.24 05-Oct-2002  junyoung A line whose length is 0 always begins with '#'.
 1.23 05-Oct-2002  junyoung Minor cleanup.
 1.22 05-Oct-2002  junyoung Better fix of parser bug.
 1.21 05-Oct-2002  junyoung Don't call _rtld_process_mapping() with null string.
 1.20 05-Oct-2002  mycroft Simplify the hint file parser a bit.
 1.19 05-Oct-2002  mycroft Minor cleanup.
 1.18 28-Sep-2002  junyoung Call NEW() rather than CNEW().
 1.17 12-Sep-2002  mycroft Nuke -DRTLD_RELOCATE_SELF and `dodebug' from orbit.
 1.16 12-Sep-2002  mycroft Add some consts.
 1.15 24-May-2001  christos branches: 1.15.2;
Don't include <uvm/uvm_param.h>. It does not appear to be needed by anything.
<uvm/uvm_param.h> does not exist under 1.5. Tested on i386 and sparc.
Anyway, if it is indeed needed by other platforms then we'll put it back,
but I don't see how since it does not define any types.
 1.14 10-Nov-2000  simonb Fix linked-list botch with sysctl-based library selection that meant
only the last line was used. Allow more than one white space character
between fields.

Reviewed by Christos Zoulas.
 1.13 09-Nov-2000  simonb Only need to include <sys/sysctl.h> once.
 1.12 26-Jun-2000  mrg we now need <uvm/uvm_param.h>
 1.11 09-May-2000  bjh21 branches: 1.11.4;
Initial commit of arm26 port
 1.10 15-Jan-2000  christos use xwarnx instead of warnx
 1.9 20-Dec-1999  christos PR/9031: Scott Ellis: Ignore empty sysctl directive lines.
 1.8 15-Dec-1999  christos Do what the people want. Support full sysctl names.
 1.7 13-Dec-1999  christos Enable parsing and mapping of hardware dependent libraries in ld.so.conf
To be documented in the man page.
 1.6 20-Aug-1999  christos branches: 1.6.4;
fix typo
 1.5 19-Aug-1999  christos enable /etc/ld.so.conf processing
[reviewed by thorpej]
 1.4 01-Mar-1999  christos KNF
 1.3 24-Feb-1999  christos Cleanup global variable access so rtld can be self relocating. Also KNF
reloc.c and move md sparc parts to arch/sparc/mdreloc.c
Now we don't need to load at address 0 on the i386 and the mips should be
trivial to fix.
 1.2 08-Oct-1997  mrg WARNS?=1
 1.1 16-Dec-1996  cgd First cut at an ELF shared loader. Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.). This runs, but it's
in serious need of cleaning and/or a fair bit of reworking. See the README
file for more information, and a list of things to do.
 1.6.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.11.4.2 09-Dec-2001  he Pull up revisions 1.12-1.13,1.15 (requested by skrll):
Add init/fini section support in crtbegin and crtend, and introduce
support for DWARF2 exception handling. Fixes PR#12865, PR#13488,
PR#13489, and PR#13491. Also fix ld.elf_so to deal appropriately.
 1.11.4.1 13-Nov-2000  tv Pullup 1.14 [simonb]:
Fix linked-list botch with sysctl-based library selection that meant
only the last line was used. Allow more than one white space character
between fields.
 1.15.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.34.4.1 06-Nov-2007  matt sync with HEAD
 1.37.8.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.37.6.1 17-Jun-2008  yamt sync with head.
 1.40.12.1 23-Jun-2013  tls resync from head
 1.40.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.41.6.1 06-Mar-2016  martin Catch up to -current, via patch, requested by christos in ticket #1126:
 1.42.28.1 02-Aug-2025  perseant Sync with HEAD
 1.120 02-May-2025  riastradh ld.elf_so: Implement RELR relocations.

The SHT_RELR-type .relr.dyn section, pointed to by the DT_RELR
dynamic tag, holds compressed R_*_RELATIVE-type relocations,
substantially reducing the disk space occupied by many programs.

This commit adds support in ld.elf_so for relocating dynamically
linked executables with RELR relocations.

Reference:

Rahul Chaudhry, `Re: Proposal for a new section type SHT_RELR',
generic-abi mailing list, 2018-02-07.

https://groups.google.com/g/generic-abi/c/bX460iggiKg/m/Jnz1lgLJAgAJ
https://web.archive.org/web/20241213012330/https://groups.google.com/g/generic-abi/c/bX460iggiKg/m/Jnz1lgLJAgAJ

Proposed on tech-userlevel:
https://mail-index.NetBSD.org/tech-userlevel/2025/04/27/msg014727.html

PR bin/59360: ld.elf_so(8): missing RELR support
 1.119 18-Apr-2025  riastradh ld.elf_so(1): Defer RELRO a bit for eagerly-bound (-z now) programs.

GNU binutils links programs a little differently if they're eagerly
bound with -Wl,-z,now. In particular, the part of the .got relocated
for ifuncs is covered by the RELRO region in eagerly-bound programs
(-z now), but not in lazily-bound programs (default).

Presumably this is done under the premise that eagerly-bound programs
will resolve all ifuncs at startup _before_ mprotecting the main
object's RELRO region. But ld.elf_so was mprotecting it first, in
_rtld_do_copy_relocations, and then resolving ifuncs -- at which the
memory locations where it tries to write the resolutions will be
mapped read-only.

(In contrast, for lazily bound programs, ifuncs may also be resolved
lazily, so the locations they relocate are _not_ covered by the RELRO
region and we don't run into any trouble)

To avoid this trouble, for eagerly-bound programs, we defer the RELRO
mprotect of the main object by a little bit -- we move it from
_rtld_do_copy_relocations to just after _rtld_call_init_functions.

PR lib/57792: SIGSEGV in ld.elf_so / _rtld_call_ifunc
 1.118 30-Jul-2023  riastradh branches: 1.118.2;
ld.elf_so: Split hash functions into a separate file.

This way we can test them in isolation.

No functional change intended.
 1.117 04-Dec-2021  skrll branches: 1.117.2;
Provide a stub _rtld_call_ifunc when a platform doesn't use one of the
common ones or doesn't provide its own.
 1.116 29-Feb-2020  kamil Implement DT_GNU_HASH

DT_GNU_HASH serves the same purpose as DT_HASH, however it is a distinct
and faster apprach implemented and designed in the GNU toolchain in 2006.

DT_GNU_HASH is preferred whenever available.

Original GNU benchmarks claim 50% faster dynamic linking time.
https://www.sourceware.org/ml/binutils/2006-06/msg00418.html

Code based on FreeBSD and OpenBSD, both were based on DragonFlyBSD.
 1.115 29-Feb-2020  kamil Implement and integrate GNU Hashing function

Define Elf_Hash struct that contains ELF/SYSV and GNU hash checksum.
Implement _rtld_gnu_hash() for DT_GNU_HASH.
Adapt existing code to compute all Elf_Hash types, instead of only
the ELF/SYSV one.
Rename _rtld_elf_hash() to _rtld_sysv_hash() to match the GNU toolchain
terminology.

_rtld_gnu_hash() uses Dan Bernstein's string hash function posted eons ago
on comp.lang.c.
 1.114 30-Dec-2018  christos binutils 2.31.1 can put copy relocations in the relro segment. Delay
protecting the relro segment for the main object until copy relocations
are done.
 1.113 17-Oct-2018  joerg Move compatibility for pre-2.0 ELF binaries into separate file.
Early ELF binaries defined dlopen and friends in crt0.o by
using function pointers in the object handle passed from rtld.
This contract wastes space when many shared objects are allocated
and ties dynamic linker and rest of the system tightly together.
Fake the entry points in a static object and restrict them to the
platforms that had working ELF support at the time. Keep the magic and
version field used by modern crt0.o for all architectures. The checks
will be removed from crt0.o in a follow-up step.
 1.112 03-Apr-2018  joerg branches: 1.112.2;
Rework ifunc support to address a number of short comings:
- Move to a shared _rtld_call_ifunc for rel and rela architectures
- Architectures using rel format must patch IRELATIVE non-PLT
relocations like RELATIVE in additition to the later ifunc handling
- Consistently record the delta to the end of the relocation group for
non-PLT IRELATIVE relocations

Hidden ifunc is now supported on all ifunc platforms, even when using
-fno-plt. The combination of -fno-plt and relro is broken due to
incorrect GNU ld output though.
 1.111 10-Aug-2017  joerg branches: 1.111.2;
Add IRELATIVE support for ARM, X86 and PowerPC.
 1.110 27-Apr-2017  uwe PR port-macppc/47464 - Old binutils generated bogus zero-sized COPY
relocations for _SDA_BASE_ and _SDA2_BASE_ that happened to work by
accident. They no longer happen to work when old binaries are run on
newer systems. Explicitly ignore these bogus relocations.
 1.109 14-Jun-2016  christos branches: 1.109.6;
Add support for GNU RELRO headers from Matthias Weckbecker.
 1.108 12-Apr-2016  christos - Print a warning for text relocations
- Don't remap the text segment executable while relocating
 1.107 25-Aug-2014  joerg Add basic support for indirect functions. It allows providing a public
function symbol with an implementation choosen at run time.
Refactor calls to functions by address in ld.elf_so to create temporary
function descriptors on the stack, if the address is not leaked outside.

Limitations:
- no support for initialising static storage with function pointers
- no support for unnamed resolver functions

Inspired by FreeBSD's r228435 by kib@freebsd.org.
 1.106 06-Jan-2012  skrll branches: 1.106.2; 1.106.18;
Implement lazy binding on hppa. rump_server needs it!?!?!

Mostly from OpenBSD.
 1.105 02-Dec-2011  skrll Restore backwards compatibility by removing unnecessary addition of
dlvsym to Obj_Entry.

Add some comments.
 1.104 25-Jun-2011  nonaka branches: 1.104.2;
PR/45015: ld.elf_so: support ELF symbol versioning
Applied latest patch.
 1.103 24-Dec-2010  skrll Add support for DF_1_BIND_NOW, DF_1_NODELETE and DF_1_NOOPEN marked
objects, and the RTLD_NODELETE and RTLD_NOLOAD flags to dlopen(3).

Mark libpthread as DF_1_NOOPEN and use it to test the functionality.

Somewhat taken from FreeBSD.

Fixes PR 42029.

OK from christos and joerg.
 1.102 05-Apr-2010  joerg Use fast_remainder32 for the ELF hash. For the hot cache case, this
speeds up Firefox startup by over 2% on AMD64.
Limit hash table buckets to 32bit.
 1.101 16-Jan-2010  skrll Remove cargo cult dlinfo entry point.
 1.100 15-Jan-2010  skrll Put the dlopen,and friends entry points back.

They're needed by pre-2.0 binaries. Backward compatibiliity for these
was broken by another commit recently which I'll fix shortly.
 1.99 14-Jan-2010  skrll Remove the entry points for dlopen() and friends. They haven't been used
since Aug 2003.
 1.98 13-Jan-2010  christos PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
 1.97 24-Sep-2009  pooka Add Solarisa-like dlinfo() interface to the ELF dynamic linker.
Implement RTLD_DI_LINKMAP which returns a pointer to the linkmap
chain at the given object. Other Solaris queries are currently
unimplemented.
 1.96 29-Jul-2008  matt branches: 1.96.4; 1.96.10;
Make sure to call dlerror() to clear any error messages after the relocations
are done and there are no errors. This will prevent spurious undefined weak
symbol errors being returned by dlerror().

Fixes PR bin/39240.
 1.95 04-Mar-2006  skrll branches: 1.95.20;
Add LD_BIND_NOW support for mips.

This is the last arch to be done so remove the large ugly #if defined()
stuff in reloc.c.
 1.94 28-Jul-2005  skrll Add support for immediate PLT binding on SH5. Compile tested only as
shared libs don't actually work on SH5 (yet).

OK'd by Steve Woodford.
 1.93 28-Jul-2005  skrll Support immediate PLT binding on powerpc. Thanks to Simon Burge for
testing.

I can see the finish line...
 1.92 26-Jul-2005  skrll Support immediate PLT binding on m68k. Tested on NetBSD/sun3 using the new
version of tme.

Not far now...
 1.91 24-Jul-2005  skrll Support immediate PLT binding on vax. Tested on simh.

Nearly there...
 1.90 17-Jul-2005  skrll Support immediate binding on x86_64.

Closes PR 30570. Thanks to TAMURA Kent for testing.
 1.89 31-May-2005  skrll Support LD_BIND_NOW on sh3..
 1.88 25-May-2005  skrll Support LD_BIND_NOW for alpha.
 1.87 09-Jan-2005  martin Add LD_BIND_NOW support for sparc and remove some relocation types that
are not supposed to happen in 32bit code.
From Nick Hudson.
 1.86 05-Jan-2005  martin Add LD_BIND_NOW support for sparc64.
 1.85 22-Oct-2004  skrll Add __RCSIDs.

OK'd by mycroft.
 1.84 17-Jul-2004  petrov Don't print relocated content (in DEBUG mode) as it can cause
misaligned access. It needs to be done differently if needed at all.
Fix PR port-sparc64/20907.
 1.83 17-May-2004  skrll Fix the dynamic linker for hppa using ELF.

Lazy binding doesn't work 100% of the time so force immediate binding.
One possible reason is that the PLT stub blows away r20 which the
compiler might not take into account.
 1.82 12-May-2004  skrll Add a debug message.
 1.81 12-Aug-2003  skrll branches: 1.81.2;
Resolve dlsym(3) and friends directly so that dlsym(RTLD_NEXT,...) works.

Previously dlsym resolved to the version in crt0.o or libc which would
mean that the caller's shared object couldn't be determined correctly
using __builtin_return_address(0).

Mainly from FreeBSD, but adapted by me. Benefits of this solutions are:

- backward comptibility maintained
- existing broken binaries are fixed with a new ld.elf_so
- __mainprog_obj can be removed from crt0.o
- we do the same thing as FreeBSD

Fixes PR 22067.

OKed by Jason and Christos.
 1.80 24-Jul-2003  skrll ANSIfy and de-__P().
 1.79 21-Jul-2003  skrll Support immediate binding on arm.
 1.78 14-Dec-2002  junyoung Remove comment which is not true any more. alpha and i386 support
R_xxx_COPY relocations.
 1.77 25-Nov-2002  mycroft Back out the last two changes. They were misguided, and the code worked
correctly before.
 1.76 22-Nov-2002  junyoung Now _rtld_relocate_objects() returns with error as soon as any of
subsequent calls in it fails.

Spotted by wiz and enami.
 1.75 21-Nov-2002  junyoung Simplify code a bit.
 1.74 26-Sep-2002  mycroft Remove the `self' args to _rtld_relocate_objects() and
_rtld_relocate_nonplt_objects().
 1.73 25-Sep-2002  mycroft Push the _rtld_bind() interface into MD code -- it's just a trivial wrapper
anyway.
 1.72 24-Sep-2002  mycroft Put back the `in_plt' nonsense for now.
It turns out there is some deep-seated wackiness WRT function pointer
comparisons...
 1.71 24-Sep-2002  mycroft Reverse the previous patch, but make the dbg()s more informative.
 1.70 24-Sep-2002  junyoung G/c dbg()'s.
 1.69 23-Sep-2002  mycroft Several small changes that shave 7-8% off the simple-exec-loop test:

* Rename _rtld_find_library() to _rtld_load_library(). It now calls
_rtld_load_object() if necessary to actually load the object, rather
than having the caller do it. To do this, it also takes the `mode'
argument that gets passed to _rtld_load_object().

* On a related note, remove _rtld_check_library(), and instead call
_rtld_load_object() to instead try actually loading the object. We
save two extra namei's and a bunch of redundant work (almost
literally the same code) this way.

* In _rtld_map_object(), mmap(2) the first page read-only, rather than
read(2)ing it.

* In _rtld_symlook_obj(), compare the *second* character of the symbol
name before calling strcmp(). (This first character is too
frequently `_', and turns out to not be helpful, in libc.)

* Also in _rtld_symlook_obj(), remove the bogus STT_FUNC special case
-- this also allows removing the `in_plt' argument to
_rtld_symlook_list() and _rtld_symlook_obj().

Also:

* In _rtld_obj_from_addr(), rather than trying to look up `_end' in
the each object, instead use obj->mapsize as the upper bound.
 1.68 17-Sep-2002  junyoung Make immediate binding work again by actually implementing
_rtld_relocate_plt_objects(). Note that this is for i386 only;
any efforts to make it work on other platforms are left to
those who are using them...
 1.67 13-Sep-2002  mycroft _rtld_bind() is not used on MIPS. Should probably move it to MD code.
 1.66 12-Sep-2002  mycroft Nuke -DRTLD_RELOCATE_SELF and `dodebug' from orbit.
 1.65 06-Sep-2002  mycroft Pass down an additional flag to _rtld_relocate_nonplt_objects() which
indicates whether we're relocating ld.elf_so itself. Use this in some places
rather than hackish tests on `dodebug'. (The Alpha and HPPA `dodebug' tests
were actually noops, because RTLD_RELOCATE_SELF is not set, and therefore
dodebug is always true.)
 1.64 06-Sep-2002  mycroft Introduce a new flag, `isdynamic', which is used to remember whether the
executable was of type ET_DYN. Use this instead of `mainprog' to determine
whether we need to do base-relative fixups of the PLT. (This allows loading
non-relocatable objects, should we desire to do that at some point...)
 1.63 06-Sep-2002  mycroft More const poisoning. Now the entire _rtld_bind() path useds a const Obj_Entry.
 1.62 06-Sep-2002  mycroft Split _rtld_relocate_plt_object() into two MD functions:
* _rtld_relocate_plt_lazy() fixes up all the relocs pointing to the PLT. (On
most platforms it just does a simple base-relative fixup; on SPARC it does
nothing.)
* _rtld_relocate_plt_object() does immediate binding for a PLT entry.
The basic gist is that this saves a bit of time on SPARC (where the iteration
through the pltrela table was gratuitous), and a little less time on all other
platforms. A whole lot of #ifdef'ed crap is moved out of reloc.c, too.

NOT tested on: hppa sh x86_64
 1.61 05-Sep-2002  mycroft A few things:
* Pass a symbol number to _rtld_find_symdef(), not a r_info.
* Don't try to do a symbol lookup when we find an unsupported relocation;
instead get the symbol name from the referencing object's strtab.
* Add preliminary support for `-z combreloc'-style startup optimization on
i386, `#ifdef COMBRELOC'.
 1.60 05-Sep-2002  mycroft Rename _rtld_relocate_nonplt_object() to _rtld_relocate_nonplt_objects(),
and push the outer loop into it. This actually shaves a couple % off startup
time at least on PCs.
 1.59 05-Sep-2002  mycroft Split _rtld_relocate_nonplt_object() into separate MD files.
 1.58 05-Sep-2002  mycroft Split MIPS relocation goo into mips_reloc.c.
 1.57 05-Sep-2002  mycroft Simplify a couple of tests to !__mips__.
 1.56 05-Sep-2002  mycroft Combine the code that skips COPY relocs on most platforms (other than MIPS).
Remove the code that skips JMP_SLOT relocs (thus making ld.elf_so bomb if it
hits one in the non-PLT relocation table).
 1.55 05-Sep-2002  junyoung Remove unused arguments of _rtld_find_symdef().
 1.54 05-Sep-2002  mycroft Remove support for PowerPC static relocations, which are not present in shared
objects, and in any case are implemented WRONG. (They're symbol-relative, not
base-relative.)
 1.53 05-Sep-2002  mycroft Make _rtld_setup_pltgot() a consistent interface on all platforms.
 1.52 10-Jul-2002  fredette Add support for dynamic linking on HP PA-RISC.
 1.51 03-Feb-2002  thorpej branches: 1.51.2;
Add support for dynamic linking on the SuperH. From Marcus Comstedt,
with some bug fixes (namely, don't forget to consider the addend when
processing relocations) from me.
 1.50 06-Jan-2002  eeh Do not attempt to relocate any pltrela entries that are not JMP_SLOT on sparc64.
 1.49 20-Dec-2001  thorpej Small whitespace fix.
 1.48 20-Dec-2001  thorpej Upon further investigation, do NOT include an addend in RELATIVE
relations (the addend should always be zero, but this is safer).
 1.47 20-Dec-2001  thorpej Include the addend in GLOB_DAT relocations (!!).
 1.46 16-Dec-2001  thorpej * Move The Alpha R(RELATIVE) handling into an Alpha-specific code block,
thus isolating the "iffy hueristic" from the rest of the relocation code.
* In the "iffy hueristic", use _GOT_END_, not _DYNAMIC.
* Include the addend in Alpha R(RELATIVE) relocations.
 1.45 14-Dec-2001  thorpej Add code to peek into the PLT and determine which PLT entry format
is being used.
 1.44 13-Dec-2001  thorpej Supply two lazy binding routines for Alpha: one that works with the
old PLT format, and one that works with the new.

XXX We currently always use _rtld_bind_start_old() in
_rtld_setup_alpha_pltgot(). We need to add code to peek
into one of the PLT entries to see which format it's in
and pick the correct binding routine.
 1.43 13-Dec-2001  rafal Check in workaround for BFD ABI change on MIPS: the new MIPS BFD generates
relocs for local symbols as section-relative REL32 relocs with values based
at 0, whereas previously BFD generated those relocs with values based at the
start address of the section.

This code adjusts all STT_SECTION REL32 relocs which have values less than
the start of the section by adding in the base address of the section. This
may limit section sizes to 2GB, but that shouldn't be a problem for now.

XXX: Needs to be followed-up with binutils list to get closure on which
interpretation is correct (the new ABI or the old one), I just haven't
yet had the time to chase that.
 1.42 10-Sep-2001  mycroft Reorganize PowerPC cold a little. The return value from _rtld_bind_pltgot()
was ambiguous in the case of a weak symbol that was not defined. This caused
RTLD_NOW to fail badly with shared libraries linked against the new crtbegin.o.
 1.41 14-Aug-2001  eeh Workaround for binutils 2.11 behavior.
 1.40 16-Jul-2001  matt Fix ABS32 ARM reloc case. ELF shared libs on ARM now work!
 1.39 15-Jul-2001  matt Bugfix for _rtld_start. Enable common plt processing code for arm
 1.38 15-Jul-2001  matt Enable arm if OBJECT_FMT is ELF. Initialize first few GOT entries for ARM.
 1.37 15-Jul-2001  matt Add support for ARM ELF dynamic relocs.
 1.36 19-Jun-2001  fvdl Preliminary x86-64 support. Not fully functional yet (toolchain bugs).
 1.35 25-Apr-2001  kleink Sync with <sys/exec_elf.h> rev. 1.45: ElfNN_RelA -> ElfNN_Rela.
 1.34 04-Feb-2001  christos avoid nested extern
 1.33 11-Oct-2000  dan format warning fixes from he, after testing on 64-bit elf (alpha)
 1.32 07-Aug-2000  matt Simplify some stuff.
 1.31 26-Jul-2000  mycroft Catch up with type changes. Also:
* Apply DT_PLTRELSZ to (one of) pltrel or pltrela *after* we've finished
parsing the headers, so we know which one.
* Fix sparc64 bogons. (It works now!)
 1.30 18-Jul-2000  eeh Fix some issues with SPARC V9 ELF binaries.
 1.29 17-Jul-2000  matt More VAX ELF changes.
 1.28 14-Jul-2000  matt Update to reflect VAX ELF reality.
 1.27 13-Jul-2000  eeh Added support for the SPARC v9 ABI.
 1.26 01-May-2000  kleink branches: 1.26.4;
PowerPC: support ADDR16_LO, ADDR16_HI and ADDR16_HA relocations.
 1.25 07-Feb-2000  scottb add hooks to support the dladdr function.
 1.24 08-Dec-1999  itohy Use "addend" for R_68K_GOT32, R_68K_PC32, and R_68K_32 relocations.
I'm not sure whether R_68K_GOT32 relocations appear in shared
objects, though....

Example:
lea %pc@(got+0x1234@GOTPC),%a0 | R_68K_GOT32
bsrl foo+0x5678 | R_68K_PC32
lea bar+0x9abc,%a1 | R_68K_32
 1.23 07-Nov-1999  mycroft Changes from msaitoh to fix local/global symbol confusion, and to fix weak
symbol support -- updated by me for elf.h changes.
 1.22 28-Oct-1999  simonb More SVR4-style ELF cleanups.
 1.21 21-Aug-1999  matt branches: 1.21.2;
Initial VAX ELF32 support (mostly untested). It's checked primarily for
testing and archival for now. I don't expect anyone to work with it
since the binutils and gas changes are still pending. But you got to
crawl before you walk.
 1.20 29-Apr-1999  kleink Add m68k code.
 1.19 13-Mar-1999  christos branches: 1.19.2;
Fix i386 problem, when we are relocating ourselves... We cannot depend
on the address of GOT or _DYNAMIC.
 1.18 03-Mar-1999  christos Make this compile without -DRTLD_LOADER and fix printf format problems on
the alpha.
 1.17 03-Mar-1999  jonathan Not all ports use 'tmp'.
 1.16 01-Mar-1999  christos KNF
 1.15 27-Feb-1999  scottr Fix typo introduced in rev 1.11
 1.14 27-Feb-1999  pk Introduce pre-preocessor symbol RTLD_INHIBIT_COPY_RELOCS.
Currently, only mips does not include COPY_RELOCs code.
 1.13 26-Feb-1999  pk Completely construct the first PLT entry and correctly compute the
PC relative offset in the call insn.
 1.12 25-Feb-1999  tv Partial fix for Alpha breakage. s/tmp_value/tmp/ in two places, and don't
try to check _rtld_objself when doing R_TYPE(RELATIVE) relocs, as the
Alpha ld.elf_so contains them!

I'm not sure the logic for the RELATIVE fix is quite right; it happens to
Work on alpha, but do we actually need to make sure we aren't relocating
ld.elf_so there?

XXX: I am working on making use of RTLD_RELOCATE_SELF on alpha, which may
make this hack of a fix moot.
 1.11 24-Feb-1999  christos Cleanup global variable access so rtld can be self relocating. Also KNF
reloc.c and move md sparc parts to arch/sparc/mdreloc.c
Now we don't need to load at address 0 on the i386 and the mips should be
trivial to fix.
 1.10 24-Feb-1999  pk Fix glitch in previous.
 1.9 22-Feb-1999  pk Add an approximation of the necessary sparc bits in here.
I've not followed the trend in this file by trying to wrench the MD
code into individual functions. Rather I,ve replaced several functions
wholesale. Anyway, this whole file needs to be re-done.
 1.8 13-Feb-1999  christos tv is right; we don't need to specialcase the i386.
 1.7 12-Feb-1999  tv On everything but the i386, don't write new values into the GOT that are
not pointing to the PLT in _rtld_relocate_plt_object(). I'm not quite
sure why the i386 added the extra relocations, but it removed the `return
0' needed for other arches.

THIS DOES NOT YET FIX BUILDING LD.ELF_SO ON ALPHA. There are some other
binutils 2.9.1 related issues, but this does return build ability to
2.8.1 based as and ld. Will do more investigation later.
 1.6 07-Feb-1999  christos Fixed for i386/elf.
 1.5 11-Jan-1999  thorpej Fixup some printf format argFixup some printf format argFixup some printf format argFixup some printf format argFixup some printf format argFixup some printf format argFixup some printf format argFixup some printf format argFixup some printf format args.
 1.4 10-Jan-1999  christos Add i386 bits
 1.3 24-Nov-1998  tsubai Add powerpc support.
 1.2 25-Mar-1998  mhitch Add support for mips.
 1.1 16-Dec-1996  cgd branches: 1.1.2;
First cut at an ELF shared loader. Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.). This runs, but it's
in serious need of cleaning and/or a fair bit of reworking. See the README
file for more information, and a list of things to do.
 1.1.2.1 08-May-1998  mycroft Sync with trunk, per request of mycroft.
 1.19.2.1 11-Oct-2000  he Apply patch (requested by he):
Print possible 64bit values with %ld and cast to u_long.
 1.21.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.26.4.4 09-Dec-2001  he Pull up revisions 1.34,1.41-1.42 (via patch, requested by skrll):
Add init/fini section support in crtbegin and crtend, and introduce
support for DWARF2 exception handling. Fixes PR#12865, PR#13488,
PR#13489, and PR#13491. Also fix ld.elf_so to deal appropriately.
 1.26.4.3 01-May-2001  he Pull up revision 1.35 (requested by kleink):
Rename ElfNN_RelA to ElfNN_Rela, which is what SVR4 ABIs and the
rest of the world uses. Fixes PR#12274.
 1.26.4.2 16-Oct-2000  tv Pullup 1.33 [dan]:
format warning fixes from he, after testing on 64-bit elf (alpha)
 1.26.4.1 26-Jul-2000  mycroft Approved by thorpej:
Add support for sparc64, including MD code and variable page size support.
Modify some variable types to insure they are the correct width on sparc64.

basesrc/libexec/ld.elf_so/arch/sparc64/Makefile.inc 0 -> 1.1
basesrc/libexec/ld.elf_so/arch/sparc64/mdreloc.c 0 -> 1.3
basesrc/libexec/ld.elf_so/arch/sparc64/rtld_start.S 0 -> 1.2
basesrc/libexec/ld.elf_so/headers.c 1.6 -> 1.8
basesrc/libexec/ld.elf_so/reloc.c 1.26 -> 1.27
basesrc/libexec/ld.elf_so/reloc.c 1.29 -> 1.31
basesrc/libexec/ld.elf_so/rtld.c 1.34 -> 1.35
basesrc/libexec/ld.elf_so/rtld.c 1.36 -> 1.40
basesrc/libexec/ld.elf_so/rtld.h 1.26 -> 1.27
basesrc/libexec/ld.elf_so/symbol.c 1.7 -> 1.9
 1.51.2.2 23-Jul-2004  tron Pull up revision 1.84 (requested by skrll in ticket #1726):
Don't print relocated content (in DEBUG mode) as it can cause
misaligned access. It needs to be done differently if needed at all.
Fix PR port-sparc64/20907.
 1.51.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.81.2.1 17-Jul-2004  he Pull up revision 1.84 (requested by petrov in ticket #673):
Don't print relocated content (in DEBUG mode), as it can
cause misaligned accesses. Fixes PR#20907.
 1.95.20.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.96.10.1 21-Apr-2010  matt sync to netbsd-5
 1.96.4.3 17-Mar-2012  bouyer Pull up following revision(s) via patch (requested by skrll in ticket #1724):
rescue/list.ldd: revision 1.4
lib/libc/dlfcn/dlfcn_elf.c: revision 1.7
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.57
distrib/sets/lists/comp/mi: revision 1.1512
share/man/man3/Makefile: revision 1.56
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.58
usr.bin/ldd/ldd.c: revision 1.15
libexec/ld.elf_so/rtld.h: revision 1.84
share/man/man3/dl_iterate_phdr.3: revision 1.1
libexec/ld.elf_so/rtld.c: revision 1.129
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.44
libexec/ld.elf_so/rtld.h: revision 1.89
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.36
libexec/ld.elf_so/map_object.c: revision 1.41
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.37
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.46
include/link_elf.h: revision 1.10
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.29
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.26
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.34
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.31
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.35
libexec/ld.elf_so/Makefile: revision 1.94
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.32
libexec/ld.elf_so/Makefile: revision 1.95
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.31
libexec/ld.elf_so/Makefile: revision 1.96
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.32
libexec/ld.elf_so/reloc.c: revision 1.98
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.33
sys/sys/exec_elf.h: revision 1.106
libexec/ld.elf_so/rtld.c: revision 1.130
libexec/ld.elf_so/load.c: revision 1.37
libexec/ld.elf_so/rtld.c: revision 1.131
libexec/ld.elf_so/load.c: revision 1.38
libexec/ld.elf_so/rtld.h: revision 1.90
libexec/ld.elf_so/headers.c: revision 1.36
libexec/ld.elf_so/rtld.h: revision 1.95
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.30
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.25
libexec/ld.elf_so/symbol.c: revision 1.50
libexec/ld.elf_so/symbol.c: revision 1.51
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.43
libexec/ld.elf_so/symbol.c: revision 1.52
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.27
libexec/ld.elf_so/symbol.c: revision 1.54
PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
Implement dl_iterate_phdr.
Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.96.4.2 23-Jan-2010  bouyer Pull up following revision(s) (requested by skrll in ticket #1249):
libexec/ld.elf_so/rtld.h: revisions 1.87, 1.88
libexec/ld.elf_so/reloc.c: revision 1.101
Restore backwards compatibility for binaries referencing the main
Obj_Entry.
 1.96.4.1 14-Oct-2009  sborrill Pull up the following revisions(s) (requested by pooka in ticket #1088):
include/dlfcn.h: revision 1.20
lib/libc/dlfcn/dlfcn_elf.c: revision 1.6
libexec/ld.elf_so/reloc.c: revision 1.97
libexec/ld.elf_so/rtld.c: revision 1.125
libexec/ld.elf_so/rtld.h: revision 1.81
libexec/ld.elf_so/symbol.c: revision 1.48

Add Solarisa-like dlinfo() interface to the ELF dynamic linker.
Implement RTLD_DI_LINKMAP which returns a pointer to the linkmap
chain at the given object. Other Solaris queries are currently
unimplemented.
 1.104.2.1 17-Apr-2012  yamt sync with head
 1.106.18.2 09-Jul-2017  snj Pull up following revision(s) (requested by uwe in ticket #1411):
libexec/ld.elf_so/reloc.c: revision 1.110
PR port-macppc/47464 - Old binutils generated bogus zero-sized COPY
relocations for _SDA_BASE_ and _SDA2_BASE_ that happened to work by
accident. They no longer happen to work when old binaries are run on
newer systems. Explicitly ignore these bogus relocations.
 1.106.18.1 06-Mar-2016  martin Catch up to -current, via patch, requested by christos in ticket #1126:
 1.106.2.1 21-Jul-2017  snj Pull up following revision(s) (requested by uwe in ticket #1450):
libexec/ld.elf_so/reloc.c: revision 1.110
PR port-macppc/47464 - Old binutils generated bogus zero-sized COPY
relocations for _SDA_BASE_ and _SDA2_BASE_ that happened to work by
accident. They no longer happen to work when old binaries are run on
newer systems. Explicitly ignore these bogus relocations.
 1.109.6.1 02-May-2017  pgoyette Sync with HEAD - tag prg-localcount2-base1
 1.111.2.3 18-Jan-2019  pgoyette Synch with HEAD
 1.111.2.2 20-Oct-2018  pgoyette Sync with head
 1.111.2.1 07-Apr-2018  pgoyette Sync with HEAD. 77 conflicts resolved - all of them $NetBSD$
 1.112.2.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.112.2.1 10-Jun-2019  christos Sync with HEAD
 1.117.2.1 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #300):

libexec/ld.elf_so/rtld.h: revision 1.145
libexec/ld.elf_so/symbol.c: revision 1.74
libexec/ld.elf_so/rtld.h: revision 1.147
libexec/ld.elf_so/symbol.c: revision 1.75
libexec/ld.elf_so/symbol.c: revision 1.76
tests/libexec/ld.elf_so/t_hash.c: revision 1.1
libexec/ld.elf_so/Makefile: revision 1.145
libexec/ld.elf_so/Makefile: revision 1.146
libexec/ld.elf_so/Makefile: revision 1.147
libexec/ld.elf_so/reloc.c: revision 1.118
distrib/sets/lists/tests/mi: revision 1.1280
libexec/ld.elf_so/rtld.c: revision 1.215
tests/libexec/ld.elf_so/Makefile: revision 1.21
libexec/ld.elf_so/hash.c: revision 1.1
libexec/ld.elf_so/hash.h: revision 1.1
distrib/sets/lists/debug/mi: revision 1.409

The SysV ABI specifies that the symbol hash function should return only 32
bits of hash. Unfortunately due to an implementation bug and the fact that
the return type is unsigned long which is 64 bits in LP64, this can fail
in some cases: "\xff\x0f\x0f\x0f\x0f\x0f\x12". See:
"https://maskray.me/blog/2023-04-12-elf-hash-function
From Ed Maste @ FreeBSD:
https://cgit.freebsd.org/src/commit/?id=29e3a06510823edbb91667d21f530d3ec778116d

Need to write Unit Tests for this.

Oops wrong mask.

ld.elf_so: Split SRCS onto multiple lines.
Makes updates easier.
No functional change intended.

ld.elf_so: Sort SRCS.
No functional change intended.

ld.elf_so: Split hash functions into a separate file.
This way we can test them in isolation.
No functional change intended.

ld.elf_so: Add some known-answer tests for hash functions.

Make sure the testing mechanism detects the traditional overflow bug.
 1.118.2.1 02-Aug-2025  perseant Sync with HEAD
 1.221 02-May-2025  riastradh ld.elf_so: Narrow scope of -Wno-stack-protector.

Don't need it outside immediate _rtld_donelist_init callers.

PR lib/59388: ld.elf_so: -Wno-stack-protector applies too broadly
 1.220 18-Apr-2025  riastradh ld.elf_so: Call _rtld_die if relro fails; don't return -1.

Returning -1 was a pasto from where the original _rtld_relro call
came from, in _rtld_do_copy_relocations.

PR lib/57792: SIGSEGV in ld.elf_so / _rtld_call_ifunc
 1.219 18-Apr-2025  riastradh ld.elf_so(1): Defer RELRO a bit for eagerly-bound (-z now) programs.

GNU binutils links programs a little differently if they're eagerly
bound with -Wl,-z,now. In particular, the part of the .got relocated
for ifuncs is covered by the RELRO region in eagerly-bound programs
(-z now), but not in lazily-bound programs (default).

Presumably this is done under the premise that eagerly-bound programs
will resolve all ifuncs at startup _before_ mprotecting the main
object's RELRO region. But ld.elf_so was mprotecting it first, in
_rtld_do_copy_relocations, and then resolving ifuncs -- at which the
memory locations where it tries to write the resolutions will be
mapped read-only.

(In contrast, for lazily bound programs, ifuncs may also be resolved
lazily, so the locations they relocate are _not_ covered by the RELRO
region and we don't run into any trouble)

To avoid this trouble, for eagerly-bound programs, we defer the RELRO
mprotect of the main object by a little bit -- we move it from
_rtld_do_copy_relocations to just after _rtld_call_init_functions.

PR lib/57792: SIGSEGV in ld.elf_so / _rtld_call_ifunc
 1.218 31-Jan-2025  christos Prefer the kernel passed exec name as opposed to argv[0] for the main object
name, if available. This is more useful because it is an absolute path
and more consistent.
 1.217 19-Jan-2024  christos branches: 1.217.2;
use header decl of __fork()
 1.216 03-Oct-2023  martin PR 57628: at the end of _rtld_init() explicitly initialize the ld.elf_so
local copy of the atomic access support functions for machines that do not
implement all required ops in hardware (like 32bit sparc).

XXX would be better to figure out a way to share this copy with libc
(thereby using half as many RAS sections). But even if we would share it,
we have to init it early enough for ld.elf_so internal uses.
 1.215 30-Jul-2023  riastradh ld.elf_so: Split hash functions into a separate file.

This way we can test them in isolation.

No functional change intended.
 1.214 04-Jun-2023  riastradh ld.elf_so: Sprinkle more debug messages on dlopen and error.

PR pkg/57445
 1.213 23-Apr-2023  riastradh dlopen(3): Read _rtld_objtail under the lock.

XXX pullup-8
XXX pullup-9
XXX pullup-10
 1.212 13-Sep-2022  riastradh branches: 1.212.2;
ld.elf_so(8): Make fork take a shared, not exclusive, lock.

We only need to ensure that there are no concurrent modifications to
the rtld data structures in flight, since the threads that began
those modifications will not exist in the child and will therefore be
unable to complete them in the child.

A shared lock suffices to ensure there are no such concurrent
modifications in flight; an exclusive lock is not necessary, and can
cause deadlock if fork is executed from a signal handler, which is
explicitly allowed by POSIX (and our own sigaction(2) man page) which
marks fork as async-signal-safe.

PR lib/56979
 1.211 09-Apr-2022  riastradh rtld: Convert membar_exit/enter to membar_release/acquire.

These are basic CAS-based locking primitives needing release and
acquire semantics, nothing fancy here -- except the membar_sync parts
which are questionable but not relevant to the present audit.
 1.210 04-Dec-2021  skrll Restore the fptr_t type of {init,fini}{,_array} that was removed when initial
support for indirect functions was added. This fixes {init,fini}_array support
on hppa where each member of the array is (already) a plabel.

Discussed with joerg.

4 files changed, 29 insertions(+), 39 deletions(-)
: ----------------------------------------------------------------------
 1.209 16-Jun-2021  riastradh ld.elf_so(1): Omit needless membar_enter.

The use of membar_enter is to separate atomic r/m/w on a lock from
the body of the critical section so two different critical sections
happen in order:

body of previous critical section;

exit critical section:
membar_exit();
atomic_r/m/w(lock stuff);

enter critical section:
atomic_r/m/w(lock stuff);
membar_enter();

body of next critical section;

_rtld_shared_enter does this, but it _also_ issued an extraneous
membar_enter before the atomic_r/m/w part, which doesn't impose any
semantically important order but may cost some performance.
 1.208 30-May-2021  joerg Don't use the return address hack with clang.
 1.207 22-Sep-2020  kamil branches: 1.207.2;
Correct r_ldbase valuse

It shall be the relocbase value, not linkmap.
 1.206 21-Sep-2020  kamil Upgrade the SVR4 RTLD r_debug protocol to version 1

Changes:
- Add a new field r_ldbase in the r_debug struct.
- Set r_version to 1.

This harmonizes the support with OpenBSD and Linux.
FreeBSD uses version 0 (or no version).
Solaris uses version 2 that is not implemented elsewhere and relies on
SVR4 specific design and interfaces.

Update the code comments as r_debug and link_map is used by other software
than GDB, namely: sanitizers, rump, LLDB.
 1.205 19-Apr-2020  joerg Rename __atomic_fork to __locked_fork and give it &errno as argument.
rtld and libc use different storage, so the initial version would
incorrectly report the failure reason for fork().

There is still a small race condition inside ld.elf_so as it doesn't use
thread-safe errno internally, but that's a more contained internal
issue.
 1.204 16-Apr-2020  joerg Introduce intermediate locking for fork, so that the dynamic linker is
in a consistent state. This most importantly avoids races between dlopen
and friends and fork, potentially resulting in dead locks in the child
when it itself tries to acquire locks.
 1.203 04-Mar-2020  thorpej PT_GNU_RELRO segments are arranged such that their vaddr + memsz ends
on a linker common page size boundary. However, if the common page size
used by the linker is less than the VM page size being used by the kernel,
this can end up in the middle of a VM page and when the region is write-
protected, this can cause objects in neighboring .data to get incorrectly
write-protected, resulting in a crash.

Avoid this situation by calculating the end of the RELRO region not by
rounding memsz up to the VM page size, but rather by adding vaddr + memsz
and then truncating to the VM page size.

Fixes PR toolchain/55043.

XXX pullup-9
 1.202 29-Feb-2020  kamil Implement and integrate GNU Hashing function

Define Elf_Hash struct that contains ELF/SYSV and GNU hash checksum.
Implement _rtld_gnu_hash() for DT_GNU_HASH.
Adapt existing code to compute all Elf_Hash types, instead of only
the ELF/SYSV one.
Rename _rtld_elf_hash() to _rtld_sysv_hash() to match the GNU toolchain
terminology.

_rtld_gnu_hash() uses Dan Bernstein's string hash function posted eons ago
on comp.lang.c.
 1.201 08-Dec-2019  uwe _rtld_relro - fix debug printf format for a size_t argument
 1.200 04-Oct-2019  christos use __func__ (c99, c++11) instead of __FUNCTION__
 1.199 03-Oct-2019  tnn improve error message
 1.198 15-Sep-2019  kamil Return the ELF loader dl_phdr_info information for dl_iterate_phdr(3)

Sync the behavior of dl_iterate_phdr(3) with Linux/FreeBSD/OpenBSD.
 1.197 14-Apr-2019  christos branches: 1.197.2;
undo previous unlock/relock; it is not needed now that we added the tls model
declaration to all externs in jemalloc (suggested by joerg@)
 1.196 13-Apr-2019  christos Fix c++ exceptions on arm; jemalloc calls _rtld_tls_get_addr from inside
dl_iterate_phdr, so we need to unlock and relock.
 1.195 30-Dec-2018  christos binutils 2.31.1 can put copy relocations in the relro segment. Delay
protecting the relro segment for the main object until copy relocations
are done.
 1.194 27-Dec-2018  christos explain why we skip objmain.
 1.193 17-Oct-2018  joerg Move compatibility for pre-2.0 ELF binaries into separate file.
Early ELF binaries defined dlopen and friends in crt0.o by
using function pointers in the object handle passed from rtld.
This contract wastes space when many shared objects are allocated
and ties dynamic linker and rest of the system tightly together.
Fake the entry points in a static object and restrict them to the
platforms that had working ELF support at the time. Keep the magic and
version field used by modern crt0.o for all architectures. The checks
will be removed from crt0.o in a follow-up step.
 1.192 03-Apr-2018  joerg branches: 1.192.2;
Rework ifunc support to address a number of short comings:
- Move to a shared _rtld_call_ifunc for rel and rela architectures
- Architectures using rel format must patch IRELATIVE non-PLT
relocations like RELATIVE in additition to the later ifunc handling
- Consistently record the delta to the end of the relocation group for
non-PLT IRELATIVE relocations

Hidden ifunc is now supported on all ifunc platforms, even when using
-fno-plt. The combination of -fno-plt and relro is broken due to
incorrect GNU ld output though.
 1.191 09-Mar-2018  joerg Like Sparc, PowerPC can use IRELATIVE relocations in non-PLT sections.
 1.190 11-Feb-2018  jakllsch branches: 1.190.2;
Wrap PowerPC #pragma goop in #if __GNUC_PREREQ__(6,0).
Our older GCC warns/errors on it.
 1.189 07-Feb-2018  mrg update for GCC 6:

ignore -Wframe-address warnings for the ppc hack.
 1.188 06-Nov-2017  joerg init/fini for the main program is handled by crt0.o, so ifunc handling
is skipped right now as it iterates the same list. Don't repeat that
mistake and explicitly take care of it in the dynamic linker.
 1.187 12-Aug-2017  joerg Add sparc/sparc64 support for irelative relocations.
 1.186 10-Aug-2017  joerg Add IRELATIVE support for ARM, X86 and PowerPC.
 1.185 11-Jul-2017  joerg Implement __cxa_thread_atexit and __cxa_thread_atexit_impl. This
functions are used for destructors of thread_local objects.

If a pending destructor exists, prevent unloading of shared objects.
Introduce __dl_cxa_refcount interface for this purpose. When the last
reference is gone and the object has been dlclose'd before, the
unloading is finalized.

Ideally, __cxa_thread_atexit_impl wouldn't exist, but libstdc++ insists
on providing __cxa_thread_atexit as direct wrapper without further
patching.
 1.184 08-Jun-2017  joerg Call _rtld_debug_state before running the global initialisers, so give
gdb a chance to set break points etc.
 1.183 27-Feb-2017  chs branches: 1.183.4;
tag the powerpc hackish_return_address() as __noinline.
 1.182 01-Dec-2016  christos branches: 1.182.2;
n dl_iterate_phdr return the path not the name.
 1.181 01-Dec-2016  christos Instead of using a function to resolve symbols that should be supplied by
the dynamic linker itself, use a version script that exposes them. From joerg@
 1.180 30-Nov-2016  christos add missing newline in comment
 1.179 30-Nov-2016  christos Emulate the standard symbol search order in dlsym() i.e. resolve weak or
not found symbols that are in the dynamic linker list of exported symbols
from the dynamic linker itself.
 1.178 24-May-2016  christos branches: 1.178.2;
Put the name of the dynamic linker in allocated memory, so that it becomes
part of the core file link-map, so that gdb can find it.
 1.177 06-Apr-2015  yamt Fix membars around rtld internal mutex.

This fixes the most of lockups i observed with Open vSwitch
on NetBSD/amd64. ("most of" because it still occasionally
locks up because of other problems. see PR/49816)
 1.176 04-Apr-2015  joerg lib/49813: Release mutex on error.
 1.175 05-Mar-2015  skrll HPPA hack for a problem where gdb doesn't see _rtld_debug_state when
it's a single bv,n %r0(%rp) instruction.

The nullify confuses something.
 1.174 25-Aug-2014  joerg Add basic support for indirect functions. It allows providing a public
function symbol with an implementation choosen at run time.
Refactor calls to functions by address in ld.elf_so to create temporary
function descriptors on the stack, if the address is not leaked outside.

Limitations:
- no support for initialising static storage with function pointers
- no support for unnamed resolver functions

Inspired by FreeBSD's r228435 by kib@freebsd.org.
 1.173 18-Mar-2014  joerg branches: 1.173.4;
Ignore LD_BIND_NOW for setuid binaries, but keep it in the environment
otherwise.
 1.172 31-Jan-2014  joerg Catch up with _lwp_park change.
 1.171 20-Nov-2013  skrll If dlopen of the dynamic linker is requested, e.g. by rump in
rumpuser_dl_bootstrap, then return &_rtld_objself as the handle and do
not create a duplicate mapping.

The handle is mostly useless as _rtld_objself doesn't appear on
_rtld_objlist.

This fixes a problem on earm platforms where ld.elf_so (currently) has
an init_array section. Calling this caused binaries to segv.
 1.170 19-Oct-2013  christos fix unused variable warnings
 1.169 09-May-2013  skrll Remove redundant assignment. Hasn't been needed since 1999.
 1.168 09-May-2013  christos remove stray debugging
 1.167 09-May-2013  christos convert to SIMPLEQ like the rest of the queues.
 1.166 06-May-2013  christos Fixed handling of DT_SONAME:

- add function to add name aliases for shared libraries loaded
XXX[1]: we don't add a name during load time, only when DT_SONAME
is present.
- search already loaded objects in load_by_name for an already
loaded object that matches our name and return it.
- add missing initialization and cleanup for obj->names
XXX[2]: should we make them SIMPLEQ?
- Add XXX in rtld.c about getting the name of an object.

NB: This makes the jdk work again without resorting to a hack of putting
the build path of libjvm.so into the run path (which is a security
problem).
XXX: Pullup-6?
 1.165 06-May-2013  skrll Trailing whitespace
 1.164 06-May-2013  skrll Disalble a debug only where it causes problems.
 1.163 03-May-2013  matt Remove dbg for _ctype_
 1.162 02-May-2013  matt Print out &_DYNAMIC too.
 1.161 16-Dec-2012  dsl Fix the other lwp_park() to pass 0 for the 'unpark' lwp.
 1.160 16-Dec-2012  dsl You need to pass 0 (not -1) to lwp_park() if you don't also
want to do an unpark.
Clearly this code path was never tested!
Needs pullup to netbsd-6
 1.159 01-Oct-2012  riastradh On failure in _rtld_dlcheck, call _rtld_error, not xwarnx.

Callers need not call _rtld_error themselves now.

Fixes PR lib/41760. Should add the test case from the PR too.
 1.158 15-Aug-2012  matt branches: 1.158.2;
Add .init_array/.fini_array support (conditionalized on HAVE_INITFINI_ARRAY).
 1.157 13-Mar-2012  joerg Mark _rtld_debug_state as not to be inlined. Add an explicit instruction
barrier to prevent removal of calls to it.
 1.156 16-Feb-2012  joerg Add _dlauxinfo helper function to provide access to the ELF auxilary
vector. This can normally be found via __ps_strings, but libc is
initialised too early when linked dynamically and doesn't have access to
it yet, so provide an alternative mechanism via ld.elf_so.
Bump libc minor.
 1.155 25-Nov-2011  joerg branches: 1.155.2; 1.155.4; 1.155.6;
Unbreak RTLD_NEXT and co on platforms that don't inline or tail call
do_dlsym.
 1.154 17-Nov-2011  joerg FreeBSD bug report 161344: TLS area for the main thread is set up to
early, if e.g. pointers to functions are used as initializers.
 1.153 23-Oct-2011  christos branches: 1.153.2;
Don't block SIGTRAP so that on architectures where the debugger needs to
be able to receive sigtrap for breakpoints to work, it can. For example
we are setting breakpoints inside dlopen(), after we've blocked the signal,
so the process keep trapping and looping over the trap instruction without
being able to send the signal. Another way would be to move the
_rtld_debug_state() calls outside the critical section...
 1.152 13-Aug-2011  christos disable debugging that makes us core dump
 1.151 25-Jun-2011  nonaka PR/45015: ld.elf_so: support ELF symbol versioning
Applied latest patch.
 1.150 02-Apr-2011  joerg Revert pthread_atfork related change not intended for commit yet.
 1.149 02-Apr-2011  joerg Unbreak HPPA
 1.148 29-Mar-2011  joerg Block signals when using the exclusive lock.
 1.147 28-Mar-2011  joerg Refine locking scheme around init/fini to not hold the exclusive lock.
Use a simple generation count instead and restart looking for work if it
changed (e.g. due to an dlopen call from an init function).
Leave the possible dlclose() race for now.
 1.146 27-Mar-2011  joerg exit, not enter
 1.145 27-Mar-2011  joerg Handle _rtld_exit as full entry point since other threads may still be
running at the time.
 1.144 27-Mar-2011  joerg Add some debug messages for explicit rtld entry points
 1.143 27-Mar-2011  joerg Locking around dlclose()
 1.142 26-Mar-2011  joerg Fix merge error that broke HPPA
 1.141 25-Mar-2011  joerg Add basic locking to ld.elf_so.
 1.140 13-Mar-2011  joerg Fill in TLS related fields in dl_iterate_phdr if TLS is supported
 1.139 09-Mar-2011  joerg Add TLS support infrastructure. For dynamic binaries, ld.elf_so exports
_rtld_tls_allocate and _rtld_tls_free. libpthread uses this functions to
setup the thread private area of all new threads. ld.elf_so is
responsible for setting up the private area for the initial thread.
Similar functions are called from _libc_init for static binaries, using
dl_iterate_phdr to access the ELF Program Header.

Add test cases to exercise the different TLS storage models. Test cases
are compiled and installed on all platforms, but are skipped on
platforms not marked for TLS support.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.

It is inspired by the TLS support in FreeBSD by Doug Rabson and the
clean ups of the DragonFly port of the original FreeBSD modifications.
 1.138 24-Feb-2011  pooka make DEBUG compile without RTLD_DEBUG
 1.137 24-Dec-2010  skrll branches: 1.137.2;
Add support for DF_1_BIND_NOW, DF_1_NODELETE and DF_1_NOOPEN marked
objects, and the RTLD_NODELETE and RTLD_NOLOAD flags to dlopen(3).

Mark libpthread as DF_1_NOOPEN and use it to test the functionality.

Somewhat taken from FreeBSD.

Fixes PR 42029.

OK from christos and joerg.
 1.136 19-Dec-2010  skrll Sprinkle some KNF.
 1.135 19-Dec-2010  skrll Remove unnecessary #ifdef RTLD_DEBUG
 1.134 16-Dec-2010  joerg Don't use normal environment handling functions from libc, but iterate
once over the array and clean out entries as needed.
 1.133 16-Dec-2010  skrll s/rdbg/dbg/ in a few places.
 1.132 29-Oct-2010  christos PR/44010: YAMAMOTO Takashi: sbrk: grow 0xb3ba2000 failed, error = 12"
(due to setenv changes?)
Provide a mini unsetenv that does not allocate/free memory and does not
bother about locking.
 1.131 16-Oct-2010  skrll Implement dl_iterate_phdr.

Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.130 18-Mar-2010  roy Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
We need to disable SSP when using alloca.
 1.129 27-Feb-2010  roy Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
 1.128 10-Jan-2010  skrll Fixup comment.
 1.127 02-Dec-2009  christos If the environment is corrupt, die. From FreeBSD.
 1.126 17-Nov-2009  skrll Make _rtld_pagesz of type size_t.

Fixes round_down for alpha which made ldd(1) break.
 1.125 24-Sep-2009  pooka Add Solarisa-like dlinfo() interface to the ELF dynamic linker.
Implement RTLD_DI_LINKMAP which returns a pointer to the linkmap
chain at the given object. Other Solaris queries are currently
unimplemented.
 1.124 19-May-2009  christos warns=4
 1.123 26-Oct-2008  mrg branches: 1.123.2; 1.123.8;
if LD32DIR is defined:
- look in src/compat/lib/libc for libc_pic.
- define RTLD_ARCH_SUBDIR to "i386" or "sparc" for amd64 and sparc64
builds, respectively
if RTLD_ARCH_SUBDIR is defined, add this path before
RTLD_DEFAULT_LIBRARY_PATH in the default search path.
 1.122 04-Oct-2008  skrll lib/39649: dlsym(3) does not follow dependencies

Pull across code from FreeBSD to do a search of the passed object and it's
NEEDED objects (dependencies).

Reviewed by gimpy.
 1.121 27-Sep-2008  macallan avoid usind __builtin_return_address(0) on PowerPC because it fails in
Xorg's module loader.
Should fix PR37812
 1.120 24-Jul-2008  matt Refactor common code to _rtld_relocate_plt_object to i386 and arm so they
act like the other versions.
In _rtld_bind, if the result is 0, call _rtld_die.
Initialize _rtld_sym_zero.st_value to -_rtld_objself.maprelocbase. Now when
the symbol is resolved, st_value + maprelocbase will equal 0 and the above
check in _rtld_bind will fire and a call to NULL will be avoided.
 1.119 23-Jul-2008  christos abort() if we are trying to use an undefined weak symbol from the plt. Remove
check from relocate_plt_object() since we cannot return _rtld_sym_zero anymore.
Code from gimpy.
 1.118 03-Jun-2008  ad Don't bother unmapping the ELF header unless it overlaps the first load
section.
 1.117 07-Dec-2007  ad branches: 1.117.6; 1.117.8;
rtld changes for PR bin/37347:

- Apply patch from J.T. Conklin to execute .init/.fini functions in order.
- Support DF_1_INITFIRST and mark libc with DF_1_INITFIRST. Shared libs
should be recording a dependency on libc, but it's too late to do that.

Ok christos@.
 1.116 05-Oct-2007  ad - Don't use the names malloc/free/etc, since we can end up pulling in libc's
malloc which is not what we want.
- Remove ancient memory compaction hack. Realloc on free memory is now an
error again (from joerg@).

Ok christos@.
 1.115 21-Sep-2007  christos Don't trust AT_SUN_EXECNAME, if we are set{u,g}id.
 1.114 20-Sep-2007  christos Use AT_SUN_EXECPATH instead of argv[0] for the executable name. This needs
kernel support, which is not there yet, thus $ORIGIN is broken at this time.
This is ok, nothing uses it yet.
 1.113 18-May-2007  christos branches: 1.113.4;
Support Solaris-like $ORIGIN etc. expansions in paths.
 1.112 08-Apr-2007  scw Remove a test for defined(__SH5__).
 1.111 22-Nov-2006  christos branches: 1.111.2; 1.111.4;
From defend dot the dot world at gmail dot com: Sanitize environment variables
for set{u,g}id binaries, so that in case they are playing with set{u,g}id
and exec'ing other binaries they don't get affected by the
LD_{PRELOAD,DEBUG,LIBRARY_PATH} environment setup. We leave LD_BIND_NOW alone.
There are no binaries affected in the base system.
 1.110 21-Mar-2006  christos Coverity CID 2749: Fix another double free. Instead of removing that last
free() call, change the allocation policy to leave the responsibility for
allocation/freeing the pathname to _rtld_map_object(), instead of having
the caller allocate it and _rtld_map_object() free it. This simplifies the
code a lot and it is more efficient.
 1.109 12-Jan-2006  skrll Bring across a change from FreeBSD from back in 1998:

"Fix a bug that showed up when debugging dynamically linked programs.
References from GDB to "printf" and various other functions would
find the versions in the dynamic linker itself, rather than the
versions in the program's libc. This fix moves the GDB link map
entry for the dynamic linker to the end of the search list, where
its symbols will be found only if they are not found anywhere else."

"printf" isn't true for us, but various libc symbols are, e.g. "malloc".

Fixes PR 32074 as noted by uwe@

OK'd by christos@
 1.108 11-Jan-2006  uwe _GLOBAL_OFFSET_TABLE_ is only used if RTLD_DEBUG, so wrap its
declaration too.

32-bit SuperH can not pretend that _GLOBAL_OFFSET_TABLE_ is a normal
variable, because of the way PIC variable references is generated, but
as compiler arranges for _GLOBAL_OFFSET_TABLE_ address to be in r12
anyway, just use that value by declaring it as a global register
variable. Makes sh3 compile with RTLD_DEBUG.
 1.107 22-Oct-2004  skrll branches: 1.107.2;
Add __RCSIDs.

OK'd by mycroft.
 1.106 18-Jul-2004  thorpej - Change the strong dlfcn names in libc to ___name, and make the __name
versions used by others in libc weak, so that we have:
name: weak
__name: weak
___name: strong
- Add __name strong aliases of the dlfcn names in ld.elf_so, so that we have:
name: strong
__name: strong

This allows ld.elf_so to self-resolve both the name and __name variants
of the dlfcn functions, the former being required for dlfcn support in
applications, the latter being required for dlfcn support in libc.

Fixes the problem described in:

http://mail-index.netbsd.org/tech-toolchain/2004/07/17/0000.html

Reviewed by Nick.
 1.105 17-May-2004  skrll Fix the dynamic linker for hppa using ELF.

Lazy binding doesn't work 100% of the time so force immediate binding.
One possible reason is that the PLT stub blows away r20 which the
compiler might not take into account.
 1.104 17-May-2004  skrll Test before commit.
 1.103 17-May-2004  skrll Re-arrange/correct some asserts.
 1.102 12-May-2004  skrll Garbage collect the RTLD_RELOCATE_SELF error.
 1.101 07-Sep-2003  mycroft branches: 1.101.2;
Back out revision 1.100. There is something screwier going on.
 1.100 31-Aug-2003  mycroft dlsym() should not leave an error set. It confuses programs that check
dlerror() (such as pkgsrc/graphics/transcode).
 1.99 12-Aug-2003  skrll Resolve dlsym(3) and friends directly so that dlsym(RTLD_NEXT,...) works.

Previously dlsym resolved to the version in crt0.o or libc which would
mean that the caller's shared object couldn't be determined correctly
using __builtin_return_address(0).

Mainly from FreeBSD, but adapted by me. Benefits of this solutions are:

- backward comptibility maintained
- existing broken binaries are fixed with a new ld.elf_so
- __mainprog_obj can be removed from crt0.o
- we do the same thing as FreeBSD

Fixes PR 22067.

OKed by Jason and Christos.
 1.98 24-Jul-2003  skrll ANSIfy and de-__P().
 1.97 21-Jul-2003  skrll arm and sh5 also have bogus DT_TEXTRELs. sh5 was already covered so just
update the comment.
 1.96 17-Jul-2003  skrll Correct the in_plt parameter of a couple of _rtld_find_symdef calls.

The mips_reloc.c case is a no-op as _rtld_symlook_obj ignores in_plt for
MIPS.

OK'ed by Charles.
 1.95 30-Jun-2003  marcus SH also has a bogus DT_TEXTREL, it seems.
 1.94 05-Jun-2003  simonb KNF- blank lines before code at start of functions.
 1.93 30-May-2003  christos Add RTLD_FIRST, RTLD_NEXT, RTLD_DEFAULT, from FreeBSD
 1.92 24-Apr-2003  mycroft Back out previous change for now -- it needs more work.
 1.91 23-Apr-2003  mycroft Attempt to give dlsym() the same symbol-searching semantics as _rtld_bind().
Tested in a handful of cases.
Reviewed by: a dead silence
 1.90 14-Dec-2002  junyoung Gracefully exit when invoked directly. Use of assert() here caused a segfault.
Address PR#11785.
 1.89 05-Dec-2002  junyoung A bit speedup: in _rtld_load_object(), save the number of calls to
strcmp() by performing path name length comparison first. In the test
with Mozilla, the number was reduced to 1068 from 7182 (yes, we saved
6114 strcmp()!).
 1.88 24-Nov-2002  fvdl For the debug case, print relocbase as well at the start of _rtld().
 1.87 05-Oct-2002  mycroft Minor cleanup.
 1.86 04-Oct-2002  mycroft Rearrange _rtld_map_object() a little, so that we don't have to have the first
page of the object double-mapped. Not that it matters much, but someone was
whinging about it.
While I'm at it, nuke obj->phdr and obj->phsize; they're unused.
 1.85 04-Oct-2002  mycroft Move the definition of _rtld_list_main so ldd builds again.
 1.84 03-Oct-2002  mycroft As seen on tech-userlevel...

There are several optimizations here:

1) Objects on _rtld_list_main do not participate in the DAG structures
at all. This is okay because all symbols must be resolvable at
link/load time, and _rtld_list_main is always searched first, so
any references from those objects must necessarily be resolved to
other objects on _rtld_list_main.

(Making this work completely required setting obj->main a bit
earlier; hence the RTLD_MAIN hack.)

2) Objects on _rtld_list_main are not put on _rtld_list_global,
preventing an extra search.

3) A bit is used to keep track of whether an object is on
_rtld_list_global, so we don't have to do a silly linear search.

4) A small attempt is made to prevent objects being put on the DAG
lists multiple times (using a silly linear search).

The sum of this appears to be a ~10% (.3s) reduction in Mozilla's
startup time on my 800MHz box.

Also, make sure _rtld_objmain->path is always set, just to make the
debug output nicer.
 1.83 03-Oct-2002  mycroft Do not put objects on _rtld_list_main on any DAG member list -- any symbol we
will have already been found during the _rtld_list_main walk, so there's no
point in doing it again.
 1.82 26-Sep-2002  mycroft Implement a self-relocate function for the VAX.
 1.81 26-Sep-2002  mycroft Remove the `self' args to _rtld_relocate_objects() and
_rtld_relocate_nonplt_objects().
 1.80 26-Sep-2002  mycroft Clean up _rtld_init() -- there is no need to avoid globals.
Remove the call to _rtld_relocate_objects() completely -- except on VAX, where
we TEMPORARILY call _rtld_relocate_nonplt_objects() directly.
Also add more assertions -- ld.elf_so should never have PLT relocations.
 1.79 26-Sep-2002  mycroft Hm, the const isn't going to work.
 1.78 26-Sep-2002  mycroft Do not attempt to free(_rtld_objself.path) -- it's a pointer into our data
segment.
 1.77 25-Sep-2002  mycroft #if defined -> #ifdef
 1.76 24-Sep-2002  mycroft Put back the `in_plt' nonsense for now.
It turns out there is some deep-seated wackiness WRT function pointer
comparisons...
 1.75 24-Sep-2002  mycroft Touch up a little more -- some of the dbg()s never actually printed anything.
 1.74 24-Sep-2002  mycroft Previous change was done wrong.
 1.73 24-Sep-2002  junyoung Make sure that dbg() is disabled if LD_DEBUG is not defined. Now
debugging is easier with RTLD_DEBUG_RELOC.
 1.72 24-Sep-2002  mycroft Change the comment about l_offs.
 1.71 24-Sep-2002  junyoung Remove '\n' at the end of dbg strings.
 1.70 24-Sep-2002  junyoung END_SYM is no longer used.
 1.69 24-Sep-2002  mycroft Use/require AT_PAGESZ on all platforms. (The kernel has exported it for ~3
years now.) Use _rtld_pagesz instead of getpagesize() to determine the page
size in our local malloc(). Saves a system call.

Also, since we're now relocated early, we don't need to be careful to avoid
globals, so most of the VARPSZ hacks are eliminated.
 1.68 24-Sep-2002  mycroft Um, a little bit of sanity here:
l_addr is always supposed to be obj->relocbase -- or so says the GDB code that
uses it. So, set it to this on all platforms. It already was on VAX
explicitly, and on everything else except MIPS implicitly (because
mapbase==relocbase for all existing shlibs). For some silly/stupid reason, a
new field was created that the MIPS GDB currently uses.
Another MD #ifdef bites it.
 1.67 23-Sep-2002  mycroft Several small changes that shave 7-8% off the simple-exec-loop test:

* Rename _rtld_find_library() to _rtld_load_library(). It now calls
_rtld_load_object() if necessary to actually load the object, rather
than having the caller do it. To do this, it also takes the `mode'
argument that gets passed to _rtld_load_object().

* On a related note, remove _rtld_check_library(), and instead call
_rtld_load_object() to instead try actually loading the object. We
save two extra namei's and a bunch of redundant work (almost
literally the same code) this way.

* In _rtld_map_object(), mmap(2) the first page read-only, rather than
read(2)ing it.

* In _rtld_symlook_obj(), compare the *second* character of the symbol
name before calling strcmp(). (This first character is too
frequently `_', and turns out to not be helpful, in libc.)

* Also in _rtld_symlook_obj(), remove the bogus STT_FUNC special case
-- this also allows removing the `in_plt' argument to
_rtld_symlook_list() and _rtld_symlook_obj().

Also:

* In _rtld_obj_from_addr(), rather than trying to look up `_end' in
the each object, instead use obj->mapsize as the upper bound.
 1.66 21-Sep-2002  junyoung Print the name of dynamic linker actually loaded.
 1.65 20-Sep-2002  junyoung Cosmetic changes (long lines).
 1.64 19-Sep-2002  christos don't core dump setting progname if argv[0] == NULL. From xs@kittenz.org
 1.63 13-Sep-2002  mycroft The textrel special case is only needed for MIPS (due to a bug in BFD).
 1.62 13-Sep-2002  mycroft Kill the sparc64 argc conversion hack.
 1.61 13-Sep-2002  mycroft Nuke an unneeded hack for the Alpha.
 1.60 12-Sep-2002  mycroft Nuke -DRTLD_RELOCATE_SELF and `dodebug' from orbit.
 1.59 12-Sep-2002  mycroft ld.elf_so has no textrels on arm, i386 or vax -- and shouldn't on any platform,
but that's beside the point.
 1.58 12-Sep-2002  mycroft Add a `relocbase' argument to _rtld() and _rtld_init(), which is passed in
from the glue code in _rtld_start(). This is used to set objself.relocbase,
rather than assuming that it's the same as objself.mapbase (or 0 on MIPS).
Now -- with a bug fix to the kernel -- ld.elf_so can be linked at any VMA.
 1.57 11-Sep-2002  mycroft This is a gratuitous null commit to force rtld.o to be rebuilt.
 1.56 06-Sep-2002  mycroft Pass down an additional flag to _rtld_relocate_nonplt_objects() which
indicates whether we're relocating ld.elf_so itself. Use this in some places
rather than hackish tests on `dodebug'. (The Alpha and HPPA `dodebug' tests
were actually noops, because RTLD_RELOCATE_SELF is not set, and therefore
dodebug is always true.)
 1.55 06-Sep-2002  junyoung Remove typedef which was never used. Meaningless comment as well.
 1.54 05-Sep-2002  mycroft Remove all of the `mark' code. This is responsible for the `undefined PLT
symbol' errors, probably because the increment gets interrupted occasionally by
a signal. In general, _rtld_bind() should not modify ANY internal state.
 1.53 26-Aug-2002  christos save 4 system calls by using AT_{R,E}{U,G}ID.
 1.52 09-Aug-2002  soren Remove extraneous \n's in {err,warn}{,x}.
 1.51 10-Jul-2002  fredette Add support for dynamic linking on HP PA-RISC.
 1.50 01-Jun-2002  lukem SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field). whilst it's O(n),
this mirrors the functionality of SLIST_REMOVE() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups
 1.49 26-May-2002  wiz __STDC__ is always defined on NetBSD.
 1.48 03-Feb-2002  thorpej branches: 1.48.2;
Add support for dynamic linking on the SuperH. From Marcus Comstedt,
with some bug fixes (namely, don't forget to consider the addend when
processing relocations) from me.
 1.47 14-Dec-2001  thorpej Garbage-collect the OLD_GOT stuff.
 1.46 14-Dec-2001  thorpej binutils-current ld emits DT_TEXTREL into _DYNAMIC on arm-elf. Handle
this.
 1.45 10-May-2001  christos Unloading objects, can cause other objects whose reference count becomes
0 to be unloaded. Make sure that when we unload those objects we remove
any references to them from the globals list... This fixes SIGSEGV with
apache+mod_php+mysql.

XXX: This fix should be pulled up.

christos
 1.44 03-Feb-2001  pk Avoid the use of a `switch(){}' statement before _rtld_init() is called.
`switch()' code may be translated using a jump table approach which causes
it to reference the equivalent of a global variable, something that must
be avoided before _rtld_init() has run.
 1.43 10-Nov-2000  mycroft Make ldd(1) build again.
 1.42 10-Nov-2000  mycroft When dlopen()ing with RTLD_GLOBAL, also make dependent libraries RTLD_GLOBAL.
 1.41 28-Aug-2000  scottb copy the real object filename to the rtld object path so that the
Dl_info structure can be properly filled by dladdr().
 1.40 26-Jul-2000  mycroft The ELF ABI declares that argc must fill an `argument slot'. Make it so.
For __sparc_v9__ only, do a hack to make executables work temporarily before
and after the kernel is switched.
 1.39 26-Jul-2000  mycroft Catch up with type changes. Also:
* Apply DT_PLTRELSZ to (one of) pltrel or pltrela *after* we've finished
parsing the headers, so we know which one.
* Fix sparc64 bogons. (It works now!)
 1.38 19-Jul-2000  thorpej Make it build on non-VARPSZ again.
 1.37 18-Jul-2000  eeh Fix some issues with SPARC V9 ELF binaries.
 1.36 17-Jul-2000  matt More VAX ELF changes.
 1.35 14-Jul-2000  matt Initialize ld.elf_so's textsize.
 1.34 16-Jun-2000  christos branches: 1.34.2;
Also set __mainprog_obj so .ini sections can call dlopen()
 1.33 03-Jun-2000  jdolecek slighly move the assert() added in last commit, so that it's
actually useful
 1.32 02-Jun-2000  jdolecek _rtld_unref_dag(): needed->obj might be null if the unreffed object has
some unsatisfied references (most often when compiled without necessary
-Wl,-R), so check for that instead of causing null-dereference;
this way the code has a chance to cleanup after itself and report
the error to caller

Thanks to Jason Thorpe for helping fix this!
 1.31 15-Apr-2000  erh branches: 1.31.2;
Cause ld.elf_so to find the symbols for __progname and environ and set them. If we wait until crt0 gets around to doing it it's too late for any library init functions.
 1.30 15-Apr-2000  christos re-indent sanely _rtld_dlsym() [no functional change]
 1.29 07-Feb-2000  kleink Change _rtld_dlclose() to unload the object via _rtld_unload_object() rather
than by itself. Besides being duplicated code the open-coded version
also did not take care of cleaning up after the object's DAG(!).
Fixes PR bin/8905.
 1.28 13-Dec-1999  christos Enable parsing and mapping of hardware dependent libraries in ld.so.conf
To be documented in the man page.
 1.27 10-Nov-1999  thorpej Name consistencty nit: curmark -> _rtld_curmark
 1.26 10-Nov-1999  thorpej Some slight cosmetic cleanup.
 1.25 07-Nov-1999  mycroft Changes from msaitoh to fix local/global symbol confusion, and to fix weak
symbol support -- updated by me for elf.h changes.
 1.24 25-Oct-1999  kleink Update to match new SVR4-style definition names in <sys/exec_elf.h>.
 1.23 19-Aug-1999  christos branches: 1.23.2;
enable /etc/ld.so.conf processing
[reviewed by thorpej]
 1.22 01-Aug-1999  kleink Rearrange the shared library search path precedences to LD_LIBRARY_PATH >
runpath > built-in default; this is the behaviour of the SVR4 shared loader,
and gives users the opportunity to override the runpath. (Addresses a report
on current-users by John Kohl.)
 1.21 22-Jul-1999  thorpej When dlopen()'ing a shared object without an absolute pathname, search
for it in the rpath of the main program as well as the path specified
in LD_LIBRARY_PATH.
 1.20 15-Jun-1999  kleink Don't include the ident .note assembly when linting.
 1.19 31-May-1999  kleink Implement LD_PRELOAD support.
 1.18 18-Apr-1999  ws Add code to use the kernel provided page size.
Enable this on the powerpc only for now.
 1.17 08-Mar-1999  kleink branches: 1.17.2;
Update an i386-ismed comment.
 1.16 03-Mar-1999  christos Make this compile without -DRTLD_LOADER and fix printf format problems on
the alpha.
 1.15 01-Mar-1999  christos KNF
 1.14 27-Feb-1999  pk Just initialize the stack-based temporary `rtld self' object.
 1.13 24-Feb-1999  christos Cleanup global variable access so rtld can be self relocating. Also KNF
reloc.c and move md sparc parts to arch/sparc/mdreloc.c
Now we don't need to load at address 0 on the i386 and the mips should be
trivial to fix.
 1.12 10-Jan-1999  christos Add i386 bits
 1.11 09-Jan-1999  castor Restore missing variable declaration with -DRTLD_DEBUG
 1.10 07-Oct-1998  ross Rewrite AuxInfo handling to track AuxID changes in sys/exec_elf.h.
 1.9 15-Jul-1998  tv Some local changes accidentally made it into the last commit; back that
part out (noticed by mycroft; thanks!)
 1.8 14-Jul-1998  tv Change ld.so default behavior to RTLD_LOCAL, and make RTLD_LOCAL into a
new flag bit. Keep RTLD_GLOBAL as an actual flag bit so it won't be
re-used, or may be used for something later. Mask the dlopen() mode bits
in ld.elf_so so a comparison against RTLD_NOW works. (RTLD_{LOCAL,GLOBAL}
needs to be implemented for ld.elf_so.)
 1.7 16-Jun-1998  mhitch Don't forget to update _rtld_objtail when _rtld_dlclose() removes the
current tail entry.
 1.6 25-Mar-1998  mhitch Add support for mips.
 1.5 08-Oct-1997  mrg branches: 1.5.2;
WARNS?=1
 1.4 15-Apr-1997  cgd make sure that ld.elf_so's path is in the data segment
 1.3 21-Mar-1997  cgd put in two identifying notes, which new binutils snapshots will turn
into PT_NOTE sections so they can be examined by execve() to figure
out whether this is a native binary, what emulation it's to be run under,
etc.
 1.2 18-Dec-1996  cgd nclude dlfcn.h, and pull RLTD_LAZY in from there. Assume that RTLD_NOW is
RLTD_LAZY + 1 (for now), if it's not defined. RTLD_NOW should be defined
in dlfcn.h, since some code (e.g. X11) wants it and assumes that it has
the value currently used by our RTLD_LAZY.
 1.1 16-Dec-1996  cgd First cut at an ELF shared loader. Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.). This runs, but it's
in serious need of cleaning and/or a fair bit of reworking. See the README
file for more information, and a list of things to do.
 1.5.2.2 27-Sep-1998  cgd pull up rev 1.7 from trunk (mhitch).
 1.5.2.1 08-May-1998  mycroft Sync with trunk, per request of mycroft.
 1.17.2.1 23-Jun-1999  perry pullup 1.18->1.19 (klienk): LD_PRELOAD support
 1.23.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.31.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.34.2.3 09-Dec-2001  he Pull up revisions 1.42-1.45 (requested by skrll):
Add init/fini section support in crtbegin and crtend, and introduce
support for DWARF2 exception handling. Fixes PR#12865, PR#13488,
PR#13489, and PR#13491. Also fix ld.elf_so to deal appropriately.
 1.34.2.2 29-Aug-2000  scottb pullup version 1.41 (approved by thorpej):
copy the real object filename to the rtld object path so that the
Dl_info structure can be properly filled by dladdr().
 1.34.2.1 26-Jul-2000  mycroft Approved by thorpej:
Add support for sparc64, including MD code and variable page size support.
Modify some variable types to insure they are the correct width on sparc64.

basesrc/libexec/ld.elf_so/arch/sparc64/Makefile.inc 0 -> 1.1
basesrc/libexec/ld.elf_so/arch/sparc64/mdreloc.c 0 -> 1.3
basesrc/libexec/ld.elf_so/arch/sparc64/rtld_start.S 0 -> 1.2
basesrc/libexec/ld.elf_so/headers.c 1.6 -> 1.8
basesrc/libexec/ld.elf_so/reloc.c 1.26 -> 1.27
basesrc/libexec/ld.elf_so/reloc.c 1.29 -> 1.31
basesrc/libexec/ld.elf_so/rtld.c 1.34 -> 1.35
basesrc/libexec/ld.elf_so/rtld.c 1.36 -> 1.40
basesrc/libexec/ld.elf_so/rtld.h 1.26 -> 1.27
basesrc/libexec/ld.elf_so/symbol.c 1.7 -> 1.9
 1.48.2.2 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.48.2.1 05-Sep-2003  tron Pull up revision 1.54 via patch (requested by dmcmahill in ticket #1395):
Remove all of the `mark' code. This is responsible for the `undefined
PLT
symbol' errors, probably because the increment gets interrupted
occasionally by
a signal. In general, _rtld_bind() should not modify ANY internal
state.
 1.101.2.1 19-Jul-2004  tron Pull up revision 1.106 (requested by thorpej in ticket #676):
- Change the strong dlfcn names in libc to ___name, and make the __name
versions used by others in libc weak, so that we have:
name: weak
__name: weak
___name: strong
- Add __name strong aliases of the dlfcn names in ld.elf_so, so that
we have:
name: strong
__name: strong
This allows ld.elf_so to self-resolve both the name and __name variants
of the dlfcn functions, the former being required for dlfcn support in
applications, the latter being required for dlfcn support in libc.
Fixes the problem described in:
http://mail-index.netbsd.org/tech-toolchain/2004/07/17/0000.html
Reviewed by Nick.
 1.107.2.2 08-Oct-2008  bouyer Pull up following revision(s) (requested by jmcneill in ticket #1973):
libexec/ld.elf_so/symbol.c: revision 1.47
libexec/ld.elf_so/rtld.h: revision 1.79
libexec/ld.elf_so/rtld.c: revision 1.122
lib/39649: dlsym(3) does not follow dependencies
Pull across code from FreeBSD to do a search of the passed object and it's
NEEDED objects (dependencies).
Reviewed by gimpy.
 1.107.2.1 01-Feb-2006  tron Pull up following revision(s) (requested by christos in ticket #1150):
libexec/ld.elf_so/rtld.c: revision 1.109
Bring across a change from FreeBSD from back in 1998:
"Fix a bug that showed up when debugging dynamically linked programs.
References from GDB to "printf" and various other functions would
find the versions in the dynamic linker itself, rather than the
versions in the program's libc. This fix moves the GDB link map
entry for the dynamic linker to the end of the search list, where
its symbols will be found only if they are not found anywhere else."
"printf" isn't true for us, but various libc symbols are, e.g. "malloc".
Fixes PR 32074 as noted by uwe@
OK'd by christos@
 1.111.4.1 03-Sep-2007  wrstuden Sync w/ NetBSD-4-RC_1
 1.111.2.2 31-Oct-2008  snj Pull up following revision(s) (requested by jmcneill in ticket #1211):
libexec/ld.elf_so/symbol.c: revision 1.47
libexec/ld.elf_so/rtld.h: revision 1.79
libexec/ld.elf_so/rtld.c: revision 1.122
lib/39649: dlsym(3) does not follow dependencies
Pull across code from FreeBSD to do a search of the passed object and its
NEEDED objects (dependencies).
 1.111.2.1 19-Jul-2007  liamjfoy Pull up following revision(s) (requested by soren in ticket #774):
build.sh: revision 1.169
gnu/usr.bin/gcc4/backend/Makefile: revision 1.9
sys/arch/evbsh5/README: revision 1.1
distrib/notes/common/contents: revision 1.124
usr.sbin/ndbootd/ndbootd.c: revision 1.12
gnu/lib/libopcodes/arch/sh3eb/defs.mk: revision 1.4
gnu/lib/libbfd/arch/sh3eb/defs.mk: revision 1.8
libexec/ld.elf_so/Makefile: revision 1.78
gnu/dist/binutils/bfd/config.bfd: revision 1.14
doc/HACKS: revision 1.93
distrib/cdrom/current.conf: revision 1.8
gnu/lib/libgcc4/Makefile.inc: revision 1.6
share/mk/sys.mk: revision 1.90
distrib/sets/lists/base/mi: revision 1.700
libexec/ld.elf_so/rtld.c: revision 1.112
distrib/sets/lists/base/mi: revision 1.702
sys/arch/sh5/README: revision 1.1
gnu/lib/libbfd/arch/sh3el/bfd.h: revision 1.7
usr.sbin/traceroute/traceroute.c: revision 1.69
distrib/notes/common/main: revision 1.330
distrib/notes/common/list-setsizes.sh: revision 1.2
sys/arch/Makefile: revision 1.35
gnu/lib/libopcodes/arch/sh3el/defs.mk: revision 1.4
gnu/lib/libbfd/arch/sh3el/defs.mk: revision 1.8
share/mk/bsd.own.mk: revision 1.495
gnu/lib/libbfd/arch/sh3eb/bfd.h: revision 1.7
x11/lib/OSmesa/Makefile: revision 1.20
sys/dev/dkwedge/dkwedge_bsdlabel.c: revision 1.13
gnu/dist/binutils/opcodes/configure.in: revision 1.2
gnu/dist/binutils/opcodes/configure: revision 1.2
gnu/usr.bin/send-pr/categories: revision 1.53
etc/mtree/NetBSD.dist: revision 1.339
sys/arch/README: revision 1.42
lib/libc/gdtoa/Makefile.inc: revision 1.6
usr.bin/crunch/crunchide/Makefile: revision 1.16
sys/lkm/net/bsdcomp/Makefile: revision 1.5
regress/sys/uvm/Makefile: revision 1.6
etc/MAKEDEV.awk: revision 1.18
x11/Xserver/GL/GLcore/Makefile.GLcore: revision 1.10
sys/contrib/dev/ath/netbsd/Makefile.ath.inc: revision 1.14
gnu/lib/libbfd/Makefile: revision 1.42
doc/RESPONSIBLE: revision 1.78
Remove evbsh5.
 1.113.4.2 09-Jan-2008  matt sync with HEAD
 1.113.4.1 06-Nov-2007  matt sync with HEAD
 1.117.8.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.117.8.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.117.6.1 17-Jun-2008  yamt sync with head.
 1.123.8.2 19-Aug-2010  matt Rework the debug printfs for env so that if the env array is corrupt at
least some output happens.
 1.123.8.1 21-Apr-2010  matt sync to netbsd-5
 1.123.2.3 17-Mar-2012  bouyer Pull up following revision(s) via patch (requested by skrll in ticket #1724):
rescue/list.ldd: revision 1.4
lib/libc/dlfcn/dlfcn_elf.c: revision 1.7
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.57
distrib/sets/lists/comp/mi: revision 1.1512
share/man/man3/Makefile: revision 1.56
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.58
usr.bin/ldd/ldd.c: revision 1.15
libexec/ld.elf_so/rtld.h: revision 1.84
share/man/man3/dl_iterate_phdr.3: revision 1.1
libexec/ld.elf_so/rtld.c: revision 1.129
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.44
libexec/ld.elf_so/rtld.h: revision 1.89
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.36
libexec/ld.elf_so/map_object.c: revision 1.41
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.37
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.46
include/link_elf.h: revision 1.10
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.29
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.26
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.34
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.31
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.35
libexec/ld.elf_so/Makefile: revision 1.94
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.32
libexec/ld.elf_so/Makefile: revision 1.95
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.31
libexec/ld.elf_so/Makefile: revision 1.96
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.32
libexec/ld.elf_so/reloc.c: revision 1.98
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.33
sys/sys/exec_elf.h: revision 1.106
libexec/ld.elf_so/rtld.c: revision 1.130
libexec/ld.elf_so/load.c: revision 1.37
libexec/ld.elf_so/rtld.c: revision 1.131
libexec/ld.elf_so/load.c: revision 1.38
libexec/ld.elf_so/rtld.h: revision 1.90
libexec/ld.elf_so/headers.c: revision 1.36
libexec/ld.elf_so/rtld.h: revision 1.95
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.30
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.25
libexec/ld.elf_so/symbol.c: revision 1.50
libexec/ld.elf_so/symbol.c: revision 1.51
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.43
libexec/ld.elf_so/symbol.c: revision 1.52
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.27
libexec/ld.elf_so/symbol.c: revision 1.54
PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
Implement dl_iterate_phdr.
Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.123.2.2 03-Dec-2009  sborrill Pull up the following revisions(s) (requested by tron in ticket #1179):
libexec/ld.elf_so/rtld.c: revision 1.127

If the environment is corrupt, die. From FreeBSD.
 1.123.2.1 14-Oct-2009  sborrill Pull up the following revisions(s) (requested by pooka in ticket #1088):
include/dlfcn.h: revision 1.20
lib/libc/dlfcn/dlfcn_elf.c: revision 1.6
libexec/ld.elf_so/reloc.c: revision 1.97
libexec/ld.elf_so/rtld.c: revision 1.125
libexec/ld.elf_so/rtld.h: revision 1.81
libexec/ld.elf_so/symbol.c: revision 1.48

Add Solarisa-like dlinfo() interface to the ELF dynamic linker.
Implement RTLD_DI_LINKMAP which returns a pointer to the linkmap
chain at the given object. Other Solaris queries are currently
unimplemented.
 1.137.2.1 05-Mar-2011  bouyer Sync with HEAD
 1.153.2.4 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.153.2.3 23-Jan-2013  yamt sync with head
 1.153.2.2 30-Oct-2012  yamt sync with head
 1.153.2.1 17-Apr-2012  yamt sync with head
 1.155.6.1 17-Apr-2015  msaitoh Pull up following revision(s) (requested by joerg in ticket #1288):
libexec/ld.elf_so/rtld.c: revision 1.176
lib/49813: Release mutex on error.
 1.155.4.1 22-Jan-2013  matt Pullup from HEAD:
Add .init_array/.fini_array support (conditionalized on HAVE_INITFINI_ARRAY).
 1.155.2.4 16-Apr-2015  msaitoh Pull up following revision(s) (requested by joerg in ticket #1288):
libexec/ld.elf_so/rtld.c: revision 1.176
lib/49813: Release mutex on error.
 1.155.2.3 25-Jan-2015  martin Pull up the following, requested by he in ticket #1238:
src/libexec/ld.elf_so/rtld.c 1.161
Fix the other lwp_park() to pass 0 for the 'unpark' lwp.
 1.155.2.2 24-Jan-2015  martin Pull up following revision(s) (requested by he in ticket #1238):
libexec/ld.elf_so/rtld.c: revision 1.160
You need to pass 0 (not -1) to lwp_park() if you don't also
want to do an unpark.
Clearly this code path was never tested!
 1.155.2.1 17-Oct-2012  riz branches: 1.155.2.1.2;
Pull up following revision(s) (requested by riastradh in ticket #605):
libexec/ld.elf_so/rtld.c: revision 1.159
On failure in _rtld_dlcheck, call _rtld_error, not xwarnx.
Callers need not call _rtld_error themselves now.
Fixes PR lib/41760. Should add the test case from the PR too.
 1.155.2.1.2.1 17-Apr-2015  msaitoh Pull up following revision(s) (requested by joerg in ticket #1288):
libexec/ld.elf_so/rtld.c: revision 1.176
lib/49813: Release mutex on error.
 1.158.2.4 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.158.2.3 23-Jun-2013  tls resync from head
 1.158.2.2 25-Feb-2013  tls resync with head
 1.158.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.173.4.3 06-Mar-2016  martin Catch up to -current, via patch, requested by christos in ticket #1126:
 1.173.4.2 06-Apr-2015  snj Pull up following revision(s) (requested by joerg in ticket #665):
libexec/ld.elf_so/rtld.c: revision 1.176
lib/49813: Release mutex on error.
 1.173.4.1 09-Mar-2015  snj Pull up following revision(s) (requested by skrll in ticket #569):
libexec/ld.elf_so/rtld.c: revision 1.175
HPPA hack for a problem where gdb doesn't see _rtld_debug_state when
it's a single bv,n %r0(%rp) instruction.
The nullify confuses something.
 1.178.2.2 20-Mar-2017  pgoyette Sync with HEAD
 1.178.2.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.182.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.183.4.3 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #1871):

libexec/ld.elf_so/rtld.c: revision 1.213

dlopen(3): Read _rtld_objtail under the lock.
 1.183.4.2 29-Aug-2017  bouyer Pull up following revision(s) (requested by joerg in ticket #127):
tests/libexec/ld.elf_so/h_thread_local_dtor.c: revision 1.1
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6/c++config.h: revision 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/earmeb/c++config.h: revision 1.17
lib/libc/stdlib/atexit.h: file removal
lib/libc/stdlib/exit.c: revision 1.16
external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/c++config.h: revision 1.8
lib/libc/stdlib/exit.c: revision 1.17
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hf/c++config.h: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.178
external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el/c++config.h: revision 1.21
distrib/sets/lists/debug/shl.mi: revision 1.179
distrib/sets/lists/debug/mi: revision 1.219
lib/libpthread/pthread.c: revision 1.150
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7/c++config.h: revision 1.14
libexec/ld.elf_so/symbols.map: revision 1.2
include/dlfcn.h: revision 1.25
external/gpl3/gcc/lib/libstdc++-v3/arch/arm/c++config.h: revision 1.21
external/gpl3/gcc/lib/libstdc++-v3/arch/x86_64/c++config.h: revision 1.23
external/gpl3/gcc/lib/libstdc++-v3/arch/mips64el/c++config.h: revision 1.18
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4eb/c++config.h: revision 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/earm/c++config.h: revision 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/mipsel/c++config.h: revision 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/ia64/c++config.h: revision 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6eb/c++config.h: revision 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf/c++config.h: revision 1.17
distrib/sets/lists/tests/mi: revision 1.755
external/gpl3/gcc/lib/libstdc++-v3/arch/mips64eb/c++config.h: revision 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/i386/c++config.h: revision 1.20
external/gpl3/gcc/lib/libstdc++-v3/arch/vax/c++config.h: revision 1.21
external/gpl3/gcc/lib/libstdc++-v3/arch/armeb/c++config.h: revision 1.21
external/gpl3/gcc/lib/libstdc++-v3/arch/sparc/c++config.h: revision 1.20
lib/libc/dlfcn/dlfcn_elf.c: revision 1.14
tests/libexec/ld.elf_so/t_thread_local_dtor.sh: revision 1.1
tests/lib/libpthread/t_thread_local_dtor.sh: revision 1.1
lib/libc/stdlib/Makefile.inc: revision 1.93
lib/libc/include/atexit.h: revision 1.1
lib/libc/include/atexit.h: revision 1.2
external/gpl3/gcc/lib/libstdc++-v3/arch/m68k/c++config.h: revision 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hf/c++config.h: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.180
external/gpl3/gcc/lib/libstdc++-v3/arch/sparc64/c++config.h: revision 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hfeb/c++config.h: revision 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/hppa/c++config.h: revision 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hfeb/c++config.h: revision 1.14
lib/libc/stdlib/cxa_thread_atexit.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso3/h_helper_dso3.cpp: revision 1.1
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.1
external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64/c++config.h: revision 1.5
libexec/ld.elf_so/rtld.c: revision 1.185
external/gpl3/gcc/lib/libstdc++-v3/arch/sh3eb/c++config.h: revision 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/riscv32/c++config.h: revision 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/m68000/c++config.h: revision 1.15
external/gpl3/gcc/lib/libstdc++-v3/arch/mipseb/c++config.h: revision 1.21
external/gpl3/gcc/lib/libstdc++-v3/arch/coldfire/c++config.h: revision 1.12
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4/c++config.h: revision 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/earmhfeb/c++config.h: revision 1.15
external/gpl3/gcc/lib/libstdc++-v3/arch/alpha/c++config.h: revision 1.19
tests/libexec/ld.elf_so/Makefile: revision 1.9
external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h: revision 1.20
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7eb/c++config.h: revision 1.14
tests/lib/libpthread/h_thread_local_dtor.cpp: revision 1.1
distrib/sets/lists/tests/shl.mi: revision 1.11
tests/lib/libpthread/Makefile: revision 1.13
libexec/ld.elf_so/rtld.h: revision 1.129
external/gpl3/gcc/lib/libstdc++-v3/arch/or1k/c++config.h: revision 1.6
Implement __cxa_thread_atexit and __cxa_thread_atexit_impl. This
functions are used for destructors of thread_local objects.
If a pending destructor exists, prevent unloading of shared objects.
Introduce __dl_cxa_refcount interface for this purpose. When the last
reference is gone and the object has been dlclose'd before, the
unloading is finalized.
Ideally, __cxa_thread_atexit_impl wouldn't exist, but libstdc++ insists
on providing __cxa_thread_atexit as direct wrapper without further
patching.
Fix filename of new debug file
Add misising DEBUGLIB file
Avoid common declaration.
Drop TLS variant checks, emutls is enough for VAX and Sun2.
 1.183.4.1 10-Jun-2017  snj Pull up following revision(s) (requested by joerg in ticket #26):
libexec/ld.elf_so/rtld.c: revision 1.184
Call _rtld_debug_state before running the global initialisers, so give
gdb a chance to set break points etc.
 1.190.2.4 18-Jan-2019  pgoyette Synch with HEAD
 1.190.2.3 20-Oct-2018  pgoyette Sync with head
 1.190.2.2 07-Apr-2018  pgoyette Sync with HEAD. 77 conflicts resolved - all of them $NetBSD$
 1.190.2.1 15-Mar-2018  pgoyette Synch with HEAD
 1.192.2.4 21-Apr-2020  martin Sync with HEAD
 1.192.2.3 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.192.2.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.192.2.1 10-Jun-2019  christos Sync with HEAD
 1.197.2.8 06-Aug-2024  snj Pull up following revision(s) (requested by martin in ticket #1861):
libexec/ld.elf_so/rtld.c: 1.216
PR 57628: at the end of _rtld_init() explicitly initialize the ld.elf_so
local copy of the atomic access support functions for machines that do not
implement all required ops in hardware (like 32bit sparc).
XXX would be better to figure out a way to share this copy with libc
(thereby using half as many RAS sections). But even if we would share it,
we have to init it early enough for ld.elf_so internal uses.
 1.197.2.7 04-Aug-2023  martin Pull up following revision(s), all via patch,
(requested by riastradh in ticket #1699):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.

This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.

PR pkg/57445

Fix MKDEBUGLIB build by adding these installed files to the debug
set list.

One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.

Fix markup of libh_ MKDEBUGLIB=yes only files

TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.197.2.6 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #1690):

libexec/ld.elf_so/rtld.c: revision 1.213

dlopen(3): Read _rtld_objtail under the lock.
 1.197.2.5 01-Apr-2023  martin Pull up following revision(s) (requested by riastradh in ticket #1624):

libexec/ld.elf_so/rtld.c: revision 1.212

ld.elf_so(8): Make fork take a shared, not exclusive, lock.

We only need to ensure that there are no concurrent modifications to
the rtld data structures in flight, since the threads that began
those modifications will not exist in the child and will therefore be
unable to complete them in the child.

A shared lock suffices to ensure there are no such concurrent
modifications in flight; an exclusive lock is not necessary, and can
cause deadlock if fork is executed from a signal handler, which is
explicitly allowed by POSIX (and our own sigaction(2) man page) which
marks fork as async-signal-safe.

PR lib/56979
 1.197.2.4 13-May-2020  martin Pull up following revision(s) (requested by chs in ticket #907):

libexec/ld.elf_so/rtld.c: revision 1.205
libexec/ld.elf_so/rtld.h: revision 1.140
libexec/ld.elf_so/symbols.map: revision 1.3
libexec/ld.elf_so/symbols.map: revision 1.4
lib/libc/gen/pthread_atfork.c: revision 1.13
lib/libc/gen/pthread_atfork.c: revision 1.14
libexec/ld.elf_so/rtld.h: revision 1.139
libexec/ld.elf_so/rtld.c: revision 1.204

Introduce intermediate locking for fork, so that the dynamic linker is
in a consistent state. This most importantly avoids races between dlopen
and friends and fork, potentially resulting in dead locks in the child
when it itself tries to acquire locks.

Rename __atomic_fork to __locked_fork and give it &errno as argument.
rtld and libc use different storage, so the initial version would
incorrectly report the failure reason for fork().

There is still a small race condition inside ld.elf_so as it doesn't use
thread-safe errno internally, but that's a more contained internal
issue.
 1.197.2.3 08-Mar-2020  martin Pull up following revision(s) (requested by thorpej in ticket #758):

libexec/ld.elf_so/map_object.c: revision 1.61
libexec/ld.elf_so/headers.c: revision 1.68
libexec/ld.elf_so/rtld.c: revision 1.203

PT_GNU_RELRO segments are arranged such that their vaddr + memsz ends
on a linker common page size boundary. However, if the common page size
used by the linker is less than the VM page size being used by the kernel,
this can end up in the middle of a VM page and when the region is write-
protected, this can cause objects in neighboring .data to get incorrectly
write-protected, resulting in a crash.

Avoid this situation by calculating the end of the RELRO region not by
rounding memsz up to the VM page size, but rather by adding vaddr + memsz
and then truncating to the VM page size.

Fixes PR toolchain/55043.

XXX pullup-9
 1.197.2.2 09-Dec-2019  martin Pull up following revision(s) (requested by uwe in ticket #534):

libexec/ld.elf_so/rtld.c: revision 1.201

_rtld_relro - fix debug printf format for a size_t argument
 1.197.2.1 18-Sep-2019  martin Pull up following revision(s) (requested by kamil in ticket #209):

libexec/ld.elf_so/rtld.c: revision 1.198

Return the ELF loader dl_phdr_info information for dl_iterate_phdr(3)
Sync the behavior of dl_iterate_phdr(3) with Linux/FreeBSD/OpenBSD.
 1.207.2.1 31-May-2021  cjep sync with head
 1.212.2.4 06-Aug-2024  snj Pull up following revision(s) (requested by martin in ticket #775):
libexec/ld.elf_so/rtld.c: 1.216
PR 57628: at the end of _rtld_init() explicitly initialize the ld.elf_so
local copy of the atomic access support functions for machines that do not
implement all required ops in hardware (like 32bit sparc).
XXX would be better to figure out a way to share this copy with libc
(thereby using half as many RAS sections). But even if we would share it,
we have to init it early enough for ld.elf_so internal uses.
 1.212.2.3 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #300):

libexec/ld.elf_so/rtld.h: revision 1.145
libexec/ld.elf_so/symbol.c: revision 1.74
libexec/ld.elf_so/rtld.h: revision 1.147
libexec/ld.elf_so/symbol.c: revision 1.75
libexec/ld.elf_so/symbol.c: revision 1.76
tests/libexec/ld.elf_so/t_hash.c: revision 1.1
libexec/ld.elf_so/Makefile: revision 1.145
libexec/ld.elf_so/Makefile: revision 1.146
libexec/ld.elf_so/Makefile: revision 1.147
libexec/ld.elf_so/reloc.c: revision 1.118
distrib/sets/lists/tests/mi: revision 1.1280
libexec/ld.elf_so/rtld.c: revision 1.215
tests/libexec/ld.elf_so/Makefile: revision 1.21
libexec/ld.elf_so/hash.c: revision 1.1
libexec/ld.elf_so/hash.h: revision 1.1
distrib/sets/lists/debug/mi: revision 1.409

The SysV ABI specifies that the symbol hash function should return only 32
bits of hash. Unfortunately due to an implementation bug and the fact that
the return type is unsigned long which is 64 bits in LP64, this can fail
in some cases: "\xff\x0f\x0f\x0f\x0f\x0f\x12". See:
"https://maskray.me/blog/2023-04-12-elf-hash-function
From Ed Maste @ FreeBSD:
https://cgit.freebsd.org/src/commit/?id=29e3a06510823edbb91667d21f530d3ec778116d

Need to write Unit Tests for this.

Oops wrong mask.

ld.elf_so: Split SRCS onto multiple lines.
Makes updates easier.
No functional change intended.

ld.elf_so: Sort SRCS.
No functional change intended.

ld.elf_so: Split hash functions into a separate file.
This way we can test them in isolation.
No functional change intended.

ld.elf_so: Add some known-answer tests for hash functions.

Make sure the testing mechanism detects the traditional overflow bug.
 1.212.2.2 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #297):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44
(all via patch)

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen
(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.
(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.
(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.
PR pkg/57445
Fix MKDEBUGLIB build by adding these installed files to the debug
set list.
XXX
One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.
Fix markup of libh_ MKDEBUGLIB=yes only files
TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.212.2.1 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #288):

libexec/ld.elf_so/rtld.c: revision 1.213

dlopen(3): Read _rtld_objtail under the lock.
 1.217.2.1 02-Aug-2025  perseant Sync with HEAD
 1.150 02-May-2025  riastradh ld.elf_so: Narrow scope of -Wno-stack-protector.

Don't need it outside immediate _rtld_donelist_init callers.

PR lib/59388: ld.elf_so: -Wno-stack-protector applies too broadly
 1.149 02-May-2025  riastradh ld.elf_so: Implement RELR relocations.

The SHT_RELR-type .relr.dyn section, pointed to by the DT_RELR
dynamic tag, holds compressed R_*_RELATIVE-type relocations,
substantially reducing the disk space occupied by many programs.

This commit adds support in ld.elf_so for relocating dynamically
linked executables with RELR relocations.

Reference:

Rahul Chaudhry, `Re: Proposal for a new section type SHT_RELR',
generic-abi mailing list, 2018-02-07.

https://groups.google.com/g/generic-abi/c/bX460iggiKg/m/Jnz1lgLJAgAJ
https://web.archive.org/web/20241213012330/https://groups.google.com/g/generic-abi/c/bX460iggiKg/m/Jnz1lgLJAgAJ

Proposed on tech-userlevel:
https://mail-index.NetBSD.org/tech-userlevel/2025/04/27/msg014727.html

PR bin/59360: ld.elf_so(8): missing RELR support
 1.148 18-Apr-2025  riastradh ld.elf_so on alpha: Add support for secureplt.

ok thorpej

PR port-alpha/57511: ld.elf_so(1) does not support secure PLT for alpha
PR port-alpha/57717: Alpha linker generates LOAD segments (and
generates warnings about them)
 1.147 30-Jul-2023  riastradh branches: 1.147.2;
ld.elf_so: Split hash functions into a separate file.

This way we can test them in isolation.

No functional change intended.
 1.146 04-Jun-2023  joerg Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).

Fix this by forcing the computation of the correct DSO (the one defining
the symbol).

This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
 1.145 18-Apr-2023  christos The SysV ABI specifies that the symbol hash function should return only 32
bits of hash. Unfortunately due to an implementation bu and the fact that
the return type is unsigned long which is 64 bits in LP64, this can fail
in some cases: "\xff\x0f\x0f\x0f\x0f\x0f\x12". See:
https://maskray.me/blog/2023-04-12-elf-hash-function
From Ed Maste @ FreeBSD:
https://cgit.freebsd.org/src/commit/\
?id=29e3a06510823edbb91667d21f530d3ec778116d
Need to write Unit Tests for this.
 1.144 21-Jun-2022  skrll branches: 1.144.2;
Support ifunc on aarch64. The tests pass at least.
 1.143 21-Jun-2022  skrll Wrap long #if defined(...) || ... and sort. NFCI.
 1.142 04-Dec-2021  skrll Restore the fptr_t type of {init,fini}{,_array} that was removed when initial
support for indirect functions was added. This fixes {init,fini}_array support
on hppa where each member of the array is (already) a plabel.

Discussed with joerg.

4 files changed, 29 insertions(+), 39 deletions(-)
: ----------------------------------------------------------------------
 1.141 21-Sep-2020  kamil Upgrade the SVR4 RTLD r_debug protocol to version 1

Changes:
- Add a new field r_ldbase in the r_debug struct.
- Set r_version to 1.

This harmonizes the support with OpenBSD and Linux.
FreeBSD uses version 0 (or no version).
Solaris uses version 2 that is not implemented elsewhere and relies on
SVR4 specific design and interfaces.

Update the code comments as r_debug and link_map is used by other software
than GDB, namely: sanitizers, rump, LLDB.
 1.140 19-Apr-2020  joerg Rename __atomic_fork to __locked_fork and give it &errno as argument.
rtld and libc use different storage, so the initial version would
incorrectly report the failure reason for fork().

There is still a small race condition inside ld.elf_so as it doesn't use
thread-safe errno internally, but that's a more contained internal
issue.
 1.139 16-Apr-2020  joerg Introduce intermediate locking for fork, so that the dynamic linker is
in a consistent state. This most importantly avoids races between dlopen
and friends and fork, potentially resulting in dead locks in the child
when it itself tries to acquire locks.
 1.138 29-Feb-2020  kamil Implement DT_GNU_HASH

DT_GNU_HASH serves the same purpose as DT_HASH, however it is a distinct
and faster apprach implemented and designed in the GNU toolchain in 2006.

DT_GNU_HASH is preferred whenever available.

Original GNU benchmarks claim 50% faster dynamic linking time.
https://www.sourceware.org/ml/binutils/2006-06/msg00418.html

Code based on FreeBSD and OpenBSD, both were based on DragonFlyBSD.
 1.137 29-Feb-2020  kamil Implement and integrate GNU Hashing function

Define Elf_Hash struct that contains ELF/SYSV and GNU hash checksum.
Implement _rtld_gnu_hash() for DT_GNU_HASH.
Adapt existing code to compute all Elf_Hash types, instead of only
the ELF/SYSV one.
Rename _rtld_elf_hash() to _rtld_sysv_hash() to match the GNU toolchain
terminology.

_rtld_gnu_hash() uses Dan Bernstein's string hash function posted eons ago
on comp.lang.c.
 1.136 30-Dec-2018  christos branches: 1.136.2;
binutils 2.31.1 can put copy relocations in the relro segment. Delay
protecting the relro segment for the main object until copy relocations
are done.
 1.135 26-Nov-2018  joerg Now that lib/csu no longer uses the object handle, drop the magic and
version field from the internal object. It is kept in the legacy version
of the main object.
 1.134 17-Oct-2018  joerg Move compatibility for pre-2.0 ELF binaries into separate file.
Early ELF binaries defined dlopen and friends in crt0.o by
using function pointers in the object handle passed from rtld.
This contract wastes space when many shared objects are allocated
and ties dynamic linker and rest of the system tightly together.
Fake the entry points in a static object and restrict them to the
platforms that had working ELF support at the time. Keep the magic and
version field used by modern crt0.o for all architectures. The checks
will be removed from crt0.o in a follow-up step.
 1.133 03-Apr-2018  joerg branches: 1.133.2;
Rework ifunc support to address a number of short comings:
- Move to a shared _rtld_call_ifunc for rel and rela architectures
- Architectures using rel format must patch IRELATIVE non-PLT
relocations like RELATIVE in additition to the later ifunc handling
- Consistently record the delta to the end of the relocation group for
non-PLT IRELATIVE relocations

Hidden ifunc is now supported on all ifunc platforms, even when using
-fno-plt. The combination of -fno-plt and relro is broken due to
incorrect GNU ld output though.
 1.132 09-Mar-2018  joerg Like Sparc, PowerPC can use IRELATIVE relocations in non-PLT sections.
 1.131 12-Aug-2017  joerg branches: 1.131.2;
Add sparc/sparc64 support for irelative relocations.
 1.130 10-Aug-2017  joerg Add IRELATIVE support for ARM, X86 and PowerPC.
 1.129 11-Jul-2017  joerg Implement __cxa_thread_atexit and __cxa_thread_atexit_impl. This
functions are used for destructors of thread_local objects.

If a pending destructor exists, prevent unloading of shared objects.
Introduce __dl_cxa_refcount interface for this purpose. When the last
reference is gone and the object has been dlclose'd before, the
unloading is finalized.

Ideally, __cxa_thread_atexit_impl wouldn't exist, but libstdc++ insists
on providing __cxa_thread_atexit as direct wrapper without further
patching.
 1.128 09-Jul-2017  joerg Drop comments about symbol exporting, the relevant code is gone.
 1.127 19-Jun-2017  joerg Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.

The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.

Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
 1.126 30-Nov-2016  christos branches: 1.126.6;
Emulate the standard symbol search order in dlsym() i.e. resolve weak or
not found symbols that are in the dynamic linker list of exported symbols
from the dynamic linker itself.
 1.125 14-Jun-2016  christos branches: 1.125.2;
Add support for GNU RELRO headers from Matthias Weckbecker.
 1.124 19-Sep-2014  matt RISC-V support.
 1.123 27-Aug-2014  christos remove unused define
 1.122 26-Aug-2014  joerg Replace casts in the inline version of _rtld_call_function_void of
_rtld_call_function_addr with ifdef on RTLD_LOADER.
 1.121 26-Aug-2014  christos Introduce a cast to fix the build for Elf32 on _LP64.
 1.120 25-Aug-2014  joerg Add basic support for indirect functions. It allows providing a public
function symbol with an implementation choosen at run time.
Refactor calls to functions by address in ld.elf_so to create temporary
function descriptors on the stack, if the address is not leaked outside.

Limitations:
- no support for initialising static storage with function pointers
- no support for unnamed resolver functions

Inspired by FreeBSD's r228435 by kib@freebsd.org.
 1.119 23-Aug-2014  joerg Typo.
 1.118 10-Aug-2014  matt branches: 1.118.2;
Don't provide __gnu_Unwind_Find_exidx if __ARM_DWARF_EH__ is defined
 1.117 06-Mar-2014  matt More PPC64 changes.
Nothing to do for lazy bindings.
Record DT_PPC64_GLINK and make _rtld_bind return it.
When resolving a JMP_SLOT, copy the source function descriptor into the PLTGOT
 1.116 09-May-2013  christos convert to SIMPLEQ like the rest of the queues.
 1.115 06-May-2013  christos Fixed handling of DT_SONAME:

- add function to add name aliases for shared libraries loaded
XXX[1]: we don't add a name during load time, only when DT_SONAME
is present.
- search already loaded objects in load_by_name for an already
loaded object that matches our name and return it.
- add missing initialization and cleanup for obj->names
XXX[2]: should we make them SIMPLEQ?
- Add XXX in rtld.c about getting the name of an object.

NB: This makes the jdk work again without resorting to a hack of putting
the build path of libjvm.so into the run path (which is a security
problem).
XXX: Pullup-6?
 1.114 06-May-2013  skrll Trailing whitespace
 1.113 25-Apr-2013  matt Use __printflike and __dead instead of __attributes__
 1.112 25-Apr-2013  matt Only include unwind.h if _RTLD_SOURCE
 1.111 24-Apr-2013  matt Add support for PT_ARM_EXIDX and __gnu_Unwind_Find_exidx for libgcc's support
of the ARM EHABI.
 1.110 15-Aug-2012  matt branches: 1.110.2;
Add .init_array/.fini_array support (conditionalized on HAVE_INITFINI_ARRAY).
 1.109 13-Mar-2012  joerg Mark _rtld_debug_state as not to be inlined. Add an explicit instruction
barrier to prevent removal of calls to it.
 1.108 16-Feb-2012  joerg Add _dlauxinfo helper function to provide access to the ELF auxilary
vector. This can normally be found via __ps_strings, but libc is
initialised too early when linked dynamically and doesn't have access to
it yet, so provide an alternative mechanism via ld.elf_so.
Bump libc minor.
 1.107 02-Dec-2011  skrll branches: 1.107.4;
Restore backwards compatibility by removing unnecessary addition of
dlvsym to Obj_Entry.

Add some comments.
 1.106 25-Jun-2011  nonaka branches: 1.106.2;
PR/45015: ld.elf_so: support ELF symbol versioning
Applied latest patch.
 1.105 29-Mar-2011  joerg Block signals when using the exclusive lock.
 1.104 25-Mar-2011  joerg Add basic locking to ld.elf_so.
 1.103 12-Mar-2011  joerg Add TLS support for AMD64, i386 and SH3.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.
 1.102 10-Mar-2011  joerg Fix prototype for __tls_get_addr. Add a generic implementation of it
using __tls_get_addr. Update TLS notes.
 1.101 09-Mar-2011  joerg Add TLS support infrastructure. For dynamic binaries, ld.elf_so exports
_rtld_tls_allocate and _rtld_tls_free. libpthread uses this functions to
setup the thread private area of all new threads. ld.elf_so is
responsible for setting up the private area for the initial thread.
Similar functions are called from _libc_init for static binaries, using
dl_iterate_phdr to access the ELF Program Header.

Add test cases to exercise the different TLS storage models. Test cases
are compiled and installed on all platforms, but are skipped on
platforms not marked for TLS support.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.

It is inspired by the TLS support in FreeBSD by Doug Rabson and the
clean ups of the DragonFly port of the original FreeBSD modifications.
 1.100 25-Jan-2011  skrll Unbreak gdb by ensuring _rtld_debug_state is in the dynamic symbol table.

mmm 1 line diffs

mmm not breaking backwards compatibility for anything known/unknown or
public/private.
 1.99 16-Jan-2011  matt branches: 1.99.2;
Move powerpc gotptr to the end to preserve binary compatibility.
 1.98 16-Jan-2011  matt Add secure-plt support for powerpc to ld.elf_so. As part of this, we have to
stop calling into the GOT/_DYNAMIC since they are no longer executable.
 1.97 24-Dec-2010  skrll Add support for DF_1_BIND_NOW, DF_1_NODELETE and DF_1_NOOPEN marked
objects, and the RTLD_NODELETE and RTLD_NOLOAD flags to dlopen(3).

Mark libpthread as DF_1_NOOPEN and use it to test the functionality.

Somewhat taken from FreeBSD.

Fixes PR 42029.

OK from christos and joerg.
 1.96 05-Dec-2010  joerg Build ld.elf_so with -fvisibility=hidden. Exploit this for i386/x86_64
to simplify the assembler code.
 1.95 16-Oct-2010  skrll Implement dl_iterate_phdr.

Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.94 10-Oct-2010  christos restore binary compatibility for pre-2.0 binaries, requested by skrll and core.
 1.93 30-Sep-2010  skrll Introduce a new type Elf_Symindx for use in decoding the symbol hash table
section and allow this type to be overridden.

The ELF specification says it should always be uint32_t (Elf_Word), but
alpha decided to be different (not sure why). Define Elf_Symindx to be
uint64_t on alpha.

Alpha no longer uses non-standard definitions of Elf64_Sword and
Elf64_Word. Remove the ability to override these types.

Fixes ld.elf_so after Herculean effort from me and martin.
 1.92 06-Aug-2010  joerg Reduce header pollution for mdreloc.c. Make Obj_Entry argument of
_rtld_relocate_nonplt_objects non-const in preparation for TLS support.
 1.91 05-Apr-2010  joerg Use fast_remainder32 for the ELF hash. For the hot cache case, this
speeds up Firefox startup by over 2% on AMD64.
Limit hash table buckets to 32bit.
 1.90 18-Mar-2010  roy Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
We need to disable SSP when using alloca.
 1.89 27-Feb-2010  roy Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
 1.88 17-Jan-2010  skrll Restore backwards compatibility for binaries referencing the main
Obj_Entry.
 1.87 16-Jan-2010  skrll Remove cargo cult dlinfo entry point.
 1.86 15-Jan-2010  skrll Put the dlopen,and friends entry points back.

They're needed by pre-2.0 binaries. Backward compatibiliity for these
was broken by another commit recently which I'll fix shortly.
 1.85 14-Jan-2010  skrll Remove the entry points for dlopen() and friends. They haven't been used
since Aug 2003.
 1.84 13-Jan-2010  christos PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
 1.83 10-Jan-2010  skrll Reset the COMBRELOC cache Obj_Entry if it was freed.

Fixes PR 41482. Done slightly differently to the patch in the PR.
 1.82 17-Nov-2009  skrll Make _rtld_pagesz of type size_t.

Fixes round_down for alpha which made ldd(1) break.
 1.81 24-Sep-2009  pooka Add Solarisa-like dlinfo() interface to the ELF dynamic linker.
Implement RTLD_DI_LINKMAP which returns a pointer to the linkmap
chain at the given object. Other Solaris queries are currently
unimplemented.
 1.80 19-May-2009  christos warns=4
 1.79 04-Oct-2008  skrll branches: 1.79.4; 1.79.8; 1.79.10;
lib/39649: dlsym(3) does not follow dependencies

Pull across code from FreeBSD to do a search of the passed object and it's
NEEDED objects (dependencies).

Reviewed by gimpy.
 1.78 03-Jun-2008  ad Don't bother unmapping the ELF header unless it overlaps the first load
section.
 1.77 14-Jan-2008  yamt branches: 1.77.4; 1.77.6;
tabify
 1.76 07-Dec-2007  ad rtld changes for PR bin/37347:

- Apply patch from J.T. Conklin to execute .init/.fini functions in order.
- Support DF_1_INITFIRST and mark libc with DF_1_INITFIRST. Shared libs
should be recording a dependency on libc, but it's too late to do that.

Ok christos@.
 1.75 02-Sep-2007  joerg Don't define bool, false and true. Use stdbool.h.
 1.74 18-May-2007  christos branches: 1.74.4;
Support Solaris-like $ORIGIN etc. expansions in paths.
 1.73 22-May-2006  drochner branches: 1.73.4; 1.73.6;
sprinkle some __noreturn__ attributes, saves gcc4 warnings elsewhere
 1.72 21-Mar-2006  christos Coverity CID 2749: Fix another double free. Instead of removing that last
free() call, change the allocation policy to leave the responsibility for
allocation/freeing the pathname to _rtld_map_object(), instead of having
the caller allocate it and _rtld_map_object() free it. This simplifies the
code a lot and it is more efficient.
 1.71 05-Jul-2004  cube branches: 1.71.2;
Make ld.elf_so use the new sysctl API. That allows the user to give any
sysctl variable name in /etc/ld.so.conf. It also makes the ld.elf_so
binary slightly smaller (at least on i386), and has no impact on
performance.

Fixes PR 26100.
 1.70 12-Aug-2003  skrll Resolve dlsym(3) and friends directly so that dlsym(RTLD_NEXT,...) works.

Previously dlsym resolved to the version in crt0.o or libc which would
mean that the caller's shared object couldn't be determined correctly
using __builtin_return_address(0).

Mainly from FreeBSD, but adapted by me. Benefits of this solutions are:

- backward comptibility maintained
- existing broken binaries are fixed with a new ld.elf_so
- __mainprog_obj can be removed from crt0.o
- we do the same thing as FreeBSD

Fixes PR 22067.

OKed by Jason and Christos.
 1.69 24-Jul-2003  skrll ANSIfy and de-__P().
 1.68 30-May-2003  christos Add RTLD_FIRST, RTLD_NEXT, RTLD_DEFAULT, from FreeBSD
 1.67 24-Apr-2003  mycroft Back out previous change for now -- it needs more work.
 1.66 23-Apr-2003  mycroft Attempt to give dlsym() the same symbol-searching semantics as _rtld_bind().
Tested in a handful of cases.
Reviewed by: a dead silence
 1.65 05-Dec-2002  junyoung A bit speedup: in _rtld_load_object(), save the number of calls to
strcmp() by performing path name length comparison first. In the test
with Mozilla, the number was reduced to 1068 from 7182 (yes, we saved
6114 strcmp()!).
 1.64 14-Nov-2002  nathanw Remove "extern const chat *_rtld_error_message;". There is no such
variable, and never has been.
 1.63 04-Oct-2002  mycroft Rearrange _rtld_map_object() a little, so that we don't have to have the first
page of the object double-mapped. Not that it matters much, but someone was
whinging about it.
While I'm at it, nuke obj->phdr and obj->phsize; they're unused.
 1.62 03-Oct-2002  mycroft As seen on tech-userlevel...

There are several optimizations here:

1) Objects on _rtld_list_main do not participate in the DAG structures
at all. This is okay because all symbols must be resolvable at
link/load time, and _rtld_list_main is always searched first, so
any references from those objects must necessarily be resolved to
other objects on _rtld_list_main.

(Making this work completely required setting obj->main a bit
earlier; hence the RTLD_MAIN hack.)

2) Objects on _rtld_list_main are not put on _rtld_list_global,
preventing an extra search.

3) A bit is used to keep track of whether an object is on
_rtld_list_global, so we don't have to do a silly linear search.

4) A small attempt is made to prevent objects being put on the DAG
lists multiple times (using a silly linear search).

The sum of this appears to be a ~10% (.3s) reduction in Mozilla's
startup time on my 800MHz box.

Also, make sure _rtld_objmain->path is always set, just to make the
debug output nicer.
 1.61 03-Oct-2002  mycroft Do not put objects on _rtld_list_main on any DAG member list -- any symbol we
will have already been found during the _rtld_list_main walk, so there's no
point in doing it again.
 1.60 26-Sep-2002  mycroft Remove the `self' args to _rtld_relocate_objects() and
_rtld_relocate_nonplt_objects().
 1.59 25-Sep-2002  mycroft Push the _rtld_bind() interface into MD code -- it's just a trivial wrapper
anyway.
 1.58 25-Sep-2002  mycroft #if defined -> #ifdef
 1.57 24-Sep-2002  mycroft Put back the `in_plt' nonsense for now.
It turns out there is some deep-seated wackiness WRT function pointer
comparisons...
 1.56 24-Sep-2002  mycroft Remove the SVR4_LIBDIR madness.
 1.55 24-Sep-2002  junyoung Nuke PAGESIZE.
 1.54 24-Sep-2002  mycroft Use/require AT_PAGESZ on all platforms. (The kernel has exported it for ~3
years now.) Use _rtld_pagesz instead of getpagesize() to determine the page
size in our local malloc(). Saves a system call.

Also, since we're now relocated early, we don't need to be careful to avoid
globals, so most of the VARPSZ hacks are eliminated.
 1.53 23-Sep-2002  mycroft Several small changes that shave 7-8% off the simple-exec-loop test:

* Rename _rtld_find_library() to _rtld_load_library(). It now calls
_rtld_load_object() if necessary to actually load the object, rather
than having the caller do it. To do this, it also takes the `mode'
argument that gets passed to _rtld_load_object().

* On a related note, remove _rtld_check_library(), and instead call
_rtld_load_object() to instead try actually loading the object. We
save two extra namei's and a bunch of redundant work (almost
literally the same code) this way.

* In _rtld_map_object(), mmap(2) the first page read-only, rather than
read(2)ing it.

* In _rtld_symlook_obj(), compare the *second* character of the symbol
name before calling strcmp(). (This first character is too
frequently `_', and turns out to not be helpful, in libc.)

* Also in _rtld_symlook_obj(), remove the bogus STT_FUNC special case
-- this also allows removing the `in_plt' argument to
_rtld_symlook_list() and _rtld_symlook_obj().

Also:

* In _rtld_obj_from_addr(), rather than trying to look up `_end' in
the each object, instead use obj->mapsize as the upper bound.
 1.52 19-Sep-2002  junyoung Cosmetic changes.
 1.51 18-Sep-2002  junyoung _rtld_setup_pltgot() belongs to reloc.c.
 1.50 17-Sep-2002  junyoung Make immediate binding work again by actually implementing
_rtld_relocate_plt_objects(). Note that this is for i386 only;
any efforts to make it work on other platforms are left to
those who are using them...
 1.49 13-Sep-2002  mycroft Remove a dumb #ifdef -- if VARPSZ is not defined on sparc, the build will
bomb anyway.
 1.48 12-Sep-2002  mycroft Nuke -DRTLD_RELOCATE_SELF and `dodebug' from orbit.
 1.47 12-Sep-2002  mycroft Move another declaration that doesn't belong in MI source.
 1.46 12-Sep-2002  mycroft _rtld_bind_start() is not used in MI code, so declare it in the MD code.
 1.45 06-Sep-2002  mycroft Pass down an additional flag to _rtld_relocate_nonplt_objects() which
indicates whether we're relocating ld.elf_so itself. Use this in some places
rather than hackish tests on `dodebug'. (The Alpha and HPPA `dodebug' tests
were actually noops, because RTLD_RELOCATE_SELF is not set, and therefore
dodebug is always true.)
 1.44 06-Sep-2002  mycroft Introduce a new flag, `isdynamic', which is used to remember whether the
executable was of type ET_DYN. Use this instead of `mainprog' to determine
whether we need to do base-relative fixups of the PLT. (This allows loading
non-relocatable objects, should we desire to do that at some point...)
 1.43 06-Sep-2002  mycroft More const poisoning. Now the entire _rtld_bind() path useds a const Obj_Entry.
 1.42 06-Sep-2002  mycroft Re-poison a lot of consts, now that the mark shite is gone.
 1.41 06-Sep-2002  mycroft Split _rtld_relocate_plt_object() into two MD functions:
* _rtld_relocate_plt_lazy() fixes up all the relocs pointing to the PLT. (On
most platforms it just does a simple base-relative fixup; on SPARC it does
nothing.)
* _rtld_relocate_plt_object() does immediate binding for a PLT entry.
The basic gist is that this saves a bit of time on SPARC (where the iteration
through the pltrela table was gratuitous), and a little less time on all other
platforms. A whole lot of #ifdef'ed crap is moved out of reloc.c, too.

NOT tested on: hppa sh x86_64
 1.40 05-Sep-2002  mycroft Remove all of the `mark' code. This is responsible for the `undefined PLT
symbol' errors, probably because the increment gets interrupted occasionally by
a signal. In general, _rtld_bind() should not modify ANY internal state.
 1.39 05-Sep-2002  mycroft A few things:
* Pass a symbol number to _rtld_find_symdef(), not a r_info.
* Don't try to do a symbol lookup when we find an unsupported relocation;
instead get the symbol name from the referencing object's strtab.
* Add preliminary support for `-z combreloc'-style startup optimization on
i386, `#ifdef COMBRELOC'.
 1.38 05-Sep-2002  mycroft Rename _rtld_relocate_nonplt_object() to _rtld_relocate_nonplt_objects(),
and push the outer loop into it. This actually shaves a couple % off startup
time at least on PCs.
 1.37 05-Sep-2002  junyoung Remove unused arguments of _rtld_find_symdef().
 1.36 05-Sep-2002  mycroft Remove unused prototypes (including one for a non-existant function!).
 1.35 05-Sep-2002  mycroft Make _rtld_setup_pltgot() a consistent interface on all platforms.
 1.34 10-Jul-2002  fredette Add support for dynamic linking on HP PA-RISC.
 1.33 28-Dec-2001  lukem branches: 1.33.2;
- Allow RTLD_DEFAULT_LIBRARY_PATH to be overridden.
- If ${SHLIBDIR} != ${LIBDIR}, then set RTLD_DEFAULT_LIBRARY_PATH to
${SHLIBDIR}:${LIBDIR}
 1.32 14-Dec-2001  thorpej Add code to peek into the PLT and determine which PLT entry format
is being used.
 1.31 13-Dec-2001  thorpej Supply two lazy binding routines for Alpha: one that works with the
old PLT format, and one that works with the new.

XXX We currently always use _rtld_bind_start_old() in
_rtld_setup_alpha_pltgot(). We need to add code to peek
into one of the PLT entries to see which format it's in
and pick the correct binding routine.
 1.30 25-Apr-2001  kleink Sync with <sys/exec_elf.h> rev. 1.45: ElfNN_RelA -> ElfNN_Rela.
 1.29 10-Nov-2000  mycroft When dlopen()ing with RTLD_GLOBAL, also make dependent libraries RTLD_GLOBAL.
 1.28 10-Oct-2000  is Format string cleanups by sommerfeld.
 1.27 26-Jul-2000  mycroft Catch up with type changes. Also:
* Apply DT_PLTRELSZ to (one of) pltrel or pltrela *after* we've finished
parsing the headers, so we know which one.
* Fix sparc64 bogons. (It works now!)
 1.26 06-Jul-2000  christos fix non-portable bit-fields
 1.25 15-Apr-2000  erh branches: 1.25.4;
Cause ld.elf_so to find the symbols for __progname and environ and set them. If we wait until crt0 gets around to doing it it's too late for any library init functions.
 1.24 08-Feb-2000  scottb change first argument of dladdr to const.
 1.23 07-Feb-2000  scottb add hooks to support the dladdr function.
 1.22 15-Dec-1999  christos Do what the people want. Support full sysctl names.
 1.21 13-Dec-1999  christos Enable parsing and mapping of hardware dependent libraries in ld.so.conf
To be documented in the man page.
 1.20 05-Dec-1999  fredb More CL* fallout.
 1.19 10-Nov-1999  thorpej Name consistencty nit: curmark -> _rtld_curmark
 1.18 07-Nov-1999  mycroft More fallout.
 1.17 07-Nov-1999  mycroft Changes from msaitoh to fix local/global symbol confusion, and to fix weak
symbol support -- updated by me for elf.h changes.
 1.16 19-Aug-1999  christos branches: 1.16.4;
enable /etc/ld.so.conf processing
[reviewed by thorpej]
 1.15 01-Aug-1999  kleink Rearrange the shared library search path precedences to LD_LIBRARY_PATH >
runpath > built-in default; this is the behaviour of the SVR4 shared loader,
and gives users the opportunity to override the runpath. (Addresses a report
on current-users by John Kohl.)
 1.14 05-Jul-1999  thorpej Protect certain definitions from view by crt0, by wrapping them in
#ifdef _RTLD_SOURCE.

Should fix the "variable page size" build error of crt0 on the SPARC.
 1.13 22-Jun-1999  christos We need to compile with -DVARPSZ, because the sparc has a variable page
size depending on arch. Make it an error to compile without it. This
caused -lposix linked programs to fail.
 1.12 16-Jun-1999  kleink Turn bool, true and false into an enumeration and enumeration constants to
avoid integer promotion warnings.
 1.11 31-May-1999  kleink Implement LD_PRELOAD support.
 1.10 18-Apr-1999  ws Add code to use the kernel provided page size.
Enable this on the powerpc only for now.
 1.9 19-Mar-1999  kleink branches: 1.9.2;
Remove /usr/local/lib from RTLD_DEFAULT_LIBRARY_PATH; c.f. PR bin/7146.
 1.8 01-Mar-1999  christos KNF
 1.7 24-Feb-1999  christos Cleanup global variable access so rtld can be self relocating. Also KNF
reloc.c and move md sparc parts to arch/sparc/mdreloc.c
Now we don't need to load at address 0 on the i386 and the mips should be
trivial to fix.
 1.6 24-Nov-1998  tsubai Add powerpc support.
 1.5 01-Jul-1998  tv Allow PAGESIZE to be set via a -D option to cc (CLBYTES not a constant on
sparc; it is defined in terms of the kernel variable "nbpg")
 1.4 25-Mar-1998  mhitch Add support for mips.
 1.3 14-Feb-1997  cgd branches: 1.3.2;
don't include members of Struct_Obj_Entry conditionally.
 1.2 17-Dec-1996  cgd remove /usr/localelf/lib from default library path
 1.1 16-Dec-1996  cgd First cut at an ELF shared loader. Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.). This runs, but it's
in serious need of cleaning and/or a fair bit of reworking. See the README
file for more information, and a list of things to do.
 1.3.2.1 08-May-1998  mycroft Sync with trunk, per request of mycroft.
 1.9.2.2 10-Oct-2000  he Pull up revision 1.28 (requested by is):
Format string cleanup.
 1.9.2.1 23-Jun-1999  perry pullup 1.10->1.11 (klienk): LD_PRELOAD support
 1.16.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.25.4.4 09-Dec-2001  he Pull up revisions 1.26,1.29 (requested by skrll):
Add init/fini section support in crtbegin and crtend, and introduce
support for DWARF2 exception handling. Fixes PR#12865, PR#13488,
PR#13489, and PR#13491. Also fix ld.elf_so to deal appropriately.
 1.25.4.3 01-May-2001  he Pull up revision 1.30 (requested by kleink):
Rename ElfNN_RelA to ElfNN_Rela, which is what SVR4 ABIs and the
rest of the world uses. Fixes PR#12274.
 1.25.4.2 17-Oct-2000  tv Pullup libexec string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.
 1.25.4.1 26-Jul-2000  mycroft Approved by thorpej:
Add support for sparc64, including MD code and variable page size support.
Modify some variable types to insure they are the correct width on sparc64.

basesrc/libexec/ld.elf_so/arch/sparc64/Makefile.inc 0 -> 1.1
basesrc/libexec/ld.elf_so/arch/sparc64/mdreloc.c 0 -> 1.3
basesrc/libexec/ld.elf_so/arch/sparc64/rtld_start.S 0 -> 1.2
basesrc/libexec/ld.elf_so/headers.c 1.6 -> 1.8
basesrc/libexec/ld.elf_so/reloc.c 1.26 -> 1.27
basesrc/libexec/ld.elf_so/reloc.c 1.29 -> 1.31
basesrc/libexec/ld.elf_so/rtld.c 1.34 -> 1.35
basesrc/libexec/ld.elf_so/rtld.c 1.36 -> 1.40
basesrc/libexec/ld.elf_so/rtld.h 1.26 -> 1.27
basesrc/libexec/ld.elf_so/symbol.c 1.7 -> 1.9
 1.33.2.2 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.33.2.1 05-Sep-2003  tron Pull up revision 1.40 (requested by dmcmahill in ticket #1395):
Remove all of the `mark' code. This is responsible for the `undefined
PLT
symbol' errors, probably because the increment gets interrupted
occasionally by
a signal. In general, _rtld_bind() should not modify ANY internal
state.
 1.71.2.1 08-Oct-2008  bouyer Pull up following revision(s) (requested by jmcneill in ticket #1973):
libexec/ld.elf_so/symbol.c: revision 1.47
libexec/ld.elf_so/rtld.h: revision 1.79
libexec/ld.elf_so/rtld.c: revision 1.122
lib/39649: dlsym(3) does not follow dependencies
Pull across code from FreeBSD to do a search of the passed object and it's
NEEDED objects (dependencies).
Reviewed by gimpy.
 1.73.6.1 30-Sep-2007  wrstuden Catch up on netbsd-4 as of a few days ago.
 1.73.4.2 31-Oct-2008  snj Pull up following revision(s) (requested by jmcneill in ticket #1211):
libexec/ld.elf_so/symbol.c: revision 1.47
libexec/ld.elf_so/rtld.h: revision 1.79
libexec/ld.elf_so/rtld.c: revision 1.122
lib/39649: dlsym(3) does not follow dependencies
Pull across code from FreeBSD to do a search of the passed object and its
NEEDED objects (dependencies).
 1.73.4.1 27-Sep-2007  xtraeme Pull up following revision(s) (requested by joerg in ticket #889):
libexec/ld.elf_so/rtld.h: revision 1.75

Don't define bool, false and true. Use stdbool.h.
 1.74.4.3 23-Mar-2008  matt sync with HEAD
 1.74.4.2 09-Jan-2008  matt sync with HEAD
 1.74.4.1 06-Nov-2007  matt sync with HEAD
 1.77.6.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.77.4.1 17-Jun-2008  yamt sync with head.
 1.79.10.1 21-Apr-2010  matt sync to netbsd-5
 1.79.8.3 23-Jan-2010  bouyer Pull up following revision(s) (requested by skrll in ticket #1249):
libexec/ld.elf_so/rtld.h: revision 1.88
Restore backwards compatibility for binaries referencing the main
Obj_Entry.
 1.79.8.2 23-Jan-2010  bouyer Back out ticket 1249 for now, it may not be needed on netbsd-5-0.
 1.79.8.1 23-Jan-2010  bouyer Pull up following revision(s) (requested by skrll in ticket #1249):
libexec/ld.elf_so/rtld.h: revisions 1.87, 1.88
libexec/ld.elf_so/reloc.c: revision 1.101
Restore backwards compatibility for binaries referencing the main
Obj_Entry.
 1.79.4.4 17-Mar-2012  bouyer Pull up following revision(s) via patch (requested by skrll in ticket #1724):
rescue/list.ldd: revision 1.4
lib/libc/dlfcn/dlfcn_elf.c: revision 1.7
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.57
distrib/sets/lists/comp/mi: revision 1.1512
share/man/man3/Makefile: revision 1.56
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.58
usr.bin/ldd/ldd.c: revision 1.15
libexec/ld.elf_so/rtld.h: revision 1.84
share/man/man3/dl_iterate_phdr.3: revision 1.1
libexec/ld.elf_so/rtld.c: revision 1.129
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.44
libexec/ld.elf_so/rtld.h: revision 1.89
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.36
libexec/ld.elf_so/map_object.c: revision 1.41
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.37
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.46
include/link_elf.h: revision 1.10
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.29
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.26
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.34
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.31
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.35
libexec/ld.elf_so/Makefile: revision 1.94
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.32
libexec/ld.elf_so/Makefile: revision 1.95
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.31
libexec/ld.elf_so/Makefile: revision 1.96
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.32
libexec/ld.elf_so/reloc.c: revision 1.98
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.33
sys/sys/exec_elf.h: revision 1.106
libexec/ld.elf_so/rtld.c: revision 1.130
libexec/ld.elf_so/load.c: revision 1.37
libexec/ld.elf_so/rtld.c: revision 1.131
libexec/ld.elf_so/load.c: revision 1.38
libexec/ld.elf_so/rtld.h: revision 1.90
libexec/ld.elf_so/headers.c: revision 1.36
libexec/ld.elf_so/rtld.h: revision 1.95
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.30
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.25
libexec/ld.elf_so/symbol.c: revision 1.50
libexec/ld.elf_so/symbol.c: revision 1.51
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.43
libexec/ld.elf_so/symbol.c: revision 1.52
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.27
libexec/ld.elf_so/symbol.c: revision 1.54
PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
Implement dl_iterate_phdr.
Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.79.4.3 30-Jan-2010  snj Pull up following revision(s) (requested by skrll in ticket #1266):
libexec/ld.elf_so/map_object.c: revision 1.39
libexec/ld.elf_so/rtld.h: revision 1.83
libexec/ld.elf_so/symbol.c: revision 1.49
Reset the COMBRELOC cache Obj_Entry if it was freed.
Fixes PR 41482. Done slightly differently to the patch in the PR.
 1.79.4.2 23-Jan-2010  bouyer Pull up following revision(s) (requested by skrll in ticket #1249):
libexec/ld.elf_so/rtld.h: revisions 1.87, 1.88
libexec/ld.elf_so/reloc.c: revision 1.101
Restore backwards compatibility for binaries referencing the main
Obj_Entry.
 1.79.4.1 14-Oct-2009  sborrill Pull up the following revisions(s) (requested by pooka in ticket #1088):
include/dlfcn.h: revision 1.20
lib/libc/dlfcn/dlfcn_elf.c: revision 1.6
libexec/ld.elf_so/reloc.c: revision 1.97
libexec/ld.elf_so/rtld.c: revision 1.125
libexec/ld.elf_so/rtld.h: revision 1.81
libexec/ld.elf_so/symbol.c: revision 1.48

Add Solarisa-like dlinfo() interface to the ELF dynamic linker.
Implement RTLD_DI_LINKMAP which returns a pointer to the linkmap
chain at the given object. Other Solaris queries are currently
unimplemented.
 1.99.2.1 08-Feb-2011  bouyer Sync with HEAD
 1.106.2.3 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.106.2.2 30-Oct-2012  yamt sync with head
 1.106.2.1 17-Apr-2012  yamt sync with head
 1.107.4.1 22-Jan-2013  matt Pullup from HEAD:
Add .init_array/.fini_array support (conditionalized on HAVE_INITFINI_ARRAY).
 1.110.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.110.2.1 23-Jun-2013  tls resync from head
 1.118.2.1 06-Mar-2016  martin Catch up to -current, via patch, requested by christos in ticket #1126:
 1.125.2.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.126.6.3 29-Aug-2017  bouyer Pull up following revision(s) (requested by joerg in ticket #127):
tests/libexec/ld.elf_so/h_thread_local_dtor.c: revision 1.1
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6/c++config.h: revision 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/earmeb/c++config.h: revision 1.17
lib/libc/stdlib/atexit.h: file removal
lib/libc/stdlib/exit.c: revision 1.16
external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/c++config.h: revision 1.8
lib/libc/stdlib/exit.c: revision 1.17
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hf/c++config.h: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.178
external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el/c++config.h: revision 1.21
distrib/sets/lists/debug/shl.mi: revision 1.179
distrib/sets/lists/debug/mi: revision 1.219
lib/libpthread/pthread.c: revision 1.150
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7/c++config.h: revision 1.14
libexec/ld.elf_so/symbols.map: revision 1.2
include/dlfcn.h: revision 1.25
external/gpl3/gcc/lib/libstdc++-v3/arch/arm/c++config.h: revision 1.21
external/gpl3/gcc/lib/libstdc++-v3/arch/x86_64/c++config.h: revision 1.23
external/gpl3/gcc/lib/libstdc++-v3/arch/mips64el/c++config.h: revision 1.18
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4eb/c++config.h: revision 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/earm/c++config.h: revision 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/mipsel/c++config.h: revision 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/ia64/c++config.h: revision 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6eb/c++config.h: revision 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf/c++config.h: revision 1.17
distrib/sets/lists/tests/mi: revision 1.755
external/gpl3/gcc/lib/libstdc++-v3/arch/mips64eb/c++config.h: revision 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/i386/c++config.h: revision 1.20
external/gpl3/gcc/lib/libstdc++-v3/arch/vax/c++config.h: revision 1.21
external/gpl3/gcc/lib/libstdc++-v3/arch/armeb/c++config.h: revision 1.21
external/gpl3/gcc/lib/libstdc++-v3/arch/sparc/c++config.h: revision 1.20
lib/libc/dlfcn/dlfcn_elf.c: revision 1.14
tests/libexec/ld.elf_so/t_thread_local_dtor.sh: revision 1.1
tests/lib/libpthread/t_thread_local_dtor.sh: revision 1.1
lib/libc/stdlib/Makefile.inc: revision 1.93
lib/libc/include/atexit.h: revision 1.1
lib/libc/include/atexit.h: revision 1.2
external/gpl3/gcc/lib/libstdc++-v3/arch/m68k/c++config.h: revision 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hf/c++config.h: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.180
external/gpl3/gcc/lib/libstdc++-v3/arch/sparc64/c++config.h: revision 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hfeb/c++config.h: revision 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/hppa/c++config.h: revision 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hfeb/c++config.h: revision 1.14
lib/libc/stdlib/cxa_thread_atexit.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso3/h_helper_dso3.cpp: revision 1.1
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.1
external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64/c++config.h: revision 1.5
libexec/ld.elf_so/rtld.c: revision 1.185
external/gpl3/gcc/lib/libstdc++-v3/arch/sh3eb/c++config.h: revision 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/riscv32/c++config.h: revision 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/m68000/c++config.h: revision 1.15
external/gpl3/gcc/lib/libstdc++-v3/arch/mipseb/c++config.h: revision 1.21
external/gpl3/gcc/lib/libstdc++-v3/arch/coldfire/c++config.h: revision 1.12
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4/c++config.h: revision 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/earmhfeb/c++config.h: revision 1.15
external/gpl3/gcc/lib/libstdc++-v3/arch/alpha/c++config.h: revision 1.19
tests/libexec/ld.elf_so/Makefile: revision 1.9
external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h: revision 1.20
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7eb/c++config.h: revision 1.14
tests/lib/libpthread/h_thread_local_dtor.cpp: revision 1.1
distrib/sets/lists/tests/shl.mi: revision 1.11
tests/lib/libpthread/Makefile: revision 1.13
libexec/ld.elf_so/rtld.h: revision 1.129
external/gpl3/gcc/lib/libstdc++-v3/arch/or1k/c++config.h: revision 1.6
Implement __cxa_thread_atexit and __cxa_thread_atexit_impl. This
functions are used for destructors of thread_local objects.
If a pending destructor exists, prevent unloading of shared objects.
Introduce __dl_cxa_refcount interface for this purpose. When the last
reference is gone and the object has been dlclose'd before, the
unloading is finalized.
Ideally, __cxa_thread_atexit_impl wouldn't exist, but libstdc++ insists
on providing __cxa_thread_atexit as direct wrapper without further
patching.
Fix filename of new debug file
Add misising DEBUGLIB file
Avoid common declaration.
Drop TLS variant checks, emutls is enough for VAX and Sun2.
 1.126.6.2 24-Jul-2017  snj Pull up following revision(s) (requested by joerg in ticket #126):
libexec/ld.elf_so/rtld.h: revision 1.128
Drop comments about symbol exporting, the relevant code is gone.
 1.126.6.1 04-Jul-2017  martin Pull up following revision(s) (requested by joerg in ticket #64):
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.40
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.41
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.44
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.60
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.32
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.61
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.2
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.50
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.34
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.39
libexec/ld.elf_so/symbol.c: revision 1.68
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.66
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.67
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.68
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.42
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.54
libexec/ld.elf_so/Makefile: revision 1.137
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.32
libexec/ld.elf_so/rtld.h: revision 1.127
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.38
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.42
libexec/ld.elf_so/map_object.c: revision 1.58
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.49
Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.
The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.
Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
Drop symbol number from default branch diagnostic, it isn't set at this
point and most likely not valid either.
Expand symnum, GCC's uninitialized used tracking is too imprecise.
Fix C&P bug. Deal with more MIPS hacks overriding def.
Add last_symnum, move up def and defobj.
Add back symnum, fix debug print.
Replace last use of r_type.
Fix indentation.
Fix indentation.
 1.131.2.5 18-Jan-2019  pgoyette Synch with HEAD
 1.131.2.4 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.131.2.3 20-Oct-2018  pgoyette Sync with head
 1.131.2.2 07-Apr-2018  pgoyette Sync with HEAD. 77 conflicts resolved - all of them $NetBSD$
 1.131.2.1 15-Mar-2018  pgoyette Synch with HEAD
 1.133.2.3 21-Apr-2020  martin Sync with HEAD
 1.133.2.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.133.2.1 10-Jun-2019  christos Sync with HEAD
 1.136.2.2 04-Aug-2023  martin Pull up following revision(s), all via patch,
(requested by riastradh in ticket #1699):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.

This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.

PR pkg/57445

Fix MKDEBUGLIB build by adding these installed files to the debug
set list.

One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.

Fix markup of libh_ MKDEBUGLIB=yes only files

TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.136.2.1 13-May-2020  martin Pull up following revision(s) (requested by chs in ticket #907):

libexec/ld.elf_so/rtld.c: revision 1.205
libexec/ld.elf_so/rtld.h: revision 1.140
libexec/ld.elf_so/symbols.map: revision 1.3
libexec/ld.elf_so/symbols.map: revision 1.4
lib/libc/gen/pthread_atfork.c: revision 1.13
lib/libc/gen/pthread_atfork.c: revision 1.14
libexec/ld.elf_so/rtld.h: revision 1.139
libexec/ld.elf_so/rtld.c: revision 1.204

Introduce intermediate locking for fork, so that the dynamic linker is
in a consistent state. This most importantly avoids races between dlopen
and friends and fork, potentially resulting in dead locks in the child
when it itself tries to acquire locks.

Rename __atomic_fork to __locked_fork and give it &errno as argument.
rtld and libc use different storage, so the initial version would
incorrectly report the failure reason for fork().

There is still a small race condition inside ld.elf_so as it doesn't use
thread-safe errno internally, but that's a more contained internal
issue.
 1.144.2.2 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #300):

libexec/ld.elf_so/rtld.h: revision 1.145
libexec/ld.elf_so/symbol.c: revision 1.74
libexec/ld.elf_so/rtld.h: revision 1.147
libexec/ld.elf_so/symbol.c: revision 1.75
libexec/ld.elf_so/symbol.c: revision 1.76
tests/libexec/ld.elf_so/t_hash.c: revision 1.1
libexec/ld.elf_so/Makefile: revision 1.145
libexec/ld.elf_so/Makefile: revision 1.146
libexec/ld.elf_so/Makefile: revision 1.147
libexec/ld.elf_so/reloc.c: revision 1.118
distrib/sets/lists/tests/mi: revision 1.1280
libexec/ld.elf_so/rtld.c: revision 1.215
tests/libexec/ld.elf_so/Makefile: revision 1.21
libexec/ld.elf_so/hash.c: revision 1.1
libexec/ld.elf_so/hash.h: revision 1.1
distrib/sets/lists/debug/mi: revision 1.409

The SysV ABI specifies that the symbol hash function should return only 32
bits of hash. Unfortunately due to an implementation bug and the fact that
the return type is unsigned long which is 64 bits in LP64, this can fail
in some cases: "\xff\x0f\x0f\x0f\x0f\x0f\x12". See:
"https://maskray.me/blog/2023-04-12-elf-hash-function
From Ed Maste @ FreeBSD:
https://cgit.freebsd.org/src/commit/?id=29e3a06510823edbb91667d21f530d3ec778116d

Need to write Unit Tests for this.

Oops wrong mask.

ld.elf_so: Split SRCS onto multiple lines.
Makes updates easier.
No functional change intended.

ld.elf_so: Sort SRCS.
No functional change intended.

ld.elf_so: Split hash functions into a separate file.
This way we can test them in isolation.
No functional change intended.

ld.elf_so: Add some known-answer tests for hash functions.

Make sure the testing mechanism detects the traditional overflow bug.
 1.144.2.1 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #297):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44
(all via patch)

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen
(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.
(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.
(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.
PR pkg/57445
Fix MKDEBUGLIB build by adding these installed files to the debug
set list.
XXX
One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.
Fix markup of libh_ MKDEBUGLIB=yes only files
TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.147.2.1 02-Aug-2025  perseant Sync with HEAD
 1.12 06-May-2013  skrll Trailing whitespace
 1.11 11-Dec-2011  joerg branches: 1.11.6;
Mark xassert as __dead
 1.10 29-Oct-2010  christos branches: 1.10.6;
PR/44010: YAMAMOTO Takashi: sbrk: grow 0xb3ba2000 failed, error = 12"
(due to setenv changes?)
Provide a mini unsetenv that does not allocate/free memory and does not
bother about locking.
 1.9 05-Oct-2007  ad - Don't use the names malloc/free/etc, since we can end up pulling in libc's
malloc which is not what we want.
- Remove ancient memory compaction hack. Realloc on free memory is now an
error again (from joerg@).

Ok christos@.
 1.8 27-Sep-2007  christos provide xrealloc, and don't cast and use malloc and realloc directly.
 1.7 22-May-2006  drochner branches: 1.7.10;
sprinkle some __noreturn__ attributes, saves gcc4 warnings elsewhere
 1.6 24-Jul-2003  skrll ANSIfy and de-__P().
 1.5 24-Sep-2002  mycroft Include xassert() only if DEBUG, like the real assert().
Also, xassert() calls abort(), so there's no need to do it in all of the
callers.
 1.4 13-Sep-2002  mycroft Kill the extra newline in assert messages.
 1.3 01-Mar-1999  christos branches: 1.3.12;
KNF
 1.2 08-Oct-1997  mrg WARNS?=1
 1.1 16-Dec-1996  cgd First cut at an ELF shared loader. Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.). This runs, but it's
in serious need of cleaning and/or a fair bit of reworking. See the README
file for more information, and a list of things to do.
 1.3.12.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.7.10.1 06-Nov-2007  matt sync with HEAD
 1.10.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.10.6.1 17-Apr-2012  yamt sync with head
 1.11.6.1 23-Jun-2013  tls resync from head
 1.27 22-Apr-2020  joerg Mark _rtld_invalid_paths static as ldd can end up with two copies
 1.26 13-Oct-2019  mrg use strlcpy to ensure termination.

the buffer is statically sized so that it works without an
allocator, so truncation is the desired effect here.
 1.25 12-Jan-2019  christos print the program name when we don't find a library.
XXX: really most _rtld_error() should do that, and most do.
 1.24 06-May-2013  skrll branches: 1.24.26; 1.24.28;
Trailing whitespace
 1.23 24-Dec-2010  skrll branches: 1.23.6; 1.23.12;
Add support for DF_1_BIND_NOW, DF_1_NODELETE and DF_1_NOOPEN marked
objects, and the RTLD_NODELETE and RTLD_NOLOAD flags to dlopen(3).

Mark libpthread as DF_1_NOOPEN and use it to test the functionality.

Somewhat taken from FreeBSD.

Fixes PR 42029.

OK from christos and joerg.
 1.22 07-Aug-2010  joerg Stricter matching for _rtld_invalid_paths by ensuring separator.
Use mem* functions instead of str* for strings of known size.
 1.21 21-Mar-2006  christos Coverity CID 2749: Fix another double free. Instead of removing that last
free() call, change the allocation policy to leave the responsibility for
allocation/freeing the pathname to _rtld_map_object(), instead of having
the caller allocate it and _rtld_map_object() free it. This simplifies the
code a lot and it is more efficient.
 1.20 18-Mar-2006  matt Fix some double frees / missing frees / use after freed all
relating to _rtld_load_object. Fix Coverity CID 2601, 2600.
 1.19 22-Oct-2004  skrll Add __RCSIDs.

OK'd by mycroft.
 1.18 12-Aug-2003  skrll Resolve dlsym(3) and friends directly so that dlsym(RTLD_NEXT,...) works.

Previously dlsym resolved to the version in crt0.o or libc which would
mean that the caller's shared object couldn't be determined correctly
using __builtin_return_address(0).

Mainly from FreeBSD, but adapted by me. Benefits of this solutions are:

- backward comptibility maintained
- existing broken binaries are fixed with a new ld.elf_so
- __mainprog_obj can be removed from crt0.o
- we do the same thing as FreeBSD

Fixes PR 22067.

OKed by Jason and Christos.
 1.17 24-Jul-2003  skrll ANSIfy and de-__P().
 1.16 14-Nov-2002  nathanw In _rtld_load_library(), ensure that the old _rtld_error state (a message from
a previous error, or NULL) is preserved if the search eventually succeeds.

Addresses the problem pointed out in PR pkg/19024.
 1.15 05-Oct-2002  mycroft Minor cleanup.
 1.14 01-Oct-2002  junyoung Store pathnames of shared objects not found in search paths in cache
and utilize it. This greatly reduces the number of calls to open(2) and
malloc(3) for programs like mozilla that depend on many shared objects
while it doesn't affect performance of small programs.
 1.13 24-Sep-2002  mycroft Remove the SVR4_LIBDIR madness.
 1.12 24-Sep-2002  mycroft Very minor cleanup of the previous.
 1.11 23-Sep-2002  mycroft Several small changes that shave 7-8% off the simple-exec-loop test:

* Rename _rtld_find_library() to _rtld_load_library(). It now calls
_rtld_load_object() if necessary to actually load the object, rather
than having the caller do it. To do this, it also takes the `mode'
argument that gets passed to _rtld_load_object().

* On a related note, remove _rtld_check_library(), and instead call
_rtld_load_object() to instead try actually loading the object. We
save two extra namei's and a bunch of redundant work (almost
literally the same code) this way.

* In _rtld_map_object(), mmap(2) the first page read-only, rather than
read(2)ing it.

* In _rtld_symlook_obj(), compare the *second* character of the symbol
name before calling strcmp(). (This first character is too
frequently `_', and turns out to not be helpful, in libc.)

* Also in _rtld_symlook_obj(), remove the bogus STT_FUNC special case
-- this also allows removing the `in_plt' argument to
_rtld_symlook_list() and _rtld_symlook_obj().

Also:

* In _rtld_obj_from_addr(), rather than trying to look up `_end' in
the each object, instead use obj->mapsize as the upper bound.
 1.10 27-Jul-2000  kleink branches: 1.10.2;
Adjust a comment after the Great Renaming.
 1.9 04-Nov-1999  erh branches: 1.9.6;
Remove ELFNAME defines since they are defined in sys/exec_elf.h
 1.8 25-Oct-1999  kleink Update to match new SVR4-style definition names in <sys/exec_elf.h>.
 1.7 22-Oct-1999  hannken Undo last change. While these macros are defined in exec_elf.h, they are
enclosed by `#ifdef _KERNEL'.
 1.6 21-Oct-1999  erh Remove ELFNAME macros which are already defines in exec_elf.h
 1.5 01-Aug-1999  kleink branches: 1.5.2;
Rearrange the shared library search path precedences to LD_LIBRARY_PATH >
runpath > built-in default; this is the behaviour of the SVR4 shared loader,
and gives users the opportunity to override the runpath. (Addresses a report
on current-users by John Kohl.)
 1.4 01-Mar-1999  christos KNF
 1.3 17-Feb-1997  cgd use 'normal' ELF library lookup rules
 1.2 03-Feb-1997  cgd that which thou openest, thou shalt close.
 1.1 16-Dec-1996  cgd First cut at an ELF shared loader. Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.). This runs, but it's
in serious need of cleaning and/or a fair bit of reworking. See the README
file for more information, and a list of things to do.
 1.5.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.9.6.1 09-Dec-2001  he Pull up revision 1.10 (requested by skrll):
Add init/fini section support in crtbegin and crtend, and introduce
support for DWARF2 exception handling. Fixes PR#12865, PR#13488,
PR#13489, and PR#13491. Also fix ld.elf_so to deal appropriately.
 1.10.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.23.12.1 23-Jun-2013  tls resync from head
 1.23.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.24.28.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.24.28.1 10-Jun-2019  christos Sync with HEAD
 1.24.26.1 18-Jan-2019  pgoyette Synch with HEAD
 1.77 02-May-2025  riastradh ld.elf_so: Narrow scope of -Wno-stack-protector.

Don't need it outside immediate _rtld_donelist_init callers.

PR lib/59388: ld.elf_so: -Wno-stack-protector applies too broadly
 1.76 30-Jul-2023  riastradh branches: 1.76.2;
ld.elf_so: Split hash functions into a separate file.

This way we can test them in isolation.

No functional change intended.
 1.75 18-Apr-2023  christos Oops wrong mask.
 1.74 18-Apr-2023  christos The SysV ABI specifies that the symbol hash function should return only 32
bits of hash. Unfortunately due to an implementation bu and the fact that
the return type is unsigned long which is 64 bits in LP64, this can fail
in some cases: "\xff\x0f\x0f\x0f\x0f\x0f\x12". See:
https://maskray.me/blog/2023-04-12-elf-hash-function
From Ed Maste @ FreeBSD:
https://cgit.freebsd.org/src/commit/\
?id=29e3a06510823edbb91667d21f530d3ec778116d
Need to write Unit Tests for this.
 1.73 29-Feb-2020  kamil branches: 1.73.8;
Fix vax and mips build
 1.72 29-Feb-2020  kamil Implement DT_GNU_HASH

DT_GNU_HASH serves the same purpose as DT_HASH, however it is a distinct
and faster apprach implemented and designed in the GNU toolchain in 2006.

DT_GNU_HASH is preferred whenever available.

Original GNU benchmarks claim 50% faster dynamic linking time.
https://www.sourceware.org/ml/binutils/2006-06/msg00418.html

Code based on FreeBSD and OpenBSD, both were based on DragonFlyBSD.
 1.71 29-Feb-2020  kamil Implement and integrate GNU Hashing function

Define Elf_Hash struct that contains ELF/SYSV and GNU hash checksum.
Implement _rtld_gnu_hash() for DT_GNU_HASH.
Adapt existing code to compute all Elf_Hash types, instead of only
the ELF/SYSV one.
Rename _rtld_elf_hash() to _rtld_sysv_hash() to match the GNU toolchain
terminology.

_rtld_gnu_hash() uses Dan Bernstein's string hash function posted eons ago
on comp.lang.c.
 1.70 29-Feb-2020  kamil Separate matched symbol functionality out of _rtld_symlook_obj()

Simplifies the code and it will allow to use the matched symbol
functionality by other users.
 1.69 09-Aug-2017  joerg branches: 1.69.4; 1.69.6;
If a DF_1_NODELETE DSO has been removed from the DAG list, it still
needs to be able to resolve relocations against itself. As such, search
the referencing object explicitly last, if it hasn't been searched
before.
 1.68 19-Jun-2017  joerg Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.

The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.

Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
 1.67 01-Dec-2016  christos branches: 1.67.6;
Instead of using a function to resolve symbols that should be supplied by
the dynamic linker itself, use a version script that exposes them. From joerg@
 1.66 30-Nov-2016  christos Emulate the standard symbol search order in dlsym() i.e. resolve weak or
not found symbols that are in the dynamic linker list of exported symbols
from the dynamic linker itself.
 1.65 10-Aug-2014  matt branches: 1.65.6;
Don't provide __gnu_Unwind_Find_exidx if __ARM_DWARF_EH__ is defined
 1.64 21-Mar-2014  matt Don't resolve symbols to PLT entries on the VAX. It just causes a lot of
overhead.
 1.63 03-May-2013  skrll Remove trailing whitespace
 1.62 24-Apr-2013  matt Add support for PT_ARM_EXIDX and __gnu_Unwind_Find_exidx for libgcc's support
of the ARM EHABI.
 1.61 15-Aug-2012  matt branches: 1.61.2;
Add .init_array/.fini_array support (conditionalized on HAVE_INITFINI_ARRAY).
 1.60 16-Feb-2012  joerg Add _dlauxinfo helper function to provide access to the ELF auxilary
vector. This can normally be found via __ps_strings, but libc is
initialised too early when linked dynamically and doesn't have access to
it yet, so provide an alternative mechanism via ld.elf_so.
Bump libc minor.
 1.59 25-Nov-2011  joerg branches: 1.59.4;
Replace if() NADA else if() NADA else continue logic with one explicit
block. Split out the MIPS handling to make it explicit and readable.
 1.58 13-Aug-2011  christos branches: 1.58.2;
printing the pathname of the shared object is much more useful than the
object's address.
 1.57 25-Jun-2011  nonaka PR/45015: ld.elf_so: support ELF symbol versioning
Applied latest patch.
 1.56 12-Mar-2011  joerg Add TLS support for AMD64, i386 and SH3.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.
 1.55 09-Mar-2011  joerg Add TLS support infrastructure. For dynamic binaries, ld.elf_so exports
_rtld_tls_allocate and _rtld_tls_free. libpthread uses this functions to
setup the thread private area of all new threads. ld.elf_so is
responsible for setting up the private area for the initial thread.
Similar functions are called from _libc_init for static binaries, using
dl_iterate_phdr to access the ELF Program Header.

Add test cases to exercise the different TLS storage models. Test cases
are compiled and installed on all platforms, but are skipped on
platforms not marked for TLS support.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.

It is inspired by the TLS support in FreeBSD by Doug Rabson and the
clean ups of the DragonFly port of the original FreeBSD modifications.
 1.54 16-Oct-2010  skrll Implement dl_iterate_phdr.

Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.53 05-Apr-2010  joerg Use fast_remainder32 for the ELF hash. For the hot cache case, this
speeds up Firefox startup by over 2% on AMD64.
Limit hash table buckets to 32bit.
 1.52 18-Mar-2010  roy Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
We need to disable SSP when using alloca.
 1.51 27-Feb-2010  roy Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
 1.50 13-Jan-2010  christos PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
 1.49 10-Jan-2010  skrll Reset the COMBRELOC cache Obj_Entry if it was freed.

Fixes PR 41482. Done slightly differently to the patch in the PR.
 1.48 24-Sep-2009  pooka Add Solarisa-like dlinfo() interface to the ELF dynamic linker.
Implement RTLD_DI_LINKMAP which returns a pointer to the linkmap
chain at the given object. Other Solaris queries are currently
unimplemented.
 1.47 04-Oct-2008  skrll branches: 1.47.4; 1.47.10;
lib/39649: dlsym(3) does not follow dependencies

Pull across code from FreeBSD to do a search of the passed object and it's
NEEDED objects (dependencies).

Reviewed by gimpy.
 1.46 24-Jul-2008  matt Refactor common code to _rtld_relocate_plt_object to i386 and arm so they
act like the other versions.
In _rtld_bind, if the result is 0, call _rtld_die.
Initialize _rtld_sym_zero.st_value to -_rtld_objself.maprelocbase. Now when
the symbol is resolved, st_value + maprelocbase will equal 0 and the above
check in _rtld_bind will fire and a call to NULL will be avoided.
 1.45 23-Jul-2008  christos abort() if we are trying to use an undefined weak symbol from the plt. Remove
check from relocate_plt_object() since we cannot return _rtld_sym_zero anymore.
Code from gimpy.
 1.44 14-Jan-2008  yamt branches: 1.44.6;
constify
 1.43 26-Dec-2007  christos print the symbol we are seaching for [when debugging]
 1.42 23-Feb-2007  matt branches: 1.42.4;
Don't use cached results for plt lookups (nor save them).
 1.41 22-Feb-2007  matt Make the COMBRELOC support generic.
 1.40 13-Oct-2005  skrll branches: 1.40.4;
Correct the lookup order of _rtld_symlook_default and make
_rtld_find_symdef use _rtld_symlook_default.

This reduces the code size and means that dlsym(RTLD_DEFAULT,...) has the
correct lookup order.

Reviewed by kleink. Thanks.
 1.39 10-May-2005  chs in _rtld_is_exported(), use a function pointer type instead of Elf_Addr
so that hppa knows to do the plabel thang.
 1.38 11-Jan-2005  martin branches: 1.38.2;
Quote symbol names in a debug message (to make it easier to spot an empty
symbol name, a common failure mode)
 1.37 22-Oct-2004  skrll Add __RCSIDs.

OK'd by mycroft.
 1.36 18-Jul-2004  thorpej - Change the strong dlfcn names in libc to ___name, and make the __name
versions used by others in libc weak, so that we have:
name: weak
__name: weak
___name: strong
- Add __name strong aliases of the dlfcn names in ld.elf_so, so that we have:
name: strong
__name: strong

This allows ld.elf_so to self-resolve both the name and __name variants
of the dlfcn functions, the former being required for dlfcn support in
applications, the latter being required for dlfcn support in libc.

Fixes the problem described in:

http://mail-index.netbsd.org/tech-toolchain/2004/07/17/0000.html

Reviewed by Nick.
 1.35 07-Dec-2003  mrauch branches: 1.35.2;
Change the symbol lookup order to search RTLD_GLOBAL objects
before referencing object's DAG. This makes it possible for
C++ exceptions to work across shared libraries.

Patch taken from FreeBSD: src/libexec/rtld-elf/rtld.c: 1.67 -> 1.68,
committed there by kan@FreeBSD.org.
 1.34 21-Oct-2003  fvdl Don't use NULL for integers.
 1.33 12-Aug-2003  skrll Resolve dlsym(3) and friends directly so that dlsym(RTLD_NEXT,...) works.

Previously dlsym resolved to the version in crt0.o or libc which would
mean that the caller's shared object couldn't be determined correctly
using __builtin_return_address(0).

Mainly from FreeBSD, but adapted by me. Benefits of this solutions are:

- backward comptibility maintained
- existing broken binaries are fixed with a new ld.elf_so
- __mainprog_obj can be removed from crt0.o
- we do the same thing as FreeBSD

Fixes PR 22067.

OKed by Jason and Christos.
 1.32 05-Aug-2003  skrll KNF
 1.31 24-Jul-2003  skrll ANSIfy and de-__P().
 1.30 15-Jul-2003  skrll s/_rltd_obj_rtld/_rtld_objself/ in #ifdef notyet code.
 1.29 15-Jul-2003  skrll Whitespace
 1.28 30-May-2003  christos Add RTLD_FIRST, RTLD_NEXT, RTLD_DEFAULT, from FreeBSD
 1.27 24-Apr-2003  mycroft Back out previous change for now -- it needs more work.
 1.26 23-Apr-2003  mycroft Attempt to give dlsym() the same symbol-searching semantics as _rtld_bind().
Tested in a handful of cases.
Reviewed by: a dead silence
 1.25 05-Oct-2002  mycroft Minor cleanup.
 1.24 04-Oct-2002  mycroft Recode _rtld_elf_hash() so it compiles better (at least on i386 and arm).
Still could be better on i386, but only written in assembler...
 1.23 03-Oct-2002  mycroft As seen on tech-userlevel...

There are several optimizations here:

1) Objects on _rtld_list_main do not participate in the DAG structures
at all. This is okay because all symbols must be resolvable at
link/load time, and _rtld_list_main is always searched first, so
any references from those objects must necessarily be resolved to
other objects on _rtld_list_main.

(Making this work completely required setting obj->main a bit
earlier; hence the RTLD_MAIN hack.)

2) Objects on _rtld_list_main are not put on _rtld_list_global,
preventing an extra search.

3) A bit is used to keep track of whether an object is on
_rtld_list_global, so we don't have to do a silly linear search.

4) A small attempt is made to prevent objects being put on the DAG
lists multiple times (using a silly linear search).

The sum of this appears to be a ~10% (.3s) reduction in Mozilla's
startup time on my 800MHz box.

Also, make sure _rtld_objmain->path is always set, just to make the
debug output nicer.
 1.22 24-Sep-2002  mycroft Add a comment about the function pointer nonsense.
 1.21 24-Sep-2002  mycroft Put back the `in_plt' nonsense for now.
It turns out there is some deep-seated wackiness WRT function pointer
comparisons...
 1.20 23-Sep-2002  mycroft Several small changes that shave 7-8% off the simple-exec-loop test:

* Rename _rtld_find_library() to _rtld_load_library(). It now calls
_rtld_load_object() if necessary to actually load the object, rather
than having the caller do it. To do this, it also takes the `mode'
argument that gets passed to _rtld_load_object().

* On a related note, remove _rtld_check_library(), and instead call
_rtld_load_object() to instead try actually loading the object. We
save two extra namei's and a bunch of redundant work (almost
literally the same code) this way.

* In _rtld_map_object(), mmap(2) the first page read-only, rather than
read(2)ing it.

* In _rtld_symlook_obj(), compare the *second* character of the symbol
name before calling strcmp(). (This first character is too
frequently `_', and turns out to not be helpful, in libc.)

* Also in _rtld_symlook_obj(), remove the bogus STT_FUNC special case
-- this also allows removing the `in_plt' argument to
_rtld_symlook_list() and _rtld_symlook_obj().

Also:

* In _rtld_obj_from_addr(), rather than trying to look up `_end' in
the each object, instead use obj->mapsize as the upper bound.
 1.19 13-Sep-2002  mycroft If we match a symbol name, but it's undefined, do not continue searching the
hash chain.
 1.18 12-Sep-2002  mycroft Nuke -DRTLD_RELOCATE_SELF and `dodebug' from orbit.
 1.17 06-Sep-2002  mycroft Re-poison a lot of consts, now that the mark shite is gone.
 1.16 05-Sep-2002  mycroft Remove all of the `mark' code. This is responsible for the `undefined PLT
symbol' errors, probably because the increment gets interrupted occasionally by
a signal. In general, _rtld_bind() should not modify ANY internal state.
 1.15 05-Sep-2002  mycroft A few things:
* Pass a symbol number to _rtld_find_symdef(), not a r_info.
* Don't try to do a symbol lookup when we find an unsupported relocation;
instead get the symbol name from the referencing object's strtab.
* Add preliminary support for `-z combreloc'-style startup optimization on
i386, `#ifdef COMBRELOC'.
 1.14 05-Sep-2002  mycroft Split MIPS relocation goo into mips_reloc.c.
 1.13 05-Sep-2002  junyoung Remove unused arguments of _rtld_find_symdef().
 1.12 01-Jun-2002  lukem SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field). whilst it's O(n),
this mirrors the functionality of SLIST_REMOVE() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups
 1.11 14-Oct-2001  rafal branches: 1.11.2;
Fix how underfined weak symbols are treated -- before, ld.so would do nothing
with them, rather than defaulting them to zero. This caused breakage with
the drawf EH stuff and init/fini code when they weren't used by the caller
(and hence the appropriate handlers were left undefined). Also fix an un-
initialized variable in symbol.c that only MIPS MD code tripped over.
 1.10 11-Oct-2000  dan format warning fixes from he, after testing on 64-bit elf (alpha)
 1.9 26-Jul-2000  mycroft Catch up with type changes. Also:
* Apply DT_PLTRELSZ to (one of) pltrel or pltrela *after* we've finished
parsing the headers, so we know which one.
* Fix sparc64 bogons. (It works now!)
 1.8 03-Jul-2000  matt shut gcc up about a bogus possibly used before initialized.
 1.7 10-Nov-1999  thorpej branches: 1.7.4;
Name consistencty nit: curmark -> _rtld_curmark
 1.6 10-Nov-1999  thorpej Some slight cosmetic cleanup.
 1.5 07-Nov-1999  mycroft Changes from msaitoh to fix local/global symbol confusion, and to fix weak
symbol support -- updated by me for elf.h changes.
 1.4 25-Oct-1999  kleink Update to match new SVR4-style definition names in <sys/exec_elf.h>.
 1.3 01-Mar-1999  christos branches: 1.3.2; 1.3.4;
KNF
 1.2 25-Mar-1998  mhitch Add support for mips.
 1.1 16-Dec-1996  cgd branches: 1.1.2;
First cut at an ELF shared loader. Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.). This runs, but it's
in serious need of cleaning and/or a fair bit of reworking. See the README
file for more information, and a list of things to do.
 1.1.2.1 08-May-1998  mycroft Sync with trunk, per request of mycroft.
 1.3.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.3.2.1 11-Oct-2000  he Apply patch (requested by he):
Print possible 64bit values with %ld and cast to u_long.
 1.7.4.3 09-Dec-2001  he Pull up revision 1.11 (requested by skrll):
Add init/fini section support in crtbegin and crtend, and introduce
support for DWARF2 exception handling. Fixes PR#12865, PR#13488,
PR#13489, and PR#13491. Also fix ld.elf_so to deal appropriately.
 1.7.4.2 16-Oct-2000  tv Pullup 1.10 [dan]:
format warning fixes from he, after testing on 64-bit elf (alpha)
 1.7.4.1 26-Jul-2000  mycroft Approved by thorpej:
Add support for sparc64, including MD code and variable page size support.
Modify some variable types to insure they are the correct width on sparc64.

basesrc/libexec/ld.elf_so/arch/sparc64/Makefile.inc 0 -> 1.1
basesrc/libexec/ld.elf_so/arch/sparc64/mdreloc.c 0 -> 1.3
basesrc/libexec/ld.elf_so/arch/sparc64/rtld_start.S 0 -> 1.2
basesrc/libexec/ld.elf_so/headers.c 1.6 -> 1.8
basesrc/libexec/ld.elf_so/reloc.c 1.26 -> 1.27
basesrc/libexec/ld.elf_so/reloc.c 1.29 -> 1.31
basesrc/libexec/ld.elf_so/rtld.c 1.34 -> 1.35
basesrc/libexec/ld.elf_so/rtld.c 1.36 -> 1.40
basesrc/libexec/ld.elf_so/rtld.h 1.26 -> 1.27
basesrc/libexec/ld.elf_so/symbol.c 1.7 -> 1.9
 1.11.2.2 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.11.2.1 05-Sep-2003  tron Pull up revision 1.16 via patch (requested by dmcmahill in ticket #1395):
Remove all of the `mark' code. This is responsible for the `undefined
PLT
symbol' errors, probably because the increment gets interrupted
occasionally by
a signal. In general, _rtld_bind() should not modify ANY internal
state.
 1.35.2.1 19-Jul-2004  tron Pull up revision 1.36 (requested by thorpej in ticket #676):
- Change the strong dlfcn names in libc to ___name, and make the __name
versions used by others in libc weak, so that we have:
name: weak
__name: weak
___name: strong
- Add __name strong aliases of the dlfcn names in ld.elf_so, so that
we have:
name: strong
__name: strong
This allows ld.elf_so to self-resolve both the name and __name variants
of the dlfcn functions, the former being required for dlfcn support in
applications, the latter being required for dlfcn support in libc.
Fixes the problem described in:
http://mail-index.netbsd.org/tech-toolchain/2004/07/17/0000.html
Reviewed by Nick.
 1.38.2.2 08-Oct-2008  bouyer Pull up following revision(s) (requested by jmcneill in ticket #1973):
libexec/ld.elf_so/symbol.c: revision 1.47
libexec/ld.elf_so/rtld.h: revision 1.79
libexec/ld.elf_so/rtld.c: revision 1.122
lib/39649: dlsym(3) does not follow dependencies
Pull across code from FreeBSD to do a search of the passed object and it's
NEEDED objects (dependencies).
Reviewed by gimpy.
 1.38.2.1 06-Dec-2005  tron Pull up following revision(s) (requested by oster in ticket #1012):
libexec/ld.elf_so/symbol.c: revision 1.39
in _rtld_is_exported(), use a function pointer type instead of Elf_Addr
so that hppa knows to do the plabel thang.
 1.40.4.1 31-Oct-2008  snj Pull up following revision(s) (requested by jmcneill in ticket #1211):
libexec/ld.elf_so/symbol.c: revision 1.47
libexec/ld.elf_so/rtld.h: revision 1.79
libexec/ld.elf_so/rtld.c: revision 1.122
lib/39649: dlsym(3) does not follow dependencies
Pull across code from FreeBSD to do a search of the passed object and its
NEEDED objects (dependencies).
 1.42.4.2 23-Mar-2008  matt sync with HEAD
 1.42.4.1 09-Jan-2008  matt sync with HEAD
 1.44.6.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.47.10.1 21-Apr-2010  matt sync to netbsd-5
 1.47.4.3 17-Mar-2012  bouyer Pull up following revision(s) via patch (requested by skrll in ticket #1724):
rescue/list.ldd: revision 1.4
lib/libc/dlfcn/dlfcn_elf.c: revision 1.7
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.57
distrib/sets/lists/comp/mi: revision 1.1512
share/man/man3/Makefile: revision 1.56
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.58
usr.bin/ldd/ldd.c: revision 1.15
libexec/ld.elf_so/rtld.h: revision 1.84
share/man/man3/dl_iterate_phdr.3: revision 1.1
libexec/ld.elf_so/rtld.c: revision 1.129
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.44
libexec/ld.elf_so/rtld.h: revision 1.89
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.36
libexec/ld.elf_so/map_object.c: revision 1.41
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.37
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.46
include/link_elf.h: revision 1.10
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.29
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.26
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.34
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.31
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.35
libexec/ld.elf_so/Makefile: revision 1.94
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.32
libexec/ld.elf_so/Makefile: revision 1.95
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.31
libexec/ld.elf_so/Makefile: revision 1.96
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.32
libexec/ld.elf_so/reloc.c: revision 1.98
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.33
sys/sys/exec_elf.h: revision 1.106
libexec/ld.elf_so/rtld.c: revision 1.130
libexec/ld.elf_so/load.c: revision 1.37
libexec/ld.elf_so/rtld.c: revision 1.131
libexec/ld.elf_so/load.c: revision 1.38
libexec/ld.elf_so/rtld.h: revision 1.90
libexec/ld.elf_so/headers.c: revision 1.36
libexec/ld.elf_so/rtld.h: revision 1.95
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.30
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.25
libexec/ld.elf_so/symbol.c: revision 1.50
libexec/ld.elf_so/symbol.c: revision 1.51
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.43
libexec/ld.elf_so/symbol.c: revision 1.52
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.27
libexec/ld.elf_so/symbol.c: revision 1.54
PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
Implement dl_iterate_phdr.
Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.47.4.2 30-Jan-2010  snj Pull up following revision(s) (requested by skrll in ticket #1266):
libexec/ld.elf_so/map_object.c: revision 1.39
libexec/ld.elf_so/rtld.h: revision 1.83
libexec/ld.elf_so/symbol.c: revision 1.49
Reset the COMBRELOC cache Obj_Entry if it was freed.
Fixes PR 41482. Done slightly differently to the patch in the PR.
 1.47.4.1 14-Oct-2009  sborrill Pull up the following revisions(s) (requested by pooka in ticket #1088):
include/dlfcn.h: revision 1.20
lib/libc/dlfcn/dlfcn_elf.c: revision 1.6
libexec/ld.elf_so/reloc.c: revision 1.97
libexec/ld.elf_so/rtld.c: revision 1.125
libexec/ld.elf_so/rtld.h: revision 1.81
libexec/ld.elf_so/symbol.c: revision 1.48

Add Solarisa-like dlinfo() interface to the ELF dynamic linker.
Implement RTLD_DI_LINKMAP which returns a pointer to the linkmap
chain at the given object. Other Solaris queries are currently
unimplemented.
 1.58.2.3 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.58.2.2 30-Oct-2012  yamt sync with head
 1.58.2.1 17-Apr-2012  yamt sync with head
 1.59.4.1 22-Jan-2013  matt Pullup from HEAD:
Add .init_array/.fini_array support (conditionalized on HAVE_INITFINI_ARRAY).
 1.61.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.61.2.1 23-Jun-2013  tls resync from head
 1.65.6.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.67.6.3 09-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #1886):

distrib/sets/lists/debug/mi 1.409 (patch)
distrib/sets/lists/tests/mi 1.1280 (patch)
libexec/ld.elf_so/Makefile 1.145-1.147 (patch)
libexec/ld.elf_so/hash.c 1.1
libexec/ld.elf_so/hash.h 1.1
libexec/ld.elf_so/reloc.c 1.118 (patch)
libexec/ld.elf_so/rtld.c 1.215 (patch)
libexec/ld.elf_so/rtld.h 1.145,1.147 (patch)
libexec/ld.elf_so/symbol.c 1.74-1.76 (patch)
tests/libexec/ld.elf_so/Makefile 1.21 (patch)
tests/libexec/ld.elf_so/t_hash.c 1.1

The SysV ABI specifies that the symbol hash function should return only 32
bits of hash. Unfortunately due to an implementation bu and the fact that
the return type is unsigned long which is 64 bits in LP64, this can fail
in some cases: "\xff\x0f\x0f\x0f\x0f\x0f\x12". See:
https://maskray.me/blog/2023-04-12-elf-hash-function

From Ed Maste @ FreeBSD:
https://cgit.freebsd.org/src/commit/?id=29e3a06510823edbb91667d21f530d3ec778116d

Need to write Unit Tests for this.

Oops wrong mask.

ld.elf_so: Split SRCS onto multiple lines.
Makes updates easier.
No functional change intended.

ld.elf_so: Sort SRCS.
No functional change intended.

ld.elf_so: Split hash functions into a separate file.
This way we can test them in isolation.
No functional change intended.

ld.elf_so: Add some known-answer tests for hash functions.

Make sure the testing mechanism detects the traditional overflow bug.
 1.67.6.2 31-Aug-2017  bouyer Pull up following revision(s) (requested by joerg in ticket #236):
libexec/ld.elf_so/symbol.c: revision 1.69
If a DF_1_NODELETE DSO has been removed from the DAG list, it still
needs to be able to resolve relocations against itself. As such, search
the referencing object explicitly last, if it hasn't been searched
before.
 1.67.6.1 04-Jul-2017  martin Pull up following revision(s) (requested by joerg in ticket #64):
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.40
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.41
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.44
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.60
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.32
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.61
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.2
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.50
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.34
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.39
libexec/ld.elf_so/symbol.c: revision 1.68
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.66
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.67
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.68
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.42
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.54
libexec/ld.elf_so/Makefile: revision 1.137
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.32
libexec/ld.elf_so/rtld.h: revision 1.127
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.38
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.42
libexec/ld.elf_so/map_object.c: revision 1.58
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.49
Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.
The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.
Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
Drop symbol number from default branch diagnostic, it isn't set at this
point and most likely not valid either.
Expand symnum, GCC's uninitialized used tracking is too imprecise.
Fix C&P bug. Deal with more MIPS hacks overriding def.
Add last_symnum, move up def and defobj.
Add back symnum, fix debug print.
Replace last use of r_type.
Fix indentation.
Fix indentation.
 1.69.6.1 11-Aug-2023  sborrill Pull up the following revisions(s) (requested by riastradh in ticket #1712):
distrib/sets/lists/debug/mi: revision 1.409 via patch
distrib/sets/lists/tests/mi: revision 1.1280 via patch
libexec/ld.elf_so/Makefile: revision 1.145-1.147 via patch
libexec/ld.elf_so/hash.c: revision 1.1 via patch
libexec/ld.elf_so/hash.h: revision 1.1 via patch
libexec/ld.elf_so/symbol.c: revision 1.74-1.76 via patch
tests/libexec/ld.elf_so/Makefile: revision 1.21 via patch
tests/libexec/ld.elf_so/t_hash.c: revision 1.1 via patch

ld.elf_so: Fix sysv elf hash on edge cases like `ZZZZZW9p' on LP64
platforms where long is 64-bit.
 1.69.4.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.73.8.1 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #300):

libexec/ld.elf_so/rtld.h: revision 1.145
libexec/ld.elf_so/symbol.c: revision 1.74
libexec/ld.elf_so/rtld.h: revision 1.147
libexec/ld.elf_so/symbol.c: revision 1.75
libexec/ld.elf_so/symbol.c: revision 1.76
tests/libexec/ld.elf_so/t_hash.c: revision 1.1
libexec/ld.elf_so/Makefile: revision 1.145
libexec/ld.elf_so/Makefile: revision 1.146
libexec/ld.elf_so/Makefile: revision 1.147
libexec/ld.elf_so/reloc.c: revision 1.118
distrib/sets/lists/tests/mi: revision 1.1280
libexec/ld.elf_so/rtld.c: revision 1.215
tests/libexec/ld.elf_so/Makefile: revision 1.21
libexec/ld.elf_so/hash.c: revision 1.1
libexec/ld.elf_so/hash.h: revision 1.1
distrib/sets/lists/debug/mi: revision 1.409

The SysV ABI specifies that the symbol hash function should return only 32
bits of hash. Unfortunately due to an implementation bug and the fact that
the return type is unsigned long which is 64 bits in LP64, this can fail
in some cases: "\xff\x0f\x0f\x0f\x0f\x0f\x12". See:
"https://maskray.me/blog/2023-04-12-elf-hash-function
From Ed Maste @ FreeBSD:
https://cgit.freebsd.org/src/commit/?id=29e3a06510823edbb91667d21f530d3ec778116d

Need to write Unit Tests for this.

Oops wrong mask.

ld.elf_so: Split SRCS onto multiple lines.
Makes updates easier.
No functional change intended.

ld.elf_so: Sort SRCS.
No functional change intended.

ld.elf_so: Split hash functions into a separate file.
This way we can test them in isolation.
No functional change intended.

ld.elf_so: Add some known-answer tests for hash functions.

Make sure the testing mechanism detects the traditional overflow bug.
 1.76.2.1 02-Aug-2025  perseant Sync with HEAD
 1.4 19-Apr-2020  joerg Rename __atomic_fork to __locked_fork and give it &errno as argument.
rtld and libc use different storage, so the initial version would
incorrectly report the failure reason for fork().

There is still a small race condition inside ld.elf_so as it doesn't use
thread-safe errno internally, but that's a more contained internal
issue.
 1.3 16-Apr-2020  joerg Introduce intermediate locking for fork, so that the dynamic linker is
in a consistent state. This most importantly avoids races between dlopen
and friends and fork, potentially resulting in dead locks in the child
when it itself tries to acquire locks.
 1.2 11-Jul-2017  joerg branches: 1.2.6; 1.2.8;
Implement __cxa_thread_atexit and __cxa_thread_atexit_impl. This
functions are used for destructors of thread_local objects.

If a pending destructor exists, prevent unloading of shared objects.
Introduce __dl_cxa_refcount interface for this purpose. When the last
reference is gone and the object has been dlclose'd before, the
unloading is finalized.

Ideally, __cxa_thread_atexit_impl wouldn't exist, but libstdc++ insists
on providing __cxa_thread_atexit as direct wrapper without further
patching.
 1.1 01-Dec-2016  christos branches: 1.1.2; 1.1.8;
Instead of using a function to resolve symbols that should be supplied by
the dynamic linker itself, use a version script that exposes them. From joerg@
 1.1.8.1 29-Aug-2017  bouyer Pull up following revision(s) (requested by joerg in ticket #127):
tests/libexec/ld.elf_so/h_thread_local_dtor.c: revision 1.1
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6/c++config.h: revision 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/earmeb/c++config.h: revision 1.17
lib/libc/stdlib/atexit.h: file removal
lib/libc/stdlib/exit.c: revision 1.16
external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/c++config.h: revision 1.8
lib/libc/stdlib/exit.c: revision 1.17
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hf/c++config.h: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.178
external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el/c++config.h: revision 1.21
distrib/sets/lists/debug/shl.mi: revision 1.179
distrib/sets/lists/debug/mi: revision 1.219
lib/libpthread/pthread.c: revision 1.150
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7/c++config.h: revision 1.14
libexec/ld.elf_so/symbols.map: revision 1.2
include/dlfcn.h: revision 1.25
external/gpl3/gcc/lib/libstdc++-v3/arch/arm/c++config.h: revision 1.21
external/gpl3/gcc/lib/libstdc++-v3/arch/x86_64/c++config.h: revision 1.23
external/gpl3/gcc/lib/libstdc++-v3/arch/mips64el/c++config.h: revision 1.18
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4eb/c++config.h: revision 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/earm/c++config.h: revision 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/mipsel/c++config.h: revision 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/ia64/c++config.h: revision 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6eb/c++config.h: revision 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf/c++config.h: revision 1.17
distrib/sets/lists/tests/mi: revision 1.755
external/gpl3/gcc/lib/libstdc++-v3/arch/mips64eb/c++config.h: revision 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/i386/c++config.h: revision 1.20
external/gpl3/gcc/lib/libstdc++-v3/arch/vax/c++config.h: revision 1.21
external/gpl3/gcc/lib/libstdc++-v3/arch/armeb/c++config.h: revision 1.21
external/gpl3/gcc/lib/libstdc++-v3/arch/sparc/c++config.h: revision 1.20
lib/libc/dlfcn/dlfcn_elf.c: revision 1.14
tests/libexec/ld.elf_so/t_thread_local_dtor.sh: revision 1.1
tests/lib/libpthread/t_thread_local_dtor.sh: revision 1.1
lib/libc/stdlib/Makefile.inc: revision 1.93
lib/libc/include/atexit.h: revision 1.1
lib/libc/include/atexit.h: revision 1.2
external/gpl3/gcc/lib/libstdc++-v3/arch/m68k/c++config.h: revision 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hf/c++config.h: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.180
external/gpl3/gcc/lib/libstdc++-v3/arch/sparc64/c++config.h: revision 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hfeb/c++config.h: revision 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/hppa/c++config.h: revision 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hfeb/c++config.h: revision 1.14
lib/libc/stdlib/cxa_thread_atexit.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso3/h_helper_dso3.cpp: revision 1.1
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.1
external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64/c++config.h: revision 1.5
libexec/ld.elf_so/rtld.c: revision 1.185
external/gpl3/gcc/lib/libstdc++-v3/arch/sh3eb/c++config.h: revision 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/riscv32/c++config.h: revision 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/m68000/c++config.h: revision 1.15
external/gpl3/gcc/lib/libstdc++-v3/arch/mipseb/c++config.h: revision 1.21
external/gpl3/gcc/lib/libstdc++-v3/arch/coldfire/c++config.h: revision 1.12
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4/c++config.h: revision 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/earmhfeb/c++config.h: revision 1.15
external/gpl3/gcc/lib/libstdc++-v3/arch/alpha/c++config.h: revision 1.19
tests/libexec/ld.elf_so/Makefile: revision 1.9
external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h: revision 1.20
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7eb/c++config.h: revision 1.14
tests/lib/libpthread/h_thread_local_dtor.cpp: revision 1.1
distrib/sets/lists/tests/shl.mi: revision 1.11
tests/lib/libpthread/Makefile: revision 1.13
libexec/ld.elf_so/rtld.h: revision 1.129
external/gpl3/gcc/lib/libstdc++-v3/arch/or1k/c++config.h: revision 1.6
Implement __cxa_thread_atexit and __cxa_thread_atexit_impl. This
functions are used for destructors of thread_local objects.
If a pending destructor exists, prevent unloading of shared objects.
Introduce __dl_cxa_refcount interface for this purpose. When the last
reference is gone and the object has been dlclose'd before, the
unloading is finalized.
Ideally, __cxa_thread_atexit_impl wouldn't exist, but libstdc++ insists
on providing __cxa_thread_atexit as direct wrapper without further
patching.
Fix filename of new debug file
Add misising DEBUGLIB file
Avoid common declaration.
Drop TLS variant checks, emutls is enough for VAX and Sun2.
 1.1.2.2 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.1.2.1 01-Dec-2016  pgoyette file symbols.map was added on branch pgoyette-localcount on 2017-01-07 08:56:05 +0000
 1.2.8.1 13-May-2020  martin Pull up following revision(s) (requested by chs in ticket #907):

libexec/ld.elf_so/rtld.c: revision 1.205
libexec/ld.elf_so/rtld.h: revision 1.140
libexec/ld.elf_so/symbols.map: revision 1.3
libexec/ld.elf_so/symbols.map: revision 1.4
lib/libc/gen/pthread_atfork.c: revision 1.13
lib/libc/gen/pthread_atfork.c: revision 1.14
libexec/ld.elf_so/rtld.h: revision 1.139
libexec/ld.elf_so/rtld.c: revision 1.204

Introduce intermediate locking for fork, so that the dynamic linker is
in a consistent state. This most importantly avoids races between dlopen
and friends and fork, potentially resulting in dead locks in the child
when it itself tries to acquire locks.

Rename __atomic_fork to __locked_fork and give it &errno as argument.
rtld and libc use different storage, so the initial version would
incorrectly report the failure reason for fork().

There is still a small race condition inside ld.elf_so as it doesn't use
thread-safe errno internally, but that's a more contained internal
issue.
 1.2.6.1 21-Apr-2020  martin Sync with HEAD
 1.4 09-May-2013  christos convert to SIMPLEQ like the rest of the queues.
 1.3 07-May-2013  christos we don't need the versioning stuff for ldd
 1.2 06-May-2013  christos Fixed handling of DT_SONAME:

- add function to add name aliases for shared libraries loaded
XXX[1]: we don't add a name during load time, only when DT_SONAME
is present.
- search already loaded objects in load_by_name for an already
loaded object that matches our name and return it.
- add missing initialization and cleanup for obj->names
XXX[2]: should we make them SIMPLEQ?
- Add XXX in rtld.c about getting the name of an object.

NB: This makes the jdk work again without resorting to a hack of putting
the build path of libjvm.so into the run path (which is a security
problem).
XXX: Pullup-6?
 1.1 25-Jun-2011  nonaka branches: 1.1.2; 1.1.8;
PR/45015: ld.elf_so: support ELF symbol versioning
Applied latest patch.
 1.1.8.1 23-Jun-2013  tls resync from head
 1.1.2.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.19 09-Feb-2016  skrll Actually, descsz should not contain the padding. The note still needs to
be padded out.
 1.18 08-Feb-2016  skrll Fix .note.netbsd.march by ensuring correct padding
 1.17 12-Jan-2014  joerg branches: 1.17.4;
Don't align random sections. Simplify by using .pushsection/.popsection.
 1.16 10-Sep-2013  matt For earm, emit a MARCH note.
 1.15 06-May-2013  skrll Trailing whitespace
 1.14 24-Jun-2007  christos branches: 1.14.34; 1.14.40;
Use an elf note to handle pax arguments. This is a temporary solution to
avoid wasting OS flag bits. In the future we'll probably use fileassoc to
achieve this (once there is a way to make fileassoc persistent) or in the
shorter term libelf, so that we can add and remove the note on demand instead
of burning bits on each binary. Of course since this is a tool, this means
that we'll need to think about how to handle libelf...
 1.13 13-Jun-2006  simonb branches: 1.13.4; 1.13.6;
Use .previous at the end of the NetBSD ident note so that we switch
back to the previous section. Fixes build problems on MIPS with gcc4
and -g.
 1.12 26-Jul-2003  salo netbsd.org->NetBSD.org
 1.11 28-Feb-2003  christos we have constants for all this crap. don't hard-code things.
 1.10 28-Feb-2003  thorpej Use the "__NetBSD_Version__" constant rather than the "NetBSD" constant
in the NetBSD version note. The old "NetBSD" constant was stuck in stone,
and thus didn't really convey any useful information.
 1.9 19-Jun-2001  fvdl branches: 1.9.2;
Don't use multi-line string literals.
 1.8 24-May-2001  christos Provide compatibility for the NetBSD-1.5 branch. Note that I used
__NetBSD_Version__ instead of checking if the macro was not already
defined.
 1.7 15-Dec-2000  mycroft More cruft.
 1.6 15-Dec-2000  mycroft Clean up cruft in here.
 1.5 14-Jun-2000  cgd branches: 1.5.2;
sweep of my licenses (userland files w/o only my copyright) for
consistency. (no functional changes)
 1.4 14-Jun-2000  cgd fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well. No functional changes.
 1.3 13-Sep-1998  thorpej branches: 1.3.8;
At least make the comments accurate.
 1.2 13-Sep-1998  mrg remove MD asm as(1) comments from sysident.h, placing them in a comment
above the asm() block. now we can share sysident.h across all ports..
change ld.elf_so to be for $MACHINE == sparc64 not sparc (yet!).
 1.1 21-Mar-1997  cgd put in two identifying notes, which new binutils snapshots will turn
into PT_NOTE sections so they can be examined by execve() to figure
out whether this is a native binary, what emulation it's to be run under,
etc.
 1.3.8.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.5.2.1 09-Dec-2001  he Pull up revisions 1.6-1.9 (requested by skrll):
Add init/fini section support in crtbegin and crtend, and introduce
support for DWARF2 exception handling. Fixes PR#12865, PR#13488,
PR#13489, and PR#13491. Also fix ld.elf_so to deal appropriately.
 1.9.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.13.6.1 03-Sep-2007  wrstuden Sync w/ NetBSD-4-RC_1
 1.13.4.1 09-Jul-2007  liamjfoy Pull up following revision(s) (requested by christos in ticket #755):
sys/sys/pax.h: revision 1.9
sys/sys/exec_elf.h: revision 1.90
usr.sbin/paxctl/paxctl.c: revision 1.2
sys/kern/kern_pax.c: revision 1.16
sys/sys/exec.h: revision 1.117
sys/kern/exec_elf32.c: revision 1.124
libexec/ld.elf_so/sysident.h: revision 1.14
Use an elf note to handle pax arguments. This is a temporary solution to
avoid wasting OS flag bits. In the future we'll probably use fileassoc to
achieve this (once there is a way to make fileassoc persistent) or in the
shorter term libelf, so that we can add and remove the note on demand instead
of burning bits on each binary. Of course since this is a tool, this means
that we'll need to think about how to handle libelf...
 1.14.40.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.14.40.1 23-Jun-2013  tls resync from head
 1.14.34.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.17.4.1 26-Feb-2016  snj Pull up following revision(s) (requested by skrll in ticket #1109):
libexec/ld.elf_so/sysident.h: revisions 1.18, 1.19
Fix .note.netbsd.march by ensuring correct padding
--
Actually, descsz should not contain the padding. The note still needs to
be padded out.
 1.25 30-Sep-2025  skrll Add some more debug in light of PR/59652: DNS utilities core dump...
 1.24 28-Sep-2025  skrll Whitespace.
 1.23 30-Nov-2024  christos Create a new header lwp_private.h to contain _lwp_getprivate_fast,
_lwp_gettcb_fast, _lwp_settcb and remove them from mcontext.h, so that:
1. we don't need special hacks to hide them
2. we can include <lwp.h> where needed to get the necessary prototypes
without redefining them locally.
 1.22 23-Jul-2024  riastradh ld.elf_so: Fix off-by-one error in common __tls_get_addr.

DTV_MAX_INDEX(dtv) is an _inclusive_ upper bound, i.e., the actual
maximum value of the allowed indices. It is not an exclusive upper
bound -- it is not the number of allowed indices.

This off-by-one doesn't hurt correctness, but it may hurt performance
by using the slow path when the fast path would be safe.

Found by pho@ in PR lib/58154.
 1.21 22-Jul-2024  riastradh ld.elf_so: Add comments explaining DTV allocation size.

Patch by pho@ for PR lib/58154.
 1.20 22-Jul-2024  riastradh ld.elf_so: Sprinkle comments and references for thread-local storage.

Maybe this will help the TLS business to be less mysterious to the
next traveller to pass by here.

Prompted by PR lib/58154.
 1.19 07-Jun-2023  joerg branches: 1.19.2;
TLS variant I archs need to fudge the offset by the size of the TCB.
 1.18 04-Jun-2023  joerg Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).

Fix this by forcing the computation of the correct DSO (the one defining
the symbol).

This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
 1.17 01-Jun-2023  riastradh ld.elf_so: Make tls alloc debug messages more detailed and greppable.

XXX pullup-10
 1.16 31-May-2023  riastradh ld.elf_so: Sprinkle tls debug messages.

XXX pullup-10
 1.15 10-Feb-2023  skrll Alignment. NFCI.
 1.14 05-Nov-2019  joerg branches: 1.14.8;
Use alignof and not size_t for platforms with non-natural base
alignments.
 1.13 04-Nov-2019  joerg PR 54093: Align static TLS area to max_align_t.
 1.12 13-Apr-2019  rin branches: 1.12.2;
Do not compile __tls_get_addr() into ldd(1), which fixes ldd(1) crashing
on arm after switching to new jemalloc.

jemalloc invokes __tls_get_addr() under some condition. If anything other
than ld.elf_so nor libc exports it, inconsistency arises as a result.
 1.11 13-Jul-2017  joerg branches: 1.11.6;
Fix two bugs related to promotion of DSO TLS blocks into the static
thread allocation:
(1) Set the DTV vector up whenever an offset into the static allocation
is assigned, even if the block itself is not initialized. This has been
seen in libstdc++.
(2) Do not free a DTV block if it is part of the static thread
allocation.
 1.10 14-Dec-2014  chs branches: 1.10.8;
fix powerpc TLS problems by removing the hacks for PPC EABI.
the kernel no longer treats R2 specially and its use as
the TLS register is now handled entirely in userland.
 1.9 21-Oct-2013  joerg branches: 1.9.4;
Only initialise TLS space from the PT_TLS segment, if the size is
positive and the offset has been computed. Fixes PR lib/48324.
 1.8 19-Oct-2013  skrll Add debug code.
 1.7 23-Apr-2011  joerg branches: 1.7.4; 1.7.6; 1.7.10; 1.7.12; 1.7.18;
Fix a Freudian slip found by rmind
 1.6 07-Apr-2011  matt Add a workaround for older crt0.o that overwrite r2 (tcb pointer).
(save tcb pointer using _lwp_setprivate in ld.elf_so and retrieve the tcb
via _lwp_getprivate in libc and use it to restore the value in r2).
 1.5 29-Mar-2011  joerg Block signals when using the exclusive lock.
 1.4 25-Mar-2011  joerg Add basic locking to ld.elf_so.
 1.3 12-Mar-2011  matt Add TLS support for PowerPC.
If the port has __lwp_gettcb_fast or __lwp_settcb use them instead of
__lwp_getprivate_fast or lwp_setprivate.
 1.2 10-Mar-2011  joerg Fix prototype for __tls_get_addr. Add a generic implementation of it
using __tls_get_addr. Update TLS notes.
 1.1 09-Mar-2011  joerg Add TLS support infrastructure. For dynamic binaries, ld.elf_so exports
_rtld_tls_allocate and _rtld_tls_free. libpthread uses this functions to
setup the thread private area of all new threads. ld.elf_so is
responsible for setting up the private area for the initial thread.
Similar functions are called from _libc_init for static binaries, using
dl_iterate_phdr to access the ELF Program Header.

Add test cases to exercise the different TLS storage models. Test cases
are compiled and installed on all platforms, but are skipped on
platforms not marked for TLS support.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.

It is inspired by the TLS support in FreeBSD by Doug Rabson and the
clean ups of the DragonFly port of the original FreeBSD modifications.
 1.7.18.1 07-Nov-2013  snj Pull up following revision(s) (requested by joerg in ticket #976):
libexec/ld.elf_so/tls.c: revision 1.9
tests/lib/libc/tls/dso/h_tls_dlopen.c: revision 1.5
Only initialise TLS space from the PT_TLS segment, if the size is
positive and the offset has been computed. Fixes PR lib/48324.
 1.7.12.1 07-Nov-2013  snj Pull up following revision(s) (requested by joerg in ticket #976):
libexec/ld.elf_so/tls.c: revision 1.9
tests/lib/libc/tls/dso/h_tls_dlopen.c: revision 1.5
Only initialise TLS space from the PT_TLS segment, if the size is
positive and the offset has been computed. Fixes PR lib/48324.
 1.7.10.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.7.6.2 23-Jul-2017  snj Pull up following revision(s) (requested by joerg in ticket #1462):
libexec/ld.elf_so/tls.c: revision 1.11 via patch
Fix two bugs related to promotion of DSO TLS blocks into the static
thread allocation:
(1) Set the DTV vector up whenever an offset into the static allocation
is assigned, even if the block itself is not initialized. This has been
seen in libstdc++.
(2) Do not free a DTV block if it is part of the static thread
allocation.
 1.7.6.1 07-Nov-2013  snj Pull up following revision(s) (requested by joerg in ticket #976):
libexec/ld.elf_so/tls.c: revision 1.9
tests/lib/libc/tls/dso/h_tls_dlopen.c: revision 1.5
Only initialise TLS space from the PT_TLS segment, if the size is
positive and the offset has been computed. Fixes PR lib/48324.
 1.7.4.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.9.4.2 26-Jul-2017  snj Pull up following revision(s) (requested by joerg in ticket #1455):
libexec/ld.elf_so/tls.c: revision 1.11
Fix two bugs related to promotion of DSO TLS blocks into the static
thread allocation:
(1) Set the DTV vector up whenever an offset into the static allocation
is assigned, even if the block itself is not initialized. This has been
seen in libstdc++.
(2) Do not free a DTV block if it is part of the static thread
allocation.
 1.9.4.1 31-Dec-2014  snj Pull up following revision(s) (requested by chs in ticket #364):
lib/libc/tls/tls.c: revision 1.8
libexec/ld.elf_so/tls.c: revision 1.10
sys/arch/powerpc/include/types.h: revision 1.50
sys/arch/powerpc/powerpc/sig_machdep.c: revision 1.44
fix powerpc TLS problems by removing the hacks for PPC EABI.
the kernel no longer treats R2 specially and its use as
the TLS register is now handled entirely in userland.
 1.10.8.1 25-Jul-2017  snj Pull up following revision(s) (requested by joerg in ticket #133):
libexec/ld.elf_so/tls.c: revision 1.11
Fix two bugs related to promotion of DSO TLS blocks into the static
thread allocation:
(1) Set the DTV vector up whenever an offset into the static allocation
is assigned, even if the block itself is not initialized. This has been
seen in libstdc++.
(2) Do not free a DTV block if it is part of the static thread
allocation.
 1.11.6.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.11.6.1 10-Jun-2019  christos Sync with HEAD
 1.12.2.3 07-Aug-2024  martin Pull up following revision(s) (requested by riastradh in ticket #1864):

libexec/ld.elf_so/tls.c: revision 1.15
libexec/ld.elf_so/arch/aarch64/rtld_start.S: revision 1.6
libexec/ld.elf_so/arch/aarch64/rtld_start.S: revision 1.7
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.15
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.16
libexec/ld.elf_so/README.TLS: revision 1.7
libexec/ld.elf_so/tls.c: revision 1.20
libexec/ld.elf_so/tls.c: revision 1.21

Alignment. NFCI.

ld.elf_so: Sprinkle comments and references for thread-local storage.

Maybe this will help the TLS business to be less mysterious to the
next traveller to pass by here.
Prompted by PR lib/58154.

ld.elf_so: Add comments explaining DTV allocation size.
Patch by pho@ for PR lib/58154.

tests/libexec/ld.elf_so/t_tls_extern: Test PR lib/58154.

ld.elf_so aarch64/rtld_start.S: Sprinkle comments.
No functional change intended.
Prompted by PR lib/58154.

ld.elf_so aarch64/rtld_start.S: Fix dynamic TLS fast path branch.
Bug found and patch prepared by pho@.
PR lib/58154
 1.12.2.2 04-Aug-2023  martin Pull up following revision(s), all via patch,
(requested by riastradh in ticket #1699):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.

This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.

PR pkg/57445

Fix MKDEBUGLIB build by adding these installed files to the debug
set list.

One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.

Fix markup of libh_ MKDEBUGLIB=yes only files

TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.12.2.1 26-Nov-2019  martin Pull up following revision(s) (requested by nakayama in ticket #469):

lib/libc/tls/tls.c: revision 1.10
lib/libc/tls/tls.c: revision 1.11
lib/libc/tls/tls.c: revision 1.12
lib/libc/tls/tls.c: revision 1.13
libexec/ld.elf_so/tls.c: revision 1.13
libexec/ld.elf_so/tls.c: revision 1.14
libexec/ld.elf_so/Makefile: revision 1.142
lib/libc/tls/Makefile.inc: revision 1.3
usr.bin/ldd/Makefile.elf: revision 1.6

PR 54093: Align static TLS area to max_align_t.
Use alignof and not size_t for platforms with non-natural base
alignments.

Mirror the ld.elf_so logic for handling aligning the TLS size.
Most noticable, recompute the start of the TLS area for variant I
relative to the TCB. This makes a difference when the segment size and
base alignment don't agree.

Fix PR/54074 and PR/54093 completely.
More similar to the ld.elf_so logic, it is necessary to align with
p_align first. Also, invert the #ifdef condition for consistency.

Should fix regression for static linking binaries:
http://releng.netbsd.org/b5reports/sparc/commits-2019.11.html#2019.11.10.23.39.03
http://releng.netbsd.org/b5reports/sparc64/commits-2019.11.html#2019.11.16.04.10.33
 1.14.8.2 07-Aug-2024  martin Pull up following revision(s) (requested by riastradh in ticket #777):

libexec/ld.elf_so/tls.c: revision 1.15
libexec/ld.elf_so/arch/aarch64/rtld_start.S: revision 1.6
libexec/ld.elf_so/arch/aarch64/rtld_start.S: revision 1.7
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.15
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.16
libexec/ld.elf_so/README.TLS: revision 1.7
libexec/ld.elf_so/tls.c: revision 1.20
libexec/ld.elf_so/tls.c: revision 1.21

Alignment. NFCI.

ld.elf_so: Sprinkle comments and references for thread-local storage.

Maybe this will help the TLS business to be less mysterious to the
next traveller to pass by here.
Prompted by PR lib/58154.

ld.elf_so: Add comments explaining DTV allocation size.
Patch by pho@ for PR lib/58154.

tests/libexec/ld.elf_so/t_tls_extern: Test PR lib/58154.

ld.elf_so aarch64/rtld_start.S: Sprinkle comments.
No functional change intended.
Prompted by PR lib/58154.

ld.elf_so aarch64/rtld_start.S: Fix dynamic TLS fast path branch.
Bug found and patch prepared by pho@.
PR lib/58154
 1.14.8.1 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #297):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44
(all via patch)

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen
(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.
(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.
(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.
PR pkg/57445
Fix MKDEBUGLIB build by adding these installed files to the debug
set list.
XXX
One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.
Fix markup of libh_ MKDEBUGLIB=yes only files
TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.19.2.1 02-Aug-2025  perseant Sync with HEAD
 1.3 16-Dec-2010  joerg Don't use normal environment handling functions from libc, but iterate
once over the array and clean out entries as needed.
 1.2 14-Nov-2010  tron Don't use internal libc function __findenv().
 1.1 29-Oct-2010  christos PR/44010: YAMAMOTO Takashi: sbrk: grow 0xb3ba2000 failed, error = 12"
(due to setenv changes?)
Provide a mini unsetenv that does not allocate/free memory and does not
bother about locking.
 1.12 24-Jan-2013  christos don't free cp before we copy it!
 1.11 25-May-2011  christos branches: 1.11.4; 1.11.10;
Don't use division since we are only dealing with powers of 2.
 1.10 03-Dec-2010  joerg ANSIfy
 1.9 19-May-2009  christos warns=4
 1.8 03-Jun-2008  ad __progname isn't const.
 1.7 05-Oct-2007  ad branches: 1.7.6; 1.7.8;
- Don't use the names malloc/free/etc, since we can end up pulling in libc's
malloc which is not what we want.
- Remove ancient memory compaction hack. Realloc on free memory is now an
error again (from joerg@).

Ok christos@.
 1.6 27-Sep-2007  christos provide xrealloc, and don't cast and use malloc and realloc directly.
 1.5 22-Oct-2004  skrll branches: 1.5.16;
Add __RCSIDs.

OK'd by mycroft.
 1.4 24-Jul-2003  skrll ANSIfy and de-__P().
 1.3 05-Jun-2003  simonb KNF- blank lines before code at start of functions.
 1.2 01-Mar-1999  christos branches: 1.2.12;
KNF
 1.1 16-Dec-1996  cgd First cut at an ELF shared loader. Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.). This runs, but it's
in serious need of cleaning and/or a fair bit of reworking. See the README
file for more information, and a list of things to do.
 1.2.12.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.5.16.1 06-Nov-2007  matt sync with HEAD
 1.7.8.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.7.6.1 17-Jun-2008  yamt sync with head.
 1.11.10.1 25-Feb-2013  tls resync with head
 1.11.4.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.23 06-Mar-2021  christos pretend we know about %# and %j...
 1.22 08-Dec-2019  uwe Fix typo in a comment.
 1.21 16-Dec-2010  joerg branches: 1.21.46;
Replace use of errlist with a single concatenated version and an offset
array. This requires less storage and avoids one runtime relocation per
errno value.
 1.20 19-May-2009  christos warns=4
 1.19 24-Nov-2007  christos support %z
 1.18 24-Apr-2005  christos branches: 1.18.10;
not supporting %c is confusing and it only uses up a few bytes.
 1.17 22-Oct-2004  skrll Add __RCSIDs.

OK'd by mycroft.
 1.16 15-Feb-2004  enami Don't assume past the mmaped region is accessible.
 1.15 24-Jul-2003  skrll ANSIfy and de-__P().
 1.14 05-Jun-2003  simonb KNF- blank lines before code at start of functions.
 1.13 24-Sep-2002  mycroft Similarly, remove support for short arguments.
 1.12 24-Sep-2002  mycroft Remove quad support. We don't need it, and it wastes a lot of space. (It
pulls in {,u}{div,mod}di3() and qdivrem().)
 1.11 24-Sep-2002  mycroft Include xassert() only if DEBUG, like the real assert().
Also, xassert() calls abort(), so there's no need to do it in all of the
callers.
 1.10 27-Aug-2002  lukem xerrx() needs to output a trailing newline as well
 1.9 26-May-2002  wiz __STDC__ is always defined on NetBSD.
 1.8 14-Aug-2001  eeh branches: 1.8.2;
Pointers are NULL. Characters are '\0'.
 1.7 03-Jul-2000  matt Treat short and byte print formats as and cast to the right size.
 1.6 02-Apr-2000  soren branches: 1.6.4;
Also print a newline after the error in the xwarnx case.
 1.5 03-Mar-1999  christos Make this compile without -DRTLD_LOADER and fix printf format problems on
the alpha.
 1.4 01-Mar-1999  christos KNF
 1.3 27-Feb-1999  scottr Replace local xva_arg() inline function with macros similar to those in
the stdio vfprintf() function. Fixes compilation errors on powerpc due
to differences in how va_list is implemented.
 1.2 07-Feb-1999  christos Support for {h,l,q,ll} modifiers and %p
 1.1 16-Dec-1996  cgd First cut at an ELF shared loader. Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.). This runs, but it's
in serious need of cleaning and/or a fair bit of reworking. See the README
file for more information, and a list of things to do.
 1.6.4.1 09-Dec-2001  he Pull up revisions 1.7-1.8 (requested by skrll):
Add init/fini section support in crtbegin and crtend, and introduce
support for DWARF2 exception handling. Fixes PR#12865, PR#13488,
PR#13489, and PR#13491. Also fix ld.elf_so to deal appropriately.
 1.8.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.18.10.1 09-Jan-2008  matt sync with HEAD
 1.21.46.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.3 04-Dec-2021  skrll Provide a stub _rtld_call_ifunc when a platform doesn't use one of the
common ones or doesn't provide its own.
 1.2 27-Dec-2018  christos initfini array support for everyone.
 1.1 10-Aug-2014  matt branches: 1.1.4; 1.1.24; 1.1.26;
Preliminary files for AARCH64 (64-bit ARM) support.
Enough for a distribution build.
 1.1.26.1 10-Jun-2019  christos Sync with HEAD
 1.1.24.1 18-Jan-2019  pgoyette Synch with HEAD
 1.1.4.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.4.1 10-Aug-2014  tls file Makefile.inc was added on branch tls-maxphys on 2014-08-20 00:02:22 +0000
 1.19 22-Jul-2024  riastradh ld.elf_so: Cite reference for Arm ELF relocations.

PR lib/58455: Missing references for processor-specific ELF
relocation semantics
 1.18 04-Jun-2023  joerg branches: 1.18.2;
Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).

Fix this by forcing the computation of the correct DSO (the one defining
the symbol).

This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
 1.17 03-Dec-2022  skrll branches: 1.17.2;
Whitespace. NFC.
 1.16 21-Jun-2022  skrll Support ifunc on aarch64. The tests pass at least.
 1.15 31-May-2022  andvar fix various typos in comments, documentation and messages.
 1.14 16-Jun-2020  joerg Honor addend for R_AARCH64_TLS_TPREL relocation.
 1.13 18-Jan-2019  skrll branches: 1.13.2;
Adapt https://svnweb.freebsd.org/base?view=revision&revision=342113 to
NetBSD.

This brings us resolving for dynamically loaded libraries and makes
tests/libexec/ld.elf_so/t_thread_local_dtor pass.

With suggestions from joerg@
 1.12 23-Nov-2018  skrll Fix RTLD_DEBUG_RELOC build
 1.11 23-Nov-2018  skrll Trailing whitespace
 1.10 20-Sep-2018  jakllsch Revise previous to not deadlock.
 1.9 20-Sep-2018  jakllsch Improve support for R_AARCH64_TLSDESC relocations.

In large part from FreeBSD.
 1.8 16-Jul-2018  christos Initialize new_value to account for bogus return from the function.
 1.7 04-Feb-2018  skrll branches: 1.7.2; 1.7.4;
Various fixes / changes from Ryo Shimizu / Toru Nishimura to make this
work.

_rtld_call_ifunc copied from other rela platforms by me - not tested in
any way.
 1.6 28-Aug-2017  nisimura explain AARCH64 PLT design
 1.5 23-Aug-2017  nisimura - avoid caddr_t. use Elf_Addr instead.
- iron out rdbg() errors.
 1.4 10-Aug-2017  joerg Add IRELATIVE support for ARM, X86 and PowerPC.
 1.3 19-Jun-2017  joerg Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.

The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.

Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
 1.2 25-Aug-2014  joerg branches: 1.2.8;
Add basic support for indirect functions. It allows providing a public
function symbol with an implementation choosen at run time.
Refactor calls to functions by address in ld.elf_so to create temporary
function descriptors on the stack, if the address is not leaked outside.

Limitations:
- no support for initialising static storage with function pointers
- no support for unnamed resolver functions

Inspired by FreeBSD's r228435 by kib@freebsd.org.
 1.1 10-Aug-2014  matt branches: 1.1.2; 1.1.4;
Preliminary files for AARCH64 (64-bit ARM) support.
Enough for a distribution build.
 1.1.4.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.4.1 10-Aug-2014  tls file mdreloc.c was added on branch tls-maxphys on 2014-08-20 00:02:22 +0000
 1.1.2.1 06-Mar-2016  martin Catch up to -current, via patch, requested by christos in ticket #1126:
 1.2.8.1 04-Jul-2017  martin Pull up following revision(s) (requested by joerg in ticket #64):
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.40
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.41
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.44
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.60
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.32
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.61
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.2
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.50
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.34
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.39
libexec/ld.elf_so/symbol.c: revision 1.68
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.66
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.67
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.68
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.42
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.54
libexec/ld.elf_so/Makefile: revision 1.137
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.32
libexec/ld.elf_so/rtld.h: revision 1.127
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.38
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.42
libexec/ld.elf_so/map_object.c: revision 1.58
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.49
Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.
The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.
Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
Drop symbol number from default branch diagnostic, it isn't set at this
point and most likely not valid either.
Expand symnum, GCC's uninitialized used tracking is too imprecise.
Fix C&P bug. Deal with more MIPS hacks overriding def.
Add last_symnum, move up def and defobj.
Add back symnum, fix debug print.
Replace last use of r_type.
Fix indentation.
Fix indentation.
 1.7.4.1 10-Jun-2019  christos Sync with HEAD
 1.7.2.4 26-Jan-2019  pgoyette Sync with HEAD
 1.7.2.3 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.7.2.2 30-Sep-2018  pgoyette Ssync with HEAD
 1.7.2.1 28-Jul-2018  pgoyette Sync with HEAD
 1.13.2.2 07-Aug-2024  martin Pull up following revision(s) (requested by riastradh in ticket #1862):

libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.45
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.14

Honor addend for R_AARCH64_TLS_TPREL relocation.

R_ARM_TLS_TPOFF32 needs to adjust the existing value, not blindly
overwrite it.
 1.13.2.1 04-Aug-2023  martin Pull up following revision(s), all via patch,
(requested by riastradh in ticket #1699):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.

This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.

PR pkg/57445

Fix MKDEBUGLIB build by adding these installed files to the debug
set list.

One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.

Fix markup of libh_ MKDEBUGLIB=yes only files

TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.17.2.1 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #297):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44
(all via patch)

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen
(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.
(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.
(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.
PR pkg/57445
Fix MKDEBUGLIB build by adding these installed files to the debug
set list.
XXX
One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.
Fix markup of libh_ MKDEBUGLIB=yes only files
TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.18.2.1 02-Aug-2025  perseant Sync with HEAD
 1.7 23-Jul-2024  riastradh ld.elf_so aarch64/rtld_start.S: Fix dynamic TLS fast path branch.

Bug found and patch prepared by pho@.

PR lib/58154
 1.6 22-Jul-2024  riastradh ld.elf_so aarch64/rtld_start.S: Sprinkle comments.

No functional change intended.

Prompted by PR lib/58154.
 1.5 24-Mar-2022  andvar branches: 1.5.2; 1.5.4;
s/interger/integer/ and s/Compensatin/Compensation/ in comments.
 1.4 18-Jan-2019  skrll branches: 1.4.2;
Adapt https://svnweb.freebsd.org/base?view=revision&revision=342113 to
NetBSD.

This brings us resolving for dynamically loaded libraries and makes
tests/libexec/ld.elf_so/t_thread_local_dtor pass.

With suggestions from joerg@
 1.3 20-Sep-2018  jakllsch Improve support for R_AARCH64_TLSDESC relocations.

In large part from FreeBSD.
 1.2 04-Feb-2018  skrll branches: 1.2.2; 1.2.4;
Various fixes / changes from Ryo Shimizu / Toru Nishimura to make this
work.

_rtld_call_ifunc copied from other rela platforms by me - not tested in
any way.
 1.1 10-Aug-2014  matt branches: 1.1.4;
Preliminary files for AARCH64 (64-bit ARM) support.
Enough for a distribution build.
 1.1.4.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.4.1 10-Aug-2014  tls file rtld_start.S was added on branch tls-maxphys on 2014-08-20 00:02:22 +0000
 1.2.4.1 10-Jun-2019  christos Sync with HEAD
 1.2.2.2 26-Jan-2019  pgoyette Sync with HEAD
 1.2.2.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.4.2.1 07-Aug-2024  martin Pull up following revision(s) (requested by riastradh in ticket #1864):

libexec/ld.elf_so/tls.c: revision 1.15
libexec/ld.elf_so/arch/aarch64/rtld_start.S: revision 1.6
libexec/ld.elf_so/arch/aarch64/rtld_start.S: revision 1.7
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.15
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.16
libexec/ld.elf_so/README.TLS: revision 1.7
libexec/ld.elf_so/tls.c: revision 1.20
libexec/ld.elf_so/tls.c: revision 1.21

Alignment. NFCI.

ld.elf_so: Sprinkle comments and references for thread-local storage.

Maybe this will help the TLS business to be less mysterious to the
next traveller to pass by here.
Prompted by PR lib/58154.

ld.elf_so: Add comments explaining DTV allocation size.
Patch by pho@ for PR lib/58154.

tests/libexec/ld.elf_so/t_tls_extern: Test PR lib/58154.

ld.elf_so aarch64/rtld_start.S: Sprinkle comments.
No functional change intended.
Prompted by PR lib/58154.

ld.elf_so aarch64/rtld_start.S: Fix dynamic TLS fast path branch.
Bug found and patch prepared by pho@.
PR lib/58154
 1.5.4.1 02-Aug-2025  perseant Sync with HEAD
 1.5.2.1 07-Aug-2024  martin Pull up following revision(s) (requested by riastradh in ticket #777):

libexec/ld.elf_so/tls.c: revision 1.15
libexec/ld.elf_so/arch/aarch64/rtld_start.S: revision 1.6
libexec/ld.elf_so/arch/aarch64/rtld_start.S: revision 1.7
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.15
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.16
libexec/ld.elf_so/README.TLS: revision 1.7
libexec/ld.elf_so/tls.c: revision 1.20
libexec/ld.elf_so/tls.c: revision 1.21

Alignment. NFCI.

ld.elf_so: Sprinkle comments and references for thread-local storage.

Maybe this will help the TLS business to be less mysterious to the
next traveller to pass by here.
Prompted by PR lib/58154.

ld.elf_so: Add comments explaining DTV allocation size.
Patch by pho@ for PR lib/58154.

tests/libexec/ld.elf_so/t_tls_extern: Test PR lib/58154.

ld.elf_so aarch64/rtld_start.S: Sprinkle comments.
No functional change intended.
Prompted by PR lib/58154.

ld.elf_so aarch64/rtld_start.S: Fix dynamic TLS fast path branch.
Bug found and patch prepared by pho@.
PR lib/58154
 1.12 04-Jun-2005  lukem Explicitly prefix ld(1) options in LDFLAGS with "-Wl," rather than
using the ${LDFLAGS:@F@-Wl,$F@} make substitution because that breaks
if LDFLAGS is already set.
 1.11 21-Feb-2004  skrll Move common LDFLAGS into Makefile from arch/*/Makefile.inc
 1.10 20-Feb-2004  skrll Whitespace.
 1.9 11-Sep-2002  mycroft The ld script is no longer necessary.
 1.8 20-Dec-2001  thorpej branches: 1.8.2;
Grumble. Put compiler options back into CPPFLAGS for now, since
they're needed to build .S files with the correct PIC options.

XXX Really needs cleanup in <bsd.*.mk> to do this properly.
 1.7 14-Dec-2001  thorpej Don't put compiler options into CPPFLAGS.
 1.6 14-Dec-2001  thorpej Add code to peek into the PLT and determine which PLT entry format
is being used.
 1.5 13-Dec-2001  thorpej Supply two lazy binding routines for Alpha: one that works with the
old PLT format, and one that works with the new.

XXX We currently always use _rtld_bind_start_old() in
_rtld_setup_alpha_pltgot(). We need to add code to peek
into one of the PLT entries to see which format it's in
and pick the correct binding routine.
 1.4 13-Dec-2001  thorpej * Add a linker script which provides a _GOT_END_ symbol that we can
use to find the end of the GOT, rather than relying on _DYNAMIC
to immediately follow the GOT. (A change in current binutils
moved _DYNAMIC, and thus would have broken our Alpha ld.elf_so).
* Add #ifdef'd out code to deal with the new PLT format.
 1.3 18-Apr-1999  thorpej Tidy this up a little.
 1.2 22-Oct-1997  lukem use CPPFLAGS instead of CFLAGS
 1.1 16-Dec-1996  cgd branches: 1.1.2;
First cut at an ELF shared loader. Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.). This runs, but it's
in serious need of cleaning and/or a fair bit of reworking. See the README
file for more information, and a list of things to do.
 1.1.2.1 08-Nov-1997  lukem sync with trunk (approved by thorpej)
 1.8.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.47 18-Apr-2025  riastradh ld.elf_so/arch/alpha: Fix debug build by initializing symnum earlier.

PR lib/59319: ld.elf_so: build broken with DEBUG, RTLD_DEBUG_RELOC
 1.46 18-Apr-2025  riastradh ld.elf_so on alpha: Add support for secureplt.

ok thorpej

PR port-alpha/57511: ld.elf_so(1) does not support secure PLT for alpha
PR port-alpha/57717: Alpha linker generates LOAD segments (and
generates warnings about them)
 1.45 03-Aug-2024  riastradh ld.elf_so(1): Nix trailing whitespace.

No functional change intended.
 1.44 04-Jun-2023  joerg branches: 1.44.2;
Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).

Fix this by forcing the computation of the correct DSO (the one defining
the symbol).

This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
 1.43 10-Aug-2017  joerg branches: 1.43.6; 1.43.14;
Add IRELATIVE support for ARM, X86 and PowerPC.
 1.42 19-Jun-2017  joerg Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.

The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.

Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
 1.41 25-Aug-2014  joerg branches: 1.41.8;
Add basic support for indirect functions. It allows providing a public
function symbol with an implementation choosen at run time.
Refactor calls to functions by address in ld.elf_so to create temporary
function descriptors on the stack, if the address is not leaked outside.

Limitations:
- no support for initialising static storage with function pointers
- no support for unnamed resolver functions

Inspired by FreeBSD's r228435 by kib@freebsd.org.
 1.40 31-Mar-2011  skrll branches: 1.40.22;
Enable TLS for alpha - a 2nd class^Wtier system in pookaBSD^WNetBSD

alpha_reloc.c diff from joerg on port-alpha.
 1.39 25-Mar-2011  joerg Add basic locking to ld.elf_so.
 1.38 30-Sep-2010  skrll Introduce a new type Elf_Symindx for use in decoding the symbol hash table
section and allow this type to be overridden.

The ELF specification says it should always be uint32_t (Elf_Word), but
alpha decided to be different (not sure why). Define Elf_Symindx to be
uint64_t on alpha.

Alpha no longer uses non-standard definitions of Elf64_Sword and
Elf64_Word. Remove the ability to override these types.

Fixes ld.elf_so after Herculean effort from me and martin.
 1.37 06-Aug-2010  joerg Reduce header pollution for mdreloc.c. Make Obj_Entry argument of
_rtld_relocate_nonplt_objects non-const in preparation for TLS support.
 1.36 14-Jan-2010  skrll Wrap a few long lines.
 1.35 14-Jan-2010  skrll Shut gcc up.
 1.34 13-Jan-2010  christos PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
 1.33 29-Aug-2009  jmmv Remove trailing \n in calls to _rtld_error: a newline is automatically
added by a call to the function.
 1.32 24-May-2009  he Copy build fix from i386: Fix const issues (cast const pointers
to "const uint8_t *" instead of "caddr_t").
 1.31 24-Jul-2008  matt branches: 1.31.4;
Refactor common code to _rtld_relocate_plt_object to i386 and arm so they
act like the other versions.
In _rtld_bind, if the result is 0, call _rtld_die.
Initialize _rtld_sym_zero.st_value to -_rtld_objself.maprelocbase. Now when
the symbol is resolved, st_value + maprelocbase will equal 0 and the above
check in _rtld_bind will fire and a call to NULL will be avoided.
 1.30 23-Feb-2007  matt branches: 1.30.12;
Remove MD COMBRELOC support since it's now MI.
Enable COMBRELOC for all arches
 1.29 24-Dec-2005  perry Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.28 20-Aug-2005  skrll Add __RCSID.
 1.27 15-Aug-2005  skrll KNF
 1.26 08-Jun-2005  fair appease gcc -Wuninitialized
 1.25 25-May-2005  skrll Support LD_BIND_NOW for alpha.
 1.24 24-Jul-2003  skrll ANSIfy and de-__P().
 1.23 03-Oct-2002  mycroft Skip the lazy PLT relocation if relocbase==0 (useful if libraries are loaded
at their VMA address).
 1.22 26-Sep-2002  mycroft Remove the `self' args to _rtld_relocate_objects() and
_rtld_relocate_nonplt_objects().
 1.21 25-Sep-2002  mycroft Push the _rtld_bind() interface into MD code -- it's just a trivial wrapper
anyway.
 1.20 21-Sep-2002  mycroft Add combreloc code here too.
 1.19 14-Sep-2002  thorpej It is possible for reloc entries to point to unaligned locations; handle
this.
 1.18 13-Sep-2002  mycroft Do not use the implicit addend on REFQUAD relocs (same as GLOB_DAT).
 1.17 12-Sep-2002  mycroft Nuke -DRTLD_RELOCATE_SELF and `dodebug' from orbit.
 1.16 12-Sep-2002  mycroft _rtld_bind_start() is not used in MI code, so declare it in the MD code.
 1.15 11-Sep-2002  mycroft Implement _rtld_relocate_nonplt_self() on Alpha.
 1.14 08-Sep-2002  thorpej Fix a serious performance problem for large programs on the Alpha.

Large programs need multiple GOTs. The lazy binding stub in the PLT
can be reached from any of these GOTs, but the dynamic linker only
has enough information to fix up the first GOT entry. Thus, calls
through the other GOTs went through the time-consuming lazy binding
process on every call.

This fix rewrites the PLT entries themselves to bypass the lazy binding
for those GOT entries that the dynamic linker can't fixup.

Fix from FreeBSD.

Note that now that we patch up the PLT, we need to put back the "imb"
that was removed from the binder exit path.
 1.13 06-Sep-2002  mycroft Pass down an additional flag to _rtld_relocate_nonplt_objects() which
indicates whether we're relocating ld.elf_so itself. Use this in some places
rather than hackish tests on `dodebug'. (The Alpha and HPPA `dodebug' tests
were actually noops, because RTLD_RELOCATE_SELF is not set, and therefore
dodebug is always true.)
 1.12 06-Sep-2002  mycroft Introduce a new flag, `isdynamic', which is used to remember whether the
executable was of type ET_DYN. Use this instead of `mainprog' to determine
whether we need to do base-relative fixups of the PLT. (This allows loading
non-relocatable objects, should we desire to do that at some point...)
 1.11 06-Sep-2002  mycroft Re-poison a lot of consts, now that the mark shite is gone.
 1.10 06-Sep-2002  mycroft Split _rtld_relocate_plt_object() into two MD functions:
* _rtld_relocate_plt_lazy() fixes up all the relocs pointing to the PLT. (On
most platforms it just does a simple base-relative fixup; on SPARC it does
nothing.)
* _rtld_relocate_plt_object() does immediate binding for a PLT entry.
The basic gist is that this saves a bit of time on SPARC (where the iteration
through the pltrela table was gratuitous), and a little less time on all other
platforms. A whole lot of #ifdef'ed crap is moved out of reloc.c, too.

NOT tested on: hppa sh x86_64
 1.9 05-Sep-2002  mycroft Partially fix up some debug printf()s that don't need to use defobj.
 1.8 05-Sep-2002  mycroft A few things:
* Pass a symbol number to _rtld_find_symdef(), not a r_info.
* Don't try to do a symbol lookup when we find an unsupported relocation;
instead get the symbol name from the referencing object's strtab.
* Add preliminary support for `-z combreloc'-style startup optimization on
i386, `#ifdef COMBRELOC'.
 1.7 05-Sep-2002  mycroft Fix one indentation error.
 1.6 05-Sep-2002  mycroft Rename _rtld_relocate_nonplt_object() to _rtld_relocate_nonplt_objects(),
and push the outer loop into it. This actually shaves a couple % off startup
time at least on PCs.
 1.5 05-Sep-2002  mycroft Split _rtld_relocate_nonplt_object() into separate MD files.
 1.4 05-Sep-2002  mycroft Make _rtld_setup_pltgot() a consistent interface on all platforms.
 1.3 04-Sep-2002  mycroft There is no need to do an imb after each call to the binder, because we only
patch the GOT, not the PLT. However, do an imb when setting up the PLT thunk,
just in case.
 1.2 14-Dec-2001  thorpej branches: 1.2.2;
Add code to peek into the PLT and determine which PLT entry format
is being used.
 1.1 13-Dec-2001  thorpej Supply two lazy binding routines for Alpha: one that works with the
old PLT format, and one that works with the new.

XXX We currently always use _rtld_bind_start_old() in
_rtld_setup_alpha_pltgot(). We need to add code to peek
into one of the PLT entries to see which format it's in
and pick the correct binding routine.
 1.2.2.2 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.2.2.1 30-Nov-2002  he Pull up revision 1.3 (requested by thorpej in ticket #774):
There is no need to do an imb after each call to the binder,
because we only patch the GOT, not the PLT. However, do
an imb when setting up the PLT thunk, just in case.
 1.30.12.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.31.4.2 30-Mar-2012  bouyer Apply patch, requested by skrll in ticket #1724
src/libexec/ld.elf_so/arch/alpha/alpha_reloc.c patch
src/libexec/ld.elf_so/arch/arm/mdreloc.c patch
src/libexec/ld.elf_so/arch/hppa/hppa_reloc.c patch

Fix gcc uninitialized variable warning.
 1.31.4.1 17-Mar-2012  bouyer Pull up following revision(s) via patch (requested by skrll in ticket #1724):
rescue/list.ldd: revision 1.4
lib/libc/dlfcn/dlfcn_elf.c: revision 1.7
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.57
distrib/sets/lists/comp/mi: revision 1.1512
share/man/man3/Makefile: revision 1.56
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.58
usr.bin/ldd/ldd.c: revision 1.15
libexec/ld.elf_so/rtld.h: revision 1.84
share/man/man3/dl_iterate_phdr.3: revision 1.1
libexec/ld.elf_so/rtld.c: revision 1.129
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.44
libexec/ld.elf_so/rtld.h: revision 1.89
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.36
libexec/ld.elf_so/map_object.c: revision 1.41
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.37
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.46
include/link_elf.h: revision 1.10
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.29
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.26
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.34
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.31
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.35
libexec/ld.elf_so/Makefile: revision 1.94
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.32
libexec/ld.elf_so/Makefile: revision 1.95
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.31
libexec/ld.elf_so/Makefile: revision 1.96
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.32
libexec/ld.elf_so/reloc.c: revision 1.98
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.33
sys/sys/exec_elf.h: revision 1.106
libexec/ld.elf_so/rtld.c: revision 1.130
libexec/ld.elf_so/load.c: revision 1.37
libexec/ld.elf_so/rtld.c: revision 1.131
libexec/ld.elf_so/load.c: revision 1.38
libexec/ld.elf_so/rtld.h: revision 1.90
libexec/ld.elf_so/headers.c: revision 1.36
libexec/ld.elf_so/rtld.h: revision 1.95
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.30
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.25
libexec/ld.elf_so/symbol.c: revision 1.50
libexec/ld.elf_so/symbol.c: revision 1.51
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.43
libexec/ld.elf_so/symbol.c: revision 1.52
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.27
libexec/ld.elf_so/symbol.c: revision 1.54
PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
Implement dl_iterate_phdr.
Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.40.22.1 06-Mar-2016  martin Catch up to -current, via patch, requested by christos in ticket #1126:
 1.41.8.1 04-Jul-2017  martin Pull up following revision(s) (requested by joerg in ticket #64):
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.40
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.41
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.44
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.60
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.32
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.61
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.2
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.50
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.34
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.39
libexec/ld.elf_so/symbol.c: revision 1.68
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.66
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.67
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.68
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.42
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.54
libexec/ld.elf_so/Makefile: revision 1.137
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.32
libexec/ld.elf_so/rtld.h: revision 1.127
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.38
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.42
libexec/ld.elf_so/map_object.c: revision 1.58
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.49
Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.
The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.
Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
Drop symbol number from default branch diagnostic, it isn't set at this
point and most likely not valid either.
Expand symnum, GCC's uninitialized used tracking is too imprecise.
Fix C&P bug. Deal with more MIPS hacks overriding def.
Add last_symnum, move up def and defobj.
Add back symnum, fix debug print.
Replace last use of r_type.
Fix indentation.
Fix indentation.
 1.43.14.1 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #297):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44
(all via patch)

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen
(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.
(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.
(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.
PR pkg/57445
Fix MKDEBUGLIB build by adding these installed files to the debug
set list.
XXX
One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.
Fix markup of libh_ MKDEBUGLIB=yes only files
TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.43.6.1 04-Aug-2023  martin Pull up following revision(s), all via patch,
(requested by riastradh in ticket #1699):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.

This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.

PR pkg/57445

Fix MKDEBUGLIB build by adding these installed files to the debug
set list.

One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.

Fix markup of libh_ MKDEBUGLIB=yes only files

TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.44.2.1 02-Aug-2025  perseant Sync with HEAD
 1.4 11-Sep-2002  mycroft The ld script is no longer necessary.
 1.3 09-Sep-2002  mycroft Sync with current binutils.
 1.2 13-Dec-2001  thorpej branches: 1.2.2;
Add RCS ID.
 1.1 13-Dec-2001  thorpej * Add a linker script which provides a _GOT_END_ symbol that we can
use to find the end of the GOT, rather than relying on _DYNAMIC
to immediately follow the GOT. (A change in current binutils
moved _DYNAMIC, and thus would have broken our Alpha ld.elf_so).
* Add #ifdef'd out code to deal with the new PLT format.
 1.2.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.17 18-Apr-2025  riastradh ld.elf_so on alpha: Add support for secureplt.

ok thorpej

PR port-alpha/57511: ld.elf_so(1) does not support secure PLT for alpha
PR port-alpha/57717: Alpha linker generates LOAD segments (and
generates warnings about them)
 1.16 18-Feb-2004  enami branches: 1.16.108;
Salvage the instruction to save the pointer to ps_strings for later use
so that setproctitle() works again. The problem reported by Naoki Fukaumi
on japanese mailing list.

Approved by: Ross Harvey
 1.15 05-Oct-2002  mycroft Minor cleanup.
 1.14 12-Sep-2002  mycroft Update comments.
 1.13 12-Sep-2002  mycroft Pass the calculated relocation offset down to _rtld().
 1.12 11-Sep-2002  mycroft We don't use _GLOBAL_OFFSET_TABLE_ any more, so don't .global it.
 1.11 11-Sep-2002  mycroft Implement _rtld_relocate_nonplt_self() on Alpha.
 1.10 08-Sep-2002  thorpej Fix a serious performance problem for large programs on the Alpha.

Large programs need multiple GOTs. The lazy binding stub in the PLT
can be reached from any of these GOTs, but the dynamic linker only
has enough information to fix up the first GOT entry. Thus, calls
through the other GOTs went through the time-consuming lazy binding
process on every call.

This fix rewrites the PLT entries themselves to bypass the lazy binding
for those GOT entries that the dynamic linker can't fixup.

Fix from FreeBSD.

Note that now that we patch up the PLT, we need to put back the "imb"
that was removed from the binder exit path.
 1.9 04-Sep-2002  mycroft There is no need to do an imb after each call to the binder, because we only
patch the GOT, not the PLT. However, do an imb when setting up the PLT thunk,
just in case.
 1.8 14-Dec-2001  thorpej branches: 1.8.2;
Garbage-collect the OLD_GOT stuff.
 1.7 13-Dec-2001  thorpej Supply two lazy binding routines for Alpha: one that works with the
old PLT format, and one that works with the new.

XXX We currently always use _rtld_bind_start_old() in
_rtld_setup_alpha_pltgot(). We need to add code to peek
into one of the PLT entries to see which format it's in
and pick the correct binding routine.
 1.6 13-Dec-2001  thorpej Use numeric labels.
 1.5 13-Dec-2001  thorpej * Add a linker script which provides a _GOT_END_ symbol that we can
use to find the end of the GOT, rather than relying on _DYNAMIC
to immediately follow the GOT. (A change in current binutils
moved _DYNAMIC, and thus would have broken our Alpha ld.elf_so).
* Add #ifdef'd out code to deal with the new PLT format.
 1.4 28-May-2001  nathanw Correct spelling in a comment.
 1.3 19-Apr-1999  thorpej branches: 1.3.8;
Simplify _rtld_start() a little, and shave some cycles. Spefically, there's
no need to save the stack pointer. Just push the space for the cleanup
and obj_main pointers before calling _rtld(), and pop it after loading those
pointers into the appropriate argument registers for the program entry point.
 1.2 18-Apr-1999  thorpej Tidy this up a little.
 1.1 16-Dec-1996  cgd First cut at an ELF shared loader. Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.). This runs, but it's
in serious need of cleaning and/or a fair bit of reworking. See the README
file for more information, and a list of things to do.
 1.3.8.1 09-Dec-2001  he Pull up revision 1.4 (requested by skrll):
Add init/fini section support in crtbegin and crtend, and introduce
support for DWARF2 exception handling. Fixes PR#12865, PR#13488,
PR#13489, and PR#13491. Also fix ld.elf_so to deal appropriately.
 1.8.2.2 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.8.2.1 30-Nov-2002  he Pull up revision 1.9 (requested by thorpej in ticket #774):
There is no need to do an imb after each call to the binder,
because we only patch the GOT, not the PLT. However, do
an imb when setting up the PLT thunk, just in case.
 1.16.108.1 02-Aug-2025  perseant Sync with HEAD
 1.22 27-Dec-2018  christos initfini array support for everyone.
 1.21 03-Apr-2018  joerg branches: 1.21.2;
Rework ifunc support to address a number of short comings:
- Move to a shared _rtld_call_ifunc for rel and rela architectures
- Architectures using rel format must patch IRELATIVE non-PLT
relocations like RELATIVE in additition to the later ifunc handling
- Consistently record the delta to the end of the relocation group for
non-PLT IRELATIVE relocations

Hidden ifunc is now supported on all ifunc platforms, even when using
-fno-plt. The combination of -fno-plt and relro is broken due to
incorrect GNU ld output though.
 1.20 10-Sep-2013  matt branches: 1.20.24;
For earm, emit a MARCH note.
 1.19 03-May-2013  matt Consistently use LDELFSO_MACHINE_ARCH.
 1.18 03-May-2013  skrll Provide a default LDELFSO_MACHINE_ARCH. hi matt!

atf-run works again - the init/fini stuff didn't get run otherwise.
 1.17 27-Apr-2013  matt Changes for MKCOMPAT for earm.
 1.16 24-Apr-2013  matt Add support for PT_ARM_EXIDX and __gnu_Unwind_Find_exidx for libgcc's support
of the ARM EHABI.
 1.15 23-Jan-2013  matt Handle CPUFLAGS being empty
 1.14 23-Jan-2013  matt Make sure CFLAGS is not empty.
 1.13 22-Jan-2013  matt If you are using aapcs, you must be using INITFINI
 1.12 15-Aug-2012  matt branches: 1.12.2;
Add .init_array/.fini_array support (conditionalized on HAVE_INITFINI_ARRAY).
 1.11 04-Jun-2005  lukem branches: 1.11.42; 1.11.46;
Explicitly prefix ld(1) options in LDFLAGS with "-Wl," rather than
using the ${LDFLAGS:@F@-Wl,$F@} make substitution because that breaks
if LDFLAGS is already set.
 1.10 21-Feb-2004  skrll Move common LDFLAGS into Makefile from arch/*/Makefile.inc
 1.9 20-Feb-2004  skrll Whitespace.
 1.8 24-Sep-2002  mycroft Remove vestiges of VARPSZ.
 1.7 11-Sep-2002  mycroft Do the _rtld_relocate_nonplt_self() thing here, and nuke the ld script.
 1.6 10-Sep-2002  mycroft Only one linker script is needed.
 1.5 09-Sep-2002  mycroft Nuke RTLD_RELOCATE_SELF on ARM.
 1.4 05-Sep-2002  mycroft Make _rtld_setup_pltgot() a consistent interface on all platforms.
 1.3 20-Dec-2001  thorpej branches: 1.3.2;
Grumble. Put compiler options back into CPPFLAGS for now, since
they're needed to build .S files with the correct PIC options.

XXX Really needs cleanup in <bsd.*.mk> to do this properly.
 1.2 14-Dec-2001  thorpej Don't put compiler options into CPPFLAGS.
 1.1 15-Jul-2001  matt Initial support for dynamic ELF support on ARM.
 1.3.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.11.46.2 23-Jan-2013  matt Handle CPUFLAGS being empty
 1.11.46.1 22-Jan-2013  matt Pullup from HEAD:
Add .init_array/.fini_array support (conditionalized on HAVE_INITFINI_ARRAY).
 1.11.42.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.11.42.1 30-Oct-2012  yamt sync with head
 1.12.2.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.12.2.2 23-Jun-2013  tls resync from head
 1.12.2.1 25-Feb-2013  tls resync with head
 1.20.24.2 18-Jan-2019  pgoyette Synch with HEAD
 1.20.24.1 07-Apr-2018  pgoyette Sync with HEAD. 77 conflicts resolved - all of them $NetBSD$
 1.21.2.1 10-Jun-2019  christos Sync with HEAD
 1.4 10-Aug-2014  matt Don't provide __gnu_Unwind_Find_exidx if __ARM_DWARF_EH__ is defined
 1.3 03-May-2013  skrll branches: 1.3.2; 1.3.8;
Remove trailing whitespace
 1.2 25-Apr-2013  matt Use relocbase, not mapbase.
 1.1 24-Apr-2013  matt Add a ld.elf_so internals version of __gnu_Unwind_Find_exidx for that the
libgcc EHABI can find the exception tables for a supplied PC.
 1.3.8.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3.8.1 03-May-2013  yamt file find_exidx.c was added on branch yamt-pagecache on 2014-05-22 11:37:13 +0000
 1.3.2.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.2.2 23-Jun-2013  tls resync from head
 1.3.2.1 03-May-2013  tls file find_exidx.c was added on branch tls-maxphys on 2013-06-23 06:28:50 +0000
 1.2 11-Sep-2002  mycroft Do the _rtld_relocate_nonplt_self() thing here, and nuke the ld script.
 1.1 10-Sep-2002  mycroft Only one linker script is needed.
 1.2 10-Sep-2002  mycroft Only one linker script is needed.
 1.1 09-Sep-2002  mycroft Nuke RTLD_RELOCATE_SELF on ARM.
 1.2 10-Sep-2002  mycroft Only one linker script is needed.
 1.1 09-Sep-2002  mycroft Nuke RTLD_RELOCATE_SELF on ARM.
 1.48 03-Aug-2024  riastradh ld.elf_so(1): Nix trailing whitespace.

No functional change intended.
 1.47 22-Jul-2024  riastradh ld.elf_so: Cite reference for Arm ELF relocations.

PR lib/58455: Missing references for processor-specific ELF
relocation semantics
 1.46 04-Jun-2023  joerg branches: 1.46.2;
Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).

Fix this by forcing the computation of the correct DSO (the one defining
the symbol).

This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
 1.45 16-Jun-2020  joerg branches: 1.45.6;
R_ARM_TLS_TPOFF32 needs to adjust the existing value, not blindly
overwrite it.
 1.44 03-Apr-2018  joerg branches: 1.44.4;
Rework ifunc support to address a number of short comings:
- Move to a shared _rtld_call_ifunc for rel and rela architectures
- Architectures using rel format must patch IRELATIVE non-PLT
relocations like RELATIVE in additition to the later ifunc handling
- Consistently record the delta to the end of the relocation group for
non-PLT IRELATIVE relocations

Hidden ifunc is now supported on all ifunc platforms, even when using
-fno-plt. The combination of -fno-plt and relro is broken due to
incorrect GNU ld output though.
 1.43 06-Nov-2017  joerg branches: 1.43.2;
init/fini for the main program is handled by crt0.o, so ifunc handling
is skipped right now as it iterates the same list. Don't repeat that
mistake and explicitly take care of it in the dynamic linker.
 1.42 10-Aug-2017  joerg Add IRELATIVE support for ARM, X86 and PowerPC.
 1.41 20-Jun-2017  joerg Expand symnum, GCC's uninitialized used tracking is too imprecise.
 1.40 20-Jun-2017  joerg Drop symbol number from default branch diagnostic, it isn't set at this
point and most likely not valid either.
 1.39 19-Jun-2017  joerg Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.

The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.

Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
 1.38 25-Aug-2014  joerg branches: 1.38.8;
Add basic support for indirect functions. It allows providing a public
function symbol with an implementation choosen at run time.
Refactor calls to functions by address in ld.elf_so to create temporary
function descriptors on the stack, if the address is not leaked outside.

Limitations:
- no support for initialising static storage with function pointers
- no support for unnamed resolver functions

Inspired by FreeBSD's r228435 by kib@freebsd.org.
 1.37 18-Nov-2011  joerg branches: 1.37.18;
Hook up TLS support on ARM. Tested by martin@, kernel support from matt@
 1.36 12-Apr-2011  matt branches: 1.36.4;
Add support for TLS relocations.
From Joerg Sonnenberger
 1.35 25-Mar-2011  joerg Add basic locking to ld.elf_so.
 1.34 06-Aug-2010  joerg Reduce header pollution for mdreloc.c. Make Obj_Entry argument of
_rtld_relocate_nonplt_objects non-const in preparation for TLS support.
 1.33 14-Jan-2010  skrll Make DEBUG build compile.
 1.32 14-Jan-2010  skrll Shut gcc up.
 1.31 13-Jan-2010  christos PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
 1.30 29-Aug-2009  jmmv Remove trailing \n in calls to _rtld_error: a newline is automatically
added by a call to the function.
 1.29 16-Mar-2009  lukem Fix const issues (cast const pointers to "const uint8_t *" instead of "caddr_t")

NOTE: change based on ../i386/mdreloc.c 1.27
XXX: not compile tested
 1.28 24-Jul-2008  matt branches: 1.28.4; 1.28.6;
Refactor common code to _rtld_relocate_plt_object to i386 and arm so they
act like the other versions.
In _rtld_bind, if the result is 0, call _rtld_die.
Initialize _rtld_sym_zero.st_value to -_rtld_objself.maprelocbase. Now when
the symbol is resolved, st_value + maprelocbase will equal 0 and the above
check in _rtld_bind will fire and a call to NULL will be avoided.
 1.27 24-Dec-2005  perry branches: 1.27.20;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.26 20-Aug-2005  skrll Add __RCSID.
 1.25 17-Dec-2004  mycroft ELF32_ST_TYPE -> ELF_ST_TYPE
 1.24 21-Aug-2004  rearnsha Check the type of symbols; if it's a Thumb function, then set the Thumb
bit in the relocated value (JUMP_SLOT, ABS32 & GLOB_DAT).
 1.23 26-Jul-2003  mrg branches: 1.23.4;
include <string.h> or <stdlib.h> for all prototypes
 1.22 24-Jul-2003  skrll ANSIfy and de-__P().
 1.21 21-Jul-2003  skrll Support immediate binding on arm.
 1.20 03-Oct-2002  mycroft Skip the lazy PLT relocation if relocbase==0 (useful if libraries are loaded
at their VMA address).
 1.19 26-Sep-2002  mycroft Remove the `self' args to _rtld_relocate_objects() and
_rtld_relocate_nonplt_objects().
 1.18 25-Sep-2002  mycroft Push the _rtld_bind() interface into MD code -- it's just a trivial wrapper
anyway.
 1.17 15-Sep-2002  thorpej No PC24 relocs will ever be unaligned. Pointed out by mycroft.
 1.16 15-Sep-2002  thorpej It is possible for reloc entries to point to unaligned locations; handle
this.
 1.15 13-Sep-2002  mycroft Use the addend on GLOB_DAT relocs (same as ABS32).
 1.14 12-Sep-2002  mycroft Nuke -DRTLD_RELOCATE_SELF and `dodebug' from orbit.
 1.13 12-Sep-2002  mycroft _rtld_bind_start() is not used in MI code, so declare it in the MD code.
 1.12 11-Sep-2002  mycroft Do the _rtld_relocate_nonplt_self() thing here, and nuke the ld script.
 1.11 11-Sep-2002  junyoung Add $NetBSD$.
 1.10 09-Sep-2002  mycroft Nuke RTLD_RELOCATE_SELF on ARM.
 1.9 06-Sep-2002  mycroft Pass down an additional flag to _rtld_relocate_nonplt_objects() which
indicates whether we're relocating ld.elf_so itself. Use this in some places
rather than hackish tests on `dodebug'. (The Alpha and HPPA `dodebug' tests
were actually noops, because RTLD_RELOCATE_SELF is not set, and therefore
dodebug is always true.)
 1.8 06-Sep-2002  mycroft Introduce a new flag, `isdynamic', which is used to remember whether the
executable was of type ET_DYN. Use this instead of `mainprog' to determine
whether we need to do base-relative fixups of the PLT. (This allows loading
non-relocatable objects, should we desire to do that at some point...)
 1.7 06-Sep-2002  mycroft Re-poison a lot of consts, now that the mark shite is gone.
 1.6 06-Sep-2002  mycroft Split _rtld_relocate_plt_object() into two MD functions:
* _rtld_relocate_plt_lazy() fixes up all the relocs pointing to the PLT. (On
most platforms it just does a simple base-relative fixup; on SPARC it does
nothing.)
* _rtld_relocate_plt_object() does immediate binding for a PLT entry.
The basic gist is that this saves a bit of time on SPARC (where the iteration
through the pltrela table was gratuitous), and a little less time on all other
platforms. A whole lot of #ifdef'ed crap is moved out of reloc.c, too.

NOT tested on: hppa sh x86_64
 1.5 05-Sep-2002  mycroft Partially fix up some debug printf()s that don't need to use defobj.
 1.4 05-Sep-2002  mycroft A few things:
* Pass a symbol number to _rtld_find_symdef(), not a r_info.
* Don't try to do a symbol lookup when we find an unsupported relocation;
instead get the symbol name from the referencing object's strtab.
* Add preliminary support for `-z combreloc'-style startup optimization on
i386, `#ifdef COMBRELOC'.
 1.3 05-Sep-2002  mycroft Rename _rtld_relocate_nonplt_object() to _rtld_relocate_nonplt_objects(),
and push the outer loop into it. This actually shaves a couple % off startup
time at least on PCs.
 1.2 05-Sep-2002  mycroft Split _rtld_relocate_nonplt_object() into separate MD files.
 1.1 05-Sep-2002  mycroft Make _rtld_setup_pltgot() a consistent interface on all platforms.
 1.23.4.2 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.23.4.1 26-Jul-2003  tron file mdreloc.c was added on branch netbsd-1-6 on 2004-05-28 08:31:22 +0000
 1.27.20.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.28.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.28.4.2 30-Mar-2012  bouyer Apply patch, requested by skrll in ticket #1724
src/libexec/ld.elf_so/arch/alpha/alpha_reloc.c patch
src/libexec/ld.elf_so/arch/arm/mdreloc.c patch
src/libexec/ld.elf_so/arch/hppa/hppa_reloc.c patch

Fix gcc uninitialized variable warning.
 1.28.4.1 17-Mar-2012  bouyer Pull up following revision(s) via patch (requested by skrll in ticket #1724):
rescue/list.ldd: revision 1.4
lib/libc/dlfcn/dlfcn_elf.c: revision 1.7
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.57
distrib/sets/lists/comp/mi: revision 1.1512
share/man/man3/Makefile: revision 1.56
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.58
usr.bin/ldd/ldd.c: revision 1.15
libexec/ld.elf_so/rtld.h: revision 1.84
share/man/man3/dl_iterate_phdr.3: revision 1.1
libexec/ld.elf_so/rtld.c: revision 1.129
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.44
libexec/ld.elf_so/rtld.h: revision 1.89
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.36
libexec/ld.elf_so/map_object.c: revision 1.41
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.37
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.46
include/link_elf.h: revision 1.10
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.29
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.26
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.34
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.31
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.35
libexec/ld.elf_so/Makefile: revision 1.94
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.32
libexec/ld.elf_so/Makefile: revision 1.95
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.31
libexec/ld.elf_so/Makefile: revision 1.96
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.32
libexec/ld.elf_so/reloc.c: revision 1.98
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.33
sys/sys/exec_elf.h: revision 1.106
libexec/ld.elf_so/rtld.c: revision 1.130
libexec/ld.elf_so/load.c: revision 1.37
libexec/ld.elf_so/rtld.c: revision 1.131
libexec/ld.elf_so/load.c: revision 1.38
libexec/ld.elf_so/rtld.h: revision 1.90
libexec/ld.elf_so/headers.c: revision 1.36
libexec/ld.elf_so/rtld.h: revision 1.95
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.30
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.25
libexec/ld.elf_so/symbol.c: revision 1.50
libexec/ld.elf_so/symbol.c: revision 1.51
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.43
libexec/ld.elf_so/symbol.c: revision 1.52
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.27
libexec/ld.elf_so/symbol.c: revision 1.54
PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
Implement dl_iterate_phdr.
Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.36.4.1 17-Apr-2012  yamt sync with head
 1.37.18.1 06-Mar-2016  martin Catch up to -current, via patch, requested by christos in ticket #1126:
 1.38.8.1 04-Jul-2017  martin Pull up following revision(s) (requested by joerg in ticket #64):
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.40
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.41
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.44
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.60
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.32
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.61
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.2
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.50
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.34
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.39
libexec/ld.elf_so/symbol.c: revision 1.68
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.66
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.67
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.68
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.42
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.54
libexec/ld.elf_so/Makefile: revision 1.137
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.32
libexec/ld.elf_so/rtld.h: revision 1.127
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.38
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.42
libexec/ld.elf_so/map_object.c: revision 1.58
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.49
Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.
The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.
Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
Drop symbol number from default branch diagnostic, it isn't set at this
point and most likely not valid either.
Expand symnum, GCC's uninitialized used tracking is too imprecise.
Fix C&P bug. Deal with more MIPS hacks overriding def.
Add last_symnum, move up def and defobj.
Add back symnum, fix debug print.
Replace last use of r_type.
Fix indentation.
Fix indentation.
 1.43.2.1 07-Apr-2018  pgoyette Sync with HEAD. 77 conflicts resolved - all of them $NetBSD$
 1.44.4.2 07-Aug-2024  martin Pull up following revision(s) (requested by riastradh in ticket #1862):

libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.45
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.14

Honor addend for R_AARCH64_TLS_TPREL relocation.

R_ARM_TLS_TPOFF32 needs to adjust the existing value, not blindly
overwrite it.
 1.44.4.1 04-Aug-2023  martin Pull up following revision(s), all via patch,
(requested by riastradh in ticket #1699):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.

This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.

PR pkg/57445

Fix MKDEBUGLIB build by adding these installed files to the debug
set list.

One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.

Fix markup of libh_ MKDEBUGLIB=yes only files

TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.45.6.1 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #297):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44
(all via patch)

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen
(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.
(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.
(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.
PR pkg/57445
Fix MKDEBUGLIB build by adding these installed files to the debug
set list.
XXX
One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.
Fix markup of libh_ MKDEBUGLIB=yes only files
TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.46.2.1 02-Aug-2025  perseant Sync with HEAD
 1.12 03-Dec-2013  matt Don't use GOT relocations. Use PC relative for the GOT and GOTOFF for
_DYNAMIC. Make thumb friendly.
 1.11 13-Aug-2012  matt branches: 1.11.2;
Add a comment for EABI. Use "pop" instructions to save one instruction.
 1.10 11-Nov-2009  skrll branches: 1.10.6; 1.10.10;
Add RCSID
 1.9 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.8 21-Aug-2004  rearnsha branches: 1.8.24;
Use BX if available.
 1.7 12-Sep-2002  mycroft Update comments.
 1.6 12-Sep-2002  mycroft Pass the calculated relocation offset down to _rtld().
 1.5 11-Sep-2002  mycroft Do the _rtld_relocate_nonplt_self() thing here, and nuke the ld script.
 1.4 09-Sep-2002  mycroft Nuke RTLD_RELOCATE_SELF on ARM.
 1.3 15-Jul-2001  matt branches: 1.3.2;
Fix binder routine to not use a volatile register.
 1.2 15-Jul-2001  matt Bugfix for _rtld_start. Enable common plt processing code for arm
 1.1 15-Jul-2001  matt Initial support for dynamic ELF support on ARM.
 1.3.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.8.24.1 18-May-2008  yamt sync with head.
 1.10.10.1 22-Jan-2013  matt Pullup from HEAD:
Add .init_array/.fini_array support (conditionalized on HAVE_INITFINI_ARRAY).
 1.10.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.10.6.1 30-Oct-2012  yamt sync with head
 1.11.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.8 12-Sep-2009  skrll Fix the start symbol.
 1.7 04-Jun-2005  lukem Explicitly prefix ld(1) options in LDFLAGS with "-Wl," rather than
using the ${LDFLAGS:@F@-Wl,$F@} make substitution because that breaks
if LDFLAGS is already set.
 1.6 17-May-2004  skrll Fix the dynamic linker for hppa using ELF.

Lazy binding doesn't work 100% of the time so force immediate binding.
One possible reason is that the PLT stub blows away r20 which the
compiler might not take into account.
 1.5 23-Feb-2004  skrll Remove the millicode hack - its not needed anymore.

Get the entry point right.
 1.4 21-Feb-2004  skrll Move common LDFLAGS into Makefile from arch/*/Makefile.inc
 1.3 20-Feb-2004  skrll Whitespace.
 1.2 24-Sep-2002  mycroft Remove vestiges of VARPSZ.
 1.1 10-Jul-2002  fredette Add support for dynamic linking on HP PA-RISC.
 1.53 29-Jul-2024  skrll KNF and remove trailing whitespace in previous.
 1.52 29-Jul-2024  macallan skip R_PARISC_NONE reloc entries instead of segfaulting on them
now windowmaker runs on my C360
 1.51 22-Jul-2024  riastradh ld.elf_so: Cite reference for HP PA-RISC ELF relocations.

PR lib/58455: Missing references for processor-specific ELF
relocation semantics
 1.50 04-Jun-2023  joerg branches: 1.50.2;
Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).

Fix this by forcing the computation of the correct DSO (the one defining
the symbol).

This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
 1.49 30-May-2022  skrll branches: 1.49.2;
Set DP early so that any binary functions that override others get the
right value if they're called before _start. This is true of bash where
it provides its own getenv.

Part of port-hppa/56118: sporadic app crashes in HPPA -current
 1.48 04-Dec-2021  skrll Restore the fptr_t type of {init,fini}{,_array} that was removed when initial
support for indirect functions was added. This fixes {init,fini}_array support
on hppa where each member of the array is (already) a plabel.

Discussed with joerg.

4 files changed, 29 insertions(+), 39 deletions(-)
: ----------------------------------------------------------------------
 1.47 16-May-2020  skrll Avoid compiler warnings about uninitialised symnum
 1.46 10-May-2020  skrll Trailing whitespace
 1.45 10-Aug-2017  joerg branches: 1.45.6;
Add IRELATIVE support for ARM, X86 and PowerPC.
 1.44 19-Jun-2017  joerg Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.

The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.

Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
 1.43 25-Aug-2014  joerg branches: 1.43.8;
Add basic support for indirect functions. It allows providing a public
function symbol with an implementation choosen at run time.
Refactor calls to functions by address in ld.elf_so to create temporary
function descriptors on the stack, if the address is not leaked outside.

Limitations:
- no support for initialising static storage with function pointers
- no support for unnamed resolver functions

Inspired by FreeBSD's r228435 by kib@freebsd.org.
 1.42 06-Jan-2012  skrll branches: 1.42.18;
Implement lazy binding on hppa. rump_server needs it!?!?!

Mostly from OpenBSD.
 1.41 04-Dec-2011  skrll Use the tlsoffset from the correct object.
 1.40 25-Sep-2011  chs branches: 1.40.2;
gcc 4.5 generates an extra plabel in ld.elf_so,
so expand the array of preallocated ones.
 1.39 25-Mar-2011  joerg Add basic locking to ld.elf_so.
 1.38 17-Mar-2011  skrll Another TLS reloc. Thanks to joerg for a hint.
 1.37 14-Mar-2011  skrll More PLABELS are required due to TLS stuff.
 1.36 14-Mar-2011  skrll Handle some TLS relocs.
 1.35 10-Mar-2011  skrll Whitespace.
 1.34 24-Sep-2010  skrll Wrap long lines

Reformat comments.
 1.33 06-Aug-2010  joerg Reduce header pollution for mdreloc.c. Make Obj_Entry argument of
_rtld_relocate_nonplt_objects non-const in preparation for TLS support.
 1.32 14-Jan-2010  skrll Shut gcc up.
 1.31 13-Jan-2010  christos PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
 1.30 25-Sep-2009  skrll ld.elf_so grew more PLABELS with dlinfo so bump HPPA_PLABEL_PRE.
 1.29 29-Aug-2009  jmmv Remove trailing \n in calls to _rtld_error: a newline is automatically
added by a call to the function.
 1.28 23-May-2009  mjf After a recent WARNS= bump on ld.elf_so it fails to build on hppa,
complaining that we're "discarding qualifier from pointer target
type".

Use const char * instead of caddr_t to avoid the warning and get
distribution building on hppa again.
 1.27 24-Jul-2008  matt branches: 1.27.4;
Refactor common code to _rtld_relocate_plt_object to i386 and arm so they
act like the other versions.
In _rtld_bind, if the result is 0, call _rtld_die.
Initialize _rtld_sym_zero.st_value to -_rtld_objself.maprelocbase. Now when
the symbol is resolved, st_value + maprelocbase will equal 0 and the above
check in _rtld_bind will fire and a call to NULL will be avoided.
 1.26 28-Apr-2008  martin branches: 1.26.2;
Remove clause 3 and 4 from TNF licenses
 1.25 17-Oct-2006  skrll branches: 1.25.16;
Create _rtld_relocate_plt_object and use it in _rtld_bind and
_rtld_relocate_plt_objects.

No functional change.
 1.24 17-Oct-2006  skrll Support unaligned DIR32 relocs.

Closes PR 18293
 1.23 20-Aug-2005  skrll Add __RCSID.
 1.22 05-Jun-2005  chs appease gcc -Wuninitialized on hp700.
 1.21 21-May-2005  skrll Copyright maintenance.
 1.20 17-May-2004  skrll Fix the dynamic linker for hppa using ELF.

Lazy binding doesn't work 100% of the time so force immediate binding.
One possible reason is that the PLT stub blows away r20 which the
compiler might not take into account.
 1.19 14-May-2004  skrll Wrap a couple of lines to <80 columns
 1.18 14-May-2004  skrll Whitespace.
 1.17 06-Oct-2003  matt Update to new reality. XXX _rtld_bind still needs to be written.
 1.16 24-Jul-2003  skrll ANSIfy and de-__P().
 1.15 26-Sep-2002  mycroft Remove the `self' args to _rtld_relocate_objects() and
_rtld_relocate_nonplt_objects().
 1.14 12-Sep-2002  mycroft Nuke -DRTLD_RELOCATE_SELF and `dodebug' from orbit.
 1.13 12-Sep-2002  mycroft Move another declaration that doesn't belong in MI source.
 1.12 12-Sep-2002  mycroft _rtld_bind_start() is not used in MI code, so declare it in the MD code.
 1.11 06-Sep-2002  mycroft Pass down an additional flag to _rtld_relocate_nonplt_objects() which
indicates whether we're relocating ld.elf_so itself. Use this in some places
rather than hackish tests on `dodebug'. (The Alpha and HPPA `dodebug' tests
were actually noops, because RTLD_RELOCATE_SELF is not set, and therefore
dodebug is always true.)
 1.10 06-Sep-2002  mycroft Introduce a new flag, `isdynamic', which is used to remember whether the
executable was of type ET_DYN. Use this instead of `mainprog' to determine
whether we need to do base-relative fixups of the PLT. (This allows loading
non-relocatable objects, should we desire to do that at some point...)
 1.9 06-Sep-2002  mycroft Re-poison a lot of consts, now that the mark shite is gone.
 1.8 06-Sep-2002  mycroft Split _rtld_relocate_plt_object() into two MD functions:
* _rtld_relocate_plt_lazy() fixes up all the relocs pointing to the PLT. (On
most platforms it just does a simple base-relative fixup; on SPARC it does
nothing.)
* _rtld_relocate_plt_object() does immediate binding for a PLT entry.
The basic gist is that this saves a bit of time on SPARC (where the iteration
through the pltrela table was gratuitous), and a little less time on all other
platforms. A whole lot of #ifdef'ed crap is moved out of reloc.c, too.

NOT tested on: hppa sh x86_64
 1.7 05-Sep-2002  mycroft Partially fix up some debug printf()s that don't need to use defobj.
 1.6 05-Sep-2002  mycroft A few things:
* Pass a symbol number to _rtld_find_symdef(), not a r_info.
* Don't try to do a symbol lookup when we find an unsupported relocation;
instead get the symbol name from the referencing object's strtab.
* Add preliminary support for `-z combreloc'-style startup optimization on
i386, `#ifdef COMBRELOC'.
 1.5 05-Sep-2002  mycroft Rename _rtld_relocate_nonplt_object() to _rtld_relocate_nonplt_objects(),
and push the outer loop into it. This actually shaves a couple % off startup
time at least on PCs.
 1.4 05-Sep-2002  mycroft Split _rtld_relocate_nonplt_object() into separate MD files.
 1.3 05-Sep-2002  junyoung Remove unused arguments of _rtld_find_symdef().
 1.2 05-Sep-2002  mycroft Make _rtld_setup_pltgot() a consistent interface on all platforms.
 1.1 10-Jul-2002  fredette Add support for dynamic linking on HP PA-RISC.
 1.25.16.1 18-May-2008  yamt sync with head.
 1.26.2.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.27.4.3 21-May-2012  jdc libexec/ld.elf_so/arch/hppa/hppa_reloc.c patch

Fix hppa problem introduced by ticket #1724.
[skrll, ticket #1761]
 1.27.4.2 30-Mar-2012  bouyer Apply patch, requested by skrll in ticket #1724
src/libexec/ld.elf_so/arch/alpha/alpha_reloc.c patch
src/libexec/ld.elf_so/arch/arm/mdreloc.c patch
src/libexec/ld.elf_so/arch/hppa/hppa_reloc.c patch

Fix gcc uninitialized variable warning.
 1.27.4.1 17-Mar-2012  bouyer Pull up following revision(s) via patch (requested by skrll in ticket #1724):
rescue/list.ldd: revision 1.4
lib/libc/dlfcn/dlfcn_elf.c: revision 1.7
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.57
distrib/sets/lists/comp/mi: revision 1.1512
share/man/man3/Makefile: revision 1.56
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.58
usr.bin/ldd/ldd.c: revision 1.15
libexec/ld.elf_so/rtld.h: revision 1.84
share/man/man3/dl_iterate_phdr.3: revision 1.1
libexec/ld.elf_so/rtld.c: revision 1.129
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.44
libexec/ld.elf_so/rtld.h: revision 1.89
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.36
libexec/ld.elf_so/map_object.c: revision 1.41
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.37
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.46
include/link_elf.h: revision 1.10
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.29
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.26
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.34
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.31
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.35
libexec/ld.elf_so/Makefile: revision 1.94
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.32
libexec/ld.elf_so/Makefile: revision 1.95
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.31
libexec/ld.elf_so/Makefile: revision 1.96
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.32
libexec/ld.elf_so/reloc.c: revision 1.98
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.33
sys/sys/exec_elf.h: revision 1.106
libexec/ld.elf_so/rtld.c: revision 1.130
libexec/ld.elf_so/load.c: revision 1.37
libexec/ld.elf_so/rtld.c: revision 1.131
libexec/ld.elf_so/load.c: revision 1.38
libexec/ld.elf_so/rtld.h: revision 1.90
libexec/ld.elf_so/headers.c: revision 1.36
libexec/ld.elf_so/rtld.h: revision 1.95
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.30
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.25
libexec/ld.elf_so/symbol.c: revision 1.50
libexec/ld.elf_so/symbol.c: revision 1.51
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.43
libexec/ld.elf_so/symbol.c: revision 1.52
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.27
libexec/ld.elf_so/symbol.c: revision 1.54
PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
Implement dl_iterate_phdr.
Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.40.2.1 17-Apr-2012  yamt sync with head
 1.42.18.1 06-Mar-2016  martin Catch up to -current, via patch, requested by christos in ticket #1126:
 1.43.8.1 04-Jul-2017  martin Pull up following revision(s) (requested by joerg in ticket #64):
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.40
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.41
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.44
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.60
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.32
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.61
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.2
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.50
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.34
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.39
libexec/ld.elf_so/symbol.c: revision 1.68
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.66
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.67
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.68
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.42
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.54
libexec/ld.elf_so/Makefile: revision 1.137
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.32
libexec/ld.elf_so/rtld.h: revision 1.127
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.38
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.42
libexec/ld.elf_so/map_object.c: revision 1.58
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.49
Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.
The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.
Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
Drop symbol number from default branch diagnostic, it isn't set at this
point and most likely not valid either.
Expand symnum, GCC's uninitialized used tracking is too imprecise.
Fix C&P bug. Deal with more MIPS hacks overriding def.
Add last_symnum, move up def and defobj.
Add back symnum, fix debug print.
Replace last use of r_type.
Fix indentation.
Fix indentation.
 1.45.6.2 04-Aug-2023  martin Pull up following revision(s), all via patch,
(requested by riastradh in ticket #1699):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.

This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.

PR pkg/57445

Fix MKDEBUGLIB build by adding these installed files to the debug
set list.

One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.

Fix markup of libh_ MKDEBUGLIB=yes only files

TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.45.6.1 10-Jun-2022  martin Pull up following revision(s) (requested by skrll in ticket #1469):

libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.49
libexec/ld.elf_so/arch/hppa/rtld_start.S: revision 1.14

Set DP early so that any binary functions that override others get the
right value if they're called before _start. This is true of bash where
it provides its own getenv.

Part of port-hppa/56118: sporadic app crashes in HPPA -current
 1.49.2.3 08-Aug-2024  martin Additionally clean up for ticket #779, requested by skrll:

libexec/ld.elf_so/arch/hppa/hppa_reloc.c 1.53

KNF and remove trailing whitespace in previous.
 1.49.2.2 08-Aug-2024  martin Pull up following revision(s) (requested by macallan in ticket #779):

libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.52

skip R_PARISC_NONE reloc entries instead of segfaulting on them
now windowmaker runs on my C360
 1.49.2.1 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #297):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44
(all via patch)

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen
(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.
(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.
(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.
PR pkg/57445
Fix MKDEBUGLIB build by adding these installed files to the debug
set list.
XXX
One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.
Fix markup of libh_ MKDEBUGLIB=yes only files
TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.50.2.1 02-Aug-2025  perseant Sync with HEAD
 1.3 17-May-2004  skrll Fix the dynamic linker for hppa using ELF.

Lazy binding doesn't work 100% of the time so force immediate binding.
One possible reason is that the PLT stub blows away r20 which the
compiler might not take into account.
 1.2 06-Oct-2003  matt Update to new reality. XXX _rtld_bind still needs to be written.
 1.1 10-Jul-2002  fredette Add support for dynamic linking on HP PA-RISC.
 1.2 05-Dec-2011  skrll Remove unused file.
 1.1 14-Mar-2011  skrll branches: 1.1.4;
First cut at mdtls.c for hppa.
 1.1.4.1 17-Apr-2012  yamt sync with head
 1.14 30-May-2022  skrll Set DP early so that any binary functions that override others get the
right value if they're called before _start. This is true of bash where
it provides its own getenv.

Part of port-hppa/56118: sporadic app crashes in HPPA -current
 1.13 10-May-2020  skrll Trailing whitespace
 1.12 06-Jan-2012  skrll branches: 1.12.42;
Implement lazy binding on hppa. rump_server needs it!?!?!

Mostly from OpenBSD.
 1.11 30-Sep-2011  mrg branches: 1.11.2;
match EXIT() with LEAF_ENTRY() so that sizes are actually constants.
fixes binutils 2.21 build issues reported by he and chuq.
 1.10 10-Mar-2011  skrll Whitespace.
 1.9 30-Sep-2010  skrll Add the magic branch instruction that is used by GCC's
__canonicalize_funcptr_for_compare() function to fixup relocations in
order to do function pointer comparisons.

From OpenBSD.
 1.8 24-Sep-2010  skrll Wrap long lines

Reformat comments.
 1.7 09-Jan-2010  skrll Small tidyup.
 1.6 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.5 16-Oct-2006  skrll branches: 1.5.16;
Reformat a comment.
 1.4 16-Oct-2006  skrll Correct the frame size for a couple of ENTRYs
 1.3 17-May-2004  skrll Fix the dynamic linker for hppa using ELF.

Lazy binding doesn't work 100% of the time so force immediate binding.
One possible reason is that the PLT stub blows away r20 which the
compiler might not take into account.
 1.2 06-Oct-2003  matt Update to new reality. XXX _rtld_bind still needs to be written.
 1.1 10-Jul-2002  fredette Add support for dynamic linking on HP PA-RISC.
 1.5.16.1 18-May-2008  yamt sync with head.
 1.11.2.1 17-Apr-2012  yamt sync with head
 1.12.42.1 10-Jun-2022  martin Pull up following revision(s) (requested by skrll in ticket #1469):

libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.49
libexec/ld.elf_so/arch/hppa/rtld_start.S: revision 1.14

Set DP early so that any binary functions that override others get the
right value if they're called before _start. This is true of bash where
it provides its own getenv.

Part of port-hppa/56118: sporadic app crashes in HPPA -current
 1.15 03-Apr-2018  joerg Rework ifunc support to address a number of short comings:
- Move to a shared _rtld_call_ifunc for rel and rela architectures
- Architectures using rel format must patch IRELATIVE non-PLT
relocations like RELATIVE in additition to the later ifunc handling
- Consistently record the delta to the end of the relocation group for
non-PLT IRELATIVE relocations

Hidden ifunc is now supported on all ifunc platforms, even when using
-fno-plt. The combination of -fno-plt and relro is broken due to
incorrect GNU ld output though.
 1.14 13-Dec-2009  mrg branches: 1.14.44;
simplify the logic for compat ld.elf_so and move it here. we now can
find the libc objdir for multiple compat ld.elf_so's, too.
 1.13 13-Dec-2009  mrg rename LD32DIR to MLIBDIR.
 1.12 06-Jan-2009  mrg move the defines for RTLD_ARCH_SUBDIR into a sub-sub-makefile so we can
grab these values via reach-over more easily.
 1.11 26-Oct-2008  mrg branches: 1.11.2;
if LD32DIR is defined:
- look in src/compat/lib/libc for libc_pic.
- define RTLD_ARCH_SUBDIR to "i386" or "sparc" for amd64 and sparc64
builds, respectively
if RTLD_ARCH_SUBDIR is defined, add this path before
RTLD_DEFAULT_LIBRARY_PATH in the default search path.
 1.10 04-Jun-2005  lukem Explicitly prefix ld(1) options in LDFLAGS with "-Wl," rather than
using the ${LDFLAGS:@F@-Wl,$F@} make substitution because that breaks
if LDFLAGS is already set.
 1.9 21-Feb-2004  skrll Move common LDFLAGS into Makefile from arch/*/Makefile.inc
 1.8 20-Feb-2004  skrll Whitespace.
 1.7 11-Sep-2002  mycroft Split the `self' case out of _rtld_relocate_nonplt_objects, into a new function
_rtld_relocate_nonplt_self(), which is called from _rtld_start.
Now we're completely relocated before main() is called.
We also no longer need _GOT_END_, so junk the ld script.

This code assumes that ld.elf_so only contains RELATIVE relocs, but that's
supposed to be the case for -Bsymbolic anyway.
 1.6 09-Sep-2002  mycroft Get rid of RTLD_RELOCATE_SELF on i386.
* Add a ld.so.script that exports _GOT_END_.
* Prebind the GOT in _rtld_start.
* Skip over GOT relocs in _rtld_relocate_nonplt_objects().
This makes debugging work better at least.
 1.5 05-Sep-2002  mycroft Make _rtld_setup_pltgot() a consistent interface on all platforms.
 1.4 20-Dec-2001  thorpej branches: 1.4.2;
Grumble. Put compiler options back into CPPFLAGS for now, since
they're needed to build .S files with the correct PIC options.

XXX Really needs cleanup in <bsd.*.mk> to do this properly.
 1.3 14-Dec-2001  thorpej Don't put compiler options into CPPFLAGS.
 1.2 24-Feb-1999  christos Cleanup global variable access so rtld can be self relocating. Also KNF
reloc.c and move md sparc parts to arch/sparc/mdreloc.c
Now we don't need to load at address 0 on the i386 and the mips should be
trivial to fix.
 1.1 10-Jan-1999  christos Add i386 bits. Only works with -fpic or -fPIC compiled binaries since
COPY relocations don't work.
 1.4.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.11.2.2 06-Jan-2011  riz Apply patch (requested by mrg in ticket #1499):

src/compat version 2. this allows building any number of alternate
library / program target ABIs. rather than duplicating the list of
subdirs and Makefiles to build, it re-traverses the necessary ones.
details:
- add support for MAKEDIRTARGETENV to share/mk
- renames LD32DIR to MLIBDIR
- fixes library builds for some subdirs (more was built than needed)
- fixes /bin & /sbin apps in compat mode
- reduces complexity in src/compat and the rest of the tree
- updates ldd netbsd32 support
 1.11.2.1 16-Jan-2009  bouyer branches: 1.11.2.1.4;
Pull up following revision(s) (requested by mrg in ticket #265):
libexec/ld.elf_so/headers.c: revision 1.27
rescue/list: revision 1.35
libexec/ld.elf_so/arch/sparc/Makefile.ld32: revision 1.1
usr.bin/ldd/Makefile.elf: revision 1.1
usr.bin/ldd/Makefile.elf: revision 1.2
usr.bin/ldd/ldd_aout/ldd.c: file removal
usr.bin/ldd/Makefile.elf: revision 1.3
libexec/ld.elf_so/arch/sparc/Makefile.inc: revision 1.12
usr.bin/ldd/dummy.c: revision 1.1
gnu/usr.bin/binutils/ld/Makefile: revision 1.28
usr.bin/ldd/elf32/Makefile: revision 1.1
usr.bin/ldd/elf32/Makefile: revision 1.2
usr.bin/ldd/ldd.c: revision 1.3
usr.bin/ldd/elf32/Makefile: revision 1.3
usr.bin/ldd/ldd_elf/Makefile: file removal
usr.bin/ldd/ldd.h: revision 1.1
usr.bin/ldd/ldd.c: revision 1.4
usr.bin/ldd/ldd_aout.c: revision 1.1
usr.bin/ldd/Makefile: revision 1.8
usr.bin/ldd/Makefile: revision 1.9
usr.bin/ldd/ldd_elfxx.c: revision 1.1
libexec/ld.elf_so/map_object.c: revision 1.37
usr.bin/ldd/ldd_aout/Makefile: file removal
usr.bin/ldd/elf64/Makefile: revision 1.1
rescue/Makefile: revision 1.22
libexec/ld.elf_so/arch/i386/Makefile.ld32: revision 1.1
usr.bin/ldd/ldd_elf/ldd.c: file removal
usr.bin/ldd/elf64/Makefile: revision 1.2
usr.bin/ldd/elf64/Makefile: revision 1.3
usr.bin/ldd/aout/Makefile: revision 1.1
libexec/ld.elf_so/arch/i386/Makefile.inc: revision 1.12
rescue/list.ldd: revision 1.1
usr.bin/ldd/ldd_elf/README: file removal
usr.bin/ldd/Makefile.common: revision 1.1
move the defines for RTLD_ARCH_SUBDIR into a sub-sub-makefile so we can
grab these values via reach-over more easily.
some fixes for PR#40170:
- set NATIVE=yes in the environment for genscripts.sh
- set LIB_PATH to /usr/lib/{sparc,i386} for those scripts
- set use_sysroot to "yes", to enable LIB_PATH to work in genscripts.sh
- get rid of building an a.out-happy ldd (but keep supporting a.out
binaries for the ELF version.)
- convert a.out, elf32 and elf64 support into convience libraries and
link them right ones in. if elf_ldd() fails on 64 bit platforms,
try elf32_ldd() before aout_ldd().
now ldd on 64 bit platforms works for 32 bit binaries, aka PR#40199,
and it seems that all the issues from README are gone too.
add some (uintptr_t) to some casts, so these compile with ELFSIZE=32
*and _LP64. necessary for 32/64 bit combo ldd support.
- rework this a bunch to make it work inside /rescue/ldd.
- fix alpha build.
make sure we set LIBISPRIVATE.
fixes build issues reported by moof.
make sure we set LIBISPRIVATE.
fixes build issues reported by moof.
 1.11.2.1.4.1 14-Dec-2009  mrg merge from -current:
>rename LD32DIR to MLIBDIR.

>- adjust the logic for compat ldd: add an elf32_compat module and arrange
> for mips64 to build this with MLIBDIR set to o32
>- make mips64 ldd call elf32_compat_ldd as well
>- make mips64 elf64 set MLIBDIR to 64
>- don't need ld.elf_so's Makefile.ld32 files anymore (they are going away
> soon anyway)
>
>tested on amd64 and sparc64, and an earlier version tested on mips64.

>if BSD_MK_COMPAT_FILE is defined, .include it.

>simplify the logic for compat ld.elf_so and move it here. we now can
>find the libc objdir for multiple compat ld.elf_so's, too.
 1.14.44.1 07-Apr-2018  pgoyette Sync with HEAD. 77 conflicts resolved - all of them $NetBSD$
 1.2 13-Dec-2009  mrg simplify the logic for compat ld.elf_so and move it here. we now can
find the libc objdir for multiple compat ld.elf_so's, too.
 1.1 06-Jan-2009  mrg branches: 1.1.2;
move the defines for RTLD_ARCH_SUBDIR into a sub-sub-makefile so we can
grab these values via reach-over more easily.
 1.1.2.3 06-Jan-2011  riz Apply patch (requested by mrg in ticket #1499):

src/compat version 2. this allows building any number of alternate
library / program target ABIs. rather than duplicating the list of
subdirs and Makefiles to build, it re-traverses the necessary ones.
details:
- add support for MAKEDIRTARGETENV to share/mk
- renames LD32DIR to MLIBDIR
- fixes library builds for some subdirs (more was built than needed)
- fixes /bin & /sbin apps in compat mode
- reduces complexity in src/compat and the rest of the tree
- updates ldd netbsd32 support
 1.1.2.2 16-Jan-2009  bouyer branches: 1.1.2.2.4;
Pull up following revision(s) (requested by mrg in ticket #265):
libexec/ld.elf_so/headers.c: revision 1.27
rescue/list: revision 1.35
libexec/ld.elf_so/arch/sparc/Makefile.ld32: revision 1.1
usr.bin/ldd/Makefile.elf: revision 1.1
usr.bin/ldd/Makefile.elf: revision 1.2
usr.bin/ldd/ldd_aout/ldd.c: file removal
usr.bin/ldd/Makefile.elf: revision 1.3
libexec/ld.elf_so/arch/sparc/Makefile.inc: revision 1.12
usr.bin/ldd/dummy.c: revision 1.1
gnu/usr.bin/binutils/ld/Makefile: revision 1.28
usr.bin/ldd/elf32/Makefile: revision 1.1
usr.bin/ldd/elf32/Makefile: revision 1.2
usr.bin/ldd/ldd.c: revision 1.3
usr.bin/ldd/elf32/Makefile: revision 1.3
usr.bin/ldd/ldd_elf/Makefile: file removal
usr.bin/ldd/ldd.h: revision 1.1
usr.bin/ldd/ldd.c: revision 1.4
usr.bin/ldd/ldd_aout.c: revision 1.1
usr.bin/ldd/Makefile: revision 1.8
usr.bin/ldd/Makefile: revision 1.9
usr.bin/ldd/ldd_elfxx.c: revision 1.1
libexec/ld.elf_so/map_object.c: revision 1.37
usr.bin/ldd/ldd_aout/Makefile: file removal
usr.bin/ldd/elf64/Makefile: revision 1.1
rescue/Makefile: revision 1.22
libexec/ld.elf_so/arch/i386/Makefile.ld32: revision 1.1
usr.bin/ldd/ldd_elf/ldd.c: file removal
usr.bin/ldd/elf64/Makefile: revision 1.2
usr.bin/ldd/elf64/Makefile: revision 1.3
usr.bin/ldd/aout/Makefile: revision 1.1
libexec/ld.elf_so/arch/i386/Makefile.inc: revision 1.12
rescue/list.ldd: revision 1.1
usr.bin/ldd/ldd_elf/README: file removal
usr.bin/ldd/Makefile.common: revision 1.1
move the defines for RTLD_ARCH_SUBDIR into a sub-sub-makefile so we can
grab these values via reach-over more easily.
some fixes for PR#40170:
- set NATIVE=yes in the environment for genscripts.sh
- set LIB_PATH to /usr/lib/{sparc,i386} for those scripts
- set use_sysroot to "yes", to enable LIB_PATH to work in genscripts.sh
- get rid of building an a.out-happy ldd (but keep supporting a.out
binaries for the ELF version.)
- convert a.out, elf32 and elf64 support into convience libraries and
link them right ones in. if elf_ldd() fails on 64 bit platforms,
try elf32_ldd() before aout_ldd().
now ldd on 64 bit platforms works for 32 bit binaries, aka PR#40199,
and it seems that all the issues from README are gone too.
add some (uintptr_t) to some casts, so these compile with ELFSIZE=32
*and _LP64. necessary for 32/64 bit combo ldd support.
- rework this a bunch to make it work inside /rescue/ldd.
- fix alpha build.
make sure we set LIBISPRIVATE.
fixes build issues reported by moof.
make sure we set LIBISPRIVATE.
fixes build issues reported by moof.
 1.1.2.1 06-Jan-2009  bouyer file Makefile.ld32 was added on branch netbsd-5 on 2009-01-16 22:21:30 +0000
 1.1.2.2.4.1 14-Dec-2009  mrg merge from -current:
>rename LD32DIR to MLIBDIR.

>- adjust the logic for compat ldd: add an elf32_compat module and arrange
> for mips64 to build this with MLIBDIR set to o32
>- make mips64 ldd call elf32_compat_ldd as well
>- make mips64 elf64 set MLIBDIR to 64
>- don't need ld.elf_so's Makefile.ld32 files anymore (they are going away
> soon anyway)
>
>tested on amd64 and sparc64, and an earlier version tested on mips64.

>if BSD_MK_COMPAT_FILE is defined, .include it.

>simplify the logic for compat ld.elf_so and move it here. we now can
>find the libc objdir for multiple compat ld.elf_so's, too.
 1.2 11-Sep-2002  mycroft Split the `self' case out of _rtld_relocate_nonplt_objects, into a new function
_rtld_relocate_nonplt_self(), which is called from _rtld_start.
Now we're completely relocated before main() is called.
We also no longer need _GOT_END_, so junk the ld script.

This code assumes that ld.elf_so only contains RELATIVE relocs, but that's
supposed to be the case for -Bsymbolic anyway.
 1.1 09-Sep-2002  mycroft Get rid of RTLD_RELOCATE_SELF on i386.
* Add a ld.so.script that exports _GOT_END_.
* Prebind the GOT in _rtld_start.
* Skip over GOT relocs in _rtld_relocate_nonplt_objects().
This makes debugging work better at least.
 1.48 16-Apr-2025  riastradh ld.elf_so/arch/i386: Add ELF references.

Also copy the copyright notice from the file this one was originally
derived from back in 2002.
 1.47 30-Nov-2024  christos Create a new header lwp_private.h to contain _lwp_getprivate_fast,
_lwp_gettcb_fast, _lwp_settcb and remove them from mcontext.h, so that:
1. we don't need special hacks to hide them
2. we can include <lwp.h> where needed to get the necessary prototypes
without redefining them locally.
 1.46 04-Nov-2024  christos Undo previous lwp.h change
 1.45 03-Nov-2024  christos Split __lwp_getprivate_fast and __lwp_*tcb from mcontext.h into a separate
lwp.h file.
 1.44 03-Aug-2024  riastradh ld.elf_so(1): Nix trailing whitespace.

No functional change intended.
 1.43 04-Jun-2023  martin branches: 1.43.2;
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
 1.42 04-Jun-2023  joerg Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).

Fix this by forcing the computation of the correct DSO (the one defining
the symbol).

This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
 1.41 03-Apr-2018  joerg branches: 1.41.4; 1.41.12;
Rework ifunc support to address a number of short comings:
- Move to a shared _rtld_call_ifunc for rel and rela architectures
- Architectures using rel format must patch IRELATIVE non-PLT
relocations like RELATIVE in additition to the later ifunc handling
- Consistently record the delta to the end of the relocation group for
non-PLT IRELATIVE relocations

Hidden ifunc is now supported on all ifunc platforms, even when using
-fno-plt. The combination of -fno-plt and relro is broken due to
incorrect GNU ld output though.
 1.40 06-Nov-2017  joerg branches: 1.40.2;
init/fini for the main program is handled by crt0.o, so ifunc handling
is skipped right now as it iterates the same list. Don't repeat that
mistake and explicitly take care of it in the dynamic linker.
 1.39 10-Aug-2017  joerg Add IRELATIVE support for ARM, X86 and PowerPC.
 1.38 19-Jun-2017  joerg Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.

The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.

Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
 1.37 31-Aug-2014  joerg branches: 1.37.8;
Remove (now duplicated) target computation.
 1.36 25-Aug-2014  joerg Add basic support for indirect functions. It allows providing a public
function symbol with an implementation choosen at run time.
Refactor calls to functions by address in ld.elf_so to create temporary
function descriptors on the stack, if the address is not leaked outside.

Limitations:
- no support for initialising static storage with function pointers
- no support for unnamed resolver functions

Inspired by FreeBSD's r228435 by kib@freebsd.org.
 1.35 07-Nov-2012  apb branches: 1.35.8;
Add support for R_386_TLS_TPOFF32. This patch was created by
Nick Hudson for PR 47061.
 1.34 25-Mar-2011  joerg branches: 1.34.4; 1.34.6; 1.34.10;
Add basic locking to ld.elf_so.
 1.33 12-Mar-2011  joerg Add TLS support for AMD64, i386 and SH3.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.
 1.32 06-Aug-2010  joerg Reduce header pollution for mdreloc.c. Make Obj_Entry argument of
_rtld_relocate_nonplt_objects non-const in preparation for TLS support.
 1.31 14-Jan-2010  skrll Wrap a few long lines.
 1.30 13-Jan-2010  skrll Shut gcc up.
 1.29 13-Jan-2010  christos PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
 1.28 29-Aug-2009  jmmv Remove trailing \n in calls to _rtld_error: a newline is automatically
added by a call to the function.
 1.27 16-Mar-2009  lukem Fix const issues (cast const pointers to "const uint8_t *" instead of "caddr_t")
 1.26 24-Jul-2008  matt branches: 1.26.4; 1.26.6;
Refactor common code to _rtld_relocate_plt_object to i386 and arm so they
act like the other versions.
In _rtld_bind, if the result is 0, call _rtld_die.
Initialize _rtld_sym_zero.st_value to -_rtld_objself.maprelocbase. Now when
the symbol is resolved, st_value + maprelocbase will equal 0 and the above
check in _rtld_bind will fire and a call to NULL will be avoided.
 1.25 23-Jul-2008  christos abort() if we are trying to use an undefined weak symbol from the plt. Remove
check from relocate_plt_object() since we cannot return _rtld_sym_zero anymore.
Code from gimpy.
 1.24 22-Jul-2008  christos handle sym_zero like x86_64; other ports might need this too.
 1.23 23-Feb-2007  matt branches: 1.23.12;
Remove MD COMBRELOC support since it's now MI.
Enable COMBRELOC for all arches
 1.22 18-Mar-2006  christos Coverity CID 923: Avoid NULL deref.
 1.21 20-Aug-2005  skrll Add __RCSID.
 1.20 01-Jun-2005  lukem appease gcc -Wuninitialized
 1.19 24-Jul-2003  skrll branches: 1.19.4;
ANSIfy and de-__P().
 1.18 03-Oct-2002  mycroft Skip the lazy PLT relocation if relocbase==0 (useful if libraries are loaded
at their VMA address).
 1.17 26-Sep-2002  mycroft Remove the `self' args to _rtld_relocate_objects() and
_rtld_relocate_nonplt_objects().
 1.16 25-Sep-2002  mycroft Push the _rtld_bind() interface into MD code -- it's just a trivial wrapper
anyway.
 1.15 17-Sep-2002  junyoung Make immediate binding work again by actually implementing
_rtld_relocate_plt_objects(). Note that this is for i386 only;
any efforts to make it work on other platforms are left to
those who are using them...
 1.14 12-Sep-2002  mycroft Nuke -DRTLD_RELOCATE_SELF and `dodebug' from orbit.
 1.13 12-Sep-2002  mycroft _rtld_bind_start() is not used in MI code, so declare it in the MD code.
 1.12 11-Sep-2002  mycroft Split the `self' case out of _rtld_relocate_nonplt_objects, into a new function
_rtld_relocate_nonplt_self(), which is called from _rtld_start.
Now we're completely relocated before main() is called.
We also no longer need _GOT_END_, so junk the ld script.

This code assumes that ld.elf_so only contains RELATIVE relocs, but that's
supposed to be the case for -Bsymbolic anyway.
 1.11 11-Sep-2002  junyoung Add $NetBSD$.
 1.10 09-Sep-2002  mycroft Get rid of RTLD_RELOCATE_SELF on i386.
* Add a ld.so.script that exports _GOT_END_.
* Prebind the GOT in _rtld_start.
* Skip over GOT relocs in _rtld_relocate_nonplt_objects().
This makes debugging work better at least.
 1.9 06-Sep-2002  mycroft Pass down an additional flag to _rtld_relocate_nonplt_objects() which
indicates whether we're relocating ld.elf_so itself. Use this in some places
rather than hackish tests on `dodebug'. (The Alpha and HPPA `dodebug' tests
were actually noops, because RTLD_RELOCATE_SELF is not set, and therefore
dodebug is always true.)
 1.8 06-Sep-2002  mycroft Introduce a new flag, `isdynamic', which is used to remember whether the
executable was of type ET_DYN. Use this instead of `mainprog' to determine
whether we need to do base-relative fixups of the PLT. (This allows loading
non-relocatable objects, should we desire to do that at some point...)
 1.7 06-Sep-2002  mycroft Re-poison a lot of consts, now that the mark shite is gone.
 1.6 06-Sep-2002  mycroft Split _rtld_relocate_plt_object() into two MD functions:
* _rtld_relocate_plt_lazy() fixes up all the relocs pointing to the PLT. (On
most platforms it just does a simple base-relative fixup; on SPARC it does
nothing.)
* _rtld_relocate_plt_object() does immediate binding for a PLT entry.
The basic gist is that this saves a bit of time on SPARC (where the iteration
through the pltrela table was gratuitous), and a little less time on all other
platforms. A whole lot of #ifdef'ed crap is moved out of reloc.c, too.

NOT tested on: hppa sh x86_64
 1.5 05-Sep-2002  mycroft Partially fix up some debug printf()s that don't need to use defobj.
 1.4 05-Sep-2002  mycroft A few things:
* Pass a symbol number to _rtld_find_symdef(), not a r_info.
* Don't try to do a symbol lookup when we find an unsupported relocation;
instead get the symbol name from the referencing object's strtab.
* Add preliminary support for `-z combreloc'-style startup optimization on
i386, `#ifdef COMBRELOC'.
 1.3 05-Sep-2002  mycroft Rename _rtld_relocate_nonplt_object() to _rtld_relocate_nonplt_objects(),
and push the outer loop into it. This actually shaves a couple % off startup
time at least on PCs.
 1.2 05-Sep-2002  mycroft Split _rtld_relocate_nonplt_object() into separate MD files.
 1.1 05-Sep-2002  mycroft Make _rtld_setup_pltgot() a consistent interface on all platforms.
 1.19.4.2 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.19.4.1 24-Jul-2003  tron file mdreloc.c was added on branch netbsd-1-6 on 2004-05-28 08:31:22 +0000
 1.23.12.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.26.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.26.4.1 17-Mar-2012  bouyer Pull up following revision(s) via patch (requested by skrll in ticket #1724):
rescue/list.ldd: revision 1.4
lib/libc/dlfcn/dlfcn_elf.c: revision 1.7
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.57
distrib/sets/lists/comp/mi: revision 1.1512
share/man/man3/Makefile: revision 1.56
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.58
usr.bin/ldd/ldd.c: revision 1.15
libexec/ld.elf_so/rtld.h: revision 1.84
share/man/man3/dl_iterate_phdr.3: revision 1.1
libexec/ld.elf_so/rtld.c: revision 1.129
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.44
libexec/ld.elf_so/rtld.h: revision 1.89
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.36
libexec/ld.elf_so/map_object.c: revision 1.41
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.37
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.46
include/link_elf.h: revision 1.10
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.29
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.26
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.34
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.31
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.35
libexec/ld.elf_so/Makefile: revision 1.94
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.32
libexec/ld.elf_so/Makefile: revision 1.95
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.31
libexec/ld.elf_so/Makefile: revision 1.96
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.32
libexec/ld.elf_so/reloc.c: revision 1.98
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.33
sys/sys/exec_elf.h: revision 1.106
libexec/ld.elf_so/rtld.c: revision 1.130
libexec/ld.elf_so/load.c: revision 1.37
libexec/ld.elf_so/rtld.c: revision 1.131
libexec/ld.elf_so/load.c: revision 1.38
libexec/ld.elf_so/rtld.h: revision 1.90
libexec/ld.elf_so/headers.c: revision 1.36
libexec/ld.elf_so/rtld.h: revision 1.95
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.30
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.25
libexec/ld.elf_so/symbol.c: revision 1.50
libexec/ld.elf_so/symbol.c: revision 1.51
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.43
libexec/ld.elf_so/symbol.c: revision 1.52
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.27
libexec/ld.elf_so/symbol.c: revision 1.54
PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
Implement dl_iterate_phdr.
Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.34.10.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.34.6.1 18-Nov-2012  msaitoh Pull up following revision(s) (requested by apb in ticket #667):
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.35
Add support in ld.elf_so for relocation type R_386_TLS_TPOFF32.
Fixes PR#47061.
 1.34.4.1 16-Jan-2013  yamt sync with (a bit old) head
 1.35.8.1 06-Mar-2016  martin Catch up to -current, via patch, requested by christos in ticket #1126:
 1.37.8.1 04-Jul-2017  martin Pull up following revision(s) (requested by joerg in ticket #64):
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.40
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.41
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.44
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.60
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.32
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.61
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.2
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.50
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.34
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.39
libexec/ld.elf_so/symbol.c: revision 1.68
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.66
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.67
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.68
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.42
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.54
libexec/ld.elf_so/Makefile: revision 1.137
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.32
libexec/ld.elf_so/rtld.h: revision 1.127
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.38
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.42
libexec/ld.elf_so/map_object.c: revision 1.58
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.49
Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.
The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.
Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
Drop symbol number from default branch diagnostic, it isn't set at this
point and most likely not valid either.
Expand symnum, GCC's uninitialized used tracking is too imprecise.
Fix C&P bug. Deal with more MIPS hacks overriding def.
Add last_symnum, move up def and defobj.
Add back symnum, fix debug print.
Replace last use of r_type.
Fix indentation.
Fix indentation.
 1.40.2.1 07-Apr-2018  pgoyette Sync with HEAD. 77 conflicts resolved - all of them $NetBSD$
 1.41.12.1 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #297):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44
(all via patch)

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen
(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.
(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.
(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.
PR pkg/57445
Fix MKDEBUGLIB build by adding these installed files to the debug
set list.
XXX
One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.
Fix markup of libh_ MKDEBUGLIB=yes only files
TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.41.4.1 04-Aug-2023  martin Pull up following revision(s), all via patch,
(requested by riastradh in ticket #1699):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.

This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.

PR pkg/57445

Fix MKDEBUGLIB build by adding these installed files to the debug
set list.

One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.

Fix markup of libh_ MKDEBUGLIB=yes only files

TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.43.2.1 02-Aug-2025  perseant Sync with HEAD
 1.11 05-Dec-2010  joerg Build ld.elf_so with -fvisibility=hidden. Exploit this for i386/x86_64
to simplify the assembler code.
 1.10 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.9 02-Mar-2003  mycroft branches: 1.9.30;
Shorten rtld_start() by 2 instructions or 8 bytes, and make it not use GOT
entries.
 1.8 25-Sep-2002  mycroft We don't need to save quite as many registers in the stub.
 1.7 12-Sep-2002  mycroft Update comments.
 1.6 12-Sep-2002  mycroft Pass the calculated relocation offset down to _rtld().
 1.5 11-Sep-2002  mycroft Split the `self' case out of _rtld_relocate_nonplt_objects, into a new function
_rtld_relocate_nonplt_self(), which is called from _rtld_start.
Now we're completely relocated before main() is called.
We also no longer need _GOT_END_, so junk the ld script.

This code assumes that ld.elf_so only contains RELATIVE relocs, but that's
supposed to be the case for -Bsymbolic anyway.
 1.4 09-Sep-2002  mycroft Get rid of RTLD_RELOCATE_SELF on i386.
* Add a ld.so.script that exports _GOT_END_.
* Prebind the GOT in _rtld_start.
* Skip over GOT relocs in _rtld_relocate_nonplt_objects().
This makes debugging work better at least.
 1.3 19-Feb-1999  christos branches: 1.3.12;
Remove unneeded args for rtld (kleink)
 1.2 12-Feb-1999  christos Be consistant about the .rtld_start and _rtld_start
 1.1 10-Jan-1999  christos Add i386 bits. Only works with -fpic or -fPIC compiled binaries since
COPY relocations don't work.
 1.3.12.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.9.30.1 18-May-2008  yamt sync with head.
 1.10 04-Jun-2005  lukem Explicitly prefix ld(1) options in LDFLAGS with "-Wl," rather than
using the ${LDFLAGS:@F@-Wl,$F@} make substitution because that breaks
if LDFLAGS is already set.
 1.9 21-Feb-2004  skrll Move common LDFLAGS into Makefile from arch/*/Makefile.inc
 1.8 20-Feb-2004  skrll Whitespace.
 1.7 24-Sep-2002  mycroft Remove vestiges of VARPSZ.
 1.6 11-Sep-2002  mycroft Add a _rtld_relocate_nonplt_self() here too.
 1.5 05-Sep-2002  mycroft Make _rtld_setup_pltgot() a consistent interface on all platforms.
 1.4 20-Dec-2001  thorpej branches: 1.4.2;
Grumble. Put compiler options back into CPPFLAGS for now, since
they're needed to build .S files with the correct PIC options.

XXX Really needs cleanup in <bsd.*.mk> to do this properly.
 1.3 14-Dec-2001  thorpej Don't put compiler options into CPPFLAGS.
 1.2 21-Dec-2000  scw Define VARPSZ so dynamic binaries work on both 4K and 8K page size machines.
 1.1 29-Apr-1999  kleink Add m68k code.
 1.4.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.37 18-Apr-2025  riastradh ld.elf_so/arch/m68k: Cite reference for m68k elf relocations.

Missing anything about thread-local storage; presumably TLS support
on m68k is a gnuish invention.

PR lib/58455: Missing references for processor-specific ELF
relocation semantics
 1.36 16-Apr-2025  riastradh ld.elf_so/arch/m68k: Add copyright notice from the original.

The bulk of mdreloc.c was copied from libexec/ld.elf_so/reloc.c
rev. 1.58.

XXX Still need some elven references -- any m68k wizards have this
lore handy in their libraries?
 1.35 30-Nov-2024  christos Create a new header lwp_private.h to contain _lwp_getprivate_fast,
_lwp_gettcb_fast, _lwp_settcb and remove them from mcontext.h, so that:
1. we don't need special hacks to hide them
2. we can include <lwp.h> where needed to get the necessary prototypes
without redefining them locally.
 1.34 04-Jun-2023  joerg branches: 1.34.2;
Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).

Fix this by forcing the computation of the correct DSO (the one defining
the symbol).

This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
 1.33 10-Aug-2017  joerg branches: 1.33.6; 1.33.14;
Add IRELATIVE support for ARM, X86 and PowerPC.
 1.32 19-Jun-2017  joerg Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.

The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.

Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
 1.31 14-Apr-2016  skrll branches: 1.31.8;
Remove duplicated __RCSIDs I added years ago - I blame CVS.

Spotted by Miod Vallat
 1.30 25-Aug-2014  joerg Add basic support for indirect functions. It allows providing a public
function symbol with an implementation choosen at run time.
Refactor calls to functions by address in ld.elf_so to create temporary
function descriptors on the stack, if the address is not leaked outside.

Limitations:
- no support for initialising static storage with function pointers
- no support for unnamed resolver functions

Inspired by FreeBSD's r228435 by kib@freebsd.org.
 1.29 22-Nov-2011  joerg branches: 1.29.18;
Add TLS support for m68k.
 1.28 25-Mar-2011  joerg branches: 1.28.4;
Add basic locking to ld.elf_so.
 1.27 06-Aug-2010  joerg Reduce header pollution for mdreloc.c. Make Obj_Entry argument of
_rtld_relocate_nonplt_objects non-const in preparation for TLS support.
 1.26 14-Jan-2010  skrll Wrap a few long lines.
 1.25 13-Jan-2010  christos PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
 1.24 29-Aug-2009  jmmv Remove trailing \n in calls to _rtld_error: a newline is automatically
added by a call to the function.
 1.23 16-Mar-2009  lukem Fix const issues (cast const pointers to "const uint8_t *" instead of "caddr_t")

NOTE: change based on ../i386/mdreloc.c 1.27
XXX: not compile tested
 1.22 24-Jul-2008  skrll branches: 1.22.4; 1.22.6;
RCSID police
 1.21 24-Jul-2008  matt Refactor common code to _rtld_relocate_plt_object to i386 and arm so they
act like the other versions.
In _rtld_bind, if the result is 0, call _rtld_die.
Initialize _rtld_sym_zero.st_value to -_rtld_objself.maprelocbase. Now when
the symbol is resolved, st_value + maprelocbase will equal 0 and the above
check in _rtld_bind will fire and a call to NULL will be avoided.
 1.20 20-May-2006  mrg branches: 1.20.20;
in _rtld_bind() initialise result to appease GCC4.
 1.19 20-Aug-2005  skrll Add __RCSID.
 1.18 26-Jul-2005  skrll Support immediate PLT binding on m68k. Tested on NetBSD/sun3 using the new
version of tme.

Not far now...
 1.17 24-Jul-2003  skrll branches: 1.17.4;
ANSIfy and de-__P().
 1.16 03-Oct-2002  mycroft Skip the lazy PLT relocation if relocbase==0 (useful if libraries are loaded
at their VMA address).
 1.15 26-Sep-2002  mycroft Remove the `self' args to _rtld_relocate_objects() and
_rtld_relocate_nonplt_objects().
 1.14 25-Sep-2002  mycroft Push the _rtld_bind() interface into MD code -- it's just a trivial wrapper
anyway.
 1.13 12-Sep-2002  mycroft Nuke -DRTLD_RELOCATE_SELF and `dodebug' from orbit.
 1.12 12-Sep-2002  mycroft _rtld_bind_start() is not used in MI code, so declare it in the MD code.
 1.11 11-Sep-2002  mycroft Add a _rtld_relocate_nonplt_self() here too.
 1.10 11-Sep-2002  junyoung Add $NetBSD$.
 1.9 06-Sep-2002  mycroft Pass down an additional flag to _rtld_relocate_nonplt_objects() which
indicates whether we're relocating ld.elf_so itself. Use this in some places
rather than hackish tests on `dodebug'. (The Alpha and HPPA `dodebug' tests
were actually noops, because RTLD_RELOCATE_SELF is not set, and therefore
dodebug is always true.)
 1.8 06-Sep-2002  mycroft Introduce a new flag, `isdynamic', which is used to remember whether the
executable was of type ET_DYN. Use this instead of `mainprog' to determine
whether we need to do base-relative fixups of the PLT. (This allows loading
non-relocatable objects, should we desire to do that at some point...)
 1.7 06-Sep-2002  mycroft Re-poison a lot of consts, now that the mark shite is gone.
 1.6 06-Sep-2002  mycroft Split _rtld_relocate_plt_object() into two MD functions:
* _rtld_relocate_plt_lazy() fixes up all the relocs pointing to the PLT. (On
most platforms it just does a simple base-relative fixup; on SPARC it does
nothing.)
* _rtld_relocate_plt_object() does immediate binding for a PLT entry.
The basic gist is that this saves a bit of time on SPARC (where the iteration
through the pltrela table was gratuitous), and a little less time on all other
platforms. A whole lot of #ifdef'ed crap is moved out of reloc.c, too.

NOT tested on: hppa sh x86_64
 1.5 05-Sep-2002  mycroft Partially fix up some debug printf()s that don't need to use defobj.
 1.4 05-Sep-2002  mycroft A few things:
* Pass a symbol number to _rtld_find_symdef(), not a r_info.
* Don't try to do a symbol lookup when we find an unsupported relocation;
instead get the symbol name from the referencing object's strtab.
* Add preliminary support for `-z combreloc'-style startup optimization on
i386, `#ifdef COMBRELOC'.
 1.3 05-Sep-2002  mycroft Rename _rtld_relocate_nonplt_object() to _rtld_relocate_nonplt_objects(),
and push the outer loop into it. This actually shaves a couple % off startup
time at least on PCs.
 1.2 05-Sep-2002  mycroft Split _rtld_relocate_nonplt_object() into separate MD files.
 1.1 05-Sep-2002  mycroft Make _rtld_setup_pltgot() a consistent interface on all platforms.
 1.17.4.2 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.17.4.1 24-Jul-2003  tron file mdreloc.c was added on branch netbsd-1-6 on 2004-05-28 08:31:22 +0000
 1.20.20.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.22.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.22.4.1 17-Mar-2012  bouyer Pull up following revision(s) via patch (requested by skrll in ticket #1724):
rescue/list.ldd: revision 1.4
lib/libc/dlfcn/dlfcn_elf.c: revision 1.7
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.57
distrib/sets/lists/comp/mi: revision 1.1512
share/man/man3/Makefile: revision 1.56
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.58
usr.bin/ldd/ldd.c: revision 1.15
libexec/ld.elf_so/rtld.h: revision 1.84
share/man/man3/dl_iterate_phdr.3: revision 1.1
libexec/ld.elf_so/rtld.c: revision 1.129
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.44
libexec/ld.elf_so/rtld.h: revision 1.89
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.36
libexec/ld.elf_so/map_object.c: revision 1.41
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.37
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.46
include/link_elf.h: revision 1.10
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.29
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.26
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.34
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.31
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.35
libexec/ld.elf_so/Makefile: revision 1.94
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.32
libexec/ld.elf_so/Makefile: revision 1.95
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.31
libexec/ld.elf_so/Makefile: revision 1.96
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.32
libexec/ld.elf_so/reloc.c: revision 1.98
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.33
sys/sys/exec_elf.h: revision 1.106
libexec/ld.elf_so/rtld.c: revision 1.130
libexec/ld.elf_so/load.c: revision 1.37
libexec/ld.elf_so/rtld.c: revision 1.131
libexec/ld.elf_so/load.c: revision 1.38
libexec/ld.elf_so/rtld.h: revision 1.90
libexec/ld.elf_so/headers.c: revision 1.36
libexec/ld.elf_so/rtld.h: revision 1.95
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.30
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.25
libexec/ld.elf_so/symbol.c: revision 1.50
libexec/ld.elf_so/symbol.c: revision 1.51
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.43
libexec/ld.elf_so/symbol.c: revision 1.52
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.27
libexec/ld.elf_so/symbol.c: revision 1.54
PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
Implement dl_iterate_phdr.
Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.28.4.1 17-Apr-2012  yamt sync with head
 1.29.18.1 06-Mar-2016  martin Catch up to -current, via patch, requested by christos in ticket #1126:
 1.31.8.1 04-Jul-2017  martin Pull up following revision(s) (requested by joerg in ticket #64):
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.40
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.41
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.44
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.60
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.32
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.61
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.2
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.50
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.34
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.39
libexec/ld.elf_so/symbol.c: revision 1.68
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.66
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.67
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.68
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.42
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.54
libexec/ld.elf_so/Makefile: revision 1.137
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.32
libexec/ld.elf_so/rtld.h: revision 1.127
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.38
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.42
libexec/ld.elf_so/map_object.c: revision 1.58
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.49
Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.
The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.
Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
Drop symbol number from default branch diagnostic, it isn't set at this
point and most likely not valid either.
Expand symnum, GCC's uninitialized used tracking is too imprecise.
Fix C&P bug. Deal with more MIPS hacks overriding def.
Add last_symnum, move up def and defobj.
Add back symnum, fix debug print.
Replace last use of r_type.
Fix indentation.
Fix indentation.
 1.33.14.1 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #297):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44
(all via patch)

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen
(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.
(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.
(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.
PR pkg/57445
Fix MKDEBUGLIB build by adding these installed files to the debug
set list.
XXX
One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.
Fix markup of libh_ MKDEBUGLIB=yes only files
TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.33.6.1 04-Aug-2023  martin Pull up following revision(s), all via patch,
(requested by riastradh in ticket #1699):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.

This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.

PR pkg/57445

Fix MKDEBUGLIB build by adding these installed files to the debug
set list.

One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.

Fix markup of libh_ MKDEBUGLIB=yes only files

TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.34.2.1 02-Aug-2025  perseant Sync with HEAD
 1.11 18-Mar-2014  riastradh Merge riastradh-drm2 to HEAD.
 1.10 18-Jul-2013  matt Use new macros from <machine/asm.h> to be more portable
 1.9 28-Apr-2008  martin branches: 1.9.4; 1.9.26; 1.9.32;
Remove clause 3 and 4 from TNF licenses
 1.8 01-Mar-2003  mycroft branches: 1.8.30;
Update copyright.
 1.7 28-Feb-2003  mycroft Similar to other rela platforms, do not use any GOT entries (other than the
first entry, which is a special case) in rtld_start, because they could be
all 0s. Instead we use the difference between the real _DYNAMIC address
(which we can determine on 68k with a "lea (%pc,_DYNAMIC),..." and the
base-relative one (at the beginning of the GOT) to figure out the relocation
offset.

Not needed for binutils-current, but I might as well fix it now.
 1.6 12-Sep-2002  mycroft Update comments.
 1.5 12-Sep-2002  mycroft Pass the calculated relocation offset down to _rtld().
 1.4 11-Sep-2002  mycroft Add a _rtld_relocate_nonplt_self() here too.
 1.3 18-Oct-1999  itohy branches: 1.3.8;
Make __SVR4_ABI__ optional.
 1.2 23-Aug-1999  kleink branches: 1.2.2;
Bump text alignments to 4 bytes.
 1.1 29-Apr-1999  kleink Add m68k code.
 1.2.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.3.8.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.8.30.1 18-May-2008  yamt sync with head.
 1.9.32.1 23-Jul-2013  riastradh sync with HEAD
 1.9.26.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.9.4.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.21 04-Dec-2021  skrll Add a newline
 1.20 10-Jul-2013  matt Simplify ELFSIZE by using _MIPS_SZPTR
 1.19 11-Jul-2010  mrg branches: 1.19.6; 1.19.12;
make sure to look in CFLAGS, COPTS and CPPFLAGS for abi options.

fixes sgimips64 build of n64 ld.elf_so.
 1.18 18-Dec-2009  mrg use COPTS for -G0.
replace ${CPUFLAGS:M-mabi=64:M-mabi=o64} with two constructs.
the former doesn't seem to work anymore.
 1.17 14-Dec-2009  matt Merge from matt-nb5-mips64:
Add N32/N64 support for mips dynamic loader.
 1.16 04-Nov-2009  skrll Fix start symbols for new binutils.
 1.15 04-Jun-2005  lukem branches: 1.15.32;
Explicitly prefix ld(1) options in LDFLAGS with "-Wl," rather than
using the ${LDFLAGS:@F@-Wl,$F@} make substitution because that breaks
if LDFLAGS is already set.
 1.14 21-Feb-2004  skrll Move common LDFLAGS into Makefile from arch/*/Makefile.inc
 1.13 20-Feb-2004  skrll Whitespace.
 1.12 24-Sep-2002  mycroft -I${.CURDIR} is done at the top-level, so there's no need to do it here.
 1.11 12-Sep-2002  mycroft This ld script is now unnecessary.
 1.10 12-Sep-2002  mycroft Snapshot of work to make MIPS ld.elf_so relocatable.
 1.9 20-Dec-2001  thorpej branches: 1.9.2;
Grumble. Put compiler options back into CPPFLAGS for now, since
they're needed to build .S files with the correct PIC options.

XXX Really needs cleanup in <bsd.*.mk> to do this properly.
 1.8 14-Dec-2001  thorpej Don't put compiler options into CPPFLAGS.
 1.7 07-Jun-1999  castor This should use MACHINE_ARCH and test on "mipseb" instead of MACHINE and
"newsmips"
 1.6 16-Apr-1999  simonb Remove the ld.so link for ld.elf_so - the compat13 package takes care
of this.
 1.5 27-Feb-1999  pk branches: 1.5.2;
Introduce pre-preocessor symbol RTLD_INHIBIT_COPY_RELOCS.
Currently, only mips does not include COPY_RELOCs code.
 1.4 16-Jan-1999  christos PR/6824: Erik Bertelsen: Missed arch directory in recent move.
 1.3 11-May-1998  mhitch ${DESTDIR} isn't needed - which isn't what the example in
/usr/share/mk/bsd.README seems to indicate.
 1.2 26-Mar-1998  thorpej branches: 1.2.2;
Make this work with objdirs.
 1.1 25-Mar-1998  mhitch Add support for mips.
 1.2.2.2 29-May-1998  mycroft Pull up patch from jonathan.
 1.2.2.1 08-May-1998  mycroft Sync with trunk, per request of mycroft.
 1.5.2.1 17-Apr-1999  simonb Pull up rev 1.6 from the trunk:
Remove ld.so link for ld.elf_so - the compat13 package takes
care of this.
 1.9.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.15.32.5 14-Dec-2009  mrg merge from -current:
>rename LD32DIR to MLIBDIR.

>- adjust the logic for compat ldd: add an elf32_compat module and arrange
> for mips64 to build this with MLIBDIR set to o32
>- make mips64 ldd call elf32_compat_ldd as well
>- make mips64 elf64 set MLIBDIR to 64
>- don't need ld.elf_so's Makefile.ld32 files anymore (they are going away
> soon anyway)
>
>tested on amd64 and sparc64, and an earlier version tested on mips64.

>if BSD_MK_COMPAT_FILE is defined, .include it.

>simplify the logic for compat ld.elf_so and move it here. we now can
>find the libc objdir for multiple compat ld.elf_so's, too.
 1.15.32.4 13-Sep-2009  matt Tweak for compat usage
 1.15.32.3 05-Sep-2009  matt Fix build problems with CPUFLAGS.
 1.15.32.2 05-Sep-2009  matt Enable ELFSIZE=64 is -mabi=64 is set.
 1.15.32.1 26-Aug-2009  matt Make this compile under N32/N64. No idea if it works.
 1.19.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.19.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.4 12-Sep-2002  mycroft This ld script is now unnecessary.
 1.3 12-Sep-2002  mycroft Snapshot of work to make MIPS ld.elf_so relocatable.
 1.2 26-Mar-2000  mycroft branches: 1.2.6;
Don't try to get libc_pic from the libc compile directory. If we're doing a
build, libc has already been installed.
 1.1 25-Mar-1998  mhitch branches: 1.1.2;
Add support for mips.
 1.1.2.1 08-May-1998  mycroft Sync with trunk, per request of mycroft.
 1.2.6.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.78 30-Nov-2024  christos Create a new header lwp_private.h to contain _lwp_getprivate_fast,
_lwp_gettcb_fast, _lwp_settcb and remove them from mcontext.h, so that:
1. we don't need special hacks to hide them
2. we can include <lwp.h> where needed to get the necessary prototypes
without redefining them locally.
 1.77 06-Aug-2024  riastradh ld.elf_so(1): Cite reference for MIPS ELF relocations.

This doesn't cover everything -- it's missing the thread-local
storage relocations -- but it's a start.

PR lib/58455: Missing references for processor-specific ELF
relocation semantics
 1.76 03-Aug-2024  riastradh ld.elf_so(1): Nix trailing whitespace.

No functional change intended.
 1.75 04-Jun-2023  joerg branches: 1.75.2;
Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).

Fix this by forcing the computation of the correct DSO (the one defining
the symbol).

This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
 1.74 06-Mar-2021  christos branches: 1.74.6;
Don't or the got object in, just assign it. Fixes cc -mabi=64 hello.c -lcrypto
Now all 64 bit binaries work, and I tested that we did not break the 32 bit
ones
XXX: That 0x80000000 seems wrong for 64 bit stuff.
 1.73 03-Nov-2019  christos simplify pointer gymnastics that sprained gcc-8
 1.72 19-Jan-2018  christos branches: 1.72.4; 1.72.6;
don't forget to eat the high bits.
 1.71 25-Dec-2017  maya Fix typo in comment

from freebsd
 1.70 24-Dec-2017  maya fix debug build
 1.69 10-Aug-2017  joerg Add IRELATIVE support for ARM, X86 and PowerPC.
 1.68 21-Jun-2017  joerg Replace last use of r_type.
 1.67 20-Jun-2017  joerg Fix C&P bug. Deal with more MIPS hacks overriding def.
 1.66 19-Jun-2017  joerg Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.

The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.

Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
 1.65 20-Feb-2016  christos branches: 1.65.8;
where is already void *
 1.64 19-Feb-2016  macallan make debug code compile again
from christos
 1.63 25-Aug-2014  joerg Add basic support for indirect functions. It allows providing a public
function symbol with an implementation choosen at run time.
Refactor calls to functions by address in ld.elf_so to create temporary
function descriptors on the stack, if the address is not leaked outside.

Limitations:
- no support for initialising static storage with function pointers
- no support for unnamed resolver functions

Inspired by FreeBSD's r228435 by kib@freebsd.org.
 1.62 25-Mar-2011  joerg branches: 1.62.22;
Add basic locking to ld.elf_so.
 1.61 15-Mar-2011  matt Add support for the MIPS TLS reloc types in shared libraries.
 1.60 24-Sep-2010  matt Make the GOT1_MASK 64-bit clean.
 1.59 06-Aug-2010  joerg Reduce header pollution for mdreloc.c. Make Obj_Entry argument of
_rtld_relocate_nonplt_objects non-const in preparation for TLS support.
 1.58 14-Jan-2010  skrll Shut gcc up.
 1.57 13-Jan-2010  christos PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
 1.56 14-Dec-2009  matt Merge from matt-nb5-mips64:
Add N32/N64 support for mips dynamic loader.
 1.55 29-Aug-2009  jmmv Remove trailing \n in calls to _rtld_error: a newline is automatically
added by a call to the function.
 1.54 20-May-2009  christos fix signed/unsigned comparisons and const cast away (untested)
 1.53 24-Jul-2008  matt branches: 1.53.4; 1.53.10;
Refactor common code to _rtld_relocate_plt_object to i386 and arm so they
act like the other versions.
In _rtld_bind, if the result is 0, call _rtld_die.
Initialize _rtld_sym_zero.st_value to -_rtld_objself.maprelocbase. Now when
the symbol is resolved, st_value + maprelocbase will equal 0 and the above
check in _rtld_bind will fire and a call to NULL will be avoided.
 1.52 28-Jun-2006  simonb branches: 1.52.20;
Fix unaligned loads and stores generated by gcc4. Problem described in
http://mail-index.NetBSD.org/tech-toolchain/2006/06/27/0001.html.
This cleaner version of the patch from Christos - thanks!
 1.51 03-Apr-2006  skrll Remove empty lines.
 1.50 04-Mar-2006  skrll Add LD_BIND_NOW support for mips.

This is the last arch to be done so remove the large ugly #if defined()
stuff in reloc.c.
 1.49 24-Dec-2005  perry Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.48 20-Aug-2005  skrll Add __RCSID.
 1.47 07-Jun-2005  he Initialize a bunch of local variables in _rtld_relocate_nonplt_self().
Found by -Wuninitialized while compiling for newsmips.

Reviewed by lukem.
 1.46 15-Dec-2004  skrll Apply fixes from Charles:

- Fix how _rtld_relocate_nonplt_self deals with REL32 relocations.

- Change the assert so that it is correct for binutils 2.14 and 2.15.

There are still problems with the libraries generated with binutils 2.15,
but at least ld.elf_so doesn't crash.
 1.45 19-Nov-2003  simonb Restore handling of reloc entries that point to unaligned locations
that seems to have disappeared in rev 1.34.

Thanks to Jason Thorpe for suggesting where to look.
Fixes the simple test case in PR port-mips/23366.
 1.44 24-Sep-2003  mycroft Make the effect of the hack clearer.
 1.43 24-Sep-2003  mycroft One more tweak...
 1.42 24-Sep-2003  mycroft Make the comment a little more accurate.
 1.41 24-Sep-2003  mycroft Temporary workaround for some binutils/ld lossage. See the comment for more
information.
 1.40 26-Jul-2003  mrg include <string.h> or <stdlib.h> for all prototypes
 1.39 24-Jul-2003  skrll ANSIfy and de-__P().
 1.38 17-Jul-2003  skrll Correct the in_plt parameter of a couple of _rtld_find_symdef calls.

The mips_reloc.c case is a no-op as _rtld_symlook_obj ignores in_plt for
MIPS.

OK'ed by Charles.
 1.37 05-Oct-2002  mycroft Minor cleanup.
 1.36 26-Sep-2002  mycroft Add an iffy heuristic that allows us to do lazy binding with new objects, but
detect old objects and deal with them.
 1.35 25-Sep-2002  mycroft Minor cleanup, for clarity.
 1.34 25-Sep-2002  mycroft Resolve the GOT before doing relocations. Then, when doing relocations, for
symbols in the global part of the symbol table, use the updated GOT entry
rather than doing a lookup. (This provides the same effect as `-z combreloc'
on other platforms -- at most one lookup is done per symbol.)

Unfortunately, it is necessary to turn off lazy binding on MIPS. As the
comment says:

* XXX DANGER WILL ROBINSON!
* You might think this is stupid, as it intentionally
* defeats lazy binding -- and you'd be right.
* Unfortunately, for lazy binding to work right, we
* need to a way to force the GOT slots used for
* function pointers to be resolved immediately. This
* is supposed to be done automatically by the linker,
* by not outputting a PLT slot and setting st_value
* to 0, but GNU ld does not do so reliably.
 1.33 14-Sep-2002  thorpej It is possible for reloc entries to point to unaligned locations; handle
this.
 1.32 13-Sep-2002  mycroft In _rtld_bind_mips(), if the symbol is undefined, die.
 1.31 13-Sep-2002  mycroft Add an explanatory comment.
 1.30 13-Sep-2002  mycroft The sense of the SHN_ABS test has always been reversed. Fortunately nobody
ever tried to reference stuff like _DYNAMIC_LINK and _gp_disp in C code...
 1.29 13-Sep-2002  mycroft Put back the lazy binding. For some bizarre reason, the linker occasionally
does not create a PLT entry for a symbol, so we test st_value!=0 to see
whether we can do a PLT fixup.
 1.28 13-Sep-2002  mycroft Er, turn off lazy binding for the moment. It doesn't seem to be fully working.
 1.27 13-Sep-2002  mycroft Simplify the GOT relocation code somewhat.
 1.26 13-Sep-2002  mycroft Actually do lazy binding on this platform.
 1.25 13-Sep-2002  mycroft Remove an old comment.
 1.24 13-Sep-2002  mycroft _rtld_bind() is not used on MIPS. Should probably move it to MD code.
 1.23 12-Sep-2002  mycroft Nuke -DRTLD_RELOCATE_SELF and `dodebug' from orbit.
 1.22 12-Sep-2002  mycroft _rtld_bind_start() is not used in MI code, so declare it in the MD code.
 1.21 12-Sep-2002  mycroft Slight tweak.
 1.20 12-Sep-2002  mycroft The GOT is Elf_Addr[], not Elf_Word[]...
 1.19 12-Sep-2002  mycroft Clean up a little.
 1.18 12-Sep-2002  mycroft Move GOT relocation code from _rtld_setup_pltgot() to
_rtld_relocate_nonplt_objects(). Add GOT self-relocation in
_rtld_relocate_nonplt_self().
MIPS ld.elf_so can now relocate itself.
 1.17 12-Sep-2002  mycroft Snapshot of work to make MIPS ld.elf_so relocatable.
 1.16 06-Sep-2002  mycroft Pass down an additional flag to _rtld_relocate_nonplt_objects() which
indicates whether we're relocating ld.elf_so itself. Use this in some places
rather than hackish tests on `dodebug'. (The Alpha and HPPA `dodebug' tests
were actually noops, because RTLD_RELOCATE_SELF is not set, and therefore
dodebug is always true.)
 1.15 06-Sep-2002  mycroft Introduce a new flag, `isdynamic', which is used to remember whether the
executable was of type ET_DYN. Use this instead of `mainprog' to determine
whether we need to do base-relative fixups of the PLT. (This allows loading
non-relocatable objects, should we desire to do that at some point...)
 1.14 06-Sep-2002  mycroft More const poisoning. Now the entire _rtld_bind() path useds a const Obj_Entry.
 1.13 06-Sep-2002  mycroft Re-poison a lot of consts, now that the mark shite is gone.
 1.12 06-Sep-2002  mycroft Split _rtld_relocate_plt_object() into two MD functions:
* _rtld_relocate_plt_lazy() fixes up all the relocs pointing to the PLT. (On
most platforms it just does a simple base-relative fixup; on SPARC it does
nothing.)
* _rtld_relocate_plt_object() does immediate binding for a PLT entry.
The basic gist is that this saves a bit of time on SPARC (where the iteration
through the pltrela table was gratuitous), and a little less time on all other
platforms. A whole lot of #ifdef'ed crap is moved out of reloc.c, too.

NOT tested on: hppa sh x86_64
 1.11 05-Sep-2002  mycroft Partially fix up some debug printf()s that don't need to use defobj.
 1.10 05-Sep-2002  mycroft A few things:
* Pass a symbol number to _rtld_find_symdef(), not a r_info.
* Don't try to do a symbol lookup when we find an unsupported relocation;
instead get the symbol name from the referencing object's strtab.
* Add preliminary support for `-z combreloc'-style startup optimization on
i386, `#ifdef COMBRELOC'.
 1.9 05-Sep-2002  mycroft Rename _rtld_relocate_nonplt_object() to _rtld_relocate_nonplt_objects(),
and push the outer loop into it. This actually shaves a couple % off startup
time at least on PCs.
 1.8 05-Sep-2002  mycroft Split MIPS relocation goo into mips_reloc.c.
 1.7 05-Sep-2002  junyoung Remove unused arguments of _rtld_find_symdef().
 1.6 05-Sep-2002  mycroft Make _rtld_setup_pltgot() a consistent interface on all platforms.
 1.5 24-Nov-2001  rafal branches: 1.5.2;
Fix bug found by Izumi Tsutsui -- if _rtld_find_symdef returned NULL, the
runtime linker would crash. Restore behavior similar to version 1.3, where
the runtime linker continues on, ignoring the symbol.
 1.4 14-Oct-2001  rafal Fix how underfined weak symbols are treated -- before, ld.so would do nothing
with them, rather than defaulting them to zero. This caused breakage with
the drawf EH stuff and init/fini code when they weren't used by the caller
(and hence the appropriate handlers were left undefined). Also fix an un-
initialized variable in symbol.c that only MIPS MD code tripped over.
 1.3 07-Nov-1999  mycroft branches: 1.3.4;
Make this more likely to compile with ld.elf_so changes. (But this is
untested.)
 1.2 25-Oct-1999  kleink Update to match new SVR4-style definition names in <sys/exec_elf.h>.
 1.1 25-Mar-1998  mhitch branches: 1.1.2; 1.1.6;
Add support for mips.
 1.1.6.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.1.2.1 08-May-1998  mycroft Sync with trunk, per request of mycroft.
 1.3.4.1 09-Dec-2001  he Pull up revisions 1.4-1.5 (requested by skrll):
Add init/fini section support in crtbegin and crtend, and introduce
support for DWARF2 exception handling. Fixes PR#12865, PR#13488,
PR#13489, and PR#13491. Also fix ld.elf_so to deal appropriately.
 1.5.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.52.20.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.53.10.3 19-Aug-2010  matt Define the GOT1 mask in terms of Elf_Addr so that it won't truncate when
used with 64bit addresses.
 1.53.10.2 05-Sep-2009  matt Fix some BIG_ENDIAN botches.
 1.53.10.1 05-Sep-2009  matt Make ld.elf_so understand the "unique" way MIPS encodes 64 relocation entries.
With this change, dynamic N64 images with shared libraries work.
 1.53.4.2 19-Mar-2012  bouyer Apply patch, requested by skrll in ticket #1724
libexec/ld.elf_so/arch/mips/mips_reloc.c patch
fix gcc uninitialized warning
 1.53.4.1 17-Mar-2012  bouyer Pull up following revision(s) via patch (requested by skrll in ticket #1724):
rescue/list.ldd: revision 1.4
lib/libc/dlfcn/dlfcn_elf.c: revision 1.7
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.57
distrib/sets/lists/comp/mi: revision 1.1512
share/man/man3/Makefile: revision 1.56
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.58
usr.bin/ldd/ldd.c: revision 1.15
libexec/ld.elf_so/rtld.h: revision 1.84
share/man/man3/dl_iterate_phdr.3: revision 1.1
libexec/ld.elf_so/rtld.c: revision 1.129
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.44
libexec/ld.elf_so/rtld.h: revision 1.89
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.36
libexec/ld.elf_so/map_object.c: revision 1.41
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.37
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.46
include/link_elf.h: revision 1.10
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.29
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.26
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.34
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.31
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.35
libexec/ld.elf_so/Makefile: revision 1.94
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.32
libexec/ld.elf_so/Makefile: revision 1.95
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.31
libexec/ld.elf_so/Makefile: revision 1.96
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.32
libexec/ld.elf_so/reloc.c: revision 1.98
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.33
sys/sys/exec_elf.h: revision 1.106
libexec/ld.elf_so/rtld.c: revision 1.130
libexec/ld.elf_so/load.c: revision 1.37
libexec/ld.elf_so/rtld.c: revision 1.131
libexec/ld.elf_so/load.c: revision 1.38
libexec/ld.elf_so/rtld.h: revision 1.90
libexec/ld.elf_so/headers.c: revision 1.36
libexec/ld.elf_so/rtld.h: revision 1.95
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.30
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.25
libexec/ld.elf_so/symbol.c: revision 1.50
libexec/ld.elf_so/symbol.c: revision 1.51
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.43
libexec/ld.elf_so/symbol.c: revision 1.52
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.27
libexec/ld.elf_so/symbol.c: revision 1.54
PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
Implement dl_iterate_phdr.
Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.62.22.1 06-Mar-2016  martin Catch up to -current, via patch, requested by christos in ticket #1126:
 1.65.8.1 04-Jul-2017  martin Pull up following revision(s) (requested by joerg in ticket #64):
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.40
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.41
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.44
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.60
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.32
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.61
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.2
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.50
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.34
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.39
libexec/ld.elf_so/symbol.c: revision 1.68
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.66
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.67
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.68
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.42
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.54
libexec/ld.elf_so/Makefile: revision 1.137
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.32
libexec/ld.elf_so/rtld.h: revision 1.127
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.38
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.42
libexec/ld.elf_so/map_object.c: revision 1.58
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.49
Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.
The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.
Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
Drop symbol number from default branch diagnostic, it isn't set at this
point and most likely not valid either.
Expand symnum, GCC's uninitialized used tracking is too imprecise.
Fix C&P bug. Deal with more MIPS hacks overriding def.
Add last_symnum, move up def and defobj.
Add back symnum, fix debug print.
Replace last use of r_type.
Fix indentation.
Fix indentation.
 1.72.6.1 04-Aug-2023  martin Pull up following revision(s), all via patch,
(requested by riastradh in ticket #1699):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.

This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.

PR pkg/57445

Fix MKDEBUGLIB build by adding these installed files to the debug
set list.

One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.

Fix markup of libh_ MKDEBUGLIB=yes only files

TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.72.4.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.74.6.1 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #297):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44
(all via patch)

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen
(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.
(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.
(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.
PR pkg/57445
Fix MKDEBUGLIB build by adding these installed files to the debug
set list.
XXX
One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.
Fix markup of libh_ MKDEBUGLIB=yes only files
TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.75.2.1 02-Aug-2025  perseant Sync with HEAD
 1.11 03-Aug-2024  riastradh ld.elf_so(1): Nix trailing whitespace.

No functional change intended.
 1.10 14-Dec-2009  matt branches: 1.10.58;
Merge from matt-nb5-mips64:
Add N32/N64 support for mips dynamic loader.
 1.9 05-Oct-2002  mycroft branches: 1.9.44;
Minor cleanup.
 1.8 26-Sep-2002  mycroft Add an iffy heuristic that allows us to do lazy binding with new objects, but
detect old objects and deal with them.
 1.7 24-Sep-2002  mycroft DOH! Adjust all the stack slots in _rtld_bind_start() so that the saved $a0
is not in _rtld_bind_mips()'s $a3 argument save area.
 1.6 12-Sep-2002  mycroft Update comments.
 1.5 12-Sep-2002  mycroft Snapshot of work to make MIPS ld.elf_so relocatable.
 1.4 28-Mar-1999  simonb branches: 1.4.12;
Don't include <machine/regdef.h>.
 1.3 18-Jan-1999  castor Avoid confusing various C preprocessors by avoiding # [0-9]
 1.2 09-Apr-1998  mhitch branches: 1.2.2;
Oops - when assembled with PIC, the jal gets expanded, so what used to be
in the branch delay slot was no longer getting executed at the proper time.
This resulted in a corrupt ps_strings pointer and caused programs trying to
use ps_strings to fail.
 1.1 25-Mar-1998  mhitch Add support for mips.
 1.2.2.1 08-May-1998  mycroft Sync with trunk, per request of mycroft.
 1.4.12.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.9.44.5 03-Sep-2009  matt Make sure N32/N64 stack is qword aligned.
 1.9.44.4 03-Sep-2009  matt To make debugging easier, load _rtld_relocate_nonplt_self into t0
 1.9.44.3 02-Sep-2009  matt Fix a typo and make dynamic libraries work on N32 (and N64?)
 1.9.44.2 02-Sep-2009  matt Readjust sp by correct amount.
 1.9.44.1 26-Aug-2009  matt Make this compile under N32/N64. No idea if it works.
 1.10.58.1 02-Aug-2025  perseant Sync with HEAD
 1.2 04-Dec-2021  skrll Add a newline
 1.1 03-Sep-2014  matt New files for OR1K support
 1.6 30-Nov-2024  christos Create a new header lwp_private.h to contain _lwp_getprivate_fast,
_lwp_gettcb_fast, _lwp_settcb and remove them from mcontext.h, so that:
1. we don't need special hacks to hide them
2. we can include <lwp.h> where needed to get the necessary prototypes
without redefining them locally.
 1.5 03-Aug-2024  riastradh ld.elf_so(1): Nix trailing whitespace.

No functional change intended.
 1.4 04-Jun-2023  joerg branches: 1.4.2;
Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).

Fix this by forcing the computation of the correct DSO (the one defining
the symbol).

This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
 1.3 10-Aug-2017  joerg branches: 1.3.6; 1.3.14;
Add IRELATIVE support for ARM, X86 and PowerPC.
 1.2 19-Jun-2017  joerg Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.

The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.

Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
 1.1 03-Sep-2014  matt branches: 1.1.8;
New files for OR1K support
 1.1.8.1 04-Jul-2017  martin Pull up following revision(s) (requested by joerg in ticket #64):
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.40
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.41
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.44
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.60
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.32
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.61
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.2
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.50
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.34
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.39
libexec/ld.elf_so/symbol.c: revision 1.68
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.66
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.67
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.68
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.42
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.54
libexec/ld.elf_so/Makefile: revision 1.137
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.32
libexec/ld.elf_so/rtld.h: revision 1.127
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.38
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.42
libexec/ld.elf_so/map_object.c: revision 1.58
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.49
Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.
The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.
Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
Drop symbol number from default branch diagnostic, it isn't set at this
point and most likely not valid either.
Expand symnum, GCC's uninitialized used tracking is too imprecise.
Fix C&P bug. Deal with more MIPS hacks overriding def.
Add last_symnum, move up def and defobj.
Add back symnum, fix debug print.
Replace last use of r_type.
Fix indentation.
Fix indentation.
 1.3.14.1 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #297):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44
(all via patch)

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen
(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.
(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.
(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.
PR pkg/57445
Fix MKDEBUGLIB build by adding these installed files to the debug
set list.
XXX
One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.
Fix markup of libh_ MKDEBUGLIB=yes only files
TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.3.6.1 04-Aug-2023  martin Pull up following revision(s), all via patch,
(requested by riastradh in ticket #1699):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.

This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.

PR pkg/57445

Fix MKDEBUGLIB build by adding these installed files to the debug
set list.

One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.

Fix markup of libh_ MKDEBUGLIB=yes only files

TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.4.2.1 02-Aug-2025  perseant Sync with HEAD
 1.1 03-Sep-2014  matt New files for OR1K support
 1.17 09-Apr-2023  chs ld.elf_so powerpc: remove bogus ldscript

This ldscript is not needed and actually makes things worse by putting
everything in one LOAD section, which then needs to have rwx permission.
Remove it so that we get two LOAD sections with better permissions.
Fixes PR 57323.
 1.16 03-Apr-2018  joerg branches: 1.16.12;
Rework ifunc support to address a number of short comings:
- Move to a shared _rtld_call_ifunc for rel and rela architectures
- Architectures using rel format must patch IRELATIVE non-PLT
relocations like RELATIVE in additition to the later ifunc handling
- Consistently record the delta to the end of the relocation group for
non-PLT IRELATIVE relocations

Hidden ifunc is now supported on all ifunc platforms, even when using
-fno-plt. The combination of -fno-plt and relro is broken due to
incorrect GNU ld output though.
 1.15 15-Aug-2014  matt branches: 1.15.14;
Use -fPIC since powerpc64 is always compiled as -fPIC and -fpic would cause
__PIC__ to change.
 1.14 13-Aug-2014  joerg Build position independent on PPC64, too.
 1.13 06-Mar-2014  matt powerpc64 changes
 1.12 26-Oct-2011  chs branches: 1.12.2; 1.12.8;
avoid linker warnings with the new binutils by not forcing ld.elf_so
to be soft-float. the floating-point usage in ld.elf_so is only
because of stdarg functions like printf(), and gcc 4.5 is good
about not actually executing the FP instructions in such functions
unless FP values are passed to them, which ld.elf_so doesn't do.
 1.11 22-Oct-2009  skrll Fix start symbol for newer binutils.
 1.10 04-Jun-2005  lukem Explicitly prefix ld(1) options in LDFLAGS with "-Wl," rather than
using the ${LDFLAGS:@F@-Wl,$F@} make substitution because that breaks
if LDFLAGS is already set.
 1.9 21-Feb-2004  skrll Move common LDFLAGS into Makefile from arch/*/Makefile.inc
 1.8 20-Feb-2004  skrll Whitespace.
 1.7 24-Sep-2002  mycroft Remove vestiges of VARPSZ.
 1.6 24-Sep-2002  mycroft -I${.CURDIR} is done at the top-level, so there's no need to do it here.
 1.5 20-Dec-2001  thorpej branches: 1.5.2;
Grumble. Put compiler options back into CPPFLAGS for now, since
they're needed to build .S files with the correct PIC options.

XXX Really needs cleanup in <bsd.*.mk> to do this properly.
 1.4 14-Dec-2001  thorpej Don't put compiler options into CPPFLAGS.
 1.3 18-Apr-1999  ws Add code to use the kernel provided page size.
Enable this on the powerpc only for now.
 1.2 16-Jan-1999  christos PR/6824: Erik Bertelsen: Missed arch directory in recent move.
 1.1 24-Nov-1998  tsubai Add powerpc support.
 1.5.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.12.8.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.12.2.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.15.14.1 07-Apr-2018  pgoyette Sync with HEAD. 77 conflicts resolved - all of them $NetBSD$
 1.16.12.1 04-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #306):

libexec/ld.elf_so/arch/powerpc/Makefile.inc: revision 1.17
libexec/ld.elf_so/arch/powerpc/ld.so.script: file removal

ld.elf_so powerpc: remove bogus ldscript

This ldscript is not needed and actually makes things worse by putting
everything in one LOAD section, which then needs to have rwx permission.

Remove it so that we get two LOAD sections with better permissions.
Fixes PR 57323.
 1.5 09-Apr-2023  chs ld.elf_so powerpc: remove bogus ldscript

This ldscript is not needed and actually makes things worse by putting
everything in one LOAD section, which then needs to have rwx permission.
Remove it so that we get two LOAD sections with better permissions.
Fixes PR 57323.
 1.4 07-Mar-2014  matt branches: 1.4.36;
Change OUTPUT to powerpc:common to make powerpc64 ld happy
 1.3 09-Sep-2002  mycroft branches: 1.3.54; 1.3.60;
Sync with current binutils.
 1.2 26-Mar-2000  mycroft branches: 1.2.6;
Don't try to get libc_pic from the libc compile directory. If we're doing a
build, libc has already been installed.
 1.1 24-Nov-1998  tsubai Add powerpc support.
 1.2.6.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.3.60.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.54.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.4.36.1 04-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #306):

libexec/ld.elf_so/arch/powerpc/Makefile.inc: revision 1.17
libexec/ld.elf_so/arch/powerpc/ld.so.script: file removal

ld.elf_so powerpc: remove bogus ldscript

This ldscript is not needed and actually makes things worse by putting
everything in one LOAD section, which then needs to have rwx permission.

Remove it so that we get two LOAD sections with better permissions.
Fixes PR 57323.
 1.66 30-Nov-2024  christos Create a new header lwp_private.h to contain _lwp_getprivate_fast,
_lwp_gettcb_fast, _lwp_settcb and remove them from mcontext.h, so that:
1. we don't need special hacks to hide them
2. we can include <lwp.h> where needed to get the necessary prototypes
without redefining them locally.
 1.65 03-Aug-2024  riastradh ld.elf_so(1): Nix trailing whitespace.

No functional change intended.
 1.64 23-Jul-2024  uwe ld.elf_so: Cite reference for PowerPC ELF relocations

PR lib/58455: Missing references for processor-specific ELF
relocation semantics
 1.63 04-Jun-2023  joerg branches: 1.63.2;
Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).

Fix this by forcing the computation of the correct DSO (the one defining
the symbol).

This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
 1.62 06-Jul-2022  martin branches: 1.62.2;
Fix copy & pasto: DTPREL relocations do not need to allocate a static
TLS index. Patch from joerg@
 1.61 24-May-2020  macallan new binutils/gcc started emitting R_PPC_UADDR32 reloc entries, so for now
treat them like R_PPC_ADDR32
XXX
these relocs have been observed in the xf86-video-radeon driver, but only in
the AtomBios support code, which is unused on PowerPC. This allows the driver
to load but it's not clear if the affected parts would actually function.
 1.60 08-Dec-2019  uwe Use existing lo() and hi() macros. Same object code is generated.
 1.59 08-Dec-2019  uwe Resolve ADDR16_LO, ADDR16_HI, and ADDR16_HA relocs.

Recent GNU ld does not resolve them statically if the reloc is in a
writable section and the symbol is not already referenced from text.
 1.58 30-Dec-2018  christos branches: 1.58.2;
- fix wrong reloc name in assert
- fix uninitialized
 1.57 03-Apr-2018  joerg branches: 1.57.2;
Rework ifunc support to address a number of short comings:
- Move to a shared _rtld_call_ifunc for rel and rela architectures
- Architectures using rel format must patch IRELATIVE non-PLT
relocations like RELATIVE in additition to the later ifunc handling
- Consistently record the delta to the end of the relocation group for
non-PLT IRELATIVE relocations

Hidden ifunc is now supported on all ifunc platforms, even when using
-fno-plt. The combination of -fno-plt and relro is broken due to
incorrect GNU ld output though.
 1.56 09-Mar-2018  joerg Like Sparc, PowerPC can use IRELATIVE relocations in non-PLT sections.
 1.55 10-Aug-2017  joerg branches: 1.55.2;
Add IRELATIVE support for ARM, X86 and PowerPC.
 1.54 19-Jun-2017  joerg Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.

The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.

Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
 1.53 25-Aug-2014  joerg branches: 1.53.8;
Add basic support for indirect functions. It allows providing a public
function symbol with an implementation choosen at run time.
Refactor calls to functions by address in ld.elf_so to create temporary
function descriptors on the stack, if the address is not leaked outside.

Limitations:
- no support for initialising static storage with function pointers
- no support for unnamed resolver functions

Inspired by FreeBSD's r228435 by kib@freebsd.org.
 1.52 28-Jul-2014  matt branches: 1.52.2;
Fix parenthesis on __ha macro
 1.51 06-Mar-2014  matt branches: 1.51.2;
More PPC64 changes.
Nothing to do for lazy bindings.
Record DT_PPC64_GLINK and make _rtld_bind return it.
When resolving a JMP_SLOT, copy the source function descriptor into the PLTGOT
 1.50 06-Mar-2014  matt Make ELF64 aware.
 1.49 25-Mar-2011  joerg branches: 1.49.4; 1.49.10;
Add basic locking to ld.elf_so.
 1.48 12-Mar-2011  matt Add TLS support for PowerPC.
If the port has __lwp_gettcb_fast or __lwp_settcb use them instead of
__lwp_getprivate_fast or lwp_setprivate.
 1.47 10-Feb-2011  matt Fix problem with bss-plt objects which a reloc index, not offset.
(secure-plt uses an offset (index*sizeof(rela), bss-plt uses an index)
secure-plt will now take the offset and divide by 12 for an index.
 1.46 16-Jan-2011  matt branches: 1.46.2;
Add secure-plt support for powerpc to ld.elf_so. As part of this, we have to
stop calling into the GOT/_DYNAMIC since they are no longer executable.
 1.45 06-Aug-2010  joerg Reduce header pollution for mdreloc.c. Make Obj_Entry argument of
_rtld_relocate_nonplt_objects non-const in preparation for TLS support.
 1.44 13-Jan-2010  christos PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
 1.43 29-Aug-2009  jmmv Remove trailing \n in calls to _rtld_error: a newline is automatically
added by a call to the function.
 1.42 24-May-2009  he Apply fix borrowed from i386: Fix const issue (cast const pointers
to "const uint8_t *" instead of "caddr_t").
 1.41 24-Jul-2008  matt branches: 1.41.4;
Refactor common code to _rtld_relocate_plt_object to i386 and arm so they
act like the other versions.
In _rtld_bind, if the result is 0, call _rtld_die.
Initialize _rtld_sym_zero.st_value to -_rtld_objself.maprelocbase. Now when
the symbol is resolved, st_value + maprelocbase will equal 0 and the above
check in _rtld_bind will fire and a call to NULL will be avoided.
 1.40 23-May-2006  mrg branches: 1.40.20;
in _rtld_bind() initialise new_value for GCC4.
 1.39 27-Sep-2005  chs ok, the change from rev 1.33 was unnecessary after all,
only the second part of the previous revision was needed.
put the logic for the initial icache invalidation of the PLT
back the way it was, but in a way that makes clearer what's going on,
and add some comments explaining it.
 1.38 26-Sep-2005  chs fix two problems with icache invalidation of the PLT:
- restore revision 1.33, it was correct.
- fix pointer arithmetic in other calls to __syncicache().
 1.37 20-Aug-2005  skrll Add __RCSID.
 1.36 28-Jul-2005  skrll Support immediate PLT binding on powerpc. Thanks to Simon Burge for
testing.

I can see the finish line...
 1.35 24-Jul-2003  skrll branches: 1.35.6;
ANSIfy and de-__P().
 1.34 21-Feb-2003  mycroft Revert previous change.
 1.33 11-Jan-2003  matt Fix bug where only 2/3 of the PLT was being synched with the icache.
PLT entries are 12 bytes. Add a #define for that and replace the
explicit values with the PLT_ENTRY_SIZE. This bug can cause random
SIGILL signals to happen.
 1.32 05-Oct-2002  mycroft Minor cleanup.
 1.31 26-Sep-2002  mycroft Remove the `self' args to _rtld_relocate_objects() and
_rtld_relocate_nonplt_objects().
 1.30 26-Sep-2002  mycroft Update a comment.
 1.29 26-Sep-2002  mycroft Add a rdbg() in _rtld_bind().
 1.28 25-Sep-2002  mycroft Make this work with PLTs larger than 8192 entries (64KB). Not tested
exhaustively, but it works in some simple cases.
 1.27 25-Sep-2002  mycroft Push the _rtld_bind() interface into MD code -- it's just a trivial wrapper
anyway.
 1.26 24-Sep-2002  mycroft Ignore JMP_SLOT relocs when doing non-PLT relocations. The relalim trimming
hack doesn't always work, because ld(1) sometimes puts the sections in the
wrong order.
 1.25 12-Sep-2002  mycroft Remove one more `dodebug' argument.
 1.24 12-Sep-2002  mycroft Nuke -DRTLD_RELOCATE_SELF and `dodebug' from orbit.
 1.23 12-Sep-2002  mycroft _rtld_bind_start() is not used in MI code, so declare it in the MD code.
 1.22 11-Sep-2002  mycroft Implement _rtld_relocate_nonplt_self() here.
 1.21 06-Sep-2002  mycroft Pass down an additional flag to _rtld_relocate_nonplt_objects() which
indicates whether we're relocating ld.elf_so itself. Use this in some places
rather than hackish tests on `dodebug'. (The Alpha and HPPA `dodebug' tests
were actually noops, because RTLD_RELOCATE_SELF is not set, and therefore
dodebug is always true.)
 1.20 06-Sep-2002  mycroft Introduce a new flag, `isdynamic', which is used to remember whether the
executable was of type ET_DYN. Use this instead of `mainprog' to determine
whether we need to do base-relative fixups of the PLT. (This allows loading
non-relocatable objects, should we desire to do that at some point...)
 1.19 06-Sep-2002  mycroft More const poisoning. Now the entire _rtld_bind() path useds a const Obj_Entry.
 1.18 06-Sep-2002  mycroft Re-poison a lot of consts, now that the mark shite is gone.
 1.17 06-Sep-2002  mycroft Split _rtld_relocate_plt_object() into two MD functions:
* _rtld_relocate_plt_lazy() fixes up all the relocs pointing to the PLT. (On
most platforms it just does a simple base-relative fixup; on SPARC it does
nothing.)
* _rtld_relocate_plt_object() does immediate binding for a PLT entry.
The basic gist is that this saves a bit of time on SPARC (where the iteration
through the pltrela table was gratuitous), and a little less time on all other
platforms. A whole lot of #ifdef'ed crap is moved out of reloc.c, too.

NOT tested on: hppa sh x86_64
 1.16 05-Sep-2002  mycroft Partially fix up some debug printf()s that don't need to use defobj.
 1.15 05-Sep-2002  mycroft A few things:
* Pass a symbol number to _rtld_find_symdef(), not a r_info.
* Don't try to do a symbol lookup when we find an unsupported relocation;
instead get the symbol name from the referencing object's strtab.
* Add preliminary support for `-z combreloc'-style startup optimization on
i386, `#ifdef COMBRELOC'.
 1.14 05-Sep-2002  mycroft Rename _rtld_relocate_nonplt_object() to _rtld_relocate_nonplt_objects(),
and push the outer loop into it. This actually shaves a couple % off startup
time at least on PCs.
 1.13 05-Sep-2002  mycroft Split _rtld_relocate_nonplt_object() into separate MD files.
 1.12 05-Sep-2002  junyoung Remove unused arguments of _rtld_find_symdef().
 1.11 05-Sep-2002  mycroft Make _rtld_setup_pltgot() a consistent interface on all platforms.
 1.10 10-Sep-2001  mycroft branches: 1.10.2;
Reorganize PowerPC cold a little. The return value from _rtld_bind_pltgot()
was ambiguous in the case of a weak symbol that was not defined. This caused
RTLD_NOW to fail badly with shared libraries linked against the new crtbegin.o.
 1.9 25-Apr-2001  kleink Sync with <sys/exec_elf.h> rev. 1.45: ElfNN_RelA -> ElfNN_Rela.
 1.8 07-Nov-1999  mycroft branches: 1.8.4;
More fallout.
 1.7 07-Nov-1999  mycroft Fix fallout from MD ld.elf_so changes.
 1.6 28-Oct-1999  tsubai Revert to rev. 1.4. This file didn't need to change.
 1.5 25-Oct-1999  kleink Update to match new SVR4-style definition names in <sys/exec_elf.h>.
 1.4 17-Apr-1999  ws branches: 1.4.2;
Modify syncicache on PowerPC from an inline to a real function.
Support different cache line sizes with the same object code in userland.
While here, move the function to implementation name space.
 1.3 05-Mar-1999  tsubai Make this compile.
 1.2 01-Mar-1999  christos KNF
 1.1 24-Nov-1998  tsubai Add powerpc support.
 1.4.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.8.4.2 09-Dec-2001  he Pull up revision 1.10 (requested by skrll):
Add init/fini section support in crtbegin and crtend, and introduce
support for DWARF2 exception handling. Fixes PR#12865, PR#13488,
PR#13489, and PR#13491. Also fix ld.elf_so to deal appropriately.
 1.8.4.1 01-May-2001  he Pull up revision 1.9 (requested by kleink):
Rename ElfNN_RelA to ElfNN_Rela, which is what SVR4 ABIs and the
rest of the world uses. Fixes PR#12274.
 1.10.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.35.6.2 01-Oct-2005  tron Pull up following revision(s) (requested by chs in ticket #834):
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.39
ok, the change from rev 1.33 was unnecessary after all,
only the second part of the previous revision was needed.
put the logic for the initial icache invalidation of the PLT
back the way it was, but in a way that makes clearer what's going on,
and add some comments explaining it.
 1.35.6.1 01-Oct-2005  tron Pull up following revision(s) (requested by chs in ticket #834):
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.38
fix two problems with icache invalidation of the PLT:
- restore revision 1.33, it was correct.
- fix pointer arithmetic in other calls to __syncicache().
 1.40.20.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.41.4.1 17-Mar-2012  bouyer Pull up following revision(s) via patch (requested by skrll in ticket #1724):
rescue/list.ldd: revision 1.4
lib/libc/dlfcn/dlfcn_elf.c: revision 1.7
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.57
distrib/sets/lists/comp/mi: revision 1.1512
share/man/man3/Makefile: revision 1.56
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.58
usr.bin/ldd/ldd.c: revision 1.15
libexec/ld.elf_so/rtld.h: revision 1.84
share/man/man3/dl_iterate_phdr.3: revision 1.1
libexec/ld.elf_so/rtld.c: revision 1.129
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.44
libexec/ld.elf_so/rtld.h: revision 1.89
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.36
libexec/ld.elf_so/map_object.c: revision 1.41
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.37
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.46
include/link_elf.h: revision 1.10
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.29
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.26
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.34
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.31
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.35
libexec/ld.elf_so/Makefile: revision 1.94
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.32
libexec/ld.elf_so/Makefile: revision 1.95
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.31
libexec/ld.elf_so/Makefile: revision 1.96
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.32
libexec/ld.elf_so/reloc.c: revision 1.98
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.33
sys/sys/exec_elf.h: revision 1.106
libexec/ld.elf_so/rtld.c: revision 1.130
libexec/ld.elf_so/load.c: revision 1.37
libexec/ld.elf_so/rtld.c: revision 1.131
libexec/ld.elf_so/load.c: revision 1.38
libexec/ld.elf_so/rtld.h: revision 1.90
libexec/ld.elf_so/headers.c: revision 1.36
libexec/ld.elf_so/rtld.h: revision 1.95
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.30
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.25
libexec/ld.elf_so/symbol.c: revision 1.50
libexec/ld.elf_so/symbol.c: revision 1.51
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.43
libexec/ld.elf_so/symbol.c: revision 1.52
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.27
libexec/ld.elf_so/symbol.c: revision 1.54
PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
Implement dl_iterate_phdr.
Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.46.2.1 17-Feb-2011  bouyer Sync with HEAD
 1.49.10.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.49.4.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.51.2.1 10-Aug-2014  tls Rebase.
 1.52.2.1 06-Mar-2016  martin Catch up to -current, via patch, requested by christos in ticket #1126:
 1.53.8.1 04-Jul-2017  martin Pull up following revision(s) (requested by joerg in ticket #64):
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.40
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.41
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.44
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.60
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.32
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.61
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.2
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.50
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.34
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.39
libexec/ld.elf_so/symbol.c: revision 1.68
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.66
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.67
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.68
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.42
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.54
libexec/ld.elf_so/Makefile: revision 1.137
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.32
libexec/ld.elf_so/rtld.h: revision 1.127
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.38
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.42
libexec/ld.elf_so/map_object.c: revision 1.58
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.49
Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.
The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.
Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
Drop symbol number from default branch diagnostic, it isn't set at this
point and most likely not valid either.
Expand symnum, GCC's uninitialized used tracking is too imprecise.
Fix C&P bug. Deal with more MIPS hacks overriding def.
Add last_symnum, move up def and defobj.
Add back symnum, fix debug print.
Replace last use of r_type.
Fix indentation.
Fix indentation.
 1.55.2.3 18-Jan-2019  pgoyette Synch with HEAD
 1.55.2.2 07-Apr-2018  pgoyette Sync with HEAD. 77 conflicts resolved - all of them $NetBSD$
 1.55.2.1 15-Mar-2018  pgoyette Synch with HEAD
 1.57.2.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.57.2.1 10-Jun-2019  christos Sync with HEAD
 1.58.2.3 04-Aug-2023  martin Pull up following revision(s), all via patch,
(requested by riastradh in ticket #1699):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.

This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.

PR pkg/57445

Fix MKDEBUGLIB build by adding these installed files to the debug
set list.

One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.

Fix markup of libh_ MKDEBUGLIB=yes only files

TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.58.2.2 18-Sep-2022  msaitoh Pull up following revision(s) (requested by martin in ticket #1531):
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.62
Fix copy & pasto: DTPREL relocations do not need to allocate a static
TLS index. Patch from joerg@
 1.58.2.1 09-Dec-2019  martin Pull up following revision(s) (requested by uwe in ticket #535):

libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.60
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.59

Resolve ADDR16_LO, ADDR16_HI, and ADDR16_HA relocs.

Recent GNU ld does not resolve them statically if the reloc is in a
writable section and the symbol is not already referenced from text.

Use existing lo() and hi() macros. Same object code is generated.
 1.62.2.1 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #297):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44
(all via patch)

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen
(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.
(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.
(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.
PR pkg/57445
Fix MKDEBUGLIB build by adding these installed files to the debug
set list.
XXX
One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.
Fix markup of libh_ MKDEBUGLIB=yes only files
TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.63.2.1 02-Aug-2025  perseant Sync with HEAD
 1.17 26-Sep-2011  mrg match END() with a relevant ENTRY*(). gas 2.21 complains about the
non-constant-ness of the symbol otherwise.
 1.16 04-Mar-2011  matt Don't rely on >32bit math.
 1.15 10-Feb-2011  matt Fix problem with bss-plt objects which a reloc index, not offset.
(secure-plt uses an offset (index*sizeof(rela), bss-plt uses an index)
secure-plt will now take the offset and divide by 12 for an index.
 1.14 16-Jan-2011  matt branches: 1.14.2;
Add secure-plt support for powerpc to ld.elf_so. As part of this, we have to
stop calling into the GOT/_DYNAMIC since they are no longer executable.
 1.13 04-Dec-2002  thorpej Bintuils-current initializes the GOT entries to 0 (instead of the
base-relative offsets that were placed there previously), so we
must use a different mechanism to compute our reloc base.

Patch from Charles Hannum.
 1.12 31-Oct-2002  matt Convert to register prefixes.
 1.11 05-Oct-2002  mycroft Minor cleanup.
 1.10 25-Sep-2002  mycroft Push the _rtld_bind() interface into MD code -- it's just a trivial wrapper
anyway.
 1.9 12-Sep-2002  mycroft Update comments.
 1.8 12-Sep-2002  mycroft Pass the calculated relocation offset down to _rtld().
 1.7 11-Sep-2002  mycroft Implement _rtld_relocate_nonplt_self() here.
 1.6 10-Sep-2002  mycroft Remove unneeded cruft from _rtld_start.
 1.5 10-Sep-2002  mycroft Shorten the startup sequence by a few instructions.
 1.4 26-Sep-2001  mycroft branches: 1.4.2;
In the `I can't believe it's been broken all this time' department:
_rtld_bind_start must save and restore the condition codes. Varargs functions
(like, say, printf()) depend on the state of cr1 to determine whether they need
to store floating point registers in the save area. Without this, the first
call to any particular varargs function will fail if floating point values were
passed.
 1.3 21-May-1999  tsubai branches: 1.3.8;
syncicache is needed...
 1.2 18-Apr-1999  ws Add code to use the kernel provided page size.
Enable this on the powerpc only for now.
 1.1 24-Nov-1998  tsubai Add powerpc support.
 1.3.8.1 09-Dec-2001  he Pull up revision 1.4 (requested by skrll):
Add init/fini section support in crtbegin and crtend, and introduce
support for DWARF2 exception handling. Fixes PR#12865, PR#13488,
PR#13489, and PR#13491. Also fix ld.elf_so to deal appropriately.
 1.4.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.14.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.14.2.1 17-Feb-2011  bouyer Sync with HEAD
 1.2 06-Mar-2014  matt branches: 1.2.4; 1.2.8;
More PPC64 changes.
Nothing to do for lazy bindings.
Record DT_PPC64_GLINK and make _rtld_bind return it.
When resolving a JMP_SLOT, copy the source function descriptor into the PLTGOT
 1.1 06-Mar-2014  matt Startup file for powerpc64. (too many difference with ppc32 to do
#ifdef dance)
 1.2.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.8.1 06-Mar-2014  tls file rtld_start64.S was added on branch tls-maxphys on 2014-08-20 00:02:22 +0000
 1.2.4.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2.4.1 06-Mar-2014  yamt file rtld_start64.S was added on branch yamt-pagecache on 2014-05-22 11:37:14 +0000
 1.2 27-Dec-2018  christos initfini array support for everyone.
 1.1 19-Sep-2014  matt branches: 1.1.14; 1.1.16;
New files for Userland support of UCB RISC-V (both 32-bit and 64-bit)
 1.1.16.1 10-Jun-2019  christos Sync with HEAD
 1.1.14.1 18-Jan-2019  pgoyette Synch with HEAD
 1.11 01-Dec-2024  skrll Fix the build.
 1.10 22-Jul-2024  riastradh ld.elf_so: Cite reference for RISC-V ELF relocations.

PR lib/58455: Missing references for processor-specific ELF
relocation semantics
 1.9 04-Jun-2023  joerg branches: 1.9.2;
Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).

Fix this by forcing the computation of the correct DSO (the one defining
the symbol).

This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
 1.8 07-May-2023  skrll RISC-V support that works on QEMU with a single hart.

Thanks for Simon Burge for plic(4).
 1.7 05-Dec-2022  skrll branches: 1.7.2;
RISC-V is RELA
 1.6 03-Dec-2022  skrll Trailing whitespace
 1.5 15-Apr-2019  maya branches: 1.5.2;
r_symndx is no longer declared, use symnum and initialize it before use.

Completes the changes in the commit:
"Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects."
http://mail-index.netbsd.org/source-changes/2017/06/19/msg085496.html
 1.4 10-Aug-2017  joerg branches: 1.4.4;
Add IRELATIVE support for ARM, X86 and PowerPC.
 1.3 19-Jun-2017  joerg Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.

The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.

Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
 1.2 27-Mar-2015  matt branches: 1.2.8;
Update RISCV to use the ELF relocations and new ABI.
 1.1 19-Sep-2014  matt New files for Userland support of UCB RISC-V (both 32-bit and 64-bit)
 1.2.8.1 04-Jul-2017  martin Pull up following revision(s) (requested by joerg in ticket #64):
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.40
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.41
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.44
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.60
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.32
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.61
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.2
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.50
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.34
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.39
libexec/ld.elf_so/symbol.c: revision 1.68
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.66
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.67
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.68
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.42
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.54
libexec/ld.elf_so/Makefile: revision 1.137
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.32
libexec/ld.elf_so/rtld.h: revision 1.127
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.38
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.42
libexec/ld.elf_so/map_object.c: revision 1.58
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.49
Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.
The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.
Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
Drop symbol number from default branch diagnostic, it isn't set at this
point and most likely not valid either.
Expand symnum, GCC's uninitialized used tracking is too imprecise.
Fix C&P bug. Deal with more MIPS hacks overriding def.
Add last_symnum, move up def and defobj.
Add back symnum, fix debug print.
Replace last use of r_type.
Fix indentation.
Fix indentation.
 1.4.4.1 10-Jun-2019  christos Sync with HEAD
 1.5.2.1 04-Aug-2023  martin Pull up following revision(s), all via patch,
(requested by riastradh in ticket #1699):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.

This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.

PR pkg/57445

Fix MKDEBUGLIB build by adding these installed files to the debug
set list.

One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.

Fix markup of libh_ MKDEBUGLIB=yes only files

TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.7.2.2 02-Aug-2023  martin Fix member name in patch for ticket #297 (fix dlopen with static thread-local
storage)
 1.7.2.1 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #297):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44
(all via patch)

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen
(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.
(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.
(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.
PR pkg/57445
Fix MKDEBUGLIB build by adding these installed files to the debug
set list.
XXX
One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.
Fix markup of libh_ MKDEBUGLIB=yes only files
TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.9.2.1 02-Aug-2025  perseant Sync with HEAD
 1.6 07-May-2023  skrll RISC-V support that works on QEMU with a single hart.

Thanks for Simon Burge for plic(4).
 1.5 05-Dec-2022  skrll Use the SZREG symbol instead of __SIZEOF_POINTER__ as its shorter. Assert
that they're the same just in case.

Sprinkle some KNF whitespace while I'm here.
 1.4 04-Dec-2022  skrll Consistently use the 'mv' instrucation (which is itself an alias) instead
of the (old) alternative alias 'move'.
 1.3 03-Dec-2022  skrll Trailing whitespace
 1.2 27-Mar-2015  matt Update RISCV to use the ELF relocations and new ABI.
 1.1 19-Sep-2014  matt New files for Userland support of UCB RISC-V (both 32-bit and 64-bit)
 1.7 04-Jun-2005  lukem Explicitly prefix ld(1) options in LDFLAGS with "-Wl," rather than
using the ${LDFLAGS:@F@-Wl,$F@} make substitution because that breaks
if LDFLAGS is already set.
 1.6 21-Feb-2004  skrll Add the standard XXX about CPPFLAGS and -fpic here.
 1.5 21-Feb-2004  skrll Move common LDFLAGS into Makefile from arch/*/Makefile.inc
 1.4 20-Feb-2004  skrll Whitespace.
 1.3 24-Sep-2002  mycroft Remove vestiges of VARPSZ.
 1.2 05-Sep-2002  mycroft Make _rtld_setup_pltgot() a consistent interface on all platforms.
 1.1 03-Feb-2002  thorpej branches: 1.1.2;
Add support for dynamic linking on the SuperH. From Marcus Comstedt,
with some bug fixes (namely, don't forget to consider the addend when
processing relocations) from me.
 1.1.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.38 16-Apr-2025  riastradh ld.elf_so/arch/sh3: Add copyright notice from original reloc.c.

Originally copied from libexec/ld.elf_so/reloc.c rev. 1.58.
 1.37 23-Jul-2024  uwe ld.elf_so: Cite reference for SuperH ELF relocations

PR lib/58455: Missing references for processor-specific ELF
relocation semantics
 1.36 04-Jun-2023  joerg branches: 1.36.2;
Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).

Fix this by forcing the computation of the correct DSO (the one defining
the symbol).

This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
 1.35 10-Aug-2017  joerg branches: 1.35.6; 1.35.14;
Add IRELATIVE support for ARM, X86 and PowerPC.
 1.34 20-Jun-2017  joerg Add last_symnum, move up def and defobj.
 1.33 19-Jun-2017  joerg Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.

The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.

Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
 1.32 14-Apr-2016  skrll branches: 1.32.8;
Remove duplicated __RCSIDs I added years ago - I blame CVS.

Spotted by Miod Vallat
 1.31 25-Aug-2014  joerg Add basic support for indirect functions. It allows providing a public
function symbol with an implementation choosen at run time.
Refactor calls to functions by address in ld.elf_so to create temporary
function descriptors on the stack, if the address is not leaked outside.

Limitations:
- no support for initialising static storage with function pointers
- no support for unnamed resolver functions

Inspired by FreeBSD's r228435 by kib@freebsd.org.
 1.30 25-Mar-2011  joerg branches: 1.30.22;
Add basic locking to ld.elf_so.
 1.29 12-Mar-2011  joerg Add TLS support for AMD64, i386 and SH3.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.
 1.28 06-Aug-2010  joerg Reduce header pollution for mdreloc.c. Make Obj_Entry argument of
_rtld_relocate_nonplt_objects non-const in preparation for TLS support.
 1.27 13-Jan-2010  christos PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
 1.26 29-Aug-2009  jmmv Remove trailing \n in calls to _rtld_error: a newline is automatically
added by a call to the function.
 1.25 16-Mar-2009  lukem Fix const issues (cast const pointers to "const uint8_t *" instead of "caddr_t")

NOTE: change based on ../i386/mdreloc.c 1.27
XXX: not compile tested
 1.24 24-Jul-2008  skrll branches: 1.24.4; 1.24.6;
RCSID police
 1.23 24-Jul-2008  matt Refactor common code to _rtld_relocate_plt_object to i386 and arm so they
act like the other versions.
In _rtld_bind, if the result is 0, call _rtld_die.
Initialize _rtld_sym_zero.st_value to -_rtld_objself.maprelocbase. Now when
the symbol is resolved, st_value + maprelocbase will equal 0 and the above
check in _rtld_bind will fire and a call to NULL will be avoided.
 1.22 21-May-2006  mrg branches: 1.22.20;
avoid more GCC4 uninitialised variable problems. (sh3 known, vax guessed.)
 1.21 20-Aug-2005  skrll Add __RCSID.
 1.20 31-May-2005  skrll Support LD_BIND_NOW on sh3..
 1.19 24-Jul-2003  skrll branches: 1.19.4;
ANSIfy and de-__P().
 1.18 05-Jul-2003  marcus Removed unused function.
 1.17 05-Jul-2003  tsutsui Add function prototype declarations.
 1.16 02-Jul-2003  marcus Bugfix: Don't pick addend both from reloc and contents at the same time.
 1.15 30-Jun-2003  marcus Updated to work with current rtld code.
 1.14 03-Oct-2002  mycroft Skip the lazy PLT relocation if relocbase==0 (useful if libraries are loaded
at their VMA address).
 1.13 26-Sep-2002  mycroft Remove the `self' args to _rtld_relocate_objects() and
_rtld_relocate_nonplt_objects().
 1.12 12-Sep-2002  mycroft Nuke -DRTLD_RELOCATE_SELF and `dodebug' from orbit.
 1.11 12-Sep-2002  mycroft _rtld_bind_start() is not used in MI code, so declare it in the MD code.
 1.10 11-Sep-2002  junyoung Add $NetBSD$.
 1.9 06-Sep-2002  mycroft Pass down an additional flag to _rtld_relocate_nonplt_objects() which
indicates whether we're relocating ld.elf_so itself. Use this in some places
rather than hackish tests on `dodebug'. (The Alpha and HPPA `dodebug' tests
were actually noops, because RTLD_RELOCATE_SELF is not set, and therefore
dodebug is always true.)
 1.8 06-Sep-2002  mycroft Introduce a new flag, `isdynamic', which is used to remember whether the
executable was of type ET_DYN. Use this instead of `mainprog' to determine
whether we need to do base-relative fixups of the PLT. (This allows loading
non-relocatable objects, should we desire to do that at some point...)
 1.7 06-Sep-2002  mycroft Re-poison a lot of consts, now that the mark shite is gone.
 1.6 06-Sep-2002  mycroft Split _rtld_relocate_plt_object() into two MD functions:
* _rtld_relocate_plt_lazy() fixes up all the relocs pointing to the PLT. (On
most platforms it just does a simple base-relative fixup; on SPARC it does
nothing.)
* _rtld_relocate_plt_object() does immediate binding for a PLT entry.
The basic gist is that this saves a bit of time on SPARC (where the iteration
through the pltrela table was gratuitous), and a little less time on all other
platforms. A whole lot of #ifdef'ed crap is moved out of reloc.c, too.

NOT tested on: hppa sh x86_64
 1.5 05-Sep-2002  mycroft Partially fix up some debug printf()s that don't need to use defobj.
 1.4 05-Sep-2002  mycroft A few things:
* Pass a symbol number to _rtld_find_symdef(), not a r_info.
* Don't try to do a symbol lookup when we find an unsupported relocation;
instead get the symbol name from the referencing object's strtab.
* Add preliminary support for `-z combreloc'-style startup optimization on
i386, `#ifdef COMBRELOC'.
 1.3 05-Sep-2002  mycroft Rename _rtld_relocate_nonplt_object() to _rtld_relocate_nonplt_objects(),
and push the outer loop into it. This actually shaves a couple % off startup
time at least on PCs.
 1.2 05-Sep-2002  mycroft Split _rtld_relocate_nonplt_object() into separate MD files.
 1.1 05-Sep-2002  mycroft Make _rtld_setup_pltgot() a consistent interface on all platforms.
 1.19.4.2 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.19.4.1 24-Jul-2003  tron file mdreloc.c was added on branch netbsd-1-6 on 2004-05-28 08:31:22 +0000
 1.22.20.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.24.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.24.4.1 17-Mar-2012  bouyer Pull up following revision(s) via patch (requested by skrll in ticket #1724):
rescue/list.ldd: revision 1.4
lib/libc/dlfcn/dlfcn_elf.c: revision 1.7
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.57
distrib/sets/lists/comp/mi: revision 1.1512
share/man/man3/Makefile: revision 1.56
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.58
usr.bin/ldd/ldd.c: revision 1.15
libexec/ld.elf_so/rtld.h: revision 1.84
share/man/man3/dl_iterate_phdr.3: revision 1.1
libexec/ld.elf_so/rtld.c: revision 1.129
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.44
libexec/ld.elf_so/rtld.h: revision 1.89
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.36
libexec/ld.elf_so/map_object.c: revision 1.41
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.37
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.46
include/link_elf.h: revision 1.10
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.29
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.26
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.34
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.31
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.35
libexec/ld.elf_so/Makefile: revision 1.94
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.32
libexec/ld.elf_so/Makefile: revision 1.95
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.31
libexec/ld.elf_so/Makefile: revision 1.96
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.32
libexec/ld.elf_so/reloc.c: revision 1.98
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.33
sys/sys/exec_elf.h: revision 1.106
libexec/ld.elf_so/rtld.c: revision 1.130
libexec/ld.elf_so/load.c: revision 1.37
libexec/ld.elf_so/rtld.c: revision 1.131
libexec/ld.elf_so/load.c: revision 1.38
libexec/ld.elf_so/rtld.h: revision 1.90
libexec/ld.elf_so/headers.c: revision 1.36
libexec/ld.elf_so/rtld.h: revision 1.95
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.30
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.25
libexec/ld.elf_so/symbol.c: revision 1.50
libexec/ld.elf_so/symbol.c: revision 1.51
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.43
libexec/ld.elf_so/symbol.c: revision 1.52
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.27
libexec/ld.elf_so/symbol.c: revision 1.54
PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
Implement dl_iterate_phdr.
Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.30.22.1 06-Mar-2016  martin Catch up to -current, via patch, requested by christos in ticket #1126:
 1.32.8.1 04-Jul-2017  martin Pull up following revision(s) (requested by joerg in ticket #64):
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.40
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.41
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.44
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.60
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.32
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.61
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.2
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.50
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.34
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.39
libexec/ld.elf_so/symbol.c: revision 1.68
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.66
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.67
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.68
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.42
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.54
libexec/ld.elf_so/Makefile: revision 1.137
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.32
libexec/ld.elf_so/rtld.h: revision 1.127
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.38
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.42
libexec/ld.elf_so/map_object.c: revision 1.58
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.49
Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.
The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.
Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
Drop symbol number from default branch diagnostic, it isn't set at this
point and most likely not valid either.
Expand symnum, GCC's uninitialized used tracking is too imprecise.
Fix C&P bug. Deal with more MIPS hacks overriding def.
Add last_symnum, move up def and defobj.
Add back symnum, fix debug print.
Replace last use of r_type.
Fix indentation.
Fix indentation.
 1.35.14.1 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #297):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44
(all via patch)

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen
(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.
(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.
(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.
PR pkg/57445
Fix MKDEBUGLIB build by adding these installed files to the debug
set list.
XXX
One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.
Fix markup of libh_ MKDEBUGLIB=yes only files
TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.35.6.1 04-Aug-2023  martin Pull up following revision(s), all via patch,
(requested by riastradh in ticket #1699):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.

This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.

PR pkg/57445

Fix MKDEBUGLIB build by adding these installed files to the debug
set list.

One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.

Fix markup of libh_ MKDEBUGLIB=yes only files

TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.36.2.1 02-Aug-2025  perseant Sync with HEAD
 1.7 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.6 11-Jan-2006  uwe branches: 1.6.18;
Add some comments.
 1.5 11-Jan-2006  uwe Kill trailing whitespace.
Indent delay slots.
 1.4 14-Sep-2004  uwe Preserve r2 in _rtld_bind_start - in r2 functions that return
aggregate types are passed the address of the memory area to store the
returned result to.

Fixes PR port-sh3/26949.
 1.3 30-Jun-2003  marcus branches: 1.3.2;
Updated to work with current rtld code.
 1.2 04-Feb-2002  thorpej branches: 1.2.2;
Whitespace cleanup.
 1.1 03-Feb-2002  thorpej Add support for dynamic linking on the SuperH. From Marcus Comstedt,
with some bug fixes (namely, don't forget to consider the addend when
processing relocations) from me.
 1.2.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.3.2.1 16-Sep-2004  jmc Pullup rev 1.4 (requested by uwe in ticket #848)

Preserve r2 in _rtld_bind_start - in r2 functions that return
aggregate types are passed the address of the memory area to store the
returned result to. PR#26949
 1.6.18.1 18-May-2008  yamt sync with head.
 1.15 03-Apr-2018  joerg Rework ifunc support to address a number of short comings:
- Move to a shared _rtld_call_ifunc for rel and rela architectures
- Architectures using rel format must patch IRELATIVE non-PLT
relocations like RELATIVE in additition to the later ifunc handling
- Consistently record the delta to the end of the relocation group for
non-PLT IRELATIVE relocations

Hidden ifunc is now supported on all ifunc platforms, even when using
-fno-plt. The combination of -fno-plt and relro is broken due to
incorrect GNU ld output though.
 1.14 13-Dec-2009  mrg branches: 1.14.44;
simplify the logic for compat ld.elf_so and move it here. we now can
find the libc objdir for multiple compat ld.elf_so's, too.
 1.13 13-Dec-2009  mrg rename LD32DIR to MLIBDIR.
 1.12 06-Jan-2009  mrg move the defines for RTLD_ARCH_SUBDIR into a sub-sub-makefile so we can
grab these values via reach-over more easily.
 1.11 26-Oct-2008  mrg branches: 1.11.2;
if LD32DIR is defined:
- look in src/compat/lib/libc for libc_pic.
- define RTLD_ARCH_SUBDIR to "i386" or "sparc" for amd64 and sparc64
builds, respectively
if RTLD_ARCH_SUBDIR is defined, add this path before
RTLD_DEFAULT_LIBRARY_PATH in the default search path.
 1.10 04-Jun-2005  lukem Explicitly prefix ld(1) options in LDFLAGS with "-Wl," rather than
using the ${LDFLAGS:@F@-Wl,$F@} make substitution because that breaks
if LDFLAGS is already set.
 1.9 21-Feb-2004  skrll Move common LDFLAGS into Makefile from arch/*/Makefile.inc
 1.8 20-Feb-2004  skrll Whitespace.
 1.7 24-Sep-2002  mycroft Remove vestiges of VARPSZ.
 1.6 11-Sep-2002  mycroft This ld script is no longer necessary.
 1.5 09-Sep-2002  mycroft Nuke RTLD_RELOCATE_SELF for SPARC.
 1.4 20-Dec-2001  thorpej branches: 1.4.2;
Grumble. Put compiler options back into CPPFLAGS for now, since
they're needed to build .S files with the correct PIC options.

XXX Really needs cleanup in <bsd.*.mk> to do this properly.
 1.3 14-Dec-2001  thorpej Don't put compiler options into CPPFLAGS.
 1.2 22-Jun-1999  christos We need to compile with -DVARPSZ, because the sparc has a variable page
size depending on arch. Make it an error to compile without it. This
caused -lposix linked programs to fail.
 1.1 24-Feb-1999  christos Work in progress (does not work yet).
 1.4.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.11.2.2 06-Jan-2011  riz Apply patch (requested by mrg in ticket #1499):

src/compat version 2. this allows building any number of alternate
library / program target ABIs. rather than duplicating the list of
subdirs and Makefiles to build, it re-traverses the necessary ones.
details:
- add support for MAKEDIRTARGETENV to share/mk
- renames LD32DIR to MLIBDIR
- fixes library builds for some subdirs (more was built than needed)
- fixes /bin & /sbin apps in compat mode
- reduces complexity in src/compat and the rest of the tree
- updates ldd netbsd32 support
 1.11.2.1 16-Jan-2009  bouyer branches: 1.11.2.1.4;
Pull up following revision(s) (requested by mrg in ticket #265):
libexec/ld.elf_so/headers.c: revision 1.27
rescue/list: revision 1.35
libexec/ld.elf_so/arch/sparc/Makefile.ld32: revision 1.1
usr.bin/ldd/Makefile.elf: revision 1.1
usr.bin/ldd/Makefile.elf: revision 1.2
usr.bin/ldd/ldd_aout/ldd.c: file removal
usr.bin/ldd/Makefile.elf: revision 1.3
libexec/ld.elf_so/arch/sparc/Makefile.inc: revision 1.12
usr.bin/ldd/dummy.c: revision 1.1
gnu/usr.bin/binutils/ld/Makefile: revision 1.28
usr.bin/ldd/elf32/Makefile: revision 1.1
usr.bin/ldd/elf32/Makefile: revision 1.2
usr.bin/ldd/ldd.c: revision 1.3
usr.bin/ldd/elf32/Makefile: revision 1.3
usr.bin/ldd/ldd_elf/Makefile: file removal
usr.bin/ldd/ldd.h: revision 1.1
usr.bin/ldd/ldd.c: revision 1.4
usr.bin/ldd/ldd_aout.c: revision 1.1
usr.bin/ldd/Makefile: revision 1.8
usr.bin/ldd/Makefile: revision 1.9
usr.bin/ldd/ldd_elfxx.c: revision 1.1
libexec/ld.elf_so/map_object.c: revision 1.37
usr.bin/ldd/ldd_aout/Makefile: file removal
usr.bin/ldd/elf64/Makefile: revision 1.1
rescue/Makefile: revision 1.22
libexec/ld.elf_so/arch/i386/Makefile.ld32: revision 1.1
usr.bin/ldd/ldd_elf/ldd.c: file removal
usr.bin/ldd/elf64/Makefile: revision 1.2
usr.bin/ldd/elf64/Makefile: revision 1.3
usr.bin/ldd/aout/Makefile: revision 1.1
libexec/ld.elf_so/arch/i386/Makefile.inc: revision 1.12
rescue/list.ldd: revision 1.1
usr.bin/ldd/ldd_elf/README: file removal
usr.bin/ldd/Makefile.common: revision 1.1
move the defines for RTLD_ARCH_SUBDIR into a sub-sub-makefile so we can
grab these values via reach-over more easily.
some fixes for PR#40170:
- set NATIVE=yes in the environment for genscripts.sh
- set LIB_PATH to /usr/lib/{sparc,i386} for those scripts
- set use_sysroot to "yes", to enable LIB_PATH to work in genscripts.sh
- get rid of building an a.out-happy ldd (but keep supporting a.out
binaries for the ELF version.)
- convert a.out, elf32 and elf64 support into convience libraries and
link them right ones in. if elf_ldd() fails on 64 bit platforms,
try elf32_ldd() before aout_ldd().
now ldd on 64 bit platforms works for 32 bit binaries, aka PR#40199,
and it seems that all the issues from README are gone too.
add some (uintptr_t) to some casts, so these compile with ELFSIZE=32
*and _LP64. necessary for 32/64 bit combo ldd support.
- rework this a bunch to make it work inside /rescue/ldd.
- fix alpha build.
make sure we set LIBISPRIVATE.
fixes build issues reported by moof.
make sure we set LIBISPRIVATE.
fixes build issues reported by moof.
 1.11.2.1.4.1 14-Dec-2009  mrg merge from -current:
>rename LD32DIR to MLIBDIR.

>- adjust the logic for compat ldd: add an elf32_compat module and arrange
> for mips64 to build this with MLIBDIR set to o32
>- make mips64 ldd call elf32_compat_ldd as well
>- make mips64 elf64 set MLIBDIR to 64
>- don't need ld.elf_so's Makefile.ld32 files anymore (they are going away
> soon anyway)
>
>tested on amd64 and sparc64, and an earlier version tested on mips64.

>if BSD_MK_COMPAT_FILE is defined, .include it.

>simplify the logic for compat ld.elf_so and move it here. we now can
>find the libc objdir for multiple compat ld.elf_so's, too.
 1.14.44.1 07-Apr-2018  pgoyette Sync with HEAD. 77 conflicts resolved - all of them $NetBSD$
 1.2 13-Dec-2009  mrg simplify the logic for compat ld.elf_so and move it here. we now can
find the libc objdir for multiple compat ld.elf_so's, too.
 1.1 06-Jan-2009  mrg branches: 1.1.2;
move the defines for RTLD_ARCH_SUBDIR into a sub-sub-makefile so we can
grab these values via reach-over more easily.
 1.1.2.3 06-Jan-2011  riz Apply patch (requested by mrg in ticket #1499):

src/compat version 2. this allows building any number of alternate
library / program target ABIs. rather than duplicating the list of
subdirs and Makefiles to build, it re-traverses the necessary ones.
details:
- add support for MAKEDIRTARGETENV to share/mk
- renames LD32DIR to MLIBDIR
- fixes library builds for some subdirs (more was built than needed)
- fixes /bin & /sbin apps in compat mode
- reduces complexity in src/compat and the rest of the tree
- updates ldd netbsd32 support
 1.1.2.2 16-Jan-2009  bouyer branches: 1.1.2.2.4;
Pull up following revision(s) (requested by mrg in ticket #265):
libexec/ld.elf_so/headers.c: revision 1.27
rescue/list: revision 1.35
libexec/ld.elf_so/arch/sparc/Makefile.ld32: revision 1.1
usr.bin/ldd/Makefile.elf: revision 1.1
usr.bin/ldd/Makefile.elf: revision 1.2
usr.bin/ldd/ldd_aout/ldd.c: file removal
usr.bin/ldd/Makefile.elf: revision 1.3
libexec/ld.elf_so/arch/sparc/Makefile.inc: revision 1.12
usr.bin/ldd/dummy.c: revision 1.1
gnu/usr.bin/binutils/ld/Makefile: revision 1.28
usr.bin/ldd/elf32/Makefile: revision 1.1
usr.bin/ldd/elf32/Makefile: revision 1.2
usr.bin/ldd/ldd.c: revision 1.3
usr.bin/ldd/elf32/Makefile: revision 1.3
usr.bin/ldd/ldd_elf/Makefile: file removal
usr.bin/ldd/ldd.h: revision 1.1
usr.bin/ldd/ldd.c: revision 1.4
usr.bin/ldd/ldd_aout.c: revision 1.1
usr.bin/ldd/Makefile: revision 1.8
usr.bin/ldd/Makefile: revision 1.9
usr.bin/ldd/ldd_elfxx.c: revision 1.1
libexec/ld.elf_so/map_object.c: revision 1.37
usr.bin/ldd/ldd_aout/Makefile: file removal
usr.bin/ldd/elf64/Makefile: revision 1.1
rescue/Makefile: revision 1.22
libexec/ld.elf_so/arch/i386/Makefile.ld32: revision 1.1
usr.bin/ldd/ldd_elf/ldd.c: file removal
usr.bin/ldd/elf64/Makefile: revision 1.2
usr.bin/ldd/elf64/Makefile: revision 1.3
usr.bin/ldd/aout/Makefile: revision 1.1
libexec/ld.elf_so/arch/i386/Makefile.inc: revision 1.12
rescue/list.ldd: revision 1.1
usr.bin/ldd/ldd_elf/README: file removal
usr.bin/ldd/Makefile.common: revision 1.1
move the defines for RTLD_ARCH_SUBDIR into a sub-sub-makefile so we can
grab these values via reach-over more easily.
some fixes for PR#40170:
- set NATIVE=yes in the environment for genscripts.sh
- set LIB_PATH to /usr/lib/{sparc,i386} for those scripts
- set use_sysroot to "yes", to enable LIB_PATH to work in genscripts.sh
- get rid of building an a.out-happy ldd (but keep supporting a.out
binaries for the ELF version.)
- convert a.out, elf32 and elf64 support into convience libraries and
link them right ones in. if elf_ldd() fails on 64 bit platforms,
try elf32_ldd() before aout_ldd().
now ldd on 64 bit platforms works for 32 bit binaries, aka PR#40199,
and it seems that all the issues from README are gone too.
add some (uintptr_t) to some casts, so these compile with ELFSIZE=32
*and _LP64. necessary for 32/64 bit combo ldd support.
- rework this a bunch to make it work inside /rescue/ldd.
- fix alpha build.
make sure we set LIBISPRIVATE.
fixes build issues reported by moof.
make sure we set LIBISPRIVATE.
fixes build issues reported by moof.
 1.1.2.1 06-Jan-2009  bouyer file Makefile.ld32 was added on branch netbsd-5 on 2009-01-16 22:21:30 +0000
 1.1.2.2.4.1 14-Dec-2009  mrg merge from -current:
>rename LD32DIR to MLIBDIR.

>- adjust the logic for compat ldd: add an elf32_compat module and arrange
> for mips64 to build this with MLIBDIR set to o32
>- make mips64 ldd call elf32_compat_ldd as well
>- make mips64 elf64 set MLIBDIR to 64
>- don't need ld.elf_so's Makefile.ld32 files anymore (they are going away
> soon anyway)
>
>tested on amd64 and sparc64, and an earlier version tested on mips64.

>if BSD_MK_COMPAT_FILE is defined, .include it.

>simplify the logic for compat ld.elf_so and move it here. we now can
>find the libc objdir for multiple compat ld.elf_so's, too.
 1.2 11-Sep-2002  mycroft This ld script is no longer necessary.
 1.1 09-Sep-2002  mycroft Nuke RTLD_RELOCATE_SELF for SPARC.
 1.60 03-Aug-2024  riastradh ld.elf_so(1): Nix trailing whitespace.

No functional change intended.
 1.59 23-Jul-2024  uwe ld.elf_so: Cite reference for SPARC ELF relocations

PR lib/58455: Missing references for processor-specific ELF
relocation semantics
 1.58 24-Sep-2023  martin branches: 1.58.2;
Fix debug code
 1.57 04-Jun-2023  joerg Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).

Fix this by forcing the computation of the correct DSO (the one defining
the symbol).

This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
 1.56 02-Jun-2023  andvar follow the steps of Andrew Doran (ad) commit and fix more s/loose/lose/ typos.
also s/beyound/beyond/ and few others along the way, mainly in comments.
 1.55 03-Apr-2018  joerg branches: 1.55.4; 1.55.12;
Rework ifunc support to address a number of short comings:
- Move to a shared _rtld_call_ifunc for rel and rela architectures
- Architectures using rel format must patch IRELATIVE non-PLT
relocations like RELATIVE in additition to the later ifunc handling
- Consistently record the delta to the end of the relocation group for
non-PLT IRELATIVE relocations

Hidden ifunc is now supported on all ifunc platforms, even when using
-fno-plt. The combination of -fno-plt and relro is broken due to
incorrect GNU ld output though.
 1.54 29-Mar-2018  joerg Move the complex logic for dynamically writing branches from ld.elf_so
into a header for reuse in crt0.o for static ifunc support. Change the
existing logic for sparc64 to use the Bicc variant of ba,a as it allows
+-8MB displacement compared to the BPcc variant's +-1MB. Teach the sparc
variant the same trick for using ba,a and not sethi+jmp when possible.
 1.53 25-Mar-2018  joerg Don't skip PLT processing for the main binary. It can still contain
ifunc references.
 1.52 12-Aug-2017  joerg branches: 1.52.2;
Add sparc/sparc64 support for irelative relocations.
 1.51 10-Aug-2017  joerg Add IRELATIVE support for ARM, X86 and PowerPC.
 1.50 19-Jun-2017  joerg Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.

The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.

Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
 1.49 15-Jun-2017  joerg Fix indentation.
 1.48 25-Aug-2014  joerg branches: 1.48.8;
Add basic support for indirect functions. It allows providing a public
function symbol with an implementation choosen at run time.
Refactor calls to functions by address in ld.elf_so to create temporary
function descriptors on the stack, if the address is not leaked outside.

Limitations:
- no support for initialising static storage with function pointers
- no support for unnamed resolver functions

Inspired by FreeBSD's r228435 by kib@freebsd.org.
 1.47 31-Mar-2011  nakayama branches: 1.47.22;
Add missing comma.
 1.46 30-Mar-2011  martin Add support for TLS relocations
 1.45 25-Mar-2011  joerg Add basic locking to ld.elf_so.
 1.44 06-Aug-2010  joerg Reduce header pollution for mdreloc.c. Make Obj_Entry argument of
_rtld_relocate_nonplt_objects non-const in preparation for TLS support.
 1.43 13-Jan-2010  christos PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
 1.42 16-Mar-2009  lukem Fix const issues (cast const pointers to "const uint8_t *" instead of "caddr_t")

NOTE: change based on ../i386/mdreloc.c 1.27
XXX: not compile tested
 1.41 24-Jul-2008  matt branches: 1.41.4; 1.41.6;
Refactor common code to _rtld_relocate_plt_object to i386 and arm so they
act like the other versions.
In _rtld_bind, if the result is 0, call _rtld_die.
Initialize _rtld_sym_zero.st_value to -_rtld_objself.maprelocbase. Now when
the symbol is resolved, st_value + maprelocbase will equal 0 and the above
check in _rtld_bind will fire and a call to NULL will be avoided.
 1.40 28-Apr-2008  martin branches: 1.40.2;
Remove clause 3 and 4 from TNF licenses
 1.39 20-May-2006  mrg branches: 1.39.18;
in _rtld_bind() initialise result to appease GCC4.
 1.38 24-Dec-2005  perry Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.37 20-Aug-2005  skrll Add __RCSID.
 1.36 15-Aug-2005  skrll KNF
 1.35 09-Jan-2005  martin Add LD_BIND_NOW support for sparc and remove some relocation types that
are not supposed to happen in 32bit code.
From Nick Hudson.
 1.34 05-Jan-2005  martin Add support for unaligned relocs on sparc, from PR 26858.
Should also fix PR 25901 and PR 18296.
 1.33 24-Jul-2003  skrll branches: 1.33.4;
ANSIfy and de-__P().
 1.32 26-Sep-2002  mycroft Remove the `self' args to _rtld_relocate_objects() and
_rtld_relocate_nonplt_objects().
 1.31 26-Sep-2002  mycroft Remove a meaningless bit from a rdbg().
 1.30 26-Sep-2002  mycroft Make the stack frame 96 bytes, like GCC does.
 1.29 26-Sep-2002  mycroft Tweak the save instruction in the PLT stub rather than adding an instruction
to the binder entry stub...
 1.28 25-Sep-2002  mycroft For consistency, use Elf_Word* to point to code, not Elf_Addr*.
 1.27 25-Sep-2002  mycroft Push the _rtld_bind() interface into MD code -- it's just a trivial wrapper
anyway.
 1.26 12-Sep-2002  mycroft Nuke -DRTLD_RELOCATE_SELF and `dodebug' from orbit.
 1.25 12-Sep-2002  mycroft _rtld_bind_start() is not used in MI code, so declare it in the MD code.
 1.24 11-Sep-2002  mycroft Do the _rtld_relocate_nonplt_self() thing for SPARC.
 1.23 09-Sep-2002  mycroft Nuke RTLD_RELOCATE_SELF for SPARC.
 1.22 06-Sep-2002  mycroft Expand the comment about the R_TYPE(RELATIVE) special-case, as it's not quite
obvious from the code. Also, just do it all the time, as an optimization.
 1.21 06-Sep-2002  mycroft Make the reloc tables const.
 1.20 06-Sep-2002  mycroft Pass down an additional flag to _rtld_relocate_nonplt_objects() which
indicates whether we're relocating ld.elf_so itself. Use this in some places
rather than hackish tests on `dodebug'. (The Alpha and HPPA `dodebug' tests
were actually noops, because RTLD_RELOCATE_SELF is not set, and therefore
dodebug is always true.)
 1.19 06-Sep-2002  mycroft Re-poison a lot of consts, now that the mark shite is gone.
 1.18 06-Sep-2002  mycroft Split _rtld_relocate_plt_object() into two MD functions:
* _rtld_relocate_plt_lazy() fixes up all the relocs pointing to the PLT. (On
most platforms it just does a simple base-relative fixup; on SPARC it does
nothing.)
* _rtld_relocate_plt_object() does immediate binding for a PLT entry.
The basic gist is that this saves a bit of time on SPARC (where the iteration
through the pltrela table was gratuitous), and a little less time on all other
platforms. A whole lot of #ifdef'ed crap is moved out of reloc.c, too.

NOT tested on: hppa sh x86_64
 1.17 06-Sep-2002  mycroft Repair a slight biff I made earlier -- do not exit the loop in
_rtld_relocate_nonplt_objects() early.
 1.16 05-Sep-2002  mycroft Partially fix up some debug printf()s that don't need to use defobj.
 1.15 05-Sep-2002  mycroft A few things:
* Pass a symbol number to _rtld_find_symdef(), not a r_info.
* Don't try to do a symbol lookup when we find an unsupported relocation;
instead get the symbol name from the referencing object's strtab.
* Add preliminary support for `-z combreloc'-style startup optimization on
i386, `#ifdef COMBRELOC'.
 1.14 05-Sep-2002  mycroft Rename _rtld_relocate_nonplt_object() to _rtld_relocate_nonplt_objects(),
and push the outer loop into it. This actually shaves a couple % off startup
time at least on PCs.
 1.13 05-Sep-2002  mycroft Split _rtld_relocate_nonplt_object() into separate MD files.
 1.12 05-Sep-2002  junyoung Remove unused arguments of _rtld_find_symdef().
 1.11 05-Sep-2002  mycroft Make _rtld_setup_pltgot() a consistent interface on all platforms.
 1.10 25-Apr-2001  kleink branches: 1.10.2;
Sync with <sys/exec_elf.h> rev. 1.45: ElfNN_RelA -> ElfNN_Rela.
 1.9 07-Nov-1999  mycroft branches: 1.9.4;
Make this more likely to compile with ld.elf_so changes. (But this is
untested.)
 1.8 01-Mar-1999  christos branches: 1.8.6;
fix rdbg macro args.
 1.7 01-Mar-1999  christos KNF
 1.6 27-Feb-1999  pk * Make changing the PLT slot entry (lazy function binding) thread-safe.
* Insert `iflush' instructions for the patched words in PLT entries.
 1.5 27-Feb-1999  pk Add comment on the necessity of having to look at implicit memory addends
even though the sparc architecture uses `Elf_Rela' structures exclusively.
 1.4 27-Feb-1999  pk Target bitmask for RELOC_RELATIVE should be a full word.
Also for RELOC_RELATIVEs, add in the memory contents in addition to r_addend.
 1.3 26-Feb-1999  christos Relative relocations should use addend.
 1.2 26-Feb-1999  pk Take care of `load address relative' relocations.
Ignore JMP_SLOTs in non-plt relocations.
 1.1 24-Feb-1999  christos Work in progress (does not work yet).
 1.8.6.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.9.4.1 01-May-2001  he Pull up revision 1.10 (requested by kleink):
Rename ElfNN_RelA to ElfNN_Rela, which is what SVR4 ABIs and the
rest of the world uses. Fixes PR#12274.
 1.10.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.33.4.1 16-Apr-2005  tron Pull up revision 1.34 (requested by skrll in ticket #1090):
Add support for unaligned relocs on sparc, from PR 26858.
Should also fix PR 25901 and PR 18296.
 1.39.18.1 18-May-2008  yamt sync with head.
 1.40.2.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.41.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.41.4.1 17-Mar-2012  bouyer Pull up following revision(s) via patch (requested by skrll in ticket #1724):
rescue/list.ldd: revision 1.4
lib/libc/dlfcn/dlfcn_elf.c: revision 1.7
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.57
distrib/sets/lists/comp/mi: revision 1.1512
share/man/man3/Makefile: revision 1.56
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.58
usr.bin/ldd/ldd.c: revision 1.15
libexec/ld.elf_so/rtld.h: revision 1.84
share/man/man3/dl_iterate_phdr.3: revision 1.1
libexec/ld.elf_so/rtld.c: revision 1.129
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.44
libexec/ld.elf_so/rtld.h: revision 1.89
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.36
libexec/ld.elf_so/map_object.c: revision 1.41
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.37
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.46
include/link_elf.h: revision 1.10
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.29
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.26
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.34
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.31
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.35
libexec/ld.elf_so/Makefile: revision 1.94
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.32
libexec/ld.elf_so/Makefile: revision 1.95
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.31
libexec/ld.elf_so/Makefile: revision 1.96
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.32
libexec/ld.elf_so/reloc.c: revision 1.98
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.33
sys/sys/exec_elf.h: revision 1.106
libexec/ld.elf_so/rtld.c: revision 1.130
libexec/ld.elf_so/load.c: revision 1.37
libexec/ld.elf_so/rtld.c: revision 1.131
libexec/ld.elf_so/load.c: revision 1.38
libexec/ld.elf_so/rtld.h: revision 1.90
libexec/ld.elf_so/headers.c: revision 1.36
libexec/ld.elf_so/rtld.h: revision 1.95
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.30
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.25
libexec/ld.elf_so/symbol.c: revision 1.50
libexec/ld.elf_so/symbol.c: revision 1.51
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.43
libexec/ld.elf_so/symbol.c: revision 1.52
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.27
libexec/ld.elf_so/symbol.c: revision 1.54
PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
Implement dl_iterate_phdr.
Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.47.22.1 06-Mar-2016  martin Catch up to -current, via patch, requested by christos in ticket #1126:
 1.48.8.1 04-Jul-2017  martin Pull up following revision(s) (requested by joerg in ticket #64):
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.40
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.41
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.44
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.60
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.32
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.61
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.2
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.50
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.34
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.39
libexec/ld.elf_so/symbol.c: revision 1.68
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.66
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.67
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.68
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.42
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.54
libexec/ld.elf_so/Makefile: revision 1.137
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.32
libexec/ld.elf_so/rtld.h: revision 1.127
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.38
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.42
libexec/ld.elf_so/map_object.c: revision 1.58
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.49
Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.
The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.
Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
Drop symbol number from default branch diagnostic, it isn't set at this
point and most likely not valid either.
Expand symnum, GCC's uninitialized used tracking is too imprecise.
Fix C&P bug. Deal with more MIPS hacks overriding def.
Add last_symnum, move up def and defobj.
Add back symnum, fix debug print.
Replace last use of r_type.
Fix indentation.
Fix indentation.
 1.52.2.2 07-Apr-2018  pgoyette Sync with HEAD. 77 conflicts resolved - all of them $NetBSD$
 1.52.2.1 30-Mar-2018  pgoyette Resolve conflicts between branch and HEAD
 1.55.12.1 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #297):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44
(all via patch)

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen
(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.
(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.
(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.
PR pkg/57445
Fix MKDEBUGLIB build by adding these installed files to the debug
set list.
XXX
One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.
Fix markup of libh_ MKDEBUGLIB=yes only files
TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.55.4.1 04-Aug-2023  martin Pull up following revision(s), all via patch,
(requested by riastradh in ticket #1699):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.

This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.

PR pkg/57445

Fix MKDEBUGLIB build by adding these installed files to the debug
set list.

One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.

Fix markup of libh_ MKDEBUGLIB=yes only files

TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.58.2.1 02-Aug-2025  perseant Sync with HEAD
 1.16 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.15 01-Mar-2003  mycroft branches: 1.15.30;
Update copyright.
 1.14 27-Feb-2003  mycroft Adjust for the fact that the GOT is all 0s in new binutils -- do the trick of
disassembling a call to _DYNAMIC to determine its real address, and using the
first entry of the GOT as its base-relative address.

It's evil, but it works.
 1.13 26-Sep-2002  mycroft Make the stack frame 96 bytes, like GCC does.
 1.12 26-Sep-2002  mycroft Tweak the save instruction in the PLT stub rather than adding an instruction
to the binder entry stub...
 1.11 26-Sep-2002  mycroft Allocate space for the argument space area in both _rtld_start() and
_rtld_bind_start(). Not needed normally, but if we compile ld.elf_so with
-g, it blows up without this.
 1.10 25-Sep-2002  mycroft There is no need to save and restore a second register window in the binder
stub.
 1.9 12-Sep-2002  mycroft Update comments.
 1.8 12-Sep-2002  mycroft Pass the calculated relocation offset down to _rtld().
 1.7 11-Sep-2002  mycroft Do the _rtld_relocate_nonplt_self() thing for SPARC.
 1.6 09-Sep-2002  mycroft Indent branch delay instructions.
 1.5 09-Sep-2002  mycroft Nuke RTLD_RELOCATE_SELF for SPARC.
 1.4 01-Mar-1999  christos branches: 1.4.12;
- Use c style comments.
- & -> and
- align 4 in both functions for consistency.
 1.3 01-Mar-1999  kim Make mkdep succeed (use matching quotes in comment).
 1.2 26-Feb-1999  pk Implement rtld_bind() stub.
Fix startup code.
 1.1 24-Feb-1999  christos Work in progress (does not work yet).
 1.4.12.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.15.30.1 18-May-2008  yamt sync with head.
 1.9 03-Apr-2018  joerg Rework ifunc support to address a number of short comings:
- Move to a shared _rtld_call_ifunc for rel and rela architectures
- Architectures using rel format must patch IRELATIVE non-PLT
relocations like RELATIVE in additition to the later ifunc handling
- Consistently record the delta to the end of the relocation group for
non-PLT IRELATIVE relocations

Hidden ifunc is now supported on all ifunc platforms, even when using
-fno-plt. The combination of -fno-plt and relro is broken due to
incorrect GNU ld output though.
 1.8 04-Jun-2005  lukem branches: 1.8.82;
Explicitly prefix ld(1) options in LDFLAGS with "-Wl," rather than
using the ${LDFLAGS:@F@-Wl,$F@} make substitution because that breaks
if LDFLAGS is already set.
 1.7 21-Feb-2004  skrll Move common LDFLAGS into Makefile from arch/*/Makefile.inc
 1.6 20-Feb-2004  skrll Whitespace.
 1.5 24-Sep-2002  mycroft Remove vestiges of VARPSZ.
 1.4 11-Sep-2002  mycroft Do self-relocation similar to sparc.
 1.3 20-Dec-2001  thorpej branches: 1.3.2;
Grumble. Put compiler options back into CPPFLAGS for now, since
they're needed to build .S files with the correct PIC options.

XXX Really needs cleanup in <bsd.*.mk> to do this properly.
 1.2 14-Dec-2001  thorpej Don't put compiler options into CPPFLAGS.
 1.1 13-Jul-2000  eeh branches: 1.1.2;
Added support for the SPARC v9 ABI.
 1.1.2.2 26-Jul-2000  mycroft Approved by thorpej:
Add support for sparc64, including MD code and variable page size support.
Modify some variable types to insure they are the correct width on sparc64.

basesrc/libexec/ld.elf_so/arch/sparc64/Makefile.inc 0 -> 1.1
basesrc/libexec/ld.elf_so/arch/sparc64/mdreloc.c 0 -> 1.3
basesrc/libexec/ld.elf_so/arch/sparc64/rtld_start.S 0 -> 1.2
basesrc/libexec/ld.elf_so/headers.c 1.6 -> 1.8
basesrc/libexec/ld.elf_so/reloc.c 1.26 -> 1.27
basesrc/libexec/ld.elf_so/reloc.c 1.29 -> 1.31
basesrc/libexec/ld.elf_so/rtld.c 1.34 -> 1.35
basesrc/libexec/ld.elf_so/rtld.c 1.36 -> 1.40
basesrc/libexec/ld.elf_so/rtld.h 1.26 -> 1.27
basesrc/libexec/ld.elf_so/symbol.c 1.7 -> 1.9
 1.1.2.1 13-Jul-2000  mycroft file Makefile.inc was added on branch netbsd-1-5 on 2000-07-26 23:45:23 +0000
 1.3.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.8.82.1 07-Apr-2018  pgoyette Sync with HEAD. 77 conflicts resolved - all of them $NetBSD$
 1.72 03-Aug-2024  riastradh ld.elf_so(1): Nix trailing whitespace.

No functional change intended.
 1.71 23-Jul-2024  uwe ld.elf_so: Cite reference for SPARC ELF relocations

PR lib/58455: Missing references for processor-specific ELF
relocation semantics
 1.70 04-Jun-2023  joerg branches: 1.70.2;
Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).

Fix this by forcing the computation of the correct DSO (the one defining
the symbol).

This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
 1.69 03-Apr-2018  joerg branches: 1.69.4; 1.69.12;
Rework ifunc support to address a number of short comings:
- Move to a shared _rtld_call_ifunc for rel and rela architectures
- Architectures using rel format must patch IRELATIVE non-PLT
relocations like RELATIVE in additition to the later ifunc handling
- Consistently record the delta to the end of the relocation group for
non-PLT IRELATIVE relocations

Hidden ifunc is now supported on all ifunc platforms, even when using
-fno-plt. The combination of -fno-plt and relro is broken due to
incorrect GNU ld output though.
 1.68 29-Mar-2018  joerg Move the complex logic for dynamically writing branches from ld.elf_so
into a header for reuse in crt0.o for static ifunc support. Change the
existing logic for sparc64 to use the Bicc variant of ba,a as it allows
+-8MB displacement compared to the BPcc variant's +-1MB. Teach the sparc
variant the same trick for using ba,a and not sethi+jmp when possible.
 1.67 25-Dec-2017  joerg branches: 1.67.2;
Since GNU ld doesn't honor the PLT entry reservation, also compensate
for JMP_IREL relocations at the start of the PLT.
 1.66 06-Nov-2017  joerg init/fini for the main program is handled by crt0.o, so ifunc handling
is skipped right now as it iterates the same list. Don't repeat that
mistake and explicitly take care of it in the dynamic linker.
 1.65 12-Aug-2017  joerg Add sparc/sparc64 support for irelative relocations.
 1.64 10-Aug-2017  joerg Add IRELATIVE support for ARM, X86 and PowerPC.
 1.63 24-Jul-2017  martin Fix thinko in previous: even if the address is an unsigned value and we
have verified the range before, we still need to mask the bit pattern
to the target instruction field.
 1.62 23-Jul-2017  martin Simplify and fix the offset calculation when doing a %pc relative
branch from the PLT slot to the target.
 1.61 19-Jun-2017  joerg Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.

The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.

Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
 1.60 15-Jun-2017  joerg Fix indentation.
 1.59 29-Aug-2016  martin branches: 1.59.6;
Despite the 10 in the name, the OLO10 relocation targets a 13 bit field,
the offset (O) providing the additional data.
 1.58 20-Jun-2016  martin Fix a few bounds and instruction sequences generated in the PLT; exercised
by ASLR and verified to work with the aslr fixed random debug sysctls.
 1.57 25-Aug-2014  joerg Add basic support for indirect functions. It allows providing a public
function symbol with an implementation choosen at run time.
Refactor calls to functions by address in ld.elf_so to create temporary
function descriptors on the stack, if the address is not leaked outside.

Limitations:
- no support for initialising static storage with function pointers
- no support for unnamed resolver functions

Inspired by FreeBSD's r228435 by kib@freebsd.org.
 1.56 02-Apr-2014  martin branches: 1.56.4;
The table of masks applied for each relocation type was wrong for some
relocs with 64bit targets, like GLOB_DAT.
Change some instruction patterns used for PLT slots, so -current
objdump -d shows what the comment says.
Fix encoding of %lox() in PLT slots "close" to -1.
Enhance debug output slightly.
 1.55 03-Oct-2013  martin The R_SPARC_L44 relocation type is documented to be truncating and
calculated as "(S + A) & 0xfff" - so while it (usually) sets a "imm13" field
in the opcode, only 12 bits of the calculated value can be used.
 1.54 23-Sep-2013  martin Missing , in table initializer
 1.53 22-Jul-2012  martin branches: 1.53.2;
Add special handling needed for OLO10 relocations.
First part of fixing PR port-sparc64/46724.
 1.52 30-Mar-2011  martin branches: 1.52.4; 1.52.6;
Add support for 64 bit TLS relocations.
 1.51 25-Mar-2011  joerg Add basic locking to ld.elf_so.
 1.50 24-Sep-2010  skrll Comment reformat.
 1.49 24-Sep-2010  skrll Wrap long line.
 1.48 24-Sep-2010  skrll Whitespace.
 1.47 06-Aug-2010  joerg Reduce header pollution for mdreloc.c. Make Obj_Entry argument of
_rtld_relocate_nonplt_objects non-const in preparation for TLS support.
 1.46 13-Jan-2010  christos PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
 1.45 22-May-2009  martin Use the new Elf_SOff (signed offset) type to fix a few signed/unsigned
problems.
 1.44 16-Mar-2009  lukem Fix const issues (cast const pointers to "const uint8_t *" instead of "caddr_t")

NOTE: change based on ../i386/mdreloc.c 1.27
XXX: not compile tested
 1.43 24-Jul-2008  matt branches: 1.43.4; 1.43.6;
Refactor common code to _rtld_relocate_plt_object to i386 and arm so they
act like the other versions.
In _rtld_bind, if the result is 0, call _rtld_die.
Initialize _rtld_sym_zero.st_value to -_rtld_objself.maprelocbase. Now when
the symbol is resolved, st_value + maprelocbase will equal 0 and the above
check in _rtld_bind will fire and a call to NULL will be avoided.
 1.42 28-Apr-2008  martin branches: 1.42.2;
Remove clause 3 and 4 from TNF licenses
 1.41 23-Feb-2007  matt branches: 1.41.10;
Remove MD COMBRELOC support since it's now MI.
Enable COMBRELOC for all arches
 1.40 15-Feb-2007  martin Add COMBRELOC support
 1.39 10-May-2006  mrg quell GCC 4.1 uninitialised variable warnings.

XXX: we should audit the tree for which old ones are no longer needed
after getting the older compilers out of the tree..
 1.38 24-Dec-2005  perry Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.37 20-Aug-2005  skrll Add __RCSID.
 1.36 15-Aug-2005  skrll KNF
 1.35 05-Jan-2005  martin Add LD_BIND_NOW support for sparc64.
 1.34 24-Jul-2003  skrll ANSIfy and de-__P().
 1.33 23-May-2003  petrov Fix alignment problem in debug output.
Happens only under RTLD_DEBUG_RELOC.
 1.32 18-Oct-2002  thorpej _rtld_bind(): Don't use "rela" until after we've (potentially) adjusted
it.
 1.31 26-Sep-2002  mycroft Remove the `self' args to _rtld_relocate_objects() and
_rtld_relocate_nonplt_objects().
 1.30 26-Sep-2002  mycroft Remove vestigal comments about _rtld_bind_start_0() -- it works now.
 1.29 26-Sep-2002  mycroft Make room for the argument save area in _rtld_start(). The PLT stub already
made room from _rtld_bind_start(), but add a comment explaining the instruction
it uses.
 1.28 25-Sep-2002  mycroft Add a comment explaining some of the magick.
 1.27 25-Sep-2002  mycroft Fix a bug that caused PLT entries to effectively not be patched.
Also, fix more bugs in the large-PLT case -- my test program works now.
 1.26 25-Sep-2002  mycroft Swap registers %o0 and %o1 in the binder stub to say one instruction.

Fix an obvious bug in the 64-bit PLT fixup: the SLLX was by 12 bits, when it
should be 32.

Fix what *appear* to be two bugs in the >32768 PLT entry stub:
* One division was wrong (/14 rather than /24).
* We need to subtract 1048576 (to make the offset relative to the beginning of
the upper section), not add it.
This path is still untested, and buggy.
 1.25 25-Sep-2002  mycroft _rtld_bind_start_0_stub() is not actually used.
 1.24 25-Sep-2002  mycroft Push a multiple from _rtld_bind_start_[01]() to _rtld_bind().
 1.23 25-Sep-2002  mycroft Push the _rtld_bind() interface into MD code -- it's just a trivial wrapper
anyway.
 1.22 24-Sep-2002  mycroft %ld -> %p
 1.21 12-Sep-2002  mycroft Nuke -DRTLD_RELOCATE_SELF and `dodebug' from orbit.
 1.20 12-Sep-2002  mycroft Prototype different functions.
 1.19 12-Sep-2002  mycroft _rtld_bind_start() is not used in MI code, so declare it in the MD code.
 1.18 11-Sep-2002  mycroft Do self-relocation similar to sparc.
 1.17 06-Sep-2002  mycroft Expand the comment about the R_TYPE(RELATIVE) special-case, as it's not quite
obvious from the code. Also, just do it all the time, as an optimization.
 1.16 06-Sep-2002  mycroft Make the reloc tables const.
 1.15 06-Sep-2002  mycroft Pass down an additional flag to _rtld_relocate_nonplt_objects() which
indicates whether we're relocating ld.elf_so itself. Use this in some places
rather than hackish tests on `dodebug'. (The Alpha and HPPA `dodebug' tests
were actually noops, because RTLD_RELOCATE_SELF is not set, and therefore
dodebug is always true.)
 1.14 06-Sep-2002  mycroft Re-poison a lot of consts, now that the mark shite is gone.
 1.13 06-Sep-2002  mycroft Split _rtld_relocate_plt_object() into two MD functions:
* _rtld_relocate_plt_lazy() fixes up all the relocs pointing to the PLT. (On
most platforms it just does a simple base-relative fixup; on SPARC it does
nothing.)
* _rtld_relocate_plt_object() does immediate binding for a PLT entry.
The basic gist is that this saves a bit of time on SPARC (where the iteration
through the pltrela table was gratuitous), and a little less time on all other
platforms. A whole lot of #ifdef'ed crap is moved out of reloc.c, too.

NOT tested on: hppa sh x86_64
 1.12 06-Sep-2002  mycroft Repair a slight biff I made earlier -- do not exit the loop in
_rtld_relocate_nonplt_objects() early.
 1.11 05-Sep-2002  mycroft Partially fix up some debug printf()s that don't need to use defobj.
 1.10 05-Sep-2002  mycroft A few things:
* Pass a symbol number to _rtld_find_symdef(), not a r_info.
* Don't try to do a symbol lookup when we find an unsupported relocation;
instead get the symbol name from the referencing object's strtab.
* Add preliminary support for `-z combreloc'-style startup optimization on
i386, `#ifdef COMBRELOC'.
 1.9 05-Sep-2002  mycroft Rename _rtld_relocate_nonplt_object() to _rtld_relocate_nonplt_objects(),
and push the outer loop into it. This actually shaves a couple % off startup
time at least on PCs.
 1.8 05-Sep-2002  mycroft Split _rtld_relocate_nonplt_object() into separate MD files.
 1.7 05-Sep-2002  junyoung Remove unused arguments of _rtld_find_symdef().
 1.6 05-Sep-2002  mycroft Make _rtld_setup_pltgot() a consistent interface on all platforms.
 1.5 25-Apr-2001  kleink branches: 1.5.2;
Sync with <sys/exec_elf.h> rev. 1.45: ElfNN_RelA -> ElfNN_Rela.
 1.4 16-Sep-2000  eeh Wrong register in machine code description.
 1.3 26-Jul-2000  mycroft branches: 1.3.2;
Catch up with type changes. Also:
* Apply DT_PLTRELSZ to (one of) pltrel or pltrela *after* we've finished
parsing the headers, so we know which one.
* Fix sparc64 bogons. (It works now!)
 1.2 18-Jul-2000  eeh Fix some issues with SPARC V9 ELF binaries.
 1.1 13-Jul-2000  eeh Added support for the SPARC v9 ABI.
 1.3.2.4 09-Dec-2001  he Pull up revision 1.4 (requested by skrll):
Add init/fini section support in crtbegin and crtend, and introduce
support for DWARF2 exception handling. Fixes PR#12865, PR#13488,
PR#13489, and PR#13491. Also fix ld.elf_so to deal appropriately.
 1.3.2.3 01-May-2001  he Pull up revision 1.5 (requested by kleink):
Rename ElfNN_RelA to ElfNN_Rela, which is what SVR4 ABIs and the
rest of the world uses. Fixes PR#12274.
 1.3.2.2 26-Jul-2000  mycroft Approved by thorpej:
Add support for sparc64, including MD code and variable page size support.
Modify some variable types to insure they are the correct width on sparc64.

basesrc/libexec/ld.elf_so/arch/sparc64/Makefile.inc 0 -> 1.1
basesrc/libexec/ld.elf_so/arch/sparc64/mdreloc.c 0 -> 1.3
basesrc/libexec/ld.elf_so/arch/sparc64/rtld_start.S 0 -> 1.2
basesrc/libexec/ld.elf_so/headers.c 1.6 -> 1.8
basesrc/libexec/ld.elf_so/reloc.c 1.26 -> 1.27
basesrc/libexec/ld.elf_so/reloc.c 1.29 -> 1.31
basesrc/libexec/ld.elf_so/rtld.c 1.34 -> 1.35
basesrc/libexec/ld.elf_so/rtld.c 1.36 -> 1.40
basesrc/libexec/ld.elf_so/rtld.h 1.26 -> 1.27
basesrc/libexec/ld.elf_so/symbol.c 1.7 -> 1.9
 1.3.2.1 26-Jul-2000  mycroft file mdreloc.c was added on branch netbsd-1-5 on 2000-07-26 23:45:23 +0000
 1.5.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.41.10.1 18-May-2008  yamt sync with head.
 1.42.2.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.43.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.43.4.1 17-Mar-2012  bouyer Pull up following revision(s) via patch (requested by skrll in ticket #1724):
rescue/list.ldd: revision 1.4
lib/libc/dlfcn/dlfcn_elf.c: revision 1.7
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.57
distrib/sets/lists/comp/mi: revision 1.1512
share/man/man3/Makefile: revision 1.56
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.58
usr.bin/ldd/ldd.c: revision 1.15
libexec/ld.elf_so/rtld.h: revision 1.84
share/man/man3/dl_iterate_phdr.3: revision 1.1
libexec/ld.elf_so/rtld.c: revision 1.129
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.44
libexec/ld.elf_so/rtld.h: revision 1.89
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.36
libexec/ld.elf_so/map_object.c: revision 1.41
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.37
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.46
include/link_elf.h: revision 1.10
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.29
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.26
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.34
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.31
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.35
libexec/ld.elf_so/Makefile: revision 1.94
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.32
libexec/ld.elf_so/Makefile: revision 1.95
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.31
libexec/ld.elf_so/Makefile: revision 1.96
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.32
libexec/ld.elf_so/reloc.c: revision 1.98
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.33
sys/sys/exec_elf.h: revision 1.106
libexec/ld.elf_so/rtld.c: revision 1.130
libexec/ld.elf_so/load.c: revision 1.37
libexec/ld.elf_so/rtld.c: revision 1.131
libexec/ld.elf_so/load.c: revision 1.38
libexec/ld.elf_so/rtld.h: revision 1.90
libexec/ld.elf_so/headers.c: revision 1.36
libexec/ld.elf_so/rtld.h: revision 1.95
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.30
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.25
libexec/ld.elf_so/symbol.c: revision 1.50
libexec/ld.elf_so/symbol.c: revision 1.51
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.43
libexec/ld.elf_so/symbol.c: revision 1.52
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.27
libexec/ld.elf_so/symbol.c: revision 1.54
PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
Implement dl_iterate_phdr.
Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.52.6.1 08-Aug-2012  jdc Pull up revisions:
src/libexec/ld.elf_so/headers.c revision 1.42
src/libexec/ld.elf_so/arch/sparc64/mdreloc.c revision 1.53
(requested by martin in ticket #447).

Remove a debug assert that does not hold for PIE (e.g. phdr = 0x40, but
obj has not been mapped at 0, so obj->phdr is 0x100040).
OK: skrll

Add special handling needed for OLO10 relocations.
First part of fixing PR port-sparc64/46724.
 1.52.4.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.52.4.1 30-Oct-2012  yamt sync with head
 1.53.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.56.4.1 06-Mar-2016  martin Catch up to -current, via patch, requested by christos in ticket #1126:
 1.59.6.2 25-Jul-2017  snj Pull up following revision(s) (requested by martin in ticket #156):
libexec/ld.elf_so/arch/sparc64/mdreloc.c: 1.62, 1.63
Simplify and fix the offset calculation when doing a %pc relative
branch from the PLT slot to the target.
--
Fix thinko in previous: even if the address is an unsigned value and we
have verified the range before, we still need to mask the bit pattern
to the target instruction field.
 1.59.6.1 04-Jul-2017  martin Pull up following revision(s) (requested by joerg in ticket #64):
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.40
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.41
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.44
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.60
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.32
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.61
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.2
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.50
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.34
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.39
libexec/ld.elf_so/symbol.c: revision 1.68
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.66
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.67
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.68
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.42
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.54
libexec/ld.elf_so/Makefile: revision 1.137
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.32
libexec/ld.elf_so/rtld.h: revision 1.127
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.38
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.42
libexec/ld.elf_so/map_object.c: revision 1.58
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.49
Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.
The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.
Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
Drop symbol number from default branch diagnostic, it isn't set at this
point and most likely not valid either.
Expand symnum, GCC's uninitialized used tracking is too imprecise.
Fix C&P bug. Deal with more MIPS hacks overriding def.
Add last_symnum, move up def and defobj.
Add back symnum, fix debug print.
Replace last use of r_type.
Fix indentation.
Fix indentation.
 1.67.2.2 07-Apr-2018  pgoyette Sync with HEAD. 77 conflicts resolved - all of them $NetBSD$
 1.67.2.1 30-Mar-2018  pgoyette Resolve conflicts between branch and HEAD
 1.69.12.1 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #297):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44
(all via patch)

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen
(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.
(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.
(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.
PR pkg/57445
Fix MKDEBUGLIB build by adding these installed files to the debug
set list.
XXX
One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.
Fix markup of libh_ MKDEBUGLIB=yes only files
TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.69.4.1 04-Aug-2023  martin Pull up following revision(s), all via patch,
(requested by riastradh in ticket #1699):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.

This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.

PR pkg/57445

Fix MKDEBUGLIB build by adding these installed files to the debug
set list.

One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.

Fix markup of libh_ MKDEBUGLIB=yes only files

TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.70.2.1 02-Aug-2025  perseant Sync with HEAD
 1.18 03-Aug-2024  riastradh ld.elf_so(1): Nix trailing whitespace.

No functional change intended.
 1.17 28-Apr-2008  martin branches: 1.17.74;
Remove clause 3 and 4 from TNF licenses
 1.16 01-Mar-2003  mycroft branches: 1.16.30;
Update copyright.
 1.15 27-Feb-2003  mycroft Adjust for the fact that the GOT is all 0s in new binutils -- do the trick of
disassembling a call to _DYNAMIC to determine its real address, and using the
first entry of the GOT as its base-relative address.

It's evil, but it works.
 1.14 26-Sep-2002  mycroft Remove vestigal comments about _rtld_bind_start_0() -- it works now.
 1.13 26-Sep-2002  mycroft Make room for the argument save area in _rtld_start(). The PLT stub already
made room from _rtld_bind_start(), but add a comment explaining the instruction
it uses.
 1.12 25-Sep-2002  mycroft Fix a bug that caused PLT entries to effectively not be patched.
Also, fix more bugs in the large-PLT case -- my test program works now.
 1.11 25-Sep-2002  mycroft Swap registers %o0 and %o1 in the binder stub to say one instruction.

Fix an obvious bug in the 64-bit PLT fixup: the SLLX was by 12 bits, when it
should be 32.

Fix what *appear* to be two bugs in the >32768 PLT entry stub:
* One division was wrong (/14 rather than /24).
* We need to subtract 1048576 (to make the offset relative to the beginning of
the upper section), not add it.
This path is still untested, and buggy.
 1.10 25-Sep-2002  mycroft Push a multiple from _rtld_bind_start_[01]() to _rtld_bind().
 1.9 12-Sep-2002  mycroft Update comments.
 1.8 12-Sep-2002  mycroft Pass the calculated relocation offset down to _rtld().
 1.7 11-Sep-2002  mycroft Do self-relocation similar to sparc.
 1.6 06-May-2002  thorpej branches: 1.6.2;
Add .register directives to appease newer gas.
 1.5 14-Aug-2001  eeh Correct some comments.
 1.4 14-Aug-2001  eeh Get rid of some debug code that should no longer be needed.
 1.3 25-Apr-2001  kleink Sync with <sys/exec_elf.h> rev. 1.45: ElfNN_RelA -> ElfNN_Rela.
 1.2 18-Jul-2000  eeh branches: 1.2.2;
Fix some issues with SPARC V9 ELF binaries.
 1.1 13-Jul-2000  eeh Added support for the SPARC v9 ABI.
 1.2.2.4 09-Dec-2001  he Pull up revisions 1.4-1.5 (requested by skrll):
Add init/fini section support in crtbegin and crtend, and introduce
support for DWARF2 exception handling. Fixes PR#12865, PR#13488,
PR#13489, and PR#13491. Also fix ld.elf_so to deal appropriately.
 1.2.2.3 01-May-2001  he Pull up revision 1.3 (requested by kleink):
Rename ElfNN_RelA to ElfNN_Rela, which is what SVR4 ABIs and the
rest of the world uses. Fixes PR#12274.
 1.2.2.2 26-Jul-2000  mycroft Approved by thorpej:
Add support for sparc64, including MD code and variable page size support.
Modify some variable types to insure they are the correct width on sparc64.

basesrc/libexec/ld.elf_so/arch/sparc64/Makefile.inc 0 -> 1.1
basesrc/libexec/ld.elf_so/arch/sparc64/mdreloc.c 0 -> 1.3
basesrc/libexec/ld.elf_so/arch/sparc64/rtld_start.S 0 -> 1.2
basesrc/libexec/ld.elf_so/headers.c 1.6 -> 1.8
basesrc/libexec/ld.elf_so/reloc.c 1.26 -> 1.27
basesrc/libexec/ld.elf_so/reloc.c 1.29 -> 1.31
basesrc/libexec/ld.elf_so/rtld.c 1.34 -> 1.35
basesrc/libexec/ld.elf_so/rtld.c 1.36 -> 1.40
basesrc/libexec/ld.elf_so/rtld.h 1.26 -> 1.27
basesrc/libexec/ld.elf_so/symbol.c 1.7 -> 1.9
 1.2.2.1 18-Jul-2000  mycroft file rtld_start.S was added on branch netbsd-1-5 on 2000-07-26 23:45:23 +0000
 1.6.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.16.30.1 18-May-2008  yamt sync with head.
 1.17.74.1 02-Aug-2025  perseant Sync with HEAD
 1.11 19-Sep-2009  skrll Fix start symbol. I have no idea how this worked before.
 1.10 04-Jun-2005  lukem Explicitly prefix ld(1) options in LDFLAGS with "-Wl," rather than
using the ${LDFLAGS:@F@-Wl,$F@} make substitution because that breaks
if LDFLAGS is already set.
 1.9 28-Apr-2004  mhitch The -symbolic flag in gcc 2.95.3 is not passed to the linker, which is
required. Restore the -Bsymbolic option in LDFLAGS on the vax. Fixes
the problem with ld.elf_so mentioned on port-vax.
 1.8 21-Feb-2004  skrll branches: 1.8.2;
Move common LDFLAGS into Makefile from arch/*/Makefile.inc
 1.7 20-Feb-2004  skrll Whitespace.
 1.6 24-Sep-2002  mycroft Nuke reference to RTLD_RELOCATE_SELF.
 1.5 05-Sep-2002  mycroft Make _rtld_setup_pltgot() a consistent interface on all platforms.
 1.4 20-Dec-2001  thorpej branches: 1.4.2;
Grumble. Put compiler options back into CPPFLAGS for now, since
they're needed to build .S files with the correct PIC options.

XXX Really needs cleanup in <bsd.*.mk> to do this properly.
 1.3 14-Dec-2001  thorpej Don't put compiler options into CPPFLAGS.
 1.2 14-Jul-2000  matt No need for RELOCATE_SELF since the VAX does real PIC. Rewrite the bind
routine to deal with JMP .vs. CALLx differences.
 1.1 21-Aug-1999  matt Initial VAX ELF32 support (mostly untested). It's checked primarily for
testing and archival for now. I don't expect anyone to work with it
since the binutils and gas changes are still pending. But you got to
crawl before you walk.
 1.4.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.8.2.1 29-Apr-2004  jmc Pullup rev 1.9 (requested by mhitch in ticket #219)

The -symbolic flag in gcc 2.95.3 is not passed to the linker, which is
required. Restore the -Bsymbolic option in LDFLAGS on the vax.
 1.35 16-Apr-2025  riastradh ld.elf_so/arch/vax: Add copyright notice from the original.

Bulk originally copied from libexec/ld.elf_so/reloc.c rev. 1.58.
 1.34 10-Aug-2017  joerg branches: 1.34.16;
Add IRELATIVE support for ARM, X86 and PowerPC.
 1.33 20-Jun-2017  joerg Add back symnum, fix debug print.
 1.32 19-Jun-2017  joerg Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.

The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.

Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
 1.31 14-Apr-2016  skrll branches: 1.31.8;
Remove duplicated __RCSIDs I added years ago - I blame CVS.

Spotted by Miod Vallat
 1.30 25-Aug-2014  joerg Add basic support for indirect functions. It allows providing a public
function symbol with an implementation choosen at run time.
Refactor calls to functions by address in ld.elf_so to create temporary
function descriptors on the stack, if the address is not leaked outside.

Limitations:
- no support for initialising static storage with function pointers
- no support for unnamed resolver functions

Inspired by FreeBSD's r228435 by kib@freebsd.org.
 1.29 21-Mar-2014  matt branches: 1.29.4;
Improve some of the rdbg messages to print the address of the pltgot slot
being modified.
 1.28 25-Mar-2011  joerg branches: 1.28.4; 1.28.10;
Add basic locking to ld.elf_so.
 1.27 06-Aug-2010  joerg Reduce header pollution for mdreloc.c. Make Obj_Entry argument of
_rtld_relocate_nonplt_objects non-const in preparation for TLS support.
 1.26 13-Jan-2010  christos PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
 1.25 29-Aug-2009  jmmv Remove trailing \n in calls to _rtld_error: a newline is automatically
added by a call to the function.
 1.24 16-Mar-2009  lukem Fix const issues (cast const pointers to "const uint8_t *" instead of "caddr_t")

NOTE: change based on ../i386/mdreloc.c 1.27
XXX: not compile tested
 1.23 24-Jul-2008  skrll branches: 1.23.4; 1.23.6;
RCSID police
 1.22 24-Jul-2008  matt Refactor common code to _rtld_relocate_plt_object to i386 and arm so they
act like the other versions.
In _rtld_bind, if the result is 0, call _rtld_die.
Initialize _rtld_sym_zero.st_value to -_rtld_objself.maprelocbase. Now when
the symbol is resolved, st_value + maprelocbase will equal 0 and the above
check in _rtld_bind will fire and a call to NULL will be avoided.
 1.21 21-May-2006  mrg branches: 1.21.20;
avoid more GCC4 uninitialised variable problems. (sh3 known, vax guessed.)
 1.20 20-Aug-2005  skrll Add __RCSID.
 1.19 15-Aug-2005  skrll KNF
 1.18 24-Jul-2005  skrll Support immediate PLT binding on vax. Tested on simh.

Nearly there...
 1.17 24-Jul-2003  skrll branches: 1.17.4;
ANSIfy and de-__P().
 1.16 03-Oct-2002  mycroft Skip the lazy PLT relocation if relocbase==0 (useful if libraries are loaded
at their VMA address).
 1.15 26-Sep-2002  mycroft Implement a self-relocate function for the VAX.
 1.14 26-Sep-2002  mycroft Remove the `self' args to _rtld_relocate_objects() and
_rtld_relocate_nonplt_objects().
 1.13 25-Sep-2002  mycroft Push the _rtld_bind() interface into MD code -- it's just a trivial wrapper
anyway.
 1.12 12-Sep-2002  mycroft Nuke -DRTLD_RELOCATE_SELF and `dodebug' from orbit.
 1.11 12-Sep-2002  mycroft _rtld_bind_start() is not used in MI code, so declare it in the MD code.
 1.10 11-Sep-2002  junyoung Add $NetBSD$.
 1.9 06-Sep-2002  mycroft Pass down an additional flag to _rtld_relocate_nonplt_objects() which
indicates whether we're relocating ld.elf_so itself. Use this in some places
rather than hackish tests on `dodebug'. (The Alpha and HPPA `dodebug' tests
were actually noops, because RTLD_RELOCATE_SELF is not set, and therefore
dodebug is always true.)
 1.8 06-Sep-2002  mycroft Introduce a new flag, `isdynamic', which is used to remember whether the
executable was of type ET_DYN. Use this instead of `mainprog' to determine
whether we need to do base-relative fixups of the PLT. (This allows loading
non-relocatable objects, should we desire to do that at some point...)
 1.7 06-Sep-2002  mycroft Re-poison a lot of consts, now that the mark shite is gone.
 1.6 06-Sep-2002  mycroft Split _rtld_relocate_plt_object() into two MD functions:
* _rtld_relocate_plt_lazy() fixes up all the relocs pointing to the PLT. (On
most platforms it just does a simple base-relative fixup; on SPARC it does
nothing.)
* _rtld_relocate_plt_object() does immediate binding for a PLT entry.
The basic gist is that this saves a bit of time on SPARC (where the iteration
through the pltrela table was gratuitous), and a little less time on all other
platforms. A whole lot of #ifdef'ed crap is moved out of reloc.c, too.

NOT tested on: hppa sh x86_64
 1.5 05-Sep-2002  mycroft Partially fix up some debug printf()s that don't need to use defobj.
 1.4 05-Sep-2002  mycroft A few things:
* Pass a symbol number to _rtld_find_symdef(), not a r_info.
* Don't try to do a symbol lookup when we find an unsupported relocation;
instead get the symbol name from the referencing object's strtab.
* Add preliminary support for `-z combreloc'-style startup optimization on
i386, `#ifdef COMBRELOC'.
 1.3 05-Sep-2002  mycroft Rename _rtld_relocate_nonplt_object() to _rtld_relocate_nonplt_objects(),
and push the outer loop into it. This actually shaves a couple % off startup
time at least on PCs.
 1.2 05-Sep-2002  mycroft Split _rtld_relocate_nonplt_object() into separate MD files.
 1.1 05-Sep-2002  mycroft Make _rtld_setup_pltgot() a consistent interface on all platforms.
 1.17.4.2 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.17.4.1 24-Jul-2003  tron file mdreloc.c was added on branch netbsd-1-6 on 2004-05-28 08:31:23 +0000
 1.21.20.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.23.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.23.4.1 17-Mar-2012  bouyer Pull up following revision(s) via patch (requested by skrll in ticket #1724):
rescue/list.ldd: revision 1.4
lib/libc/dlfcn/dlfcn_elf.c: revision 1.7
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.57
distrib/sets/lists/comp/mi: revision 1.1512
share/man/man3/Makefile: revision 1.56
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.58
usr.bin/ldd/ldd.c: revision 1.15
libexec/ld.elf_so/rtld.h: revision 1.84
share/man/man3/dl_iterate_phdr.3: revision 1.1
libexec/ld.elf_so/rtld.c: revision 1.129
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.44
libexec/ld.elf_so/rtld.h: revision 1.89
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.36
libexec/ld.elf_so/map_object.c: revision 1.41
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.37
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.46
include/link_elf.h: revision 1.10
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.29
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.26
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.34
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.31
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.35
libexec/ld.elf_so/Makefile: revision 1.94
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.32
libexec/ld.elf_so/Makefile: revision 1.95
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.31
libexec/ld.elf_so/Makefile: revision 1.96
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.32
libexec/ld.elf_so/reloc.c: revision 1.98
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.33
sys/sys/exec_elf.h: revision 1.106
libexec/ld.elf_so/rtld.c: revision 1.130
libexec/ld.elf_so/load.c: revision 1.37
libexec/ld.elf_so/rtld.c: revision 1.131
libexec/ld.elf_so/load.c: revision 1.38
libexec/ld.elf_so/rtld.h: revision 1.90
libexec/ld.elf_so/headers.c: revision 1.36
libexec/ld.elf_so/rtld.h: revision 1.95
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.30
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.25
libexec/ld.elf_so/symbol.c: revision 1.50
libexec/ld.elf_so/symbol.c: revision 1.51
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.43
libexec/ld.elf_so/symbol.c: revision 1.52
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.27
libexec/ld.elf_so/symbol.c: revision 1.54
PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
Implement dl_iterate_phdr.
Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.28.10.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.28.4.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.29.4.1 06-Mar-2016  martin Catch up to -current, via patch, requested by christos in ticket #1126:
 1.31.8.1 04-Jul-2017  martin Pull up following revision(s) (requested by joerg in ticket #64):
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.40
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.41
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.44
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.60
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.32
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.61
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.2
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.50
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.34
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.39
libexec/ld.elf_so/symbol.c: revision 1.68
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.66
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.67
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.68
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.42
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.54
libexec/ld.elf_so/Makefile: revision 1.137
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.32
libexec/ld.elf_so/rtld.h: revision 1.127
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.38
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.42
libexec/ld.elf_so/map_object.c: revision 1.58
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.49
Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.
The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.
Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
Drop symbol number from default branch diagnostic, it isn't set at this
point and most likely not valid either.
Expand symnum, GCC's uninitialized used tracking is too imprecise.
Fix C&P bug. Deal with more MIPS hacks overriding def.
Add last_symnum, move up def and defobj.
Add back symnum, fix debug print.
Replace last use of r_type.
Fix indentation.
Fix indentation.
 1.34.16.1 02-Aug-2025  perseant Sync with HEAD
 1.25 03-Aug-2024  riastradh ld.elf_so(1): Nix trailing whitespace.

No functional change intended.
 1.24 17-Aug-2014  matt branches: 1.24.28;
Add proper registers for register counts.
 1.23 17-Aug-2014  matt add a missing register prefix.
 1.22 22-Mar-2014  matt branches: 1.22.4;
Make sure r1 is preserved _rtld_bind_start.
 1.21 21-Mar-2014  matt Simplify. If we got called via a calls $n, *pcrel32, instead of constructing
a new stack frame, back up the PC by 7 and return back to the calls so it
will be reinvoked. (This is by far the most common way it gets invoked).
Otherwise rebuild a new callframe and jump to the routine.
 1.20 19-Mar-2014  joerg Save actual start of function, not address of entry mask on the stack.
 1.19 19-Mar-2014  matt Fix two bugs. (jump past entry mask, fix insv)
 1.18 19-Mar-2014  matt Once we know the bound routine, rebuilt a new callframe that can be unwound
properly.
 1.17 18-Mar-2014  matt Add .cfi ops so that one can unwind through this.
 1.16 02-Mar-2003  mycroft branches: 1.16.54; 1.16.60;
Shorten rtld_start() slightly -- there's a base-relative _DYNAMIC pointer at
the beginning of the GOT, so we don't need an extra one here. Also, remove a
bogus comment -- we do in fact have to do fixups, because there are pointers in
ld.elf_so's data segment that need to be relocated.
 1.15 05-Oct-2002  mycroft Minor cleanup.
 1.14 27-Sep-2002  mycroft We don't need to save r7, either...
 1.13 27-Sep-2002  mycroft Put back the short-circuiting code -- Matt claims there are functions that rely
on it.
OTOH, don't bother saving r6 a second time.
 1.12 27-Sep-2002  mycroft 1) There is no reason to flush the I$ here, given that we do not modify any
instructions. Function calls use GOT indirection, and we only patch the
GOT.
2) The mask-comparison optimization always fails, because the saved mask
always has 0x2000 set, and the PLT stub mask never does. So, remove it.
 1.11 27-Sep-2002  mycroft Save one more instruction.
 1.10 26-Sep-2002  mycroft Save relocbase in %r10, not %r1.
Also, save one instruction.
 1.9 26-Sep-2002  mycroft Implement a self-relocate function for the VAX.
 1.8 12-Sep-2002  mycroft Figure out the relocation offset and pass it to _rtld().
 1.7 24-Feb-2002  matt branches: 1.7.2;
Change to use a register prefix.
 1.6 07-Aug-2000  matt Simplify some stuff.
 1.5 17-Jul-2000  matt More VAX ELF changes.
 1.4 14-Jul-2000  matt No need for RELOCATE_SELF since the VAX does real PIC. Rewrite the bind
routine to deal with JMP .vs. CALLx differences.
 1.3 03-Jul-2000  matt Update to current <machine/asm.h>
 1.2 22-May-2000  matt minor fix now that i've defined the plt0 entry.
 1.1 21-Aug-1999  matt Initial VAX ELF32 support (mostly untested). It's checked primarily for
testing and archival for now. I don't expect anyone to work with it
since the binutils and gas changes are still pending. But you got to
crawl before you walk.
 1.7.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.16.60.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.16.54.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.22.4.1 20-Aug-2014  martin Pullup the following to netbsd-7 (requested by matt in ticket #37):
external/gpl3/gcc/dist/gcc/config/vax/builtins.md 1.4
external/gpl3/gcc/dist/gcc/config/vax/vax.c 1.10
Rework so that the ctzsi builtin is supported.

lib/libc/compiler_rt/Makefile.inc 1.26
VAX does need __clzsi2

libexec/ld.elf_so/arch/vax/rtld_start.S 1.23
libexec/ld.elf_so/arch/vax/rtld_start.S 1.24
add a missing register prefix.
Add proper registers for register counts.
 1.24.28.1 02-Aug-2025  perseant Sync with HEAD
 1.8 03-Apr-2018  joerg Rework ifunc support to address a number of short comings:
- Move to a shared _rtld_call_ifunc for rel and rela architectures
- Architectures using rel format must patch IRELATIVE non-PLT
relocations like RELATIVE in additition to the later ifunc handling
- Consistently record the delta to the end of the relocation group for
non-PLT IRELATIVE relocations

Hidden ifunc is now supported on all ifunc platforms, even when using
-fno-plt. The combination of -fno-plt and relro is broken due to
incorrect GNU ld output though.
 1.7 04-Jun-2005  lukem branches: 1.7.82;
Explicitly prefix ld(1) options in LDFLAGS with "-Wl," rather than
using the ${LDFLAGS:@F@-Wl,$F@} make substitution because that breaks
if LDFLAGS is already set.
 1.6 21-Feb-2004  skrll Move common LDFLAGS into Makefile from arch/*/Makefile.inc
 1.5 20-Feb-2004  skrll Whitespace.
 1.4 24-Nov-2002  fvdl Implement self-relocation as is required now.
 1.3 20-Dec-2001  thorpej branches: 1.3.2;
Grumble. Put compiler options back into CPPFLAGS for now, since
they're needed to build .S files with the correct PIC options.

XXX Really needs cleanup in <bsd.*.mk> to do this properly.
 1.2 14-Dec-2001  thorpej Don't put compiler options into CPPFLAGS.
 1.1 19-Jun-2001  fvdl Preliminary x86-64 support. Not fully functional yet (toolchain bugs).
 1.3.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.7.82.1 07-Apr-2018  pgoyette Sync with HEAD. 77 conflicts resolved - all of them $NetBSD$
 1.50 16-Apr-2025  riastradh ld.elf_so/arch/x86_64: Add reference to amd64 psABI.
 1.49 03-Aug-2024  riastradh ld.elf_so(1): Nix trailing whitespace.

No functional change intended.
 1.48 04-Jun-2023  joerg branches: 1.48.2;
Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).

Fix this by forcing the computation of the correct DSO (the one defining
the symbol).

This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
 1.47 03-Apr-2018  joerg branches: 1.47.4; 1.47.12;
Rework ifunc support to address a number of short comings:
- Move to a shared _rtld_call_ifunc for rel and rela architectures
- Architectures using rel format must patch IRELATIVE non-PLT
relocations like RELATIVE in additition to the later ifunc handling
- Consistently record the delta to the end of the relocation group for
non-PLT IRELATIVE relocations

Hidden ifunc is now supported on all ifunc platforms, even when using
-fno-plt. The combination of -fno-plt and relro is broken due to
incorrect GNU ld output though.
 1.46 06-Nov-2017  joerg branches: 1.46.2;
init/fini for the main program is handled by crt0.o, so ifunc handling
is skipped right now as it iterates the same list. Don't repeat that
mistake and explicitly take care of it in the dynamic linker.
 1.45 10-Aug-2017  joerg Add IRELATIVE support for ARM, X86 and PowerPC.
 1.44 12-Jul-2017  christos rename the macro
 1.43 12-Jul-2017  christos make this compile with debug again (symnum uninitialized)
 1.42 19-Jun-2017  joerg Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.

The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.

Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
 1.41 25-Aug-2014  joerg branches: 1.41.8;
Add basic support for indirect functions. It allows providing a public
function symbol with an implementation choosen at run time.
Refactor calls to functions by address in ld.elf_so to create temporary
function descriptors on the stack, if the address is not leaked outside.

Limitations:
- no support for initialising static storage with function pointers
- no support for unnamed resolver functions

Inspired by FreeBSD's r228435 by kib@freebsd.org.
 1.40 25-Mar-2011  joerg branches: 1.40.22;
Add basic locking to ld.elf_so.
 1.39 12-Mar-2011  joerg Add TLS support for AMD64, i386 and SH3.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.
 1.38 06-Aug-2010  joerg Reduce header pollution for mdreloc.c. Make Obj_Entry argument of
_rtld_relocate_nonplt_objects non-const in preparation for TLS support.
 1.37 14-Jan-2010  skrll Make DEBUG build compile.
 1.36 13-Jan-2010  christos PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
 1.35 29-Aug-2009  jmmv Remove trailing \n in calls to _rtld_error: a newline is automatically
added by a call to the function.
 1.34 16-Mar-2009  lukem Fix const issues (cast const pointers to "const uint8_t *" instead of "caddr_t")
 1.33 15-Mar-2009  lukem rename a variable to avoid a compiler warning
 1.32 24-Jul-2008  matt branches: 1.32.4; 1.32.6;
Refactor common code to _rtld_relocate_plt_object to i386 and arm so they
act like the other versions.
In _rtld_bind, if the result is 0, call _rtld_die.
Initialize _rtld_sym_zero.st_value to -_rtld_objself.maprelocbase. Now when
the symbol is resolved, st_value + maprelocbase will equal 0 and the above
check in _rtld_bind will fire and a call to NULL will be avoided.
 1.31 23-Jul-2008  christos abort() if we are trying to use an undefined weak symbol from the plt. Remove
check from relocate_plt_object() since we cannot return _rtld_sym_zero anymore.
Code from gimpy.
 1.30 21-Jul-2008  christos deal specially with sym_zero, returned by a weak symbol that was not found,
by retrieving it's name instead of printing random garbage.
 1.29 23-Feb-2007  matt branches: 1.29.12;
Remove MD COMBRELOC support since it's now MI.
Enable COMBRELOC for all arches
 1.28 15-Feb-2007  skrll Provide COMBRELOC support for amd64 in answer to PR/35589.

Some statistics:

base + COMBRELOC
$ time (for i in `seq 100`;do noatun --help>/dev/null;done)
(; for i in `seq 100`; do; noatun --help > /dev/null; done; ) 148.64s
user 4.82s system 99% cpu 2:33.93 total

base + DF caching:
$ time (for i in `seq 100`;do noatun --help>/dev/null;done)
(; for i in `seq 100`; do; noatun --help > /dev/null; done; ) 151.15s
user 5.53s system 99% cpu 2:37.23 total

base:
$ time (for i in `seq 100`;do noatun --help>/dev/null;done)
(; for i in `seq 100`; do; noatun --help > /dev/null; done; ) 492.36s user
5.34s system 99% cpu 8:19.17 total
 1.27 20-May-2006  dan appease gcc4 uninitialiased warning
ok mrg.
 1.26 20-Aug-2005  skrll Add __RCSID.
 1.25 15-Aug-2005  skrll KNF
 1.24 17-Jul-2005  skrll Support immediate binding on x86_64.

Closes PR 30570. Thanks to TAMURA Kent for testing.
 1.23 24-Jul-2003  skrll ANSIfy and de-__P().
 1.22 24-Nov-2002  fvdl Replace return -1 in rtld_bind with _rtld_die() call.
 1.21 24-Nov-2002  fvdl Implement self-relocation as is required now.
 1.20 03-Oct-2002  mycroft Skip the lazy PLT relocation if relocbase==0 (useful if libraries are loaded
at their VMA address).
 1.19 26-Sep-2002  mycroft Remove the `self' args to _rtld_relocate_objects() and
_rtld_relocate_nonplt_objects().
 1.18 25-Sep-2002  mycroft Partly fix this port -- still needs a self-reloc function.
 1.17 12-Sep-2002  mycroft Nuke -DRTLD_RELOCATE_SELF and `dodebug' from orbit.
 1.16 12-Sep-2002  mycroft _rtld_bind_start() is not used in MI code, so declare it in the MD code.
 1.15 06-Sep-2002  mycroft Pass down an additional flag to _rtld_relocate_nonplt_objects() which
indicates whether we're relocating ld.elf_so itself. Use this in some places
rather than hackish tests on `dodebug'. (The Alpha and HPPA `dodebug' tests
were actually noops, because RTLD_RELOCATE_SELF is not set, and therefore
dodebug is always true.)
 1.14 06-Sep-2002  mycroft Introduce a new flag, `isdynamic', which is used to remember whether the
executable was of type ET_DYN. Use this instead of `mainprog' to determine
whether we need to do base-relative fixups of the PLT. (This allows loading
non-relocatable objects, should we desire to do that at some point...)
 1.13 06-Sep-2002  mycroft Re-poison a lot of consts, now that the mark shite is gone.
 1.12 06-Sep-2002  mycroft Split _rtld_relocate_plt_object() into two MD functions:
* _rtld_relocate_plt_lazy() fixes up all the relocs pointing to the PLT. (On
most platforms it just does a simple base-relative fixup; on SPARC it does
nothing.)
* _rtld_relocate_plt_object() does immediate binding for a PLT entry.
The basic gist is that this saves a bit of time on SPARC (where the iteration
through the pltrela table was gratuitous), and a little less time on all other
platforms. A whole lot of #ifdef'ed crap is moved out of reloc.c, too.

NOT tested on: hppa sh x86_64
 1.11 05-Sep-2002  mycroft Partially fix up some debug printf()s that don't need to use defobj.
 1.10 05-Sep-2002  mycroft A few things:
* Pass a symbol number to _rtld_find_symdef(), not a r_info.
* Don't try to do a symbol lookup when we find an unsupported relocation;
instead get the symbol name from the referencing object's strtab.
* Add preliminary support for `-z combreloc'-style startup optimization on
i386, `#ifdef COMBRELOC'.
 1.9 05-Sep-2002  mycroft Rename _rtld_relocate_nonplt_object() to _rtld_relocate_nonplt_objects(),
and push the outer loop into it. This actually shaves a couple % off startup
time at least on PCs.
 1.8 05-Sep-2002  mycroft Split _rtld_relocate_nonplt_object() into separate MD files.
 1.7 05-Sep-2002  junyoung Remove unused arguments of _rtld_find_symdef().
 1.6 05-Sep-2002  mycroft Make _rtld_setup_pltgot() a consistent interface on all platforms.
 1.5 14-Dec-2001  thorpej branches: 1.5.2;
...and the other other missing notice.
 1.4 14-Dec-2001  thorpej Add other missing copyright notice.
 1.3 20-Jun-2001  fvdl Remove mistaken casts of PLT relocations to 32 bit values.
 1.2 19-Jun-2001  fvdl Adapt for an actually correct sys/exec_elf.h
 1.1 19-Jun-2001  fvdl Preliminary x86-64 support. Not fully functional yet (toolchain bugs).
 1.5.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.29.12.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.32.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.32.4.1 17-Mar-2012  bouyer Pull up following revision(s) via patch (requested by skrll in ticket #1724):
rescue/list.ldd: revision 1.4
lib/libc/dlfcn/dlfcn_elf.c: revision 1.7
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.57
distrib/sets/lists/comp/mi: revision 1.1512
share/man/man3/Makefile: revision 1.56
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.58
usr.bin/ldd/ldd.c: revision 1.15
libexec/ld.elf_so/rtld.h: revision 1.84
share/man/man3/dl_iterate_phdr.3: revision 1.1
libexec/ld.elf_so/rtld.c: revision 1.129
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.44
libexec/ld.elf_so/rtld.h: revision 1.89
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.36
libexec/ld.elf_so/map_object.c: revision 1.41
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.37
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.46
include/link_elf.h: revision 1.10
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.29
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.26
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.34
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.31
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.35
libexec/ld.elf_so/Makefile: revision 1.94
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.32
libexec/ld.elf_so/Makefile: revision 1.95
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.31
libexec/ld.elf_so/Makefile: revision 1.96
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.32
libexec/ld.elf_so/reloc.c: revision 1.98
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.33
sys/sys/exec_elf.h: revision 1.106
libexec/ld.elf_so/rtld.c: revision 1.130
libexec/ld.elf_so/load.c: revision 1.37
libexec/ld.elf_so/rtld.c: revision 1.131
libexec/ld.elf_so/load.c: revision 1.38
libexec/ld.elf_so/rtld.h: revision 1.90
libexec/ld.elf_so/headers.c: revision 1.36
libexec/ld.elf_so/rtld.h: revision 1.95
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.30
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.25
libexec/ld.elf_so/symbol.c: revision 1.50
libexec/ld.elf_so/symbol.c: revision 1.51
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.43
libexec/ld.elf_so/symbol.c: revision 1.52
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.27
libexec/ld.elf_so/symbol.c: revision 1.54
PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
Implement dl_iterate_phdr.
Somewhat taken from FreeBSD. Manual page from OpenBSD.
 1.40.22.1 06-Mar-2016  martin Catch up to -current, via patch, requested by christos in ticket #1126:
 1.41.8.1 04-Jul-2017  martin Pull up following revision(s) (requested by joerg in ticket #64):
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.40
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.41
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.44
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.3
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.60
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.32
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.61
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.2
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.50
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.34
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.39
libexec/ld.elf_so/symbol.c: revision 1.68
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.66
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.67
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.68
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.42
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.54
libexec/ld.elf_so/Makefile: revision 1.137
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.32
libexec/ld.elf_so/rtld.h: revision 1.127
libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.33
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.38
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.42
libexec/ld.elf_so/map_object.c: revision 1.58
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.49
Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.
The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.
Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
Drop symbol number from default branch diagnostic, it isn't set at this
point and most likely not valid either.
Expand symnum, GCC's uninitialized used tracking is too imprecise.
Fix C&P bug. Deal with more MIPS hacks overriding def.
Add last_symnum, move up def and defobj.
Add back symnum, fix debug print.
Replace last use of r_type.
Fix indentation.
Fix indentation.
 1.46.2.1 07-Apr-2018  pgoyette Sync with HEAD. 77 conflicts resolved - all of them $NetBSD$
 1.47.12.1 01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #297):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44
(all via patch)

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen
(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.
(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.
(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.
PR pkg/57445
Fix MKDEBUGLIB build by adding these installed files to the debug
set list.
XXX
One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.
Fix markup of libh_ MKDEBUGLIB=yes only files
TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.47.4.1 04-Aug-2023  martin Pull up following revision(s), all via patch,
(requested by riastradh in ticket #1699):

distrib/sets/lists/tests/shl.mi: revision 1.14
distrib/sets/lists/tests/shl.mi: revision 1.15
distrib/sets/lists/tests/shl.mi: revision 1.16
tests/libexec/ld.elf_so/helper_def_static/h_def_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.75
distrib/sets/lists/tests/mi: revision 1.1265
libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.36
libexec/ld.elf_so/rtld.c: revision 1.214
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.1
distrib/sets/lists/debug/mi: revision 1.400
tests/libexec/ld.elf_so/helper_onlydef_static/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.401
distrib/sets/lists/debug/mi: revision 1.402
tests/libexec/ld.elf_so/helper_dso2/Makefile: revision 1.2
distrib/sets/lists/debug/mi: revision 1.403
tests/libexec/ld.elf_so/helper_symver_dso0/Makefile: revision 1.2
libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.48
distrib/sets/lists/debug/mi: revision 1.406
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_ifunc_dso/Makefile: revision 1.2
libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.70
libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.18
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/Makefile: revision 1.13
libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.46
libexec/ld.elf_so/rtld.h: revision 1.146
tests/libexec/ld.elf_so/Makefile: revision 1.14
distrib/sets/lists/debug/shl.mi: revision 1.306
tests/libexec/ld.elf_so/Makefile: revision 1.15
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.1
distrib/sets/lists/debug/shl.mi: revision 1.307
tests/libexec/ld.elf_so/Makefile: revision 1.16
tests/libexec/ld.elf_so/helper_abuse_static/Makefile: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.308
tests/libexec/ld.elf_so/Makefile: revision 1.17
distrib/sets/lists/debug/shl.mi: revision 1.309
tests/libexec/ld.elf_so/Makefile: revision 1.18
tests/libexec/ld.elf_so/Makefile: revision 1.19
libexec/ld.elf_so/tls.c: revision 1.16
libexec/ld.elf_so/tls.c: revision 1.17
libexec/ld.elf_so/tls.c: revision 1.18
libexec/ld.elf_so/tls.c: revision 1.19
tests/libexec/ld.elf_so/helper_onlydef_static/h_onlydef_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/h_use_static.c: revision 1.2
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_def_static/Makefile: revision 1.2
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.50
distrib/sets/lists/debug/shl.mi: revision 1.310
libexec/ld.elf_so/README.TLS: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.311
distrib/sets/lists/debug/shl.mi: revision 1.314
tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_symver_dso1/Makefile: revision 1.4
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.63
tests/libexec/ld.elf_so/helper_def_dynamic/h_def_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlydef/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.10
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.11
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.12
libexec/ld.elf_so/map_object.c: revision 1.66
tests/libexec/ld.elf_so/helper.mk: revision 1.1
libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.57
libexec/ld.elf_so/map_object.c: revision 1.67
tests/libexec/ld.elf_so/helper_onlydef/h_onlydef.c: revision 1.1
tests/libexec/ld.elf_so/helper_symver_dso2/Makefile: revision 1.4
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_use_static/Makefile: revision 1.3
tests/libexec/ld.elf_so/helper_use_dynamic/h_use_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_abuse_static/h_abuse_static.c: revision 1.1
libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.9
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.3
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.4
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.5
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.6
libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.34
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.7
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.42
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.8
libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.43
libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.4
tests/libexec/ld.elf_so/t_tls_extern.c: revision 1.9
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/Makefile: revision 1.2
tests/libexec/ld.elf_so/helper_abuse_dynamic/h_abuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyctor_dynamic/h_onlyctor_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_static/h_onlyuse_static.c: revision 1.1
tests/libexec/ld.elf_so/helper_onlyuse_dynamic/h_onlyuse_dynamic.c: revision 1.1
tests/libexec/ld.elf_so/helper_dso1/Makefile: revision 1.2
distrib/sets/lists/tests/shl.mi: revision 1.12
distrib/sets/lists/tests/shl.mi: revision 1.13
libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.44

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.
Now it's actually testing the problem.
ld.elf_so: Nix inadvertently committed private test program.
ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

ld.elf_so: Sprinkle tls debug messages.

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

ld.elf_so: Test variations on PR toolchain/50277.

ld.elf_so: Test extern dynamic TLS too.

ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

Add recent ld.elf_so test helpers debug info
ld.elf_so: Add new files to debug/shl.mi.

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

ld.elf_so: Test dynamic-then-static abuse via ctor.

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.

This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).
Fix this by forcing the computation of the correct DSO (the one defining
the symbol).
This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.
Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.
ld.elf_so: Sprinkle more debug messages on dlopen and error.

PR pkg/57445

Fix MKDEBUGLIB build by adding these installed files to the debug
set list.

One could argue that these files are not of any use, so why install
them? I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455 Please feel free to
commit a different fix to avoid installing these files at all.

Fix markup of libh_ MKDEBUGLIB=yes only files

TLS variant I archs need to fudge the offset by the size of the TCB.
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete. Never should've been built!
PR misc/57462
 1.48.2.1 02-Aug-2025  perseant Sync with HEAD
 1.9 11-Dec-2011  joerg Align in the stack before calling _rtld in the way the x86_64 ABI
specifies. This is necessary to ensure that init functions are always
called with the correct alignment, e.g. in case they use SSE
instructions.
 1.8 05-Dec-2010  joerg branches: 1.8.6;
Build ld.elf_so with -fvisibility=hidden. Exploit this for i386/x86_64
to simplify the assembler code.
 1.7 03-Dec-2010  joerg Add comment about the unusual stack alignment in .rtld_bind_start.
 1.6 28-Feb-2003  mycroft Eliminate GOT usage in rtld_start() on this platform, too.
 1.5 24-Nov-2002  fvdl Implement self-relocation as is required now.
 1.4 25-Sep-2002  mycroft Partly fix this port -- still needs a self-reloc function.
 1.3 14-Dec-2001  fvdl branches: 1.3.2;
Add missing copyright notice.
 1.2 20-Jun-2001  fvdl Get stack layout right.
 1.1 19-Jun-2001  fvdl Preliminary x86-64 support. Not fully functional yet (toolchain bugs).
 1.3.2.1 28-May-2004  tron Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464
 1.8.6.1 17-Apr-2012  yamt sync with head
 1.21 07-Sep-2020  mrg remove GCC_NO_ADDR_OF_PACKED_MEMBER for several subdir builds
that are now handled by lfs_accessors.h internally.
 1.20 06-Sep-2020  mrg add support for new GCC 9 warnings that may be too much to fix
right now. new address-of-packed-member and format-overflow
warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd
GCC_NO_FORMAT_OVERFLOW variables to remove these warnings.

apply to a bunch of the tree. mostly, these are real bugs that
should be fixed, but in many cases, only by removing the 'packed'
attribute from some structure that doesn't really need it. (i
looked at many different ones, and while perhaps 60-80% were
already properly aligned, it wasn't clear to me that the uses
were always coming from sane data vs network alignment, so it
doesn't seem safe to remove packed without careful research for
each affect struct.) clang already warned (and was not erroring)
for many of these cases, but gcc picked up dozens more.
 1.19 10-Oct-2015  dholland Use llabs(), not abs(), on the difference of daddr_t's.
Caught by clang, reported by joerg.

Turn off the clang-specific compiler flags that were making the report
nonfatal.
 1.18 04-Mar-2014  joerg Make the abs() use check non-fatal for a bogus use in the LFS cleanerd.
 1.17 08-Jun-2013  dholland Tidy up the LFS userland build hacks.
Don't use -I${NETBSDSRCDIR}/sys; don't include files other than the
exported LFS headers, which are lfs.h, lfs_inode.h, and (for now)
lfs_extern.h.
 1.16 06-Jun-2013  dholland Cleanups and hacks to make lfs userland stuff build:
- lfs_cksum.c doesn't actually need ulfs_inode.h any more.
- neither does lfs_itimes.c.
- add hacks to fsck_lfs to make it compile.
- add hacks to newfs_lfs to make it compile.
- fix warning in ulfs_quota.c when quotas are fully disabled
(as I guess is happening with the rumpity version)

XXX: This commit adds -I${NETBSDSRCDIR}/sys to the Makefiles for
XXX: fsck_lfs, newfs_lfs, and lfs_cleanerd. This needs to be cleaned
XXX: up ASAP; but I consider this less problematic in the short term
XXX: than spewing ulfs_*.h into /usr/include.
 1.15 06-Aug-2009  pooka branches: 1.15.6; 1.15.12;
Define syscalls of lfs userspace tools (cleaner, mainly) through
a struct called kernelops, which contains standard system calls
for the normal case and rump system calls for the rump case.

Make it possible to run the lfs cleaner in a library fashion (taking
the quick route with the implementation).
 1.14 21-Jun-2009  christos PR/40965: NAKAJIMA Yoshihiro: lfs_cleanerd isn't adapted to !MKDYNAMICROOT
 1.13 16-Mar-2009  lukem Default to WARNS=4
Exceptions that need a lower level are:
getty ld.elf_so lfs_cleanerd makewhatis telnetd tftpd
hpropd ipropd-master ipropd-slave kadmind kpasswdd
 1.12 28-Dec-2007  ad branches: 1.12.12;
Make it build with src/sys from the vmlocking2 branch.
 1.11 11-Nov-2006  jmmv branches: 1.11.8;
Move lfs_cleanerd from /usr/libexec to /libexec. This is to allow putting
the root file system on a LFS volume.

Addresses PR bin/30407. No objections in tech-userlevel@.
 1.10 30-Mar-2006  perseant A new version of the cleaner. In general, works about as well as the old
cleaner, but with more legible code.

Includes code for reading and writing to the raw disk device (so that an
unmounted fs could be cleaned), for the use of a single daemon to clean
multiple filesystems to save on resources, and for recording the old
contents of cleaned segments to offline storage for regression testing of
the LFS system as a whole; though these new features are not properly
tested at this point.
 1.9 19-Aug-2002  lukem Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path
 1.8 06-Jun-2002  perseant First stab at file coalescing. When the cleaner detects that it might
be digging itself deeper into a hole, it forks off a subprocess
that locates files with too many discontinuities and rewrites them, if
there is enough room.

Optionally the user can manually coaleasce files by running with "-c".

The recent change to lfs_markv is required for the coalescer to do anything.

All of "digging itself deeper", "too many discontinuities", and "enough room"
need to be better defined.
 1.7 13-Nov-2000  perseant Try to prevent running more than one active cleaner on a filesystem at a time.

Let lfs_cleanerd record its pid in /var/run like other daemons. Make
mount_lfs not start another cleaner when updating the mount, unless it is
being upgraded from read-only to read-write; when downgrading to read-only,
kill the cleaner using the recorded pids.
 1.6 22-Oct-1997  lukem branches: 1.6.10;
use CPPFLAGS instead of CFLAGS
 1.5 08-Oct-1997  mrg branches: 1.5.2;
merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.4 07-Oct-1997  mrg WARNS?=1. RCS ids.
 1.3 22-Dec-1994  cgd specify man pages the new way.
 1.2 03-Aug-1994  deraadt do not need -I/sys
 1.1 08-Jun-1994  mycroft branches: 1.1.1;
From 4.4-Lite, with local changes.
 1.1.1.1 24-Sep-1994  mycroft Import original 4.4-Lite version.
 1.5.2.1 08-Nov-1997  lukem sync with trunk (approved by thorpej)
 1.6.10.1 03-Feb-2001  he Pull up revision 1.7 (requested by perseant):
Link in libutil, for pidfile().
 1.11.8.1 09-Jan-2008  matt sync with HEAD
 1.12.12.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.15.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.15.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.8 03-Jun-2023  lukem bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.7 07-Jun-2020  fox libexec/lfs_cleanerd: Suppress -Werror=stringop-truncation error

This logic correctly uses strncpy(3) to fully initialize a fixed-width field, and also ensures
NUL-termination on the next line as other users of the field expect.

Add -Werror=stringop-truncation to prevent build failure, when run with MKSANITIZER=yes.

Error was reported when build.sh was run with MKSANITIZER=yes flag.

Reviewed by: kamil@, riastradh@
 1.6 08-Jun-2013  dholland Missed one of the -I${NETBSDSRCDIR}/sys hacks yesterday; remove it now.
 1.5 08-Jun-2013  dholland Redo these changes properly:
-r1.12 libexec/lfs_cleanerd/Makefile
-r1.15 sbin/fsck_lfs/Makefile
-r1.6 sbin/newfs_lfs/Makefile

hi ad@
 1.4 06-Jun-2013  dholland Cleanups and hacks to make lfs userland stuff build:
- lfs_cksum.c doesn't actually need ulfs_inode.h any more.
- neither does lfs_itimes.c.
- add hacks to fsck_lfs to make it compile.
- add hacks to newfs_lfs to make it compile.
- fix warning in ulfs_quota.c when quotas are fully disabled
(as I guess is happening with the rumpity version)

XXX: This commit adds -I${NETBSDSRCDIR}/sys to the Makefiles for
XXX: fsck_lfs, newfs_lfs, and lfs_cleanerd. This needs to be cleaned
XXX: up ASAP; but I consider this less problematic in the short term
XXX: than spewing ulfs_*.h into /usr/include.
 1.3 28-Jul-2010  pooka branches: 1.3.6; 1.3.12;
always add to SRCS
 1.2 09-Oct-2009  pooka LDADD+= instead of LDADD=
 1.1 06-Aug-2009  pooka Define syscalls of lfs userspace tools (cleaner, mainly) through
a struct called kernelops, which contains standard system calls
for the normal case and rump system calls for the rump case.

Make it possible to run the lfs cleaner in a library fashion (taking
the quick route with the implementation).
 1.3.12.1 23-Jun-2013  tls resync from head
 1.3.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.22 30-Mar-2006  perseant A new version of the cleaner. In general, works about as well as the old
cleaner, but with more legible code.

Includes code for reading and writing to the raw disk device (so that an
unmounted fs could be cleaned), for the use of a single daemon to clean
multiple filesystems to save on resources, and for recording the old
contents of cleaned segments to offline storage for regression testing of
the LFS system as a whole; though these new features are not properly
tested at this point.
 1.21 19-Aug-2005  christos 64 bit inode changes.
 1.20 26-Feb-2005  perseant Various minor LFS improvements:

* Adapt lfs_cleanerd to use the fcntl call to get the Ifile filehandle,
so it need not be in the namespace.
* Make lfs_cleanerd be more careful when there are very few available
segments.
* Remove the Ifile from the filesystem namespace. The cleaner now uses
a fcntl call on the root inode to find the Ifile filehandle.
* Make lfs_cleanerd less verbose when the filesystem is unmounted.
 1.19 21-Apr-2004  christos Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.
 1.18 07-Aug-2003  agc branches: 1.18.4;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.17 02-Apr-2003  fvdl Add support for UFS2. UFS2 is an enhanced FFS, adding support for
64 bit block pointers, extended attribute storage, and a few
other things.

This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
 1.16 24-Feb-2003  perseant Convert lfs_cleanerd over to use the new ioctl calls instead of the
lfs syscalls.
 1.15 24-Jan-2003  fvdl Bump daddr_t to 64 bits. Replace it with int32_t in all places where
it was used on-disk, so that on-disk formats remain the same.
Remove ufs_daddr_t and ufs_lbn_t for the time being.
 1.14 14-Jun-2002  perseant Don't try to coalesce files that have fewer than NDADDR blocks, due to
a potential problem with cleaning fragments at all.

Better sanity checks when selecting files to coalesce; in particular don't
shift too far left when comparing the number of discontinuities to the log2
of the number of total blocks.

Better log messages: note beginning of coalescing correctly; also take
the log message from add_segment out of "if (debug)" for symmetry with the
"finished segment" message.

Use lfs_bmapv to find the inode, rather than looking it up manually in
the ifile; this should give more up-to-date information, since trolling
through every inode in the fs could take some time.
 1.13 06-Jun-2002  perseant First stab at file coalescing. When the cleaner detects that it might
be digging itself deeper into a hole, it forks off a subprocess
that locates files with too many discontinuities and rewrites them, if
there is enough room.

Optionally the user can manually coaleasce files by running with "-c".

The recent change to lfs_markv is required for the coalescer to do anything.

All of "digging itself deeper", "too many discontinuities", and "enough room"
need to be better defined.
 1.12 18-Jul-2001  perseant Handle segment 0 properly, if its offset is different from other segments
because of the disklabel.

Fix a problem with inode block handling that sometimes caused the wrong
blocks to be read, causing either cleaning failures or panics with v2 file
systems.
 1.11 13-Jul-2001  perseant Merge the short-lived perseant-lfsv2 branch into the trunk.

Kernels and tools understand both v1 and v2 filesystems; newfs_lfs
generates v2 by default. Changes for the v2 layout include:

- Segments of non-PO2 size and arbitrary block offset, so these can be
matched to convenient physical characteristics of the partition (e.g.,
stripe or track size and offset).

- Address by fragment instead of by disk sector, paving the way for
non-512-byte-sector devices. In theory fragments can be as large
as you like, though in reality they must be smaller than MAXBSIZE in size.

- Use serial number and filesystem identifier to ensure that roll-forward
doesn't get old data and think it's new. Roll-forward is enabled for
v2 filesystems, though not for v1 filesystems by default.

- The inode free list is now a tailq, paving the way for undelete (undelete
is not yet implemented, but can be without further non-backwards-compatible
changes to disk structures).

- Inode atime information is kept in the Ifile, instead of on the inode;
that is, the inode is never written *just* because atime was changed.
Because of this the inodes remain near the file data on the disk, rather
than wandering all over as the disk is read repeatedly. This speeds up
repeated reads by a small but noticeable amount.

Other changes of note include:

- The ifile written by newfs_lfs can now be of arbitrary length, it is no
longer restricted to a single indirect block.

- Fixed an old bug where ctime was changed every time a vnode was created.
I need to look more closely to make sure that the times are only updated
during write(2) and friends, not after-the-fact during a segment write,
and certainly not by the cleaner.
 1.10 04-Feb-2001  christos branches: 1.10.2;
remove redundant declarations.
 1.9 09-Nov-1999  perseant If the child cleaner dies repeatedly without doing anything, give up. Uses
similar logic to inetd to identify such looping.
 1.8 09-Nov-1999  perseant Make datobyte do its arithmetic explicitly in 64 bits, so that segments
beyond the first 2G of disk can be cleaned.
 1.7 10-Mar-1999  perseant branches: 1.7.2; 1.7.6;
Cleaner changes corresponding to in-kernel LFS changes. In particular, the
cleaner understands fragments; and it knows to change bi_bp to reflect a
change in bi_daddr, if lfs_bmapv says that there is one.
 1.6 07-Oct-1998  christos PR/6248: Konrad Schroder: lfs_cleanerd could use syslog() for notices,
instead of err()/warn()
 1.5 11-Sep-1998  pk type fixes, in part from PR#6032
 1.4 01-Mar-1998  fvdl Merge with Lite2 + local changes
 1.3 07-Oct-1997  mrg WARNS?=1. RCS ids.
 1.2 07-Oct-1997  mrg WARNS?=1. RCS ids.
 1.1 08-Jun-1994  mycroft branches: 1.1.1;
From 4.4-Lite, with local changes.
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite2
 1.1.1.1 24-Sep-1994  mycroft Import original 4.4-Lite version.
 1.7.6.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.7.2.2 16-Dec-1999  he Pull up revision 1.9 (requested by perseant):
If the cleaner is being respawned and dies repeatedly, avoid
looping.
 1.7.2.1 09-Nov-1999  he Pull up revision 1.8 (requested by perseant):
Fix arithmetic overflow which had prevented cleaning of segments
above the first 2GB of the file system.
 1.10.2.3 02-Jul-2001  perseant Change disk addressing unit to be the fragment, instead of the disk sector.
All quantities in the superblock, inodes, indirect blocks, etc. refer now
to this abstract unit (called "fsb" as it is in FFS) instead of disk sectors;
as a consequence segment summary blocks have to be multiples of a fragment in
size. In v1 filesystems, compatibility code ensures that 1 fsb == 1 sector,
regardless of fragment size.

Fragments can now range in size between 512 and 32k; in the event that
LFS_LABELPAD (8k) is smaller than the disk address unit size, an extra
proto-superblock is kept at 8k from the beginning of the disk, to be used
*only* to locate the real superblocks. (Not all of the userland knows about
this yet.)

Almost all of this was done not by me, but by joff.
 1.10.2.2 29-Jun-2001  perseant Get rid of __P(), protoizing where it had not already been done
 1.10.2.1 27-Jun-2001  perseant Import of what I've been calling "LFSv2", that is, LFS with some features
added that require changes to the on-disk data structures. These include:

- 64-bit time in everything but inodes
- User-specified segment offset, and segment size no longer
restricted to PO2.
- Serial number on segment summaries in addition to timestamp, and
a new volume identifier, to make roll-forward feasible without
fear of finding old data and thinking it was new.

Although I think this version works at least as well as what's on the trunk,
we're not done yet; hence this commit is going in on a branch and not on
the trunk. Enhancements that are not here yet include fragment addressing,
like FFS does, instead of block addressing.
 1.18.4.1 10-May-2005  riz Pull up the following revisions (requested by perseant in ticket #1281):

1.8 sys/ufs/lfs/TODO
1.75 sys/ufs/lfs/lfs.h (via patch)
1.74 sys/ufs/lfs/lfs_alloc.c (via patch)
1.49, 1.51 sys/ufs/lfs/lfs_balloc.c (1.51 via patch)
1.78 sys/ufs/lfs/lfs_bio.c
1.62 sys/ufs/lfs/lfs_extern.h (via patch)
1.156 sys/ufs/lfs/lfs_segment.c (via patch)
1.48 sys/ufs/lfs/lfs_subr.c
1.101 sys/ufs/lfs/lfs_syscalls.c
1.163 sys/ufs/lfs/lfs_vfsops.c (via patch)
1.134 sys/ufs/lfs/lfs_vnops.c (via patch)
1.61 sys/ufs/ufs/ufs_readwrite.c (via patch)

1.20 libexec/lfs_cleanerd/clean.h (via patch)
1.52 libexec/lfs_cleanerd/cleanerd.c (via patch)
1.41 libexec/lfs_cleanerd/library.c (via patch)

1.4 regress/sys/fs/lfs/newfs_fsck/Makefile
1.2 regress/sys/fs/lfs/newfs_fsck/mkfs_mount
1.2 regress/sys/fs/lfs/newfs_fsck/smallfiles
1.3 sbin/fsck_lfs/bufcache.c
1.3 sbin/fsck_lfs/bufcache.h
1.3 sbin/fsck_lfs/lfs.h
1.8 sbin/fsck_lfs/lfs.c (via patch)
1.8 sbin/fsck_lfs/pass3.c (via patch)
1.18 sbin/fsck_lfs/pass0.c (via patch)
1.18 sbin/fsck_lfs/utilities.c (via patch)
1.7 sbin/fsck_lfs/segwrite.c
1.19 sbin/fsck_lfs/setup.c (via patch)
1.3 sbin/newfs_lfs/Makefile
0 sbin/newfs_lfs/lfs.c (yes, remove it)
1.1 sbin/newfs_lfs/make_lfs.c
1.15 sbin/newfs_lfs/newfs.c (via patch)

Various minor LFS improvements.

Kernel:

* Note when lfs_putpages(9) thinks it is not going to be writing any
pages before calling genfs_putpages(9). This prevents a situation in
which blocks can be queued for writing without a segment header.
* Correct computation of NRESERVE(), though it is still a gross
overestimate in most cases. Note that if NRESERVE() is too high, it
may be impossible to create files on the filesystem. We catch this
case on filesystem mount and refuse to mount r/w.
* Allow filesystems to be mounted whose block size is == MAXBSIZE.
* Somewhere along the line, ufs_bmaparray(9) started mangling UNWRITTEN
entries in indirect blocks again, triggering a failed assertion "daddr
<= LFS_MAX_DADDR". Explicitly convert to and from int32_t to correct
this. Should fix PR #29045.
* Add a high-water mark for the number of dirty pages any given LFS can
hold before triggering a flush. This is settable by sysctl, but off
(zero) by default.
* Be more careful about the MAX_BYTES and MAX_BUFS computations so we
shouldn't see "please increase to at least zero" messages.
* Note that VBLK and VCHR vnodes can have nonzero values in di_db[0]
even though their v_size == 0. Don't panic when we see this.
Fixes PR #26680.
* Change lfs_bfree to a signed quantity. The manner in which it is
processed before being passed to the cleaner means that sometimes it
may drop below zero, and the cleaner must be aware of this.
* Never report bfree < 0 (or higher than lfs_dsize) through
lfs_statfs(9). This prevents df(1) from ever telling us that our full
filesystems have 16TB free.
* Account space allocated through lfs_balloc(9) that does not have
associated buffer headers, so that the pagedaemon doesn't run us out
of segments.
* Return ENOSPC from lfs_balloc(9) when bfree drops to zero.
* Address a deadlock in lfs_bmapv/lfs_markv when the filesystem is being
unmounted. Because vfs_busy() is a shared lock, and
lfs_bmapv/lfs_markv mark the filesystem vfs_busy(), the cleaner can be
holding the lock that umount() is blocking on, then try to vfs_busy()
again in getnewvnode().

cleaner:

* Adapt lfs_cleanerd to use the fcntl call to get the Ifile filehandle,
so it need not be in the namespace.
* Make lfs_cleanerd be more careful when there are very few available
segments.
* Make lfs_cleanerd less verbose when the filesystem is unmounted.

newfs_lfs, fsck_lfs, and regression:

* Extend the lfs library from fsck_lfs(8) so that it can be used with a
not-yet-existent LFS. Make newfs_lfs(8) use this library, so it can
create LFSs whose Ifile is larger than one segment. Addresses PR #11110.
* Make newfs_lfs(8) use strsuftoi64() for its arguments, a la newfs(8).
* Make fsck_lfs(8) respect the "file system is clean" flag.
* Don't let fsck_lfs(8) think it has dirty blocks when invoked with the
-n flag.
* Remove the Ifile from the filesystem namespace. The cleaner now uses
a fcntl call on the root inode to find the Ifile filehandle. (As a
side-effect, addresses PR #29144.)
 1.15 01-Sep-2015  dholland Add new accessors for the d_type and d_namlen fields of struct lfs_direct.
Napalm the old byteswap access logic for these.
 1.14 01-Sep-2015  dholland Add byteswapping to the dinode accessors.

This prevents regressions in the ulfs code when switching to the new
accessors. Note that while adding byteswapping to the other accessors
is straightforward, I haven't done it yet; and that also is not enough
to make LFS_EI work, because there are places lying around that bypass
the accessors for one reason and another and all of them need to be
updated. That is going to have to wait for a later day as LFS_EI is
not on the critical path right now.
 1.13 12-Aug-2015  dholland Make 32-bit and 64-bit versions of CLEANERINFO.

XXX: while this is written to disk, it seems like much of it would
XXX: be better set up as a commpage shared with the cleaner.
 1.12 12-Aug-2015  dholland Fix assorted 64->32 truncations related to BLOCK_INFO.

Also make note of a cleaner limitation: it seems that when it goes to
coalesce discontiguous files, it mallocs an array with one BLOCK_INFO
for every block in the file. Therefore, with 64-bit LFS, on a 32-bit
platform it will be possible to have files large enough to overflow
the cleaner's address space. Currently these will be skipped and cause
warnings via syslog.

At some point someone should rewrite the logic to coalesce files to
use chunks of some reasonable size, as discontinuity between such
chunks is immaterial and mallocing this much space is silly and
fragile. Also, the kernel only accepts up to 65536 blocks at a time
for bmapv and markv, so processing more than this at once probably
isn't useful and may not even work currently. I don't want to change
this around just now as it's not entirely trivial.
 1.11 02-Aug-2015  dholland Add a (draft) 64-bit superblock. Make things build again.

Add pieces of support for using both superblock types where
convenient, and specifically to the superblock accessors, but don't
actually enable it anywhere.

First substantive step on PR 50000.
 1.10 02-Aug-2015  dholland Second batch of 64 -> 32 truncations in lfs, along with more minor
tidyups and corrections in passing.
 1.9 28-Jul-2015  dholland Use lfs_accessors.h in conjunction with the cleaner's struct clfs.
Remove previous hacks.
 1.8 28-Jul-2015  dholland Add a new lfs header file: lfs_accessors.h.

This contains all the accessor functions and macros out of lfs.h.
Add an include of lfs_accessors.h after all uses of lfs.h... except
for code that wants to define its own struct lfs-alike that the
accessors are supposed to play along with. For these, set STRUCT_LFS
and include lfs_accessors.h after the necessary structure has been
defined, so that lfs_accessors.h can emit functions in terms of it.
 1.7 24-Jul-2015  dholland More lfs superblock accessors.
(This changes the rest of the code over; all the accessors were
already added.)

The difference between this commit and the previous one is arbitrary,
but the previous one passed the regression tests on its own so I'm
keeping it separate to help with any bisections that might be needed
in the future.
 1.6 24-Jul-2015  dholland Switch to accessor functions for elements of the LFS on-disk
superblock. This will allow switching between 32/64 bit forms on the
fly; it will also allow handling LFS_EI reasonably tidily. (That
currently doesn't work on the superblock.)

It also gets rid of cpp abuse in the form of fake structure member
macros.

Also, instead of doing sleep/wakeup on &lfs_avail and &lfs_nextseg
inside the on-disk superblock, add extra elements to the in-memory
struct lfs for this. (XXX: these should be changed to condvars, but
not right now)

XXX: this migrates a structure needed by the lfs code in libsa (struct
salfs) into lfs.h, where it doesn't belong, but for the time being
this is necessary in order to allow the accessors (and the various
lfs macros and other goop that relies on them) to compile.
 1.5 16-Mar-2009  lukem fix WARNS=3 issues;
* sprinkle const
* avoid tests < 0 on unsigned types
* test fwrite() returns nmemb not <0
 1.4 31-Jul-2006  martin branches: 1.4.28;
Make filehandles opaque to userland
 1.3 13-Jul-2006  martin Fix alignement problems for fhandle_t, exposed by gcc4.1.

While touching all vptofh/fhtovp functions, get rid of VFS_MAXFIDSIZ,
version the getfh(2) syscall and explicitly pass the size available in
the filehandle from userland.

Discussed on tech-kern, with lots of help from yamt (thanks!).
 1.2 12-May-2006  perseant Be more careful about checking return value of {m,re}alloc().

In determining when to stop reading segments when counting bytes (-b flag),
total the sizes of the blocks we're actually writing instead of assuming
they are all full blocks: many could be fragments or inode blocks. This
increases the number of segments per Ifile write, markedly improving the
efficiency of the cleaner in the small file case.
 1.1 30-Mar-2006  perseant A new version of the cleaner. In general, works about as well as the old
cleaner, but with more legible code.

Includes code for reading and writing to the raw disk device (so that an
unmounted fs could be cleaned), for the use of a single daemon to clean
multiple filesystems to save on resources, and for recording the old
contents of cleaned segments to offline storage for regression testing of
the LFS system as a whole; though these new features are not properly
tested at this point.
 1.4.28.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.56 30-Mar-2006  perseant A new version of the cleaner. In general, works about as well as the old
cleaner, but with more legible code.

Includes code for reading and writing to the raw disk device (so that an
unmounted fs could be cleaned), for the use of a single daemon to clean
multiple filesystems to save on resources, and for recording the old
contents of cleaned segments to offline storage for regression testing of
the LFS system as a whole; though these new features are not properly
tested at this point.
 1.55 19-Aug-2005  christos 64 bit inode changes.
 1.54 23-Apr-2005  perseant Provide a resize_lfs(8), including kernel and cleaner support. The current
implementation requires the fs to be mounted while resizing. Tested in both
directions, and everything appears to work happily, but ymmv.
 1.53 30-Mar-2005  xtraeme Add missing flags to usage()
 1.52 26-Feb-2005  perseant branches: 1.52.2;
Various minor LFS improvements:

* Adapt lfs_cleanerd to use the fcntl call to get the Ifile filehandle,
so it need not be in the namespace.
* Make lfs_cleanerd be more careful when there are very few available
segments.
* Remove the Ifile from the filesystem namespace. The cleaner now uses
a fcntl call on the root inode to find the Ifile filehandle.
* Make lfs_cleanerd less verbose when the filesystem is unmounted.
 1.51 21-Apr-2004  christos Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.
 1.50 19-Sep-2003  itojun branches: 1.50.4;
realloc pedant
 1.49 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.48 13-Jul-2003  itojun use bounded string ops. check malloc failure. asprintf is easier than
complicated strcat/strcpy combination.
 1.47 02-Apr-2003  fvdl Add support for UFS2. UFS2 is an enhanced FFS, adding support for
64 bit block pointers, extended attribute storage, and a few
other things.

This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
 1.46 02-Mar-2003  perseant Let the cleaner use LFCNRECLAIM to help empty segments along, if it
thinks it needs to clean and segments are tantalizingly lingering
in the "empty but dirty" state.
 1.45 25-Feb-2003  perseant Make fs-specific fcntl macros take three arguments (approved wrstuden).
Let LFS use fcntl for cleaner functions.
 1.44 24-Feb-2003  perseant Convert lfs_cleanerd over to use the new ioctl calls instead of the
lfs syscalls.
 1.43 05-Feb-2003  perry "Utilize" has exactly the same meaning as "use," but it is more
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
 1.42 28-Jan-2003  mrg make this build on alpha after daddr_t->64bit
 1.41 24-Jan-2003  fvdl Bump daddr_t to 64 bits. Replace it with int32_t in all places where
it was used on-disk, so that on-disk formats remain the same.
Remove ufs_daddr_t and ufs_lbn_t for the time being.
 1.40 15-Dec-2002  yamt for -b, use ssize instead of segshift.
segshift is invalid for v2 filesystems.
 1.39 14-Jun-2002  perseant Don't try to coalesce files that have fewer than NDADDR blocks, due to
a potential problem with cleaning fragments at all.

Better sanity checks when selecting files to coalesce; in particular don't
shift too far left when comparing the number of discontinuities to the log2
of the number of total blocks.

Better log messages: note beginning of coalescing correctly; also take
the log message from add_segment out of "if (debug)" for symmetry with the
"finished segment" message.

Use lfs_bmapv to find the inode, rather than looking it up manually in
the ifile; this should give more up-to-date information, since trolling
through every inode in the fs could take some time.
 1.38 06-Jun-2002  perseant First stab at file coalescing. When the cleaner detects that it might
be digging itself deeper into a hole, it forks off a subprocess
that locates files with too many discontinuities and rewrites them, if
there is enough room.

Optionally the user can manually coaleasce files by running with "-c".

The recent change to lfs_markv is required for the coalescer to do anything.

All of "digging itself deeper", "too many discontinuities", and "enough room"
need to be better defined.
 1.37 29-Apr-2002  yamt branches: 1.37.2;
remove one of duplicated "bfree" from debug message.
 1.36 29-Apr-2002  yamt use errx instead of err in some places
in order to avoid "Undefined error: 0"
 1.35 11-Jan-2002  itojun daemon(3) should be used prior to file descriptor setups.
 1.34 21-Nov-2001  wiz "than" instead of "then".
 1.33 18-Jul-2001  perseant fix printf format on alpha
 1.32 18-Jul-2001  perseant Handle segment 0 properly, if its offset is different from other segments
because of the disklabel.

Fix a problem with inode block handling that sometimes caused the wrong
blocks to be read, causing either cleaning failures or panics with v2 file
systems.
 1.31 13-Jul-2001  perseant Merge the short-lived perseant-lfsv2 branch into the trunk.

Kernels and tools understand both v1 and v2 filesystems; newfs_lfs
generates v2 by default. Changes for the v2 layout include:

- Segments of non-PO2 size and arbitrary block offset, so these can be
matched to convenient physical characteristics of the partition (e.g.,
stripe or track size and offset).

- Address by fragment instead of by disk sector, paving the way for
non-512-byte-sector devices. In theory fragments can be as large
as you like, though in reality they must be smaller than MAXBSIZE in size.

- Use serial number and filesystem identifier to ensure that roll-forward
doesn't get old data and think it's new. Roll-forward is enabled for
v2 filesystems, though not for v1 filesystems by default.

- The inode free list is now a tailq, paving the way for undelete (undelete
is not yet implemented, but can be without further non-backwards-compatible
changes to disk structures).

- Inode atime information is kept in the Ifile, instead of on the inode;
that is, the inode is never written *just* because atime was changed.
Because of this the inodes remain near the file data on the disk, rather
than wandering all over as the disk is read repeatedly. This speeds up
repeated reads by a small but noticeable amount.

Other changes of note include:

- The ifile written by newfs_lfs can now be of arbitrary length, it is no
longer restricted to a single indirect block.

- Fixed an old bug where ctime was changed every time a vnode was created.
I need to look more closely to make sure that the times are only updated
during write(2) and friends, not after-the-fact during a segment write,
and certainly not by the cleaner.
 1.30 04-Feb-2001  christos branches: 1.30.2;
remove redundant declarations.
 1.29 16-Jan-2001  cgd avoid C sequence point issues warned about by development version of gcc.
 1.28 10-Jan-2001  lukem be more consistent about syslog usage. now it's more like:
err fatal errors
warning warnings
info status messages (-d), stats on SIGxxx
debug debug messages (-d), debug stats
 1.27 23-Nov-2000  perseant Don't "compress" segment data if we were using mmap instead of malloc/copy
to read the segment.
 1.26 22-Nov-2000  perseant Check for ENOENT return from lfs_{bmapv,markv} and do the right thing with it,
avoiding needless looping (possibly infinite looping) on certain kinds of
errors.

Get rid of erroneous free() in error return from add_segment.

Patch from Jesse Off <joff@gci-net.com> (PR #11547).
 1.25 13-Nov-2000  perseant Try to prevent running more than one active cleaner on a filesystem at a time.

Let lfs_cleanerd record its pid in /var/run like other daemons. Make
mount_lfs not start another cleaner when updating the mount, unless it is
being upgraded from read-only to read-write; when downgrading to read-only,
kill the cleaner using the recorded pids.
 1.24 11-Nov-2000  perseant Don't hold every segment that is being cleaned in memory in its entirety;
instead, if the segment doesn't have many live blocks, copy them to a
more appropriately sized chunk of memory and release the original.

This should prevent the cleaner from distending itself when cleaning many
segments with only one or two live blocks each, as when using the "-b" option.
 1.23 03-Nov-2000  perseant Fix memory leak described in PR #11094 (patch from Jesse Off
<joff@gci-net.com>).
 1.22 09-Sep-2000  perseant Various bug-fixes to LFS, to wit:


Kernel:

* Add runtime quantity lfs_ravail, the number of disk-blocks reserved
for writing. Writes to the filesystem first reserve a maximum amount
of blocks before their write is allowed to proceed; after the blocks
are allocated the reserved total is reduced by a corresponding amount.

If the lfs_reserve function cannot immediately reserve the requested
number of blocks, the inode is unlocked, and the thread sleeps until
the cleaner has made enough space available for the blocks to be
reserved. In this way large files can be written to the filesystem
(or, smaller files can be written to a nearly-full but thoroughly
clean filesystem) and the cleaner can still function properly.

* Remove explicit switching on dlfs_minfreeseg from the kernel code; it
is now merely a fs-creation parameter used to compute dlfs_avail and
dlfs_bfree (and used by fsck_lfs(8) to check their accuracy). Its
former role is better assumed by a properly computed dlfs_avail.

* Bounds-check inode numbers submitted through lfs_bmapv and lfs_markv.
This prevents a panic, but, if the cleaner is feeding the filesystem
the wrong data, you are still in a world of hurt.

* Cleanup: remove explicit references of DEV_BSIZE in favor of
btodb()/dbtob().

lfs_cleanerd:

* Make -n mean "send N segments' blocks through a single call to
lfs_markv". Previously it had meant "clean N segments though N calls
to lfs_markv, before looking again to see if more need to be cleaned".
The new behavior gives better packing of direct data on disk with as
little metadata as possible, largely alleviating the problem that the
cleaner can consume more disk through inefficient use of metadata than
it frees by moving dirty data away from clean "holes" to produce
entirely clean segments.

* Make -b mean "read as many segments as necessary to write N segments
of dirty data back to disk", rather than its former meaning of "read
as many segments as necessary to free N segments worth of space". The
new meaning, combined with the new -n behavior described above,
further aids in cleaning storage efficiency as entire segments can be
written at once, using as few blocks as possible for segment summaries
and inode blocks.

* Make the cleaner take note of segments which could not be cleaned due
to error, and not attempt to clean them until they are entirely free
of dirty blocks. This prevents the case in which a cleanerd running
with -n 1 and without -b (formerly the default) would spin trying
repeatedly to clean a corrupt segment, while the remaining space
filled and deadlocked the filesystem.

* Update the lfs_cleanerd manual page to describe all the options,
including the changes mentioned here (in particular, the -b and -n
flags were previously undocumented).

fsck_lfs:

* Check, and optionally fix, lfs_avail (to an exact figure) and
lfs_bfree (within a margin of error) in pass 5.

newfs_lfs:

* Reduce the default dlfs_minfreeseg to 1/20 of the total segments.

* Add a warning if the sgs disklabel field is 16 (the default for FFS'
cpg, but not usually desirable for LFS' sgs: 5--8 is a better range).

* Change the calculation of lfs_avail and lfs_bfree, corresponding to
the kernel changes mentioned above.

mount_lfs:

* Add -N and -b options to pass corresponding -n and -b options to
lfs_cleanerd.

* Default to calling lfs_cleanerd with "-b -n 4".


[All of these changes were largely tested in the 1.5 branch, with the
idea that they (along with previous un-pulled-up work) could be applied
to the branch while it was still in ALPHA2; however my test system has
experienced corruption on another filesystem (/dev/console has gone
missing :^), and, while I believe this unrelated to the LFS changes, I
cannot with good conscience request that the changes be pulled up.]
 1.21 04-Jul-2000  perseant cleaner changes corrseponding to kernel changes
 1.20 03-Jul-2000  perseant User-level changes corrseponding to my latest kernel changes.
newfs_lfs gives lfs_minfreeseg a value of 1/8 of the total segments on
the disk, based on rough empirical data, but this should be refined in
the future.
 1.19 21-Jun-2000  perseant Make sure to segunmap segments on error in lfs_bmapv or lfs_markv. Prevents
a memory leak of by default 1 Mb per error. May fix PR #9149.
 1.18 18-Jan-2000  perseant branches: 1.18.4;
Take care of memory leaks
 1.17 09-Nov-1999  perseant If the child cleaner dies repeatedly without doing anything, give up. Uses
similar logic to inetd to identify such looping.
 1.16 30-Sep-1999  soren Remove extraneous colons and newlines from perror(3) arguments.
 1.15 16-Jun-1999  tron branches: 1.15.2;
Correct wrong conversion specifications in calls to syslog(3).
 1.14 15-Jun-1999  perseant The cleaner now marks empty segments clean without having to read their
contents, a substantial optimization if the work load is right: if enough
empty segments are available, the cleaner never has to read or write *any*
blocks except those on the Ifile. When the cleaner wakes up it marks all
empty segments clean before deciding whether any further segments need to
be cleaned.

Fixed overflow bugs in the cleaner's handling of the cost/benefit metric
for empty segments.
 1.13 14-Mar-1999  drochner branches: 1.13.2;
work around printf format warnings on alpha
 1.12 10-Mar-1999  perseant Cleaner changes corresponding to in-kernel LFS changes. In particular, the
cleaner understands fragments; and it knows to change bi_bp to reflect a
change in bi_daddr, if lfs_bmapv says that there is one.
 1.11 07-Oct-1998  christos PR/6248: Konrad Schroder: lfs_cleanerd could use syslog() for notices,
instead of err()/warn()
 1.10 07-Oct-1998  christos PR/6249: Konrad Schroder lfs_cleanerd uses wrong units when computing which
segments to clean
 1.9 07-Oct-1998  christos PR/6247: Konrad Schroder: lfs_cleanerd overflows char register counting live
bytes
 1.8 11-Sep-1998  pk type fixes, in part from PR#6032
 1.7 22-May-1998  hubertf use correct getopt parameters, as per PR 5480 from Konrad Schroder <perseant@hhhh.org>
 1.6 01-Apr-1998  kleink Need <time.h> for time() and ctime() prototypes.
 1.5 01-Mar-1998  fvdl Merge with Lite2 + local changes
 1.4 20-Oct-1997  enami No need to decalre optind.
 1.3 08-Oct-1997  enami Compare a return value of getopt() against -1 instead of EOF.
 1.2 07-Oct-1997  mrg WARNS?=1. RCS ids.
 1.1 08-Jun-1994  mycroft branches: 1.1.1;
From 4.4-Lite, with local changes.
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite2
 1.1.1.1 24-Sep-1994  mycroft Import original 4.4-Lite version.
 1.13.2.4 31-Jan-2000  he Pull up revision 1.18 (requested by perseant):
Fix a few memory leaks in lfs_cleanerd.
 1.13.2.3 16-Dec-1999  he Pull up revision 1.17 (requested by perseant):
If the cleaner is being respawned and dies repeatedly, avoid
looping.
 1.13.2.2 01-Jul-1999  perry pullup 1.14->1.15 (perseant)
 1.13.2.1 25-Jun-1999  perry pullup 1.13->1.14 (perseant)
 1.15.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.18.4.4 03-Feb-2001  he Pull up revisions 1.24-1.27 (requested by perseant):
o Compress segments in memory if neccessary
o Record our pid in /var/run for mount_lfs
o Check for error return from lfs_markv, avoiding neeless looping
o Don't free mmap()d memory if using "-m" flag
 1.18.4.3 03-Feb-2001  he Pull up revision 1.23 (requested by perseant):
Plug memory leak in lfs_cleanerd. Fixes PR#11094.
 1.18.4.2 14-Sep-2000  perseant Pull up LFS userland changes to correspond with the previous commit's
kernel changes (approved by thorpej):

[basesrc/libexec/lfs_cleanerd:]
cleanerd.c, 1.20--1.22 (MIN_FREE_SEG -> lfs_minfreeseg ;
read bfree/avail from CLEANERINFO ;
changes to definition of -n and -b)
lfs_cleanerd.8, 1.7 (update man page to current behavior)
library.c, 1.16 (fix comment)

[basesrc/sbin/fsck_lfs:]
pass5.c, 1.6 (calculate/fix lfs_avail and lfs_bfree)

[basesrc/sbin/newfs_lfs:]
config.h, 1.2--1.5 (MINFREE=20, remove FFS cruft ;
add DFL_MIN_FREE_SEGS=8 and MINFREE=10 ;
set DFL_MIN_FREE_SEGS=10 ;
set DFL_MIN_FREE_SEGS=20)
extern.h, 1.2 (correct function declaration for make_lfs)
newfs.c, 1.4 (add -M flag)
lfs.c, 1.13--1.14, 1.16--1.18 (change lfs_bfree initialization ;
MIN_FREE_SEG -> lfs_minfreeseg ;
only 10 superblocks and print nicely ;
correct init calculation of
lfs_bfree/lfs_avail to allow fs to
fill ;
make -N dtrt)

[basesrc/sbin/mount_lfs:]
mount_lfs.8, 1.7 (document -N, -b flags)
mount_lfs.c, 1.10 (default cleanerd to -b -n 4; add -N,
-b flags)

[basesrc/usr.sbin/dumplfs:]
dumplfs.c, 1.15 (print only the SEGUSEs specified with -s)
 1.18.4.1 21-Jun-2000  perseant Pull up r1.19 of cleanerd.c: make sure to segunmap segments on error in
lfs_bmapv or lfs_markv. Prevents a memory leak of (by default) 1 Mb per
error. May fix PR #9149.
 1.30.2.3 02-Jul-2001  perseant Change disk addressing unit to be the fragment, instead of the disk sector.
All quantities in the superblock, inodes, indirect blocks, etc. refer now
to this abstract unit (called "fsb" as it is in FFS) instead of disk sectors;
as a consequence segment summary blocks have to be multiples of a fragment in
size. In v1 filesystems, compatibility code ensures that 1 fsb == 1 sector,
regardless of fragment size.

Fragments can now range in size between 512 and 32k; in the event that
LFS_LABELPAD (8k) is smaller than the disk address unit size, an extra
proto-superblock is kept at 8k from the beginning of the disk, to be used
*only* to locate the real superblocks. (Not all of the userland knows about
this yet.)

Almost all of this was done not by me, but by joff.
 1.30.2.2 29-Jun-2001  perseant Get rid of __P(), protoizing where it had not already been done
 1.30.2.1 27-Jun-2001  perseant Import of what I've been calling "LFSv2", that is, LFS with some features
added that require changes to the on-disk data structures. These include:

- 64-bit time in everything but inodes
- User-specified segment offset, and segment size no longer
restricted to PO2.
- Serial number on segment summaries in addition to timestamp, and
a new volume identifier, to make roll-forward feasible without
fear of finding old data and thinking it was new.

Although I think this version works at least as well as what's on the trunk,
we're not done yet; hence this commit is going in on a branch and not on
the trunk. Enhancements that are not here yet include fragment addressing,
like FFS does, instead of block addressing.
 1.37.2.1 15-Jun-2003  tron Pull up revision 1.40 (requested by toshii in ticket #1232):
for -b, use ssize instead of segshift.
segshift is invalid for v2 filesystems.
 1.50.4.1 10-May-2005  riz Pull up the following revisions (requested by perseant in ticket #1281):

1.8 sys/ufs/lfs/TODO
1.75 sys/ufs/lfs/lfs.h (via patch)
1.74 sys/ufs/lfs/lfs_alloc.c (via patch)
1.49, 1.51 sys/ufs/lfs/lfs_balloc.c (1.51 via patch)
1.78 sys/ufs/lfs/lfs_bio.c
1.62 sys/ufs/lfs/lfs_extern.h (via patch)
1.156 sys/ufs/lfs/lfs_segment.c (via patch)
1.48 sys/ufs/lfs/lfs_subr.c
1.101 sys/ufs/lfs/lfs_syscalls.c
1.163 sys/ufs/lfs/lfs_vfsops.c (via patch)
1.134 sys/ufs/lfs/lfs_vnops.c (via patch)
1.61 sys/ufs/ufs/ufs_readwrite.c (via patch)

1.20 libexec/lfs_cleanerd/clean.h (via patch)
1.52 libexec/lfs_cleanerd/cleanerd.c (via patch)
1.41 libexec/lfs_cleanerd/library.c (via patch)

1.4 regress/sys/fs/lfs/newfs_fsck/Makefile
1.2 regress/sys/fs/lfs/newfs_fsck/mkfs_mount
1.2 regress/sys/fs/lfs/newfs_fsck/smallfiles
1.3 sbin/fsck_lfs/bufcache.c
1.3 sbin/fsck_lfs/bufcache.h
1.3 sbin/fsck_lfs/lfs.h
1.8 sbin/fsck_lfs/lfs.c (via patch)
1.8 sbin/fsck_lfs/pass3.c (via patch)
1.18 sbin/fsck_lfs/pass0.c (via patch)
1.18 sbin/fsck_lfs/utilities.c (via patch)
1.7 sbin/fsck_lfs/segwrite.c
1.19 sbin/fsck_lfs/setup.c (via patch)
1.3 sbin/newfs_lfs/Makefile
0 sbin/newfs_lfs/lfs.c (yes, remove it)
1.1 sbin/newfs_lfs/make_lfs.c
1.15 sbin/newfs_lfs/newfs.c (via patch)

Various minor LFS improvements.

Kernel:

* Note when lfs_putpages(9) thinks it is not going to be writing any
pages before calling genfs_putpages(9). This prevents a situation in
which blocks can be queued for writing without a segment header.
* Correct computation of NRESERVE(), though it is still a gross
overestimate in most cases. Note that if NRESERVE() is too high, it
may be impossible to create files on the filesystem. We catch this
case on filesystem mount and refuse to mount r/w.
* Allow filesystems to be mounted whose block size is == MAXBSIZE.
* Somewhere along the line, ufs_bmaparray(9) started mangling UNWRITTEN
entries in indirect blocks again, triggering a failed assertion "daddr
<= LFS_MAX_DADDR". Explicitly convert to and from int32_t to correct
this. Should fix PR #29045.
* Add a high-water mark for the number of dirty pages any given LFS can
hold before triggering a flush. This is settable by sysctl, but off
(zero) by default.
* Be more careful about the MAX_BYTES and MAX_BUFS computations so we
shouldn't see "please increase to at least zero" messages.
* Note that VBLK and VCHR vnodes can have nonzero values in di_db[0]
even though their v_size == 0. Don't panic when we see this.
Fixes PR #26680.
* Change lfs_bfree to a signed quantity. The manner in which it is
processed before being passed to the cleaner means that sometimes it
may drop below zero, and the cleaner must be aware of this.
* Never report bfree < 0 (or higher than lfs_dsize) through
lfs_statfs(9). This prevents df(1) from ever telling us that our full
filesystems have 16TB free.
* Account space allocated through lfs_balloc(9) that does not have
associated buffer headers, so that the pagedaemon doesn't run us out
of segments.
* Return ENOSPC from lfs_balloc(9) when bfree drops to zero.
* Address a deadlock in lfs_bmapv/lfs_markv when the filesystem is being
unmounted. Because vfs_busy() is a shared lock, and
lfs_bmapv/lfs_markv mark the filesystem vfs_busy(), the cleaner can be
holding the lock that umount() is blocking on, then try to vfs_busy()
again in getnewvnode().

cleaner:

* Adapt lfs_cleanerd to use the fcntl call to get the Ifile filehandle,
so it need not be in the namespace.
* Make lfs_cleanerd be more careful when there are very few available
segments.
* Make lfs_cleanerd less verbose when the filesystem is unmounted.

newfs_lfs, fsck_lfs, and regression:

* Extend the lfs library from fsck_lfs(8) so that it can be used with a
not-yet-existent LFS. Make newfs_lfs(8) use this library, so it can
create LFSs whose Ifile is larger than one segment. Addresses PR #11110.
* Make newfs_lfs(8) use strsuftoi64() for its arguments, a la newfs(8).
* Make fsck_lfs(8) respect the "file system is clean" flag.
* Don't let fsck_lfs(8) think it has dirty blocks when invoked with the
-n flag.
* Remove the Ifile from the filesystem namespace. The cleaner now uses
a fcntl call on the root inode to find the Ifile filehandle. (As a
side-effect, addresses PR #29144.)
 1.52.2.2 07-May-2005  tron Apply patch (requested by perseant in ticket #242):
* fsck_lfs buffer cache fixes, including PR #29151
* Change fsck_lfs phase 0 message to reflect reality
* fsck_lfs: check phase 5 (cleanerinfo accounting) even on
roll-forward
* Keep better track of the free list during roll-forward, avoiding
a core dump
* Improve hash table use for fsck_lfs buffer and vnode cache
* Document fsck_lfs flag -f, and implement -q
* Add resize_lfs, including kernel support
* Add LFS to mountd's list of exportable filesystem types
* Make the LFS lkm work again [christos@]
* Add MP locking to the LFS kernel subsystem
* Fix pager_map deadlock in lfs_putpages()
* Avoid incomplete file extension that looks like "partial
truncation" to fsck
* Use lfs_malloc for cleaner malloc, since the cleaner often runs
in low-memory conditions.
* Use splay trees, not hash table, to track page allocation for
write.
* Fix mkdir panic on full fs
* Fix page accounting leak by counting differently.
* Use rightly named structure for lfs_getattr [skrll@]
* Cosmetic changes for readability.
 1.52.2.1 03-Apr-2005  tron Pull up revision 1.53 (requested by xtraeme in ticket #81):
Add missing flags to usage()
 1.4 06-Jun-2013  dholland ufs -> ulfs for lfs_cleanerd
 1.3 28-Apr-2008  martin branches: 1.3.4; 1.3.26;
Remove clause 3 and 4 from TNF licenses
 1.2 12-May-2006  perseant branches: 1.2.18;
Be more careful about checking return value of {m,re}alloc().

In determining when to stop reading segments when counting bytes (-b flag),
total the sizes of the blocks we're actually writing instead of assuming
they are all full blocks: many could be fragments or inode blocks. This
increases the number of segments per Ifile write, markedly improving the
efficiency of the cleaner in the small file case.
 1.1 30-Mar-2006  perseant A new version of the cleaner. In general, works about as well as the old
cleaner, but with more legible code.

Includes code for reading and writing to the raw disk device (so that an
unmounted fs could be cleaned), for the use of a single daemon to clean
multiple filesystems to save on resources, and for recording the old
contents of cleaned segments to offline storage for regression testing of
the LFS system as a whole; though these new features are not properly
tested at this point.
 1.2.18.1 18-May-2008  yamt sync with head.
 1.3.26.1 23-Jun-2013  tls resync from head
 1.3.4.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.33 10-Oct-2015  dholland Use llabs(), not abs(), on the difference of daddr_t's.
Caught by clang, reported by joerg.

Turn off the clang-specific compiler flags that were making the report
nonfatal.
 1.32 12-Aug-2015  dholland Hack up dinode usage to be 64 vs. 32 as needed. Part 1.

(This part changes the native lfs code; the ufs-derived code already
has 64 vs. 32 logic, but as aspects of it are unsafe, and don't
entirely interoperate cleanly with the lfs 64/32 stuff, pass 2 will be
rehashing that.)
 1.31 12-Aug-2015  dholland Add IFILE32 and IFILE64 structures for the on-disk ifile entries.
Add and use accessors. There are also a bunch of places that cast and
I hope I've found them all...
 1.30 12-Aug-2015  dholland Make 32-bit and 64-bit versions of CLEANERINFO.

XXX: while this is written to disk, it seems like much of it would
XXX: be better set up as a commpage shared with the cleaner.
 1.29 12-Aug-2015  dholland Fix assorted 64->32 truncations related to BLOCK_INFO.

Also make note of a cleaner limitation: it seems that when it goes to
coalesce discontiguous files, it mallocs an array with one BLOCK_INFO
for every block in the file. Therefore, with 64-bit LFS, on a 32-bit
platform it will be possible to have files large enough to overflow
the cleaner's address space. Currently these will be skipped and cause
warnings via syslog.

At some point someone should rewrite the logic to coalesce files to
use chunks of some reasonable size, as discontinuity between such
chunks is immaterial and mallocing this much space is silly and
fragile. Also, the kernel only accepts up to 65536 blocks at a time
for bmapv and markv, so processing more than this at once probably
isn't useful and may not even work currently. I don't want to change
this around just now as it's not entirely trivial.
 1.28 28-Jul-2015  dholland Use lfs_accessors.h in conjunction with the cleaner's struct clfs.
Remove previous hacks.
 1.27 28-Jul-2015  dholland Add a new lfs header file: lfs_accessors.h.

This contains all the accessor functions and macros out of lfs.h.
Add an include of lfs_accessors.h after all uses of lfs.h... except
for code that wants to define its own struct lfs-alike that the
accessors are supposed to play along with. For these, set STRUCT_LFS
and include lfs_accessors.h after the necessary structure has been
defined, so that lfs_accessors.h can emit functions in terms of it.
 1.26 24-Jul-2015  dholland More lfs superblock accessors.
(This changes the rest of the code over; all the accessors were
already added.)

The difference between this commit and the previous one is arbitrary,
but the previous one passed the regression tests on its own so I'm
keeping it separate to help with any bisections that might be needed
in the future.
 1.25 24-Jul-2015  dholland Switch to accessor functions for elements of the LFS on-disk
superblock. This will allow switching between 32/64 bit forms on the
fly; it will also allow handling LFS_EI reasonably tidily. (That
currently doesn't work on the superblock.)

It also gets rid of cpp abuse in the form of fake structure member
macros.

Also, instead of doing sleep/wakeup on &lfs_avail and &lfs_nextseg
inside the on-disk superblock, add extra elements to the in-memory
struct lfs for this. (XXX: these should be changed to condvars, but
not right now)

XXX: this migrates a structure needed by the lfs code in libsa (struct
salfs) into lfs.h, where it doesn't belong, but for the time being
this is necessary in order to allow the accessors (and the various
lfs macros and other goop that relies on them) to compile.
 1.24 29-Mar-2015  chopps - Fix fallout for recent bread() change (removing cred arg).
 1.23 18-Jun-2013  christos Prefix most of the cpp macros with lfs_ and LFS_ to avoid conflicts with ffs.
This was done so that boot blocks that want to compile both FFS and LFS in
the same file work.
 1.22 08-Jun-2013  dholland Missed one of the -I${NETBSDSRCDIR}/sys hacks yesterday; remove it now.
 1.21 06-Jun-2013  dholland ufs -> ulfs for lfs_cleanerd
 1.20 22-Jan-2013  dholland Stuff UFS_ in front of a few of ufs's symbols to reduce namespace
pollution. Specifically:
ROOTINO -> UFS_ROOTINO
WINO -> UFS_WINO
NXADDR -> UFS_NXADDR
NDADDR -> UFS_NDADDR
NIADDR -> UFS_NIADDR
MAXSYMLINKLEN -> UFS_MAXSYMLINKLEN
MAXSYMLINKLEN_UFS[12] -> UFS[12]_MAXSYMLINKLEN (for consistency)

Sort out ext2fs's misuse of NDADDR and NIADDR; fortunately, these have
the same values in ext2fs and ffs.

No functional change intended.
 1.19 02-Jan-2012  perseant branches: 1.19.6;
In lfs_cleanerd, check errno earlier, to avoid premature exit when the
real errno was EAGAIN.

When coalescing, check against NULL to avoid seg fault.
 1.18 06-Aug-2009  pooka branches: 1.18.6;
Define syscalls of lfs userspace tools (cleaner, mainly) through
a struct called kernelops, which contains standard system calls
for the normal case and rump system calls for the rump case.

Make it possible to run the lfs cleaner in a library fashion (taking
the quick route with the implementation).
 1.17 16-Mar-2009  lukem fix WARNS=3 issues;
* sprinkle const
* avoid tests < 0 on unsigned types
* test fwrite() returns nmemb not <0
 1.16 16-May-2008  hannken branches: 1.16.6;
Make sure all cached buffers with valid, not yet written data have been
run through copy-on-write. Call fscow_run() with valid data where possible.

The LP_UFSCOW hack is no longer needed to protect ffs_copyonwrite() against
endless recursion.

- Add a flag B_MODIFY to bread(), breada() and breadn(). If set the caller
intends to modify the buffer returned.

- Always run copy-on-write on buffers returned from ffs_balloc().

- Add new function ffs_getblk() that gets a buffer, assigns a new blkno,
may clear the buffer and runs copy-on-write. Process possible errors
from getblk() or fscow_run(). Part of PR kern/38664.

Welcome to 4.99.63

Reviewed by: YAMAMOTO Takashi <yamt@netbsd.org>
 1.15 28-Apr-2008  martin branches: 1.15.2;
Remove clause 3 and 4 from TNF licenses
 1.14 08-Oct-2007  ad branches: 1.14.6;
brelse() now takes two arguments.
 1.13 12-May-2006  perseant branches: 1.13.10;
Be more careful about checking return value of {m,re}alloc().

In determining when to stop reading segments when counting bytes (-b flag),
total the sizes of the blocks we're actually writing instead of assuming
they are all full blocks: many could be fragments or inode blocks. This
increases the number of segments per Ifile write, markedly improving the
efficiency of the cleaner in the small file case.
 1.12 01-Apr-2006  christos Coverity CID 2792: Fix memory leaks
 1.11 30-Mar-2006  perseant A new version of the cleaner. In general, works about as well as the old
cleaner, but with more legible code.

Includes code for reading and writing to the raw disk device (so that an
unmounted fs could be cleaned), for the use of a single daemon to clean
multiple filesystems to save on resources, and for recording the old
contents of cleaned segments to offline storage for regression testing of
the LFS system as a whole; though these new features are not properly
tested at this point.
 1.10 19-Aug-2005  christos 64 bit inode changes.
 1.9 02-Apr-2003  fvdl Add support for UFS2. UFS2 is an enhanced FFS, adding support for
64 bit block pointers, extended attribute storage, and a few
other things.

This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
 1.8 25-Feb-2003  perseant Make fs-specific fcntl macros take three arguments (approved wrstuden).
Let LFS use fcntl for cleaner functions.
 1.7 24-Feb-2003  perseant Convert lfs_cleanerd over to use the new ioctl calls instead of the
lfs syscalls.
 1.6 24-Jan-2003  fvdl Bump daddr_t to 64 bits. Replace it with int32_t in all places where
it was used on-disk, so that on-disk formats remain the same.
Remove ufs_daddr_t and ufs_lbn_t for the time being.
 1.5 15-Dec-2002  yamt - fix memory leak.
- add more error checks.
- spaces -> tab
 1.4 24-Nov-2002  yamt fix calculation bugs that prevents coalescing from working properly.
PR 19133.
 1.3 14-Jun-2002  perseant Note each type of failure in clean_inode and provide statistics on
failures as well as successes when a run of clean_all_inodes completes.

Explicitly cast to off_t in get_dinode and get_rawblock, to make sure we
read the right block.
 1.2 14-Jun-2002  perseant Don't try to coalesce files that have fewer than NDADDR blocks, due to
a potential problem with cleaning fragments at all.

Better sanity checks when selecting files to coalesce; in particular don't
shift too far left when comparing the number of discontinuities to the log2
of the number of total blocks.

Better log messages: note beginning of coalescing correctly; also take
the log message from add_segment out of "if (debug)" for symmetry with the
"finished segment" message.

Use lfs_bmapv to find the inode, rather than looking it up manually in
the ifile; this should give more up-to-date information, since trolling
through every inode in the fs could take some time.
 1.1 06-Jun-2002  perseant First stab at file coalescing. When the cleaner detects that it might
be digging itself deeper into a hole, it forks off a subprocess
that locates files with too many discontinuities and rewrites them, if
there is enough room.

Optionally the user can manually coaleasce files by running with "-c".

The recent change to lfs_markv is required for the coalescer to do anything.

All of "digging itself deeper", "too many discontinuities", and "enough room"
need to be better defined.
 1.13.10.1 06-Nov-2007  matt sync with HEAD
 1.14.6.1 18-May-2008  yamt sync with head.
 1.15.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.16.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.18.6.3 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.18.6.2 23-Jan-2013  yamt sync with head
 1.18.6.1 17-Apr-2012  yamt sync with head
 1.19.6.2 23-Jun-2013  tls resync from head
 1.19.6.1 25-Feb-2013  tls resync with head
 1.10 18-Jun-2013  christos Prefix most of the cpp macros with lfs_ and LFS_ to avoid conflicts with ffs.
This was done so that boot blocks that want to compile both FFS and LFS in
the same file work.
 1.9 12-Apr-2012  joerg branches: 1.9.2;
Use the same loop order for freeing as for allocation. Simpler code and
easier to process for analyzers.
 1.8 01-Jul-2011  joerg branches: 1.8.2;
Fix memset usage.
 1.7 06-Aug-2009  pooka Define syscalls of lfs userspace tools (cleaner, mainly) through
a struct called kernelops, which contains standard system calls
for the normal case and rump system calls for the rump case.

Make it possible to run the lfs cleaner in a library fashion (taking
the quick route with the implementation).
 1.6 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.5 08-Oct-2007  ad branches: 1.5.6;
brelse() now takes two arguments.
 1.4 19-May-2006  christos branches: 1.4.10;
Coverity CID 3766: Avoid null pointer deref
 1.3 12-May-2006  perseant Be more careful about checking return value of {m,re}alloc().

In determining when to stop reading segments when counting bytes (-b flag),
total the sizes of the blocks we're actually writing instead of assuming
they are all full blocks: many could be fragments or inode blocks. This
increases the number of segments per Ifile write, markedly improving the
efficiency of the cleaner in the small file case.
 1.2 01-Apr-2006  christos Coverity CID 2846: Don't use LIST_FOREACH if you are going to free the cursor
 1.1 30-Mar-2006  perseant A new version of the cleaner. In general, works about as well as the old
cleaner, but with more legible code.

Includes code for reading and writing to the raw disk device (so that an
unmounted fs could be cleaned), for the use of a single daemon to clean
multiple filesystems to save on resources, and for recording the old
contents of cleaned segments to offline storage for regression testing of
the LFS system as a whole; though these new features are not properly
tested at this point.
 1.4.10.1 06-Nov-2007  matt sync with HEAD
 1.5.6.1 18-May-2008  yamt sync with head.
 1.8.2.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.8.2.1 17-Apr-2012  yamt sync with head
 1.9.2.1 23-Jun-2013  tls resync from head
 1.1 30-Mar-2006  perseant A new version of the cleaner. In general, works about as well as the old
cleaner, but with more legible code.

Includes code for reading and writing to the raw disk device (so that an
unmounted fs could be cleaned), for the use of a single daemon to clean
multiple filesystems to save on resources, and for recording the old
contents of cleaned segments to offline storage for regression testing of
the LFS system as a whole; though these new features are not properly
tested at this point.
 1.21 31-Jul-2021  andvar s/threshhold/threshold
 1.20 31-Aug-2019  wiz New sentence, new line. Punctuation improvements.
 1.19 30-Aug-2019  brad Add support for passing the raw device name separate from the
filesystem. This is useful in the case where the cleaner is compiled
into code, such as rump_lfs and the ATF tests. This helps to fix
bin/54488
 1.18 06-Aug-2009  wiz branches: 1.18.46; 1.18.48;
Describe -D. Bump date.
 1.17 23-Dec-2006  wiz Bump date for previous.
 1.16 18-Nov-2006  tls Temporarily disable -c (file coalescing) until data corruption issues can
be resolved.
 1.15 01-Apr-2006  perseant Document -i option, update date; at the request of wiz@.
 1.14 30-Mar-2006  perseant A new version of the cleaner. In general, works about as well as the old
cleaner, but with more legible code.

Includes code for reading and writing to the raw disk device (so that an
unmounted fs could be cleaned), for the use of a single daemon to clean
multiple filesystems to save on resources, and for recording the old
contents of cleaned segments to offline storage for regression testing of
the LFS system as a whole; though these new features are not properly
tested at this point.
 1.13 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.12 29-Sep-2002  wiz Begin new sentences on new lines.
Patch from Robert Elz (kre at munnari oz au).
 1.11 06-Jun-2002  perseant update lfs_cleanerd manual page for new -c option
 1.10 15-Jan-2002  wiz Whitespace nits, sort SEE ALSO.
 1.9 13-Jul-2001  perseant Merge the short-lived perseant-lfsv2 branch into the trunk.

Kernels and tools understand both v1 and v2 filesystems; newfs_lfs
generates v2 by default. Changes for the v2 layout include:

- Segments of non-PO2 size and arbitrary block offset, so these can be
matched to convenient physical characteristics of the partition (e.g.,
stripe or track size and offset).

- Address by fragment instead of by disk sector, paving the way for
non-512-byte-sector devices. In theory fragments can be as large
as you like, though in reality they must be smaller than MAXBSIZE in size.

- Use serial number and filesystem identifier to ensure that roll-forward
doesn't get old data and think it's new. Roll-forward is enabled for
v2 filesystems, though not for v1 filesystems by default.

- The inode free list is now a tailq, paving the way for undelete (undelete
is not yet implemented, but can be without further non-backwards-compatible
changes to disk structures).

- Inode atime information is kept in the Ifile, instead of on the inode;
that is, the inode is never written *just* because atime was changed.
Because of this the inodes remain near the file data on the disk, rather
than wandering all over as the disk is read repeatedly. This speeds up
repeated reads by a small but noticeable amount.

Other changes of note include:

- The ifile written by newfs_lfs can now be of arbitrary length, it is no
longer restricted to a single indirect block.

- Fixed an old bug where ctime was changed every time a vnode was created.
I need to look more closely to make sure that the times are only updated
during write(2) and friends, not after-the-fact during a segment write,
and certainly not by the cleaner.
 1.8 08-Nov-2000  hubertf branches: 1.8.2;
in SEE also, xref newfs_lfs(8), sort entries and seperate by ","
 1.7 09-Sep-2000  perseant Various bug-fixes to LFS, to wit:


Kernel:

* Add runtime quantity lfs_ravail, the number of disk-blocks reserved
for writing. Writes to the filesystem first reserve a maximum amount
of blocks before their write is allowed to proceed; after the blocks
are allocated the reserved total is reduced by a corresponding amount.

If the lfs_reserve function cannot immediately reserve the requested
number of blocks, the inode is unlocked, and the thread sleeps until
the cleaner has made enough space available for the blocks to be
reserved. In this way large files can be written to the filesystem
(or, smaller files can be written to a nearly-full but thoroughly
clean filesystem) and the cleaner can still function properly.

* Remove explicit switching on dlfs_minfreeseg from the kernel code; it
is now merely a fs-creation parameter used to compute dlfs_avail and
dlfs_bfree (and used by fsck_lfs(8) to check their accuracy). Its
former role is better assumed by a properly computed dlfs_avail.

* Bounds-check inode numbers submitted through lfs_bmapv and lfs_markv.
This prevents a panic, but, if the cleaner is feeding the filesystem
the wrong data, you are still in a world of hurt.

* Cleanup: remove explicit references of DEV_BSIZE in favor of
btodb()/dbtob().

lfs_cleanerd:

* Make -n mean "send N segments' blocks through a single call to
lfs_markv". Previously it had meant "clean N segments though N calls
to lfs_markv, before looking again to see if more need to be cleaned".
The new behavior gives better packing of direct data on disk with as
little metadata as possible, largely alleviating the problem that the
cleaner can consume more disk through inefficient use of metadata than
it frees by moving dirty data away from clean "holes" to produce
entirely clean segments.

* Make -b mean "read as many segments as necessary to write N segments
of dirty data back to disk", rather than its former meaning of "read
as many segments as necessary to free N segments worth of space". The
new meaning, combined with the new -n behavior described above,
further aids in cleaning storage efficiency as entire segments can be
written at once, using as few blocks as possible for segment summaries
and inode blocks.

* Make the cleaner take note of segments which could not be cleaned due
to error, and not attempt to clean them until they are entirely free
of dirty blocks. This prevents the case in which a cleanerd running
with -n 1 and without -b (formerly the default) would spin trying
repeatedly to clean a corrupt segment, while the remaining space
filled and deadlocked the filesystem.

* Update the lfs_cleanerd manual page to describe all the options,
including the changes mentioned here (in particular, the -b and -n
flags were previously undocumented).

fsck_lfs:

* Check, and optionally fix, lfs_avail (to an exact figure) and
lfs_bfree (within a margin of error) in pass 5.

newfs_lfs:

* Reduce the default dlfs_minfreeseg to 1/20 of the total segments.

* Add a warning if the sgs disklabel field is 16 (the default for FFS'
cpg, but not usually desirable for LFS' sgs: 5--8 is a better range).

* Change the calculation of lfs_avail and lfs_bfree, corresponding to
the kernel changes mentioned above.

mount_lfs:

* Add -N and -b options to pass corresponding -n and -b options to
lfs_cleanerd.

* Default to calling lfs_cleanerd with "-b -n 4".


[All of these changes were largely tested in the 1.5 branch, with the
idea that they (along with previous un-pulled-up work) could be applied
to the branch while it was still in ALPHA2; however my test system has
experienced corruption on another filesystem (/dev/console has gone
missing :^), and, while I believe this unrelated to the LFS changes, I
cannot with good conscience request that the changes be pulled up.]
 1.6 22-Mar-1999  garbled branches: 1.6.10;
More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.5 06-Feb-1998  perry macroize BSD, NetBSD, FreeBSD and misc cleanup
 1.4 20-Oct-1997  enami Fix usage of .Nm.
 1.3 07-Oct-1997  mrg WARNS?=1. RCS ids.
 1.2 29-May-1997  cgd Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree:
.Dd is supposed to be invoked like:
.Dd month day, year
e.g. ".Dd January 25, 1989", rather than:
.Dd "month day, year"
which is what these pages did.
 1.1 08-Jun-1994  mycroft branches: 1.1.1;
From 4.4-Lite, with local changes.
 1.1.1.1 24-Sep-1994  mycroft Import original 4.4-Lite version.
 1.6.10.1 14-Sep-2000  perseant Pull up LFS userland changes to correspond with the previous commit's
kernel changes (approved by thorpej):

[basesrc/libexec/lfs_cleanerd:]
cleanerd.c, 1.20--1.22 (MIN_FREE_SEG -> lfs_minfreeseg ;
read bfree/avail from CLEANERINFO ;
changes to definition of -n and -b)
lfs_cleanerd.8, 1.7 (update man page to current behavior)
library.c, 1.16 (fix comment)

[basesrc/sbin/fsck_lfs:]
pass5.c, 1.6 (calculate/fix lfs_avail and lfs_bfree)

[basesrc/sbin/newfs_lfs:]
config.h, 1.2--1.5 (MINFREE=20, remove FFS cruft ;
add DFL_MIN_FREE_SEGS=8 and MINFREE=10 ;
set DFL_MIN_FREE_SEGS=10 ;
set DFL_MIN_FREE_SEGS=20)
extern.h, 1.2 (correct function declaration for make_lfs)
newfs.c, 1.4 (add -M flag)
lfs.c, 1.13--1.14, 1.16--1.18 (change lfs_bfree initialization ;
MIN_FREE_SEG -> lfs_minfreeseg ;
only 10 superblocks and print nicely ;
correct init calculation of
lfs_bfree/lfs_avail to allow fs to
fill ;
make -N dtrt)

[basesrc/sbin/mount_lfs:]
mount_lfs.8, 1.7 (document -N, -b flags)
mount_lfs.c, 1.10 (default cleanerd to -b -n 4; add -N,
-b flags)

[basesrc/usr.sbin/dumplfs:]
dumplfs.c, 1.15 (print only the SEGUSEs specified with -s)
 1.8.2.1 27-Jun-2001  perseant Import of what I've been calling "LFSv2", that is, LFS with some features
added that require changes to the on-disk data structures. These include:

- 64-bit time in everything but inodes
- User-specified segment offset, and segment size no longer
restricted to PO2.
- Serial number on segment summaries in addition to timestamp, and
a new volume identifier, to make roll-forward feasible without
fear of finding old data and thinking it was new.

Although I think this version works at least as well as what's on the trunk,
we're not done yet; hence this commit is going in on a branch and not on
the trunk. Enhancements that are not here yet include fragment addressing,
like FFS does, instead of block addressing.
 1.18.48.1 02-Sep-2019  martin Pull up following revision(s) (requested by brad in ticket #110):

libexec/lfs_cleanerd/lfs_cleanerd.c: revision 1.59
libexec/lfs_cleanerd/lfs_cleanerd.8: revision 1.19
sbin/resize_lfs/resize_lfs.c: revision 1.15
usr.sbin/puffs/rump_lfs/rump_lfs.c: revision 1.19
libexec/lfs_cleanerd/lfs_cleanerd.c: revision 1.60
lib/libutil/getdiskrawname.c: revision 1.6
tests/fs/common/fstest_lfs.c: revision 1.7

Use getdiskrawname to find the device name.
Reviewed by Christos

-

Teach getdiskrawname and getdiskcookedname about zvols.
Reviewed by Christos

-

Add support for passing the raw device name separate from the
filesystem. This is useful in the case where the cleaner is compiled
into code, such as rump_lfs and the ATF tests. This helps to fix
bin/54488

-

The cleaner is compiled into rump_lfs and executed as a thread. Pass
in the raw device using the new -J option. This avoids the use of
getdiskrawname which is not particularly rump safe in this context and
insures that the rump container device is used for cleaning, not the
outer device.
 1.18.46.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.60 30-Aug-2019  brad Add support for passing the raw device name separate from the
filesystem. This is useful in the case where the cleaner is compiled
into code, such as rump_lfs and the ATF tests. This helps to fix
bin/54488
 1.59 22-Aug-2019  brad Use getdiskrawname to find the device name

Reviewed by Christos
 1.58 18-Mar-2016  mrg branches: 1.58.16; 1.58.18;
move the compiler hack closer to the source of the fail
 1.57 16-Mar-2016  mrg make the GCC 4.8 specific hack for ci.clean being set GCC >= 4.8.
 1.56 19-Feb-2016  riastradh Need <stdbool.h> for true/false.
 1.55 15-Oct-2015  dholland Enable lfs64 in the cleaner.
 1.54 03-Oct-2015  dholland Use IINFO in the cleaner.
 1.53 01-Sep-2015  dholland Add new accessors for the d_type and d_namlen fields of struct lfs_direct.
Napalm the old byteswap access logic for these.
 1.52 01-Sep-2015  dholland The ifile's inode number is constant. (it is always 1)

Therefore, storing the value in the superblock and reading it out
again is silly and offers the opportunity for it to become corrupted.
So, don't do that (most of the code already didn't) and use the
existing constant instead. Initialize new 32-bit superblocks with
the value for the sake of old userland programs, but don't keep the
value in the 64-bit superblock at all.

(approved by Margo Seltzer)
 1.51 01-Sep-2015  dholland Add byteswapping to the dinode accessors.

This prevents regressions in the ulfs code when switching to the new
accessors. Note that while adding byteswapping to the other accessors
is straightforward, I haven't done it yet; and that also is not enough
to make LFS_EI work, because there are places lying around that bypass
the accessors for one reason and another and all of them need to be
updated. That is going to have to wait for a later day as LFS_EI is
not on the critical path right now.
 1.50 12-Aug-2015  dholland Hack up dinode usage to be 64 vs. 32 as needed. Part 1.

(This part changes the native lfs code; the ufs-derived code already
has 64 vs. 32 logic, but as aspects of it are unsafe, and don't
entirely interoperate cleanly with the lfs 64/32 stuff, pass 2 will be
rehashing that.)
 1.49 12-Aug-2015  dholland Provide 32-bit and 64-bit versions of FINFO.

This also entailed sorting out part of struct segment, as that
contains a pointer into the current FINFO data.
 1.48 12-Aug-2015  dholland Make 32-bit and 64-bit versions of SEGSUM.
Also fix some of the FINFO handling as it's closely entangled.
 1.47 12-Aug-2015  dholland Add IFILE32 and IFILE64 structures for the on-disk ifile entries.
Add and use accessors. There are also a bunch of places that cast and
I hope I've found them all...
 1.46 12-Aug-2015  dholland Make 32-bit and 64-bit versions of CLEANERINFO.

XXX: while this is written to disk, it seems like much of it would
XXX: be better set up as a commpage shared with the cleaner.
 1.45 12-Aug-2015  dholland Fix assorted 64->32 truncations related to BLOCK_INFO.

Also make note of a cleaner limitation: it seems that when it goes to
coalesce discontiguous files, it mallocs an array with one BLOCK_INFO
for every block in the file. Therefore, with 64-bit LFS, on a 32-bit
platform it will be possible to have files large enough to overflow
the cleaner's address space. Currently these will be skipped and cause
warnings via syslog.

At some point someone should rewrite the logic to coalesce files to
use chunks of some reasonable size, as discontinuity between such
chunks is immaterial and mallocing this much space is silly and
fragile. Also, the kernel only accepts up to 65536 blocks at a time
for bmapv and markv, so processing more than this at once probably
isn't useful and may not even work currently. I don't want to change
this around just now as it's not entirely trivial.
 1.44 02-Aug-2015  dholland Add a (draft) 64-bit superblock. Make things build again.

Add pieces of support for using both superblock types where
convenient, and specifically to the superblock accessors, but don't
actually enable it anywhere.

First substantive step on PR 50000.
 1.43 02-Aug-2015  dholland Use accessor functions for the version field of the lfs superblock.
I thought at first maybe the cases that test the version should be
rolled into the accessors, but on the whole I think the conclusion on
that is no.
 1.42 02-Aug-2015  dholland Second batch of 64 -> 32 truncations in lfs, along with more minor
tidyups and corrections in passing.
 1.41 28-Jul-2015  dholland Use lfs_accessors.h in conjunction with the cleaner's struct clfs.
Remove previous hacks.
 1.40 24-Jul-2015  dholland More lfs superblock accessors.
(This changes the rest of the code over; all the accessors were
already added.)

The difference between this commit and the previous one is arbitrary,
but the previous one passed the regression tests on its own so I'm
keeping it separate to help with any bisections that might be needed
in the future.
 1.39 24-Jul-2015  dholland Switch to accessor functions for elements of the LFS on-disk
superblock. This will allow switching between 32/64 bit forms on the
fly; it will also allow handling LFS_EI reasonably tidily. (That
currently doesn't work on the superblock.)

It also gets rid of cpp abuse in the form of fake structure member
macros.

Also, instead of doing sleep/wakeup on &lfs_avail and &lfs_nextseg
inside the on-disk superblock, add extra elements to the in-memory
struct lfs for this. (XXX: these should be changed to condvars, but
not right now)

XXX: this migrates a structure needed by the lfs code in libsa (struct
salfs) into lfs.h, where it doesn't belong, but for the time being
this is necessary in order to allow the accessors (and the various
lfs macros and other goop that relies on them) to compile.
 1.38 29-Mar-2015  chopps - Fix fallout for recent bread() change (removing cred arg).
 1.37 19-Oct-2013  christos fix unused variable warnings
 1.36 18-Jun-2013  christos Prefix most of the cpp macros with lfs_ and LFS_ to avoid conflicts with ffs.
This was done so that boot blocks that want to compile both FFS and LFS in
the same file work.
 1.35 08-Jun-2013  dholland Missed one of the -I${NETBSDSRCDIR}/sys hacks yesterday; remove it now.
 1.34 08-Jun-2013  dholland Move the dinode (on-disk inode) structures to lfs.h, since they are
and will be obviously required by userland tools that need to read
the on-disk structures.

Also, DINODE{1,2}_SIZE -> LFS_DINODE{1,2}_SIZE.
 1.33 06-Jun-2013  dholland ufs -> ulfs for lfs_cleanerd
 1.32 22-Jan-2013  dholland Stuff UFS_ in front of a few of ufs's symbols to reduce namespace
pollution. Specifically:
ROOTINO -> UFS_ROOTINO
WINO -> UFS_WINO
NXADDR -> UFS_NXADDR
NDADDR -> UFS_NDADDR
NIADDR -> UFS_NIADDR
MAXSYMLINKLEN -> UFS_MAXSYMLINKLEN
MAXSYMLINKLEN_UFS[12] -> UFS[12]_MAXSYMLINKLEN (for consistency)

Sort out ext2fs's misuse of NDADDR and NIADDR; fortunately, these have
the same values in ext2fs and ffs.

No functional change intended.
 1.31 16-Apr-2012  joerg branches: 1.31.2;
Make load_threshold double and restore original value of 0.2.
From NAKAJIMA Yoshihiro.
 1.30 12-Apr-2012  joerg Don't assign non-integral constants to integral variables.
 1.29 02-Feb-2012  perseant Shut down the cleaner earlier if the filesystem is unmounted.
 1.28 02-Jan-2012  perseant In lfs_cleanerd, check errno earlier, to avoid premature exit when the
real errno was EAGAIN.

When coalescing, check against NULL to avoid seg fault.
 1.27 23-Dec-2010  mlelstv branches: 1.27.6;
Deduce raw device correctly by prepending "r" to basename.
 1.26 16-Aug-2010  pooka Don't exit when running as a lib after FS is unmounted, just return
from the mainloop.
 1.25 29-Jul-2010  pooka Do the semaphore trick only if the cleaner is run as a lib -- the
standard installation doesn't get linked against librt or libpthread.
 1.24 29-Jul-2010  pooka Add a method for posting a semaphore when cleaner init has reached
the main loop. This is useful for very quickly executed lfs runs
such as those in tests, as an initialization phase cleaner may
prevent file system unmount.
 1.23 16-Feb-2010  mlelstv Read the padded superblocks to avoid problems with disks that have
larger sectors than 512 Bytes.
 1.22 09-Oct-2009  pooka Attempt to recover slightly more gracefully if the kernel socket is shutdown.
 1.21 06-Aug-2009  pooka Define syscalls of lfs userspace tools (cleaner, mainly) through
a struct called kernelops, which contains standard system calls
for the normal case and rump system calls for the rump case.

Make it possible to run the lfs cleaner in a library fashion (taking
the quick route with the implementation).
 1.20 06-Aug-2009  pooka add D to getopt so that previous actually works
 1.19 06-Aug-2009  pooka add -D, which prompts to stay on foreground without debug spewage
 1.18 06-Aug-2009  pooka Check main loop fcntl return value and error out if it fails.
Prevents e.g. from 5.0 cleaner looping forever against -current
lfs driver (fcntl data structure sizes are different).
 1.17 16-Mar-2009  lukem fix WARNS=3 issues;
* sprinkle const
* avoid tests < 0 on unsigned types
* test fwrite() returns nmemb not <0
 1.16 15-Mar-2009  lukem avoid a shadowed variable
 1.15 16-May-2008  hannken branches: 1.15.6;
Make sure all cached buffers with valid, not yet written data have been
run through copy-on-write. Call fscow_run() with valid data where possible.

The LP_UFSCOW hack is no longer needed to protect ffs_copyonwrite() against
endless recursion.

- Add a flag B_MODIFY to bread(), breada() and breadn(). If set the caller
intends to modify the buffer returned.

- Always run copy-on-write on buffers returned from ffs_balloc().

- Add new function ffs_getblk() that gets a buffer, assigns a new blkno,
may clear the buffer and runs copy-on-write. Process possible errors
from getblk() or fscow_run(). Part of PR kern/38664.

Welcome to 4.99.63

Reviewed by: YAMAMOTO Takashi <yamt@netbsd.org>
 1.14 28-Apr-2008  martin branches: 1.14.2;
Remove clause 3 and 4 from TNF licenses
 1.13 08-Oct-2007  ad branches: 1.13.6;
brelse() now takes two arguments.
 1.12 18-Nov-2006  tls branches: 1.12.8;
Temporarily disable -c (file coalescing) until data corruption issues can
be resolved.
 1.11 01-Sep-2006  perseant Pay attention to the new LFS_CLEANER_MUST_CLEAN flag in the Ifile.
 1.10 31-Jul-2006  martin Make filehandles opaque to userland
 1.9 13-Jul-2006  martin Fix alignement problems for fhandle_t, exposed by gcc4.1.

While touching all vptofh/fhtovp functions, get rid of VFS_MAXFIDSIZ,
version the getfh(2) syscall and explicitly pass the size available in
the filehandle from userland.

Discussed on tech-kern, with lots of help from yamt (thanks!).
 1.8 07-Jul-2006  perseant Place an upper bound on the number of segments to clean at one time, no
matter how empty they are.

Note that if two blocks have the same inode and block number, they sort
the same (this should never happen, but if it does there's no reason to
have qsort scramble the list).

Add some diagnostic syslog messages for unusual cases.
 1.7 12-May-2006  perseant Be more careful about checking return value of {m,re}alloc().

In determining when to stop reading segments when counting bytes (-b flag),
total the sizes of the blocks we're actually writing instead of assuming
they are all full blocks: many could be fragments or inode blocks. This
increases the number of segments per Ifile write, markedly improving the
efficiency of the cleaner in the small file case.
 1.6 11-May-2006  mrg avoid some char * vs. u_char * issues.
 1.5 14-Apr-2006  perseant When checking hidden cleaning costs, don't erroneously add the first
indirect block when considering the cleaning of block numbers less
than NDADDR (which do not use indirect blocks).

Also, note the loss of only half a block per segment to fragmentation
when considering the benefit function, rather than a whole block.
 1.4 05-Apr-2006  perseant Look for the inode pointers in the right place if lfs_bsize != lfs_fsize.
 1.3 05-Apr-2006  perseant Handle the case of inode blocks misidentified by the segment headers
correctly, a problem reported by Kurt Schreiner; as well as similar
error cases (realloc returning NULL or no cleanable segments found).
 1.2 01-Apr-2006  christos Coverity CID 2847: Don't use LIST_FOREACH if you are going to free the
current pointer!
 1.1 30-Mar-2006  perseant A new version of the cleaner. In general, works about as well as the old
cleaner, but with more legible code.

Includes code for reading and writing to the raw disk device (so that an
unmounted fs could be cleaned), for the use of a single daemon to clean
multiple filesystems to save on resources, and for recording the old
contents of cleaned segments to offline storage for regression testing of
the LFS system as a whole; though these new features are not properly
tested at this point.
 1.12.8.1 06-Nov-2007  matt sync with HEAD
 1.13.6.1 18-May-2008  yamt sync with head.
 1.14.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.15.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.27.6.4 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.27.6.3 23-Jan-2013  yamt sync with head
 1.27.6.2 23-May-2012  yamt sync with head.
 1.27.6.1 17-Apr-2012  yamt sync with head
 1.31.2.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.31.2.2 23-Jun-2013  tls resync from head
 1.31.2.1 25-Feb-2013  tls resync with head
 1.58.18.1 02-Sep-2019  martin Pull up following revision(s) (requested by brad in ticket #110):

libexec/lfs_cleanerd/lfs_cleanerd.c: revision 1.59
libexec/lfs_cleanerd/lfs_cleanerd.8: revision 1.19
sbin/resize_lfs/resize_lfs.c: revision 1.15
usr.sbin/puffs/rump_lfs/rump_lfs.c: revision 1.19
libexec/lfs_cleanerd/lfs_cleanerd.c: revision 1.60
lib/libutil/getdiskrawname.c: revision 1.6
tests/fs/common/fstest_lfs.c: revision 1.7

Use getdiskrawname to find the device name.
Reviewed by Christos

-

Teach getdiskrawname and getdiskcookedname about zvols.
Reviewed by Christos

-

Add support for passing the raw device name separate from the
filesystem. This is useful in the case where the cleaner is compiled
into code, such as rump_lfs and the ATF tests. This helps to fix
bin/54488

-

The cleaner is compiled into rump_lfs and executed as a thread. Pass
in the raw device using the new -J option. This avoids the use of
getdiskrawname which is not particularly rump safe in this context and
insures that the rump container device is used for cleaning, not the
outer device.
 1.58.16.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.47 30-Mar-2006  perseant A new version of the cleaner. In general, works about as well as the old
cleaner, but with more legible code.

Includes code for reading and writing to the raw disk device (so that an
unmounted fs could be cleaned), for the use of a single daemon to clean
multiple filesystems to save on resources, and for recording the old
contents of cleaned segments to offline storage for regression testing of
the LFS system as a whole; though these new features are not properly
tested at this point.
 1.46 23-Aug-2005  christos Change PRiu64 with a cast and %llu. I am not using PRIu32 and no cast for
now. I will do so in a separate pass that will fix all the inode printing.
 1.45 20-Aug-2005  kent fix compilation problem on LP64
 1.44 19-Aug-2005  christos 64 bit inode changes.
 1.43 03-May-2005  christos remove bogus frees on uninitialized variable.
 1.42 23-Apr-2005  perseant Provide a resize_lfs(8), including kernel and cleaner support. The current
implementation requires the fs to be mounted while resizing. Tested in both
directions, and everything appears to work happily, but ymmv.
 1.41 26-Feb-2005  perseant branches: 1.41.2;
Various minor LFS improvements:

* Adapt lfs_cleanerd to use the fcntl call to get the Ifile filehandle,
so it need not be in the namespace.
* Make lfs_cleanerd be more careful when there are very few available
segments.
* Remove the Ifile from the filesystem namespace. The cleaner now uses
a fcntl call on the root inode to find the Ifile filehandle.
* Make lfs_cleanerd less verbose when the filesystem is unmounted.
 1.40 21-Apr-2004  christos Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.
 1.39 17-Dec-2003  yamt branches: 1.39.4;
fix debug output.
 1.38 19-Sep-2003  itojun realloc pedannt
 1.37 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.36 13-Jul-2003  itojun use bounded string ops. check malloc failure. asprintf is easier than
complicated strcat/strcpy combination.
 1.35 02-Apr-2003  fvdl Add support for UFS2. UFS2 is an enhanced FFS, adding support for
64 bit block pointers, extended attribute storage, and a few
other things.

This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
 1.34 24-Feb-2003  perseant Convert lfs_cleanerd over to use the new ioctl calls instead of the
lfs syscalls.
 1.33 10-Feb-2003  fvdl Use int32_t for block adresses in segment summary structures.
 1.32 24-Jan-2003  fvdl Bump daddr_t to 64 bits. Replace it with int32_t in all places where
it was used on-disk, so that on-disk formats remain the same.
Remove ufs_daddr_t and ufs_lbn_t for the time being.
 1.31 05-Dec-2002  yamt fix a typo in previous.

PR 19278 from Ryo HAYASAKA.
 1.30 29-Nov-2002  christos clean this up a bit. avoid annoying code duplication on opening files,
and make error messages consistent.
 1.29 14-Jun-2002  perseant Note each type of failure in clean_inode and provide statistics on
failures as well as successes when a run of clean_all_inodes completes.

Explicitly cast to off_t in get_dinode and get_rawblock, to make sure we
read the right block.
 1.28 14-Jun-2002  perseant Don't try to coalesce files that have fewer than NDADDR blocks, due to
a potential problem with cleaning fragments at all.

Better sanity checks when selecting files to coalesce; in particular don't
shift too far left when comparing the number of discontinuities to the log2
of the number of total blocks.

Better log messages: note beginning of coalescing correctly; also take
the log message from add_segment out of "if (debug)" for symmetry with the
"finished segment" message.

Use lfs_bmapv to find the inode, rather than looking it up manually in
the ifile; this should give more up-to-date information, since trolling
through every inode in the fs could take some time.
 1.27 06-Jun-2002  perseant First stab at file coalescing. When the cleaner detects that it might
be digging itself deeper into a hole, it forks off a subprocess
that locates files with too many discontinuities and rewrites them, if
there is enough room.

Optionally the user can manually coaleasce files by running with "-c".

The recent change to lfs_markv is required for the coalescer to do anything.

All of "digging itself deeper", "too many discontinuities", and "enough room"
need to be better defined.
 1.26 03-May-2002  yamt fix a reversed condition.
 1.25 30-Apr-2002  agc Cast arg to long, and print with %ld, so that this compiles on some of
the more esoteric architectures.
 1.24 30-Apr-2002  perseant Correct my previous lfs_cleanerd commit so that it works properly on
v1 filesystems as well (use segtod instead of lfs_ssize / lfs_fsize).

Tested on i386.
 1.23 18-Jul-2001  perseant Handle segment 0 properly, if its offset is different from other segments
because of the disklabel.

Fix a problem with inode block handling that sometimes caused the wrong
blocks to be read, causing either cleaning failures or panics with v2 file
systems.
 1.22 13-Jul-2001  perseant Merge the short-lived perseant-lfsv2 branch into the trunk.

Kernels and tools understand both v1 and v2 filesystems; newfs_lfs
generates v2 by default. Changes for the v2 layout include:

- Segments of non-PO2 size and arbitrary block offset, so these can be
matched to convenient physical characteristics of the partition (e.g.,
stripe or track size and offset).

- Address by fragment instead of by disk sector, paving the way for
non-512-byte-sector devices. In theory fragments can be as large
as you like, though in reality they must be smaller than MAXBSIZE in size.

- Use serial number and filesystem identifier to ensure that roll-forward
doesn't get old data and think it's new. Roll-forward is enabled for
v2 filesystems, though not for v1 filesystems by default.

- The inode free list is now a tailq, paving the way for undelete (undelete
is not yet implemented, but can be without further non-backwards-compatible
changes to disk structures).

- Inode atime information is kept in the Ifile, instead of on the inode;
that is, the inode is never written *just* because atime was changed.
Because of this the inodes remain near the file data on the disk, rather
than wandering all over as the disk is read repeatedly. This speeds up
repeated reads by a small but noticeable amount.

Other changes of note include:

- The ifile written by newfs_lfs can now be of arbitrary length, it is no
longer restricted to a single indirect block.

- Fixed an old bug where ctime was changed every time a vnode was created.
I need to look more closely to make sure that the times are only updated
during write(2) and friends, not after-the-fact during a segment write,
and certainly not by the cleaner.
 1.21 04-Feb-2001  christos branches: 1.21.2;
remove redundant declarations.
 1.20 10-Jan-2001  lukem be more consistent about syslog usage. now it's more like:
err fatal errors
warning warnings
info status messages (-d), stats on SIGxxx
debug debug messages (-d), debug stats
 1.19 09-Jan-2001  joff Don't qsort() by the segcreate field. Prevents potentially serious filesystem
corruption if the clock jumps backwards.
 1.18 04-Jan-2001  lukem use more standard %ll_ in favour of %q_
 1.17 03-Nov-2000  perseant Fix memory leak described in PR #11094 (patch from Jesse Off
<joff@gci-net.com>).
 1.16 09-Sep-2000  perseant Various bug-fixes to LFS, to wit:


Kernel:

* Add runtime quantity lfs_ravail, the number of disk-blocks reserved
for writing. Writes to the filesystem first reserve a maximum amount
of blocks before their write is allowed to proceed; after the blocks
are allocated the reserved total is reduced by a corresponding amount.

If the lfs_reserve function cannot immediately reserve the requested
number of blocks, the inode is unlocked, and the thread sleeps until
the cleaner has made enough space available for the blocks to be
reserved. In this way large files can be written to the filesystem
(or, smaller files can be written to a nearly-full but thoroughly
clean filesystem) and the cleaner can still function properly.

* Remove explicit switching on dlfs_minfreeseg from the kernel code; it
is now merely a fs-creation parameter used to compute dlfs_avail and
dlfs_bfree (and used by fsck_lfs(8) to check their accuracy). Its
former role is better assumed by a properly computed dlfs_avail.

* Bounds-check inode numbers submitted through lfs_bmapv and lfs_markv.
This prevents a panic, but, if the cleaner is feeding the filesystem
the wrong data, you are still in a world of hurt.

* Cleanup: remove explicit references of DEV_BSIZE in favor of
btodb()/dbtob().

lfs_cleanerd:

* Make -n mean "send N segments' blocks through a single call to
lfs_markv". Previously it had meant "clean N segments though N calls
to lfs_markv, before looking again to see if more need to be cleaned".
The new behavior gives better packing of direct data on disk with as
little metadata as possible, largely alleviating the problem that the
cleaner can consume more disk through inefficient use of metadata than
it frees by moving dirty data away from clean "holes" to produce
entirely clean segments.

* Make -b mean "read as many segments as necessary to write N segments
of dirty data back to disk", rather than its former meaning of "read
as many segments as necessary to free N segments worth of space". The
new meaning, combined with the new -n behavior described above,
further aids in cleaning storage efficiency as entire segments can be
written at once, using as few blocks as possible for segment summaries
and inode blocks.

* Make the cleaner take note of segments which could not be cleaned due
to error, and not attempt to clean them until they are entirely free
of dirty blocks. This prevents the case in which a cleanerd running
with -n 1 and without -b (formerly the default) would spin trying
repeatedly to clean a corrupt segment, while the remaining space
filled and deadlocked the filesystem.

* Update the lfs_cleanerd manual page to describe all the options,
including the changes mentioned here (in particular, the -b and -n
flags were previously undocumented).

fsck_lfs:

* Check, and optionally fix, lfs_avail (to an exact figure) and
lfs_bfree (within a margin of error) in pass 5.

newfs_lfs:

* Reduce the default dlfs_minfreeseg to 1/20 of the total segments.

* Add a warning if the sgs disklabel field is 16 (the default for FFS'
cpg, but not usually desirable for LFS' sgs: 5--8 is a better range).

* Change the calculation of lfs_avail and lfs_bfree, corresponding to
the kernel changes mentioned above.

mount_lfs:

* Add -N and -b options to pass corresponding -n and -b options to
lfs_cleanerd.

* Default to calling lfs_cleanerd with "-b -n 4".


[All of these changes were largely tested in the 1.5 branch, with the
idea that they (along with previous un-pulled-up work) could be applied
to the branch while it was still in ALPHA2; however my test system has
experienced corruption on another filesystem (/dev/console has gone
missing :^), and, while I believe this unrelated to the LFS changes, I
cannot with good conscience request that the changes be pulled up.]
 1.15 18-Jan-2000  perseant branches: 1.15.4;
Take care of memory leaks
 1.14 07-Oct-1999  perseant Don't complain that we can't fstat the Ifile, if it's because the filesystem
has been unmounted. (I.e., don't give errors every time an LFS is unmounted.)
 1.13 25-Aug-1999  perseant branches: 1.13.2;
Remove partial-segment timestamp optimization from lfs_segmapv. If "time"
is not monotonically increasing (e.g. clock is slaved to another system)
the optimization will result in segments being treated as corrupt
(uncleanable). If enough such "bad" segments were created, the cleaner would
clean continuously, and after some time the system would panic with "no
clean segments".

(Legitimately old partial-segments are relatively rare, and will have their
blocks culled by lfs_bmapv.)
 1.12 14-Mar-1999  drochner branches: 1.12.2;
work around egcs prints format warning on alpha
(XXX bad fix, but egcs doesn't like a "quad_t" here)
 1.11 10-Mar-1999  perseant Cleaner changes corresponding to in-kernel LFS changes. In particular, the
cleaner understands fragments; and it knows to change bi_bp to reflect a
change in bi_daddr, if lfs_bmapv says that there is one.
 1.10 15-Oct-1998  ross Cast quad_t and off_t objects to (long long) for printing with %q.
(Fix a sort-of-LP64 egcs printf warning.)

It's unfortunate that off_t and quad_t don't print with %q. I wonder
what would happen if alpha changed these from long -> long long? It's
the same actual size in bits either way.
 1.9 07-Oct-1998  christos PR/6248: Konrad Schroder: lfs_cleanerd could use syslog() for notices,
instead of err()/warn()
 1.8 11-Sep-1998  pk type fixes, in part from PR#6032
 1.7 10-Aug-1998  perry bzero->memset, bcopy->memcpy, bcmp->memcmp
 1.6 01-Mar-1998  fvdl Merge with Lite2 + local changes
 1.5 20-Feb-1998  mycroft Fill in missing (default) mmap(2) flags.
 1.4 07-Oct-1997  mrg WARNS?=1. RCS ids.
 1.3 01-Aug-1997  mikel avoid void pointer arithmetic
 1.2 17-May-1997  pk * NULL => 0 (Arne Juul; PR#3629)
* Nuke spacoids.
 1.1 08-Jun-1994  mycroft branches: 1.1.1;
From 4.4-Lite, with local changes.
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite2
 1.1.1.1 24-Sep-1994  mycroft Import original 4.4-Lite version.
 1.12.2.2 31-Jan-2000  he Pull up revision 1.15 (requested by perseant):
Fix a few memory leaks in lfs_cleanerd.
 1.12.2.1 11-Oct-1999  cgd pull up revs 1.13-1.14 from trunk (requested by perseant):
Remove incorrect partial-segment timestamp optimization from
lfs_segmapv which would cause continuous cleaning and eventual
panics with "no clean segments." Don't complain if fstat() fails
on the Ifile when the file system has been unmounted (avoids
expected errors every time an LFS is unmounted).
 1.13.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.15.4.2 03-Feb-2001  he Pull up revision 1.17 (requested by perseant):
Plug memory leak in lfs_cleanerd. Fixes PR#11094.
 1.15.4.1 14-Sep-2000  perseant Pull up LFS userland changes to correspond with the previous commit's
kernel changes (approved by thorpej):

[basesrc/libexec/lfs_cleanerd:]
cleanerd.c, 1.20--1.22 (MIN_FREE_SEG -> lfs_minfreeseg ;
read bfree/avail from CLEANERINFO ;
changes to definition of -n and -b)
lfs_cleanerd.8, 1.7 (update man page to current behavior)
library.c, 1.16 (fix comment)

[basesrc/sbin/fsck_lfs:]
pass5.c, 1.6 (calculate/fix lfs_avail and lfs_bfree)

[basesrc/sbin/newfs_lfs:]
config.h, 1.2--1.5 (MINFREE=20, remove FFS cruft ;
add DFL_MIN_FREE_SEGS=8 and MINFREE=10 ;
set DFL_MIN_FREE_SEGS=10 ;
set DFL_MIN_FREE_SEGS=20)
extern.h, 1.2 (correct function declaration for make_lfs)
newfs.c, 1.4 (add -M flag)
lfs.c, 1.13--1.14, 1.16--1.18 (change lfs_bfree initialization ;
MIN_FREE_SEG -> lfs_minfreeseg ;
only 10 superblocks and print nicely ;
correct init calculation of
lfs_bfree/lfs_avail to allow fs to
fill ;
make -N dtrt)

[basesrc/sbin/mount_lfs:]
mount_lfs.8, 1.7 (document -N, -b flags)
mount_lfs.c, 1.10 (default cleanerd to -b -n 4; add -N,
-b flags)

[basesrc/usr.sbin/dumplfs:]
dumplfs.c, 1.15 (print only the SEGUSEs specified with -s)
 1.21.2.5 10-Jul-2001  perseant Read in the true primary superblock, if the fsb unit is > 8k.
 1.21.2.4 02-Jul-2001  perseant Change disk addressing unit to be the fragment, instead of the disk sector.
All quantities in the superblock, inodes, indirect blocks, etc. refer now
to this abstract unit (called "fsb" as it is in FFS) instead of disk sectors;
as a consequence segment summary blocks have to be multiples of a fragment in
size. In v1 filesystems, compatibility code ensures that 1 fsb == 1 sector,
regardless of fragment size.

Fragments can now range in size between 512 and 32k; in the event that
LFS_LABELPAD (8k) is smaller than the disk address unit size, an extra
proto-superblock is kept at 8k from the beginning of the disk, to be used
*only* to locate the real superblocks. (Not all of the userland knows about
this yet.)

Almost all of this was done not by me, but by joff.
 1.21.2.3 30-Jun-2001  perseant Fixes, from joff, for correct compatibility operation of fsck_lfs, dumplfs,
lfs_cleanerd; correct usage message from dumplfs.
 1.21.2.2 29-Jun-2001  perseant Get rid of __P(), protoizing where it had not already been done
 1.21.2.1 27-Jun-2001  perseant Import of what I've been calling "LFSv2", that is, LFS with some features
added that require changes to the on-disk data structures. These include:

- 64-bit time in everything but inodes
- User-specified segment offset, and segment size no longer
restricted to PO2.
- Serial number on segment summaries in addition to timestamp, and
a new volume identifier, to make roll-forward feasible without
fear of finding old data and thinking it was new.

Although I think this version works at least as well as what's on the trunk,
we're not done yet; hence this commit is going in on a branch and not on
the trunk. Enhancements that are not here yet include fragment addressing,
like FFS does, instead of block addressing.
 1.39.4.1 10-May-2005  riz Pull up the following revisions (requested by perseant in ticket #1281):

1.8 sys/ufs/lfs/TODO
1.75 sys/ufs/lfs/lfs.h (via patch)
1.74 sys/ufs/lfs/lfs_alloc.c (via patch)
1.49, 1.51 sys/ufs/lfs/lfs_balloc.c (1.51 via patch)
1.78 sys/ufs/lfs/lfs_bio.c
1.62 sys/ufs/lfs/lfs_extern.h (via patch)
1.156 sys/ufs/lfs/lfs_segment.c (via patch)
1.48 sys/ufs/lfs/lfs_subr.c
1.101 sys/ufs/lfs/lfs_syscalls.c
1.163 sys/ufs/lfs/lfs_vfsops.c (via patch)
1.134 sys/ufs/lfs/lfs_vnops.c (via patch)
1.61 sys/ufs/ufs/ufs_readwrite.c (via patch)

1.20 libexec/lfs_cleanerd/clean.h (via patch)
1.52 libexec/lfs_cleanerd/cleanerd.c (via patch)
1.41 libexec/lfs_cleanerd/library.c (via patch)

1.4 regress/sys/fs/lfs/newfs_fsck/Makefile
1.2 regress/sys/fs/lfs/newfs_fsck/mkfs_mount
1.2 regress/sys/fs/lfs/newfs_fsck/smallfiles
1.3 sbin/fsck_lfs/bufcache.c
1.3 sbin/fsck_lfs/bufcache.h
1.3 sbin/fsck_lfs/lfs.h
1.8 sbin/fsck_lfs/lfs.c (via patch)
1.8 sbin/fsck_lfs/pass3.c (via patch)
1.18 sbin/fsck_lfs/pass0.c (via patch)
1.18 sbin/fsck_lfs/utilities.c (via patch)
1.7 sbin/fsck_lfs/segwrite.c
1.19 sbin/fsck_lfs/setup.c (via patch)
1.3 sbin/newfs_lfs/Makefile
0 sbin/newfs_lfs/lfs.c (yes, remove it)
1.1 sbin/newfs_lfs/make_lfs.c
1.15 sbin/newfs_lfs/newfs.c (via patch)

Various minor LFS improvements.

Kernel:

* Note when lfs_putpages(9) thinks it is not going to be writing any
pages before calling genfs_putpages(9). This prevents a situation in
which blocks can be queued for writing without a segment header.
* Correct computation of NRESERVE(), though it is still a gross
overestimate in most cases. Note that if NRESERVE() is too high, it
may be impossible to create files on the filesystem. We catch this
case on filesystem mount and refuse to mount r/w.
* Allow filesystems to be mounted whose block size is == MAXBSIZE.
* Somewhere along the line, ufs_bmaparray(9) started mangling UNWRITTEN
entries in indirect blocks again, triggering a failed assertion "daddr
<= LFS_MAX_DADDR". Explicitly convert to and from int32_t to correct
this. Should fix PR #29045.
* Add a high-water mark for the number of dirty pages any given LFS can
hold before triggering a flush. This is settable by sysctl, but off
(zero) by default.
* Be more careful about the MAX_BYTES and MAX_BUFS computations so we
shouldn't see "please increase to at least zero" messages.
* Note that VBLK and VCHR vnodes can have nonzero values in di_db[0]
even though their v_size == 0. Don't panic when we see this.
Fixes PR #26680.
* Change lfs_bfree to a signed quantity. The manner in which it is
processed before being passed to the cleaner means that sometimes it
may drop below zero, and the cleaner must be aware of this.
* Never report bfree < 0 (or higher than lfs_dsize) through
lfs_statfs(9). This prevents df(1) from ever telling us that our full
filesystems have 16TB free.
* Account space allocated through lfs_balloc(9) that does not have
associated buffer headers, so that the pagedaemon doesn't run us out
of segments.
* Return ENOSPC from lfs_balloc(9) when bfree drops to zero.
* Address a deadlock in lfs_bmapv/lfs_markv when the filesystem is being
unmounted. Because vfs_busy() is a shared lock, and
lfs_bmapv/lfs_markv mark the filesystem vfs_busy(), the cleaner can be
holding the lock that umount() is blocking on, then try to vfs_busy()
again in getnewvnode().

cleaner:

* Adapt lfs_cleanerd to use the fcntl call to get the Ifile filehandle,
so it need not be in the namespace.
* Make lfs_cleanerd be more careful when there are very few available
segments.
* Make lfs_cleanerd less verbose when the filesystem is unmounted.

newfs_lfs, fsck_lfs, and regression:

* Extend the lfs library from fsck_lfs(8) so that it can be used with a
not-yet-existent LFS. Make newfs_lfs(8) use this library, so it can
create LFSs whose Ifile is larger than one segment. Addresses PR #11110.
* Make newfs_lfs(8) use strsuftoi64() for its arguments, a la newfs(8).
* Make fsck_lfs(8) respect the "file system is clean" flag.
* Don't let fsck_lfs(8) think it has dirty blocks when invoked with the
-n flag.
* Remove the Ifile from the filesystem namespace. The cleaner now uses
a fcntl call on the root inode to find the Ifile filehandle. (As a
side-effect, addresses PR #29144.)
 1.41.2.2 10-Aug-2006  tron Pull up following revision(s) (requested by perseant in ticket #1458):
libexec/lfs_cleanerd/library.c: revision 1.43
remove bogus frees on uninitialized variable.
 1.41.2.1 07-May-2005  tron Apply patch (requested by perseant in ticket #242):
* fsck_lfs buffer cache fixes, including PR #29151
* Change fsck_lfs phase 0 message to reflect reality
* fsck_lfs: check phase 5 (cleanerinfo accounting) even on
roll-forward
* Keep better track of the free list during roll-forward, avoiding
a core dump
* Improve hash table use for fsck_lfs buffer and vnode cache
* Document fsck_lfs flag -f, and implement -q
* Add resize_lfs, including kernel support
* Add LFS to mountd's list of exportable filesystem types
* Make the LFS lkm work again [christos@]
* Add MP locking to the LFS kernel subsystem
* Fix pager_map deadlock in lfs_putpages()
* Avoid incomplete file extension that looks like "partial
truncation" to fsck
* Use lfs_malloc for cleaner malloc, since the cleaner often runs
in low-memory conditions.
* Use splay trees, not hash table, to track page allocation for
write.
* Fix mkdir panic on full fs
* Fix page accounting leak by counting differently.
* Use rightly named structure for lfs_getattr [skrll@]
* Cosmetic changes for readability.
 1.9 30-Mar-2006  perseant A new version of the cleaner. In general, works about as well as the old
cleaner, but with more legible code.

Includes code for reading and writing to the raw disk device (so that an
unmounted fs could be cleaned), for the use of a single daemon to clean
multiple filesystems to save on resources, and for recording the old
contents of cleaned segments to offline storage for regression testing of
the LFS system as a whole; though these new features are not properly
tested at this point.
 1.8 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.7 13-Jul-2001  perseant Merge the short-lived perseant-lfsv2 branch into the trunk.

Kernels and tools understand both v1 and v2 filesystems; newfs_lfs
generates v2 by default. Changes for the v2 layout include:

- Segments of non-PO2 size and arbitrary block offset, so these can be
matched to convenient physical characteristics of the partition (e.g.,
stripe or track size and offset).

- Address by fragment instead of by disk sector, paving the way for
non-512-byte-sector devices. In theory fragments can be as large
as you like, though in reality they must be smaller than MAXBSIZE in size.

- Use serial number and filesystem identifier to ensure that roll-forward
doesn't get old data and think it's new. Roll-forward is enabled for
v2 filesystems, though not for v1 filesystems by default.

- The inode free list is now a tailq, paving the way for undelete (undelete
is not yet implemented, but can be without further non-backwards-compatible
changes to disk structures).

- Inode atime information is kept in the Ifile, instead of on the inode;
that is, the inode is never written *just* because atime was changed.
Because of this the inodes remain near the file data on the disk, rather
than wandering all over as the disk is read repeatedly. This speeds up
repeated reads by a small but noticeable amount.

Other changes of note include:

- The ifile written by newfs_lfs can now be of arbitrary length, it is no
longer restricted to a single indirect block.

- Fixed an old bug where ctime was changed every time a vnode was created.
I need to look more closely to make sure that the times are only updated
during write(2) and friends, not after-the-fact during a segment write,
and certainly not by the cleaner.
 1.6 14-Mar-1999  drochner branches: 1.6.12;
work around printf format warnings on alpha
 1.5 10-Mar-1999  perseant Cleaner changes corresponding to in-kernel LFS changes. In particular, the
cleaner understands fragments; and it knows to change bi_bp to reflect a
change in bi_daddr, if lfs_bmapv says that there is one.
 1.4 15-Oct-1998  ross Cast quad_t and off_t objects to (long long) for printing with %q.
(Fix a sort-of-LP64 egcs printf warning.)

It's unfortunate that off_t and quad_t don't print with %q. I wonder
what would happen if alpha changed these from long -> long long? It's
the same actual size in bits either way.
 1.3 07-Oct-1998  christos PR/6248: Konrad Schroder: lfs_cleanerd could use syslog() for notices,
instead of err()/warn()
 1.2 07-Oct-1997  mrg WARNS?=1. RCS ids.
 1.1 08-Jun-1994  mycroft branches: 1.1.1;
From 4.4-Lite, with local changes.
 1.1.1.1 24-Sep-1994  mycroft Import original 4.4-Lite version.
 1.6.12.1 29-Jun-2001  perseant Get rid of __P(), protoizing where it had not already been done
 1.16 30-Mar-2006  perseant A new version of the cleaner. In general, works about as well as the old
cleaner, but with more legible code.

Includes code for reading and writing to the raw disk device (so that an
unmounted fs could be cleaned), for the use of a single daemon to clean
multiple filesystems to save on resources, and for recording the old
contents of cleaned segments to offline storage for regression testing of
the LFS system as a whole; though these new features are not properly
tested at this point.
 1.15 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.14 17-Feb-2003  perseant Add code to UBCify LFS. This is still behind "#ifdef LFS_UBC" for now
(there are still some details to work out) but expect that to go
away soon. To support these basic changes (creation of lfs_putpages,
lfs_gop_write, mods to lfs_balloc) several other changes were made, to
wit:

* Create a writer daemon kernel thread whose purpose is to handle page
writes for the pagedaemon, but which also takes over some of the
functions of lfs_check(). This thread is started the first time an
LFS is mounted.

* Add a "flags" parameter to GOP_SIZE. Current values are
GOP_SIZE_READ, meaning that the call should return the size of the
in-core version of the file, and GOP_SIZE_WRITE, meaning that it
should return the on-disk size. One of GOP_SIZE_READ or
GOP_SIZE_WRITE must be specified.

* Instead of using malloc(...M_WAITOK) for everything, reserve enough
resources to get by and use malloc(...M_NOWAIT), using the reserves if
necessary. Use the pool subsystem for structures small enough that
this is feasible. This also obsoletes LFS_THROTTLE.

And a few that are not strictly necessary:

* Moves the LFS inode extensions off onto a separately allocated
structure; getting closer to LFS as an LKM. "Welcome to 1.6O."

* Unified GOP_ALLOC between FFS and LFS.

* Update LFS copyright headers to correct values.

* Actually cast to unsigned in lfs_shellsort, like the comment says.

* Keep track of which segments were empty before the previous
checkpoint; any segments that pass two checkpoints both dirty and
empty can be summarily cleaned. Do this. Right now lfs_segclean
still works, but this should be turned into an effectless
compatibility syscall.
 1.13 24-Jan-2003  fvdl Bump daddr_t to 64 bits. Replace it with int32_t in all places where
it was used on-disk, so that on-disk formats remain the same.
Remove ufs_daddr_t and ufs_lbn_t for the time being.
 1.12 30-Apr-2002  perseant Correct my previous lfs_cleanerd commit so that it works properly on
v1 filesystems as well (use segtod instead of lfs_ssize / lfs_fsize).

Tested on i386.
 1.11 26-Apr-2002  perseant Fix error in how much memory needed to be allocated to check data cksum
to proceed with adding segments.

Use fixed-width types to compute checksum, so LP64 machines can do it too.

Tested on alpha; test-compiled on arm32.
 1.10 13-Jul-2001  perseant Merge the short-lived perseant-lfsv2 branch into the trunk.

Kernels and tools understand both v1 and v2 filesystems; newfs_lfs
generates v2 by default. Changes for the v2 layout include:

- Segments of non-PO2 size and arbitrary block offset, so these can be
matched to convenient physical characteristics of the partition (e.g.,
stripe or track size and offset).

- Address by fragment instead of by disk sector, paving the way for
non-512-byte-sector devices. In theory fragments can be as large
as you like, though in reality they must be smaller than MAXBSIZE in size.

- Use serial number and filesystem identifier to ensure that roll-forward
doesn't get old data and think it's new. Roll-forward is enabled for
v2 filesystems, though not for v1 filesystems by default.

- The inode free list is now a tailq, paving the way for undelete (undelete
is not yet implemented, but can be without further non-backwards-compatible
changes to disk structures).

- Inode atime information is kept in the Ifile, instead of on the inode;
that is, the inode is never written *just* because atime was changed.
Because of this the inodes remain near the file data on the disk, rather
than wandering all over as the disk is read repeatedly. This speeds up
repeated reads by a small but noticeable amount.

Other changes of note include:

- The ifile written by newfs_lfs can now be of arbitrary length, it is no
longer restricted to a single indirect block.

- Fixed an old bug where ctime was changed every time a vnode was created.
I need to look more closely to make sure that the times are only updated
during write(2) and friends, not after-the-fact during a segment write,
and certainly not by the cleaner.
 1.9 04-Jan-2001  lukem branches: 1.9.2;
use more standard %ll_ in favour of %q_
 1.8 18-Jan-2000  perseant Take care of memory leaks
 1.7 10-Mar-1999  perseant branches: 1.7.2;
Cleaner changes corresponding to in-kernel LFS changes. In particular, the
cleaner understands fragments; and it knows to change bi_bp to reflect a
change in bi_daddr, if lfs_bmapv says that there is one.
 1.6 15-Oct-1998  ross Cast quad_t and off_t objects to (long long) for printing with %q.
(Fix a sort-of-LP64 egcs printf warning.)

It's unfortunate that off_t and quad_t don't print with %q. I wonder
what would happen if alpha changed these from long -> long long? It's
the same actual size in bits either way.
 1.5 07-Oct-1998  christos PR/6248: Konrad Schroder: lfs_cleanerd could use syslog() for notices,
instead of err()/warn()
 1.4 11-Sep-1998  pk type fixes, in part from PR#6032
 1.3 01-Apr-1998  kleink Need <time.h> for ctime() prototype.
 1.2 07-Oct-1997  mrg WARNS?=1. RCS ids.
 1.1 08-Jun-1994  mycroft branches: 1.1.1;
From 4.4-Lite, with local changes.
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite2
 1.1.1.1 24-Sep-1994  mycroft Import original 4.4-Lite version.
 1.7.2.1 31-Jan-2000  he Pull up revision 1.8 (requested by perseant):
Fix a few memory leaks in lfs_cleanerd.
 1.9.2.4 02-Jul-2001  perseant Change disk addressing unit to be the fragment, instead of the disk sector.
All quantities in the superblock, inodes, indirect blocks, etc. refer now
to this abstract unit (called "fsb" as it is in FFS) instead of disk sectors;
as a consequence segment summary blocks have to be multiples of a fragment in
size. In v1 filesystems, compatibility code ensures that 1 fsb == 1 sector,
regardless of fragment size.

Fragments can now range in size between 512 and 32k; in the event that
LFS_LABELPAD (8k) is smaller than the disk address unit size, an extra
proto-superblock is kept at 8k from the beginning of the disk, to be used
*only* to locate the real superblocks. (Not all of the userland knows about
this yet.)

Almost all of this was done not by me, but by joff.
 1.9.2.3 30-Jun-2001  perseant Fixes, from joff, for correct compatibility operation of fsck_lfs, dumplfs,
lfs_cleanerd; correct usage message from dumplfs.
 1.9.2.2 29-Jun-2001  perseant Get rid of __P(), protoizing where it had not already been done
 1.9.2.1 27-Jun-2001  perseant Import of what I've been calling "LFSv2", that is, LFS with some features
added that require changes to the on-disk data structures. These include:

- 64-bit time in everything but inodes
- User-specified segment offset, and segment size no longer
restricted to PO2.
- Serial number on segment summaries in addition to timestamp, and
a new volume identifier, to make roll-forward feasible without
fear of finding old data and thinking it was new.

Although I think this version works at least as well as what's on the trunk,
we're not done yet; hence this commit is going in on a branch and not on
the trunk. Enhancements that are not here yet include fragment addressing,
like FFS does, instead of block addressing.
 1.7 18-Oct-2000  simonb Remove INSTALLFLAGS=-fschg, as per change to usr.bin/ssh/ssh/Makefile.
 1.6 08-Oct-1997  mrg branches: 1.6.12;
merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.5 07-Oct-1997  mrg WARNS?=1. RCS ids. did not merge very much of lite-2.
 1.4 21-Apr-1997  mrg KNF. RCSids. be safe with buffers.
 1.3 22-Dec-1994  cgd specify man pages the new way.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 07-Oct-1997  mrg lite-2.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.12.1 18-Oct-2000  tv Pull up 1.7 [simonb]:
Remove INSTALLFLAGS=-fschg.
 1.14 04-Jul-2017  wiz Add EXIT STATUS section. Use Ex.
 1.13 03-Jul-2017  wiz Remove workaround for ancient HTML generation code.
 1.12 09-Jul-2013  njoly Fix sendmail section (8 -> 1) in xrefs.
 1.11 07-Aug-2003  agc branches: 1.11.54; 1.11.60;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.10 08-Feb-2002  ross Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
 1.9 29-Apr-1998  fair fix bad .Xr references
 1.8 10-Jan-1998  perry get rid of secretmail residue -- suggested in pr-4568 from Carl Shapiro
 1.7 15-Nov-1997  msaitoh fix typo
 1.6 20-Oct-1997  enami Fix .Nm usage.
 1.5 07-Oct-1997  mrg WARNS?=1. RCS ids. did not merge very much of lite-2.
 1.4 21-Apr-1997  mrg KNF. RCSids. be safe with buffers.
 1.3 01-Aug-1993  mycroft Add RCS indentifiers.
 1.2 24-May-1993  deraadt mail.local can now use username.lock files as well as flock(). Use the
-l flag in your favorite sendmail.cf file.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 07-Oct-1997  mrg lite-2.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.11.60.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.11.54.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.33 06-Sep-2023  christos use the correct constant
 1.32 06-Sep-2023  christos fix merge botch
 1.31 06-Sep-2023  christos KNF, clarify/provide warning messages, set rval to fail initially and only
set to success once everything works.
 1.30 06-Sep-2023  shm - remove lock file on error
- clarify diagnostic messages
- initialize struct stat if lstat(2) failed (from mhal at rbox dot co)
- ensure appending to a regular file
 1.29 17-May-2022  kre fix local privilege escalation due to a race condition

NetBSD-SA2016-006 included an incomplete fix for CVE-2016-6253,
a local privilege escalation vulnerability in mail.local(8).

mail.local(8) attempts to open(2) a user's existing mailbox file
to append to it. If that call fails, mail.local(8) will then issue
a second open(2) call to create the file (O_CREAT).

An attacker had the opportunity to create the file in question (as
a symlink, or link to some other file) in between these two open(2) calls.

Fix this by using O_EXCL in the 2nd open call, if the file exists when
that one happens, something is going wrong, so just abort. Also, only
attempt that 2nd open if the reason the first failed was that the file
did not exist (this doesn't fix the issue, but it potentially saves
some cycles).

Thanks to Jan Schaumann for bringing this to our attention.
 1.28 21-Jul-2016  shm branches: 1.28.6; 1.28.16;
Fix error checks in open(2) calls.
 1.27 19-Jul-2016  shm Fix race condition in deliver(), fix resource leak.
 1.26 27-Aug-2011  joerg branches: 1.26.4; 1.26.10; 1.26.16; 1.26.20; 1.26.22; 1.26.24;
De-__P. staticfy. Use __dead, __printflike.
 1.25 20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
 1.24 04-May-2008  manu branches: 1.24.2;
Make sure temporary errors are reported as such, using status code
EX_TEMPFAIL (cannot lookup user through NSS, may be because of an
unreachable NIS or LDAP server), or EX_OSERR (other file or memory
related problems).

Sendmail and Postfix should honour EX_TEMPFAIL and EX_OSERR by
queueing the message.

This avoids problems with transcient NSS errors, where the MTA may
successfully lookup a user at a time while mail.local can fail a
few secoonds later.
 1.23 27-Sep-2006  christos branches: 1.23.2; 1.23.4; 1.23.16;
Coverity CID 3931: Fix memory leak.
 1.22 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.21 16-Nov-2002  itojun die if strdup fails
 1.20 26-May-2002  wiz __STDC__ is always defined on NetBSD.
 1.19 20-Dec-2001  soren Sync getopt() / man page with actual getopt options.
 1.18 04-Jan-2001  lukem use more standard %ll_ in favour of %q_
 1.17 10-Oct-2000  is Format string cleanups by sommerfeld.
 1.16 10-Aug-1998  perry branches: 1.16.2; 1.16.10;
bzero->memset, bcopy->memcpy, bcmp->memcmp
 1.15 26-Jul-1998  mycroft const poisoning.
 1.14 08-Oct-1997  enami Put a whitespace after the keyword `switch'.
 1.13 08-Oct-1997  enami Compare a return value of getopt() against -1 instead of EOF.
 1.12 07-Oct-1997  mrg fix warnings on alpha.
 1.11 07-Oct-1997  mrg WARNS?=1. RCS ids. did not merge very much of lite-2.
 1.10 21-Apr-1997  mrg KNF. RCSids. be safe with buffers.
 1.9 03-Jun-1995  mycroft Fill in sin_len.
 1.8 05-Aug-1994  jtc Change format specification from %ld to %qd, as off_t's are now quads.
 1.7 05-May-1994  deraadt branches: 1.7.2;
fix from <arndt@uniko.uni-koblenz.de>
 1.6 19-Apr-1994  pk Another off_t glitch.
 1.5 10-Feb-1994  briggs Initialize return value from deliver() to zero. I guess the 386 crowd
has been fortunate. It's odd to see mail delivered and get a bounce
back, though, which is what was happening--spent a while thinking it
was sendmail.
 1.4 01-Aug-1993  mycroft Add RCS identifiers.
 1.3 01-Aug-1993  mycroft Fix bogus handling of short writes.
 1.2 24-May-1993  deraadt mail.local can now use username.lock files as well as flock(). Use the
-l flag in your favorite sendmail.cf file.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 07-Oct-1997  mrg lite-2.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7.2.1 06-Aug-1994  mycroft update from trunk
 1.16.10.1 17-Oct-2000  tv Pullup libexec string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.
 1.16.2.1 10-Oct-2000  he Pull up revision 1.17 (requested by is):
Format string cleanup.
 1.23.16.1 18-May-2008  yamt sync with head.
 1.23.4.1 03-Jun-2008  skrll Sync with netbsd-4.
 1.23.2.1 17-May-2008  bouyer Pull up following revision(s) (requested by manu in ticket #1148):
libexec/mail.local/mail.local.c: revision 1.24
Make sure temporary errors are reported as such, using status code
EX_TEMPFAIL (cannot lookup user through NSS, may be because of an
unreachable NIS or LDAP server), or EX_OSERR (other file or memory
related problems).
Sendmail and Postfix should honour EX_TEMPFAIL and EX_OSERR by
queueing the message.
This avoids problems with transcient NSS errors, where the MTA may
successfully lookup a user at a time while mail.local can fail a
few secoonds later.
 1.24.2.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.26.24.1 26-Jul-2016  pgoyette Sync with HEAD
 1.26.22.2 21-Jul-2016  martin Pull up following revision(s) (requested by shm in ticket #1207):
libexec/mail.local/mail.local.c: revision 1.28
Fix error checks in open(2) calls.
 1.26.22.1 19-Jul-2016  martin Pull up following revision(s) (requested by shm in ticket #1206):
libexec/mail.local/mail.local.c: revision 1.27
Fix race condition in deliver(), fix resource leak.
 1.26.20.2 21-Jul-2016  martin Pull up following revision(s) (requested by shm in ticket #1207):
libexec/mail.local/mail.local.c: revision 1.28
Fix error checks in open(2) calls.
 1.26.20.1 19-Jul-2016  martin Pull up following revision(s) (requested by shm in ticket #1206):
libexec/mail.local/mail.local.c: revision 1.27
Fix race condition in deliver(), fix resource leak.
 1.26.16.2 21-Jul-2016  martin Pull up following revision(s) (requested by shm in ticket #1392):
libexec/mail.local/mail.local.c: revision 1.28
Fix error checks in open(2) calls.
 1.26.16.1 19-Jul-2016  martin Pull up following revision(s) (requested by shm in ticket #1391):
libexec/mail.local/mail.local.c: revision 1.27
Fix race condition in deliver(), fix resource leak.
 1.26.10.2 21-Jul-2016  martin Pull up following revision(s) (requested by shm in ticket #1392):
libexec/mail.local/mail.local.c: revision 1.28
Fix error checks in open(2) calls.
 1.26.10.1 19-Jul-2016  martin Pull up following revision(s) (requested by shm in ticket #1391):
libexec/mail.local/mail.local.c: revision 1.27
Fix race condition in deliver(), fix resource leak.
 1.26.4.2 21-Jul-2016  martin Pull up following revision(s) (requested by shm in ticket #1392):
libexec/mail.local/mail.local.c: revision 1.28
Fix error checks in open(2) calls.
 1.26.4.1 19-Jul-2016  martin Pull up following revision(s) (requested by shm in ticket #1391):
libexec/mail.local/mail.local.c: revision 1.27
Fix race condition in deliver(), fix resource leak.
 1.28.16.1 17-May-2022  bouyer Pull up following revision(s) (requested by kre in ticket #1455):
libexec/mail.local/mail.local.c: revision 1.29
fix local privilege escalation due to a race condition
NetBSD-SA2016-006 included an incomplete fix for CVE-2016-6253,
a local privilege escalation vulnerability in mail.local(8).
mail.local(8) attempts to open(2) a user's existing mailbox file
to append to it. If that call fails, mail.local(8) will then issue
a second open(2) call to create the file (O_CREAT).
An attacker had the opportunity to create the file in question (as
a symlink, or link to some other file) in between these two open(2) calls.
Fix this by using O_EXCL in the 2nd open call, if the file exists when
that one happens, something is going wrong, so just abort. Also, only
attempt that 2nd open if the reason the first failed was that the file
did not exist (this doesn't fix the issue, but it potentially saves
some cycles).
Thanks to Jan Schaumann for bringing this to our attention.
 1.28.6.1 17-May-2022  bouyer Pull up following revision(s) (requested by kre in ticket #1743):
libexec/mail.local/mail.local.c: revision 1.29
fix local privilege escalation due to a race condition
NetBSD-SA2016-006 included an incomplete fix for CVE-2016-6253,
a local privilege escalation vulnerability in mail.local(8).
mail.local(8) attempts to open(2) a user's existing mailbox file
to append to it. If that call fails, mail.local(8) will then issue
a second open(2) call to create the file (O_CREAT).
An attacker had the opportunity to create the file in question (as
a symlink, or link to some other file) in between these two open(2) calls.
Fix this by using O_EXCL in the 2nd open call, if the file exists when
that one happens, something is going wrong, so just abort. Also, only
attempt that 2nd open if the reason the first failed was that the file
did not exist (this doesn't fix the issue, but it potentially saves
some cycles).
Thanks to Jan Schaumann for bringing this to our attention.
 1.5 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.4 07-Oct-1997  mrg WARNS?=1. RCS ids. did not merge very much of lite-2.
 1.3 21-Apr-1997  mrg KNF. RCSids. be safe with buffers.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 07-Oct-1997  mrg lite-2.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8 08-Oct-1997  mrg merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.7 07-Oct-1997  mrg WARNS?=1. RCS ids.
 1.6 29-Apr-1997  tls Sync to 4.4BSD-Lite2
 1.5 22-Dec-1994  cgd specify man pages the new way.
 1.4 07-Oct-1993  cgd always use libcrypt
 1.3 01-Aug-1993  mycroft Add RCS identifiers.
 1.2 26-Apr-1993  cgd changed to use new libcrypt scheme.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.10 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.9 15-Jan-2002  wiz Whitespace nit.
 1.8 15-Nov-1998  msaitoh The key is expected to be eight bytes (not ten bytes).
 1.7 20-Oct-1997  enami Fix .Nm usage.
 1.6 07-Oct-1997  mrg WARNS?=1. RCS ids.
 1.5 10-Jul-1997  mikel don't xref obsolete crypt(1)
 1.4 29-Apr-1997  tls Sync to 4.4BSD-Lite2
 1.3 30-Nov-1993  jtc Use ".At v7" macro instead of spelling out "Version 7 AT&T UNIX".
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8 20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
 1.7 07-Aug-2003  agc branches: 1.7.32;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.6 16-Jan-2001  cgd include stdlib.h for prototypes (typically for exit()).
 1.5 17-Dec-2000  wiz Remove unnecessary header includes; remove 'register'; conform better to KNF.
 1.4 07-Oct-1997  mrg WARNS?=1. RCS ids.
 1.3 29-Apr-1997  tls Sync to 4.4BSD-Lite2
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7.32.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.20 16-Mar-2009  lukem Default to WARNS=4
Exceptions that need a lower level are:
getty ld.elf_so lfs_cleanerd makewhatis telnetd tftpd
hpropd ipropd-master ipropd-slave kadmind kpasswdd
 1.19 30-Aug-2006  christos branches: 1.19.26;
Only include libutil if !HOSTPROG
 1.18 26-Aug-2006  christos use efun(3)
 1.17 18-May-2003  lukem Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op),
there's no need to special-case .include-ing it.
 1.16 18-Sep-2002  lukem use bsd.own.mk instead of the (obvious typo of) bsd.obj.mk
 1.15 13-Sep-2002  thorpej Rename man/config.{c,h} to man/manconf.{c,h}, so we don't have to
worry about problems including "config.h" when building as a host
tool.
 1.14 04-Sep-2002  junyoung Previous commit broke the normal build; this should really fix the
problem, toolchain/18020. From Frederick Bruckman <fredb@immanent.net>.
 1.13 04-Sep-2002  junyoung Fix a problem that 'make obj' doesn't work within tools/makewhatis.
 1.12 19-Aug-2002  lukem Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path
 1.11 08-Mar-2002  jdolecek branches: 1.11.2;
If called without arguments, parse /etc/man.conf and regenerate the whatis
databases specified there. By default, the individual databases
are actually generated by forked children in this case, for
performance reasons. This feature can be switched off by new -f flag.
If the configuration file can't be parsed or doesn't contain any
_whatdb entries, the code falls back to /usr/share/man as before.

Added -C, which allows to specify alternate configuration file. This
is compatible with apropos(1) and whatis(1) flag of same name.

Update manpage accordingly and document behaviour a bit better.
Also add a HISTORY section, hopefully correct (done using CVS logs).

This solves toolchain/5231 by Tim Rightnour and bin/7696 by Allen Briggs.
 1.10 29-Jan-2002  tv Make almost all tools compile and run properly on non-NetBSD hosts. (In
particular, most tools now run correctly on Solaris 7.)
 1.9 29-Nov-2001  thorpej Allow this to be built as a host program.
 1.8 25-Sep-1999  tron Replace shell script for creating whatis.db database with a C program
which is a little bit faster.
 1.7 13-Feb-1999  lukem branches: 1.7.4;
remove NOPROG (nothing uses it). however, set MKOBJ=no if appropriate
 1.6 20-Oct-1997  lukem build objdir for manpage. from Dave Huang <khym@bga.com> in [bin/4294]
 1.5 17-Oct-1997  hubertf Add makewhatis.8.
Closes PR 1809 by Robert Dobbs <banshee@gabriella.resort.com>
 1.4 13-Oct-1997  lukem rcsid fascism
 1.3 24-Mar-1997  christos - Makefile cleanups
 1.2 18-Oct-1996  thorpej Use ${INSTALL}.
 1.1 21-Dec-1993  cgd moved here from old location in src/usr.bin/man
 1.7.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.11.2.1 03-Nov-2002  he Pull up revision 1.15 (via patch, requested by thorpej in ticket #787):
Rename man/config.{c,h} to man/manconf.{c,h}, so we do not
have to worry about problems including "config.h" when
building as a host tool.
 1.19.26.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.14 18-Mar-2014  riastradh Merge riastradh-drm2 to HEAD.
 1.13 20-Jul-2013  wiz Use Mt for email addresses.
 1.12 30-Apr-2008  martin branches: 1.12.4; 1.12.26; 1.12.32;
Convert TNF licenses to new 2 clause variant
 1.11 04-Apr-2005  wiz branches: 1.11.18;
Some cleanups, use more markup.
 1.10 03-Apr-2005  christos Make it parse old man pages, new mdoc pages, broken pages, and pages where
the synopsis line does not give us the section number. Add -w flag to print
pages we still don't like. Now we parse 99% of the pages properly.
 1.9 26-Jul-2003  salo branches: 1.9.6;
netbsd.org->NetBSD.org
 1.8 08-Mar-2002  wiz Grammar and mdoc fixes.
 1.7 08-Mar-2002  jdolecek If called without arguments, parse /etc/man.conf and regenerate the whatis
databases specified there. By default, the individual databases
are actually generated by forked children in this case, for
performance reasons. This feature can be switched off by new -f flag.
If the configuration file can't be parsed or doesn't contain any
_whatdb entries, the code falls back to /usr/share/man as before.

Added -C, which allows to specify alternate configuration file. This
is compatible with apropos(1) and whatis(1) flag of same name.

Update manpage accordingly and document behaviour a bit better.
Also add a HISTORY section, hopefully correct (done using CVS logs).

This solves toolchain/5231 by Tim Rightnour and bin/7696 by Allen Briggs.
 1.6 15-Jan-2002  wiz Whitespace nit, mark up AUTHORS section, use standard headers, sort sections, end sentences with dots.
 1.5 25-Sep-1999  tron Replace shell script for creating whatis.db database with a C program
which is a little bit faster.
 1.4 02-Nov-1997  lukem branches: 1.4.4;
* remove duplicate inode entries, so files with multiple hard links are
only parsed once; results in a 33% speedup on a p5-200
* order SEE ALSO by section
 1.3 01-Nov-1997  mrg use the updated getNAME(8) now that it has a reasonable output. this
makes makewhatis several orders of magnitude faster for manual sources,
as we now avoid a costly `nroff -mandoc' for each one...
 1.2 20-Oct-1997  enami branches: 1.2.2;
- Fix .Nm usage.
- Use .Ar to refer an argument.
 1.1 17-Oct-1997  hubertf Add makewhatis.8.
Closes PR 1809 by Robert Dobbs <banshee@gabriella.resort.com>
 1.2.2.1 10-Nov-1997  thorpej Sync w/ trunk.
 1.4.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.9.6.2 15-Sep-2005  snj Pull up following revision(s) (requested by tron in ticket #789):
libexec/makewhatis/makewhatis.8: revision 1.11
Some cleanups, use more markup.
 1.9.6.1 15-Sep-2005  snj Pull up following revision(s) (requested by tron in ticket #789):
libexec/makewhatis/makewhatis.c: revision 1.34
libexec/makewhatis/makewhatis.8: revision 1.10
Make it parse old man pages, new mdoc pages, broken pages, and pages where
the synopsis line does not give us the section number. Add -w flag to print
pages we still don't like. Now we parse 99% of the pages properly.
 1.11.18.1 18-May-2008  yamt sync with head.
 1.12.32.1 23-Jul-2013  riastradh sync with HEAD
 1.12.26.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.12.4.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.51 02-Oct-2017  christos make this compile.
 1.50 02-Oct-2017  joerg Include time.h for time.

XXX Doesn't build with newer zlib, remove?
 1.49 24-Jun-2013  christos branches: 1.49.20;
skip text that is in the cvs log (joerg)
 1.48 24-Jun-2013  christos PR/47958: Robert Kovacic: makewhatis.c not generating entries in whatisdb
for POD generated pages
 1.47 02-Apr-2009  apb branches: 1.47.6; 1.47.12;
In addwhatis(), two items should not be treated as duplicates unless
both the "data" and "prefix" elements are identical. For example, the
two lines

amiga/boot (8) - system bootstrapping procedures
amd64/boot (8) - system bootstrapping procedures

both appear with data = "boot (8) - system bootstrapping procedures" but
with different values for prefix, and we do not want to reject one of
them as a duplicate.
 1.46 16-Nov-2008  dholland branches: 1.46.2;
Minor KNF and whitespace nits. No functional change.
 1.45 16-Nov-2008  dholland Close possible race conditions if multiple copies of makewhatis end up
running concurrently. Other half of the fix for PR 35619.
 1.44 20-Jul-2008  lukem branches: 1.44.4;
Remove the \n and tabs from the __COPYRIGHT() strings.
 1.43 27-May-2008  dholland Urgh, part of another patch for PR 35619 (which is for after the freeze)
snuck in by accident, corrupting an error message. Fix.
 1.42 27-May-2008  dholland Update whatis.db atomically, by dumping out into whatis.db.new and
renaming. PR 35619 from uwe@.
 1.41 28-Apr-2008  martin branches: 1.41.2;
Remove clause 3 and 4 from TNF licenses
 1.40 26-Aug-2006  christos branches: 1.40.16;
use efun(3)
 1.39 10-Apr-2006  chuck modified man(1):
- avoid double slashes when displaying man pages (got tired
of '/usr/share/man//cat1/man.0').
- got rid of __P() while working on it.
- incorporate some of my old notes explaining how manpath works into the
comments of the code itself.
- renamed some of the vars so that the code is consistent throughout
(and hopefully clearer and easier to understand)
- fixed relative man paths for multiple man pages (man did a chdir()
on the first man page it had to format --- this broke any remaining
relative path man pages left to process). save old directory and
fchdir() back to it after formatting.
- improved doc on "man -h" which does more than just whatis(1) [e.g.
"man -h fopen" prints the required include files and the prototypes
rather than just the one-liner you get with whatis(1)]
- manconf.c now fills in the "len" length field in the TAG/ENTRY
structures (man now uses len).

revise man.conf file reading stuff to return error on failure in
addentry/gettag (fka getlist) rather than just err()ing out. this
allows man(1) to call cleanup and delete its tmp files rather than
just leave them floating. revise other apps using this code
(makewhatis, apropos, catman, whatis) to expect this. also remove
__P on updated files.
 1.38 18-Nov-2005  christos Deal with fts errors properly.
 1.37 15-Sep-2005  tron Reject unformatted manual pages with "[" characters in the description
because "makewhatis" cannot handle nroff macros properly. This fixes
the result of "apropos chrtbl". Problem pointed out by wizd(8)
in private e-mail.
 1.36 01-Jun-2005  lukem appease gcc -Wuninitialized
 1.35 04-Apr-2005  wiz Sync usage with man page.
 1.34 03-Apr-2005  christos Make it parse old man pages, new mdoc pages, broken pages, and pages where
the synopsis line does not give us the section number. Add -w flag to print
pages we still don't like. Now we parse 99% of the pages properly.
 1.33 03-Apr-2005  christos remove debugging printfs.
 1.32 03-Apr-2005  christos Cat pages end up looking like "page -- description", so substitute "--" for
the section page. This makes things look right again, and avoids duplicates.
 1.31 05-Nov-2004  dsl branches: 1.31.2;
Add (unsigned char) cast to ctype functions
 1.30 27-Oct-2003  lukem Overhaul how `build.sh tools' are used:

* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h

* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
 1.29 13-Jul-2003  itojun use bounded string op (some remains)
 1.28 14-Jun-2003  wiz Do not hardcode "nroff", allow it to be overridden by defining NROFF. Useful for tools/makewhatis.
 1.27 14-Jun-2003  wiz Report on which file nroff returned an error.
 1.26 13-Sep-2002  thorpej Rename man/config.{c,h} to man/manconf.{c,h}, so we don't have to
worry about problems including "config.h" when building as a host
tool.
 1.25 11-Jun-2002  tron Adapt to lastest changes of configuration handling in man(1).
 1.24 10-Mar-2002  jdolecek branches: 1.24.2;
fix behaviour if exactly one directory is specified (off-by-one error)
this caused makewhatis behave as if called without arguments at all

Problem reported by Xavier HUMBERT on current-users.
 1.23 08-Mar-2002  jdolecek If called without arguments, parse /etc/man.conf and regenerate the whatis
databases specified there. By default, the individual databases
are actually generated by forked children in this case, for
performance reasons. This feature can be switched off by new -f flag.
If the configuration file can't be parsed or doesn't contain any
_whatdb entries, the code falls back to /usr/share/man as before.

Added -C, which allows to specify alternate configuration file. This
is compatible with apropos(1) and whatis(1) flag of same name.

Update manpage accordingly and document behaviour a bit better.
Also add a HISTORY section, hopefully correct (done using CVS logs).

This solves toolchain/5231 by Tim Rightnour and bin/7696 by Allen Briggs.
 1.22 07-Mar-2002  jdolecek Make the whatis enties prefixed with man subdirectory the manpage
appears in, as commonly used for architecture-specific manpages.
The subdirectory is deliberately printed such that the entry is suitable
for cut&paste for man(1).

Fixes bin/9744 by John Hawkinson and misc/14997 by Hiramatsu Yoshifumi.
 1.21 31-Jan-2002  tv Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
 1.20 29-Jan-2002  tv Make almost all tools compile and run properly on non-NetBSD hosts. (In
particular, most tools now run correctly on Solaris 7.)
 1.19 21-Jan-2002  tron Handle ".Xr" commands with text after the section number probably.
This fixes PR bin/15253 by Thomas Klausner.
 1.18 11-Jan-2002  christos - fix whitespace nits.
- change error checking philosophy: instead of returning errors to the
upper layer only to fail silently and exit there, or die of unexpected
NULL pointers bail out and print an error immediately. Add emalloc/estrdup
to simplify. This change removed a bunch of code.
- fix size_t/int confusion
- cast argument to isspace(3) to unsigned char
- ? : statement is not an lvalue, so don't take its address.
- unlink the file before we open it, because we chmod it to readonly.
- misc KNF
 1.17 23-Nov-2001  tron Avoid strange error message in case of corrupted manual page files.
 1.16 10-Apr-2001  tron Strip overstrike characters from input lines while searching for a "NAME"
section in a formatted manual page. "makewhatis" now recognizes and indexes
the OpenSSL manual pages properly. Fixes PR bin/12390 by Hubert Feyrer.
 1.15 08-Apr-2001  tron Abort parsing and invoke "nroff" if an unsupported macro is found in the
description section of an unformatted manual page. While this makes the
"makewhatis" two times slower in avoids creation of several incorrect
entries in the "whatis.db" database. This fixes PR bin/12535 by
Thomas Klausner.
 1.14 08-Apr-2001  tron - Use ".TH" lines in unformatted manual pages to find correct section
number.
- Always invoke "nroff" if builtin parser for unformatted manual pages
fails and try to parse formatted manual page.
 1.13 19-Feb-2001  cgd convert to use getprogname()
 1.12 13-Jul-2000  tron Invoke "nroff" with "-S" (safer mode) option because "makewhatis" is
usually invoked by "root".
 1.11 13-Jul-2000  tron Kill "nroff" process and wait for its terminiation if we can't setup
the "libz" file handle.
 1.10 13-Jul-2000  tron Optimize invokation of "nroff":
- Redirect standard error to "/dev/null" because "nroff" error messages
for temporary files aren't really useful.
- Don't let "nroff" open temporary file. Use its file descriptor as
standard input.
 1.9 10-Jul-2000  tron Check exit code returned from "nroff" if it is used to convert
unformatted manual pages.
 1.8 09-Jul-2000  tron Invoke "nroff" and parse its output if an unformatted manual page uses
macros. Fixes PR bin/9083 by Geoff C. Wing.
 1.7 24-Jan-2000  tron branches: 1.7.4;
Don't write leading white spaces and directory names to whatis file.
 1.6 31-Dec-1999  tron Accept all kind of whitespaces when searching for the end of a nroff
macro.
 1.5 31-Dec-1999  tron Correct and improve nroff macro stripping. Partially fixes PR bin/9083
by Geoff C. Wing.
 1.4 11-Dec-1999  tron branches: 1.4.2;
Recognize manual page sections "l" and "n" used by the package system.
This fixes PR bin/8977 by Thilo Manske.
 1.3 25-Sep-1999  tron Set file modes of whatis.db database file to 444 like the old script did.
 1.2 25-Sep-1999  tron Fix incorrect error check after writing database file.
 1.1 25-Sep-1999  tron Replace shell script for creating whatis.db database with a C program
which is a little bit faster.
 1.4.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.7.4.4 23-Jan-2002  he Pull up revisions 1.18-1.19 (via patch, requested by tron):
Cleanup and enhance error handling. Handle ``.Xr'' commands with
text after the section number properly. Fixes PR#15253.
This synchronizes with version 1.19.
 1.7.4.3 22-Apr-2001  he Pull up revisions 1.14-1.16 (requested by tron):
Major improvments of parsing formatted and unformatted manual
pages. Includes fixes for PR#12390 and PR#12535.
 1.7.4.2 13-Jul-2000  tron Sync with netbsd-current, approved by releng-1-5:
- Optimize invokation of "nroff":
- Redirect standard error to "/dev/null" because "nroff" error messages
for temporary files aren't really useful.
- Don't let "nroff" open temporary file. Use its file descriptor as
standard input.
- Kill "nroff" process and wait for its terminiation if we can't setup
the "libz" file handle.
- Invoke "nroff" with "-S" (safer mode) option because "makewhatis" is
usually invoked by "root".
 1.7.4.1 12-Jul-2000  tron Sync with netbsd-current, approved by releng-1-5:
Invoke "nroff" and parse its output if an unformatted manual page uses
macros. Fixes PR bin/9083 by Geoff C. Wing.
 1.24.2.2 03-Nov-2002  he Pull up revision 1.25 (requested by he in ticket #787):
Make these compile again, after the changes in ticket #787.
 1.24.2.1 03-Nov-2002  he Pull up revision 1.26 (requested by thorpej in ticket #787):
Rename man/config.{c,h} to man/manconf.{c,h}, so we do not
have to worry about problems including "config.h" when
building as a host tool.
 1.31.2.6 15-Sep-2005  snj Pull up following revision(s) (requested by tron in ticket #789):
libexec/makewhatis/makewhatis.c: revision 1.37
Reject unformatted manual pages with "[" characters in the description
because "makewhatis" cannot handle nroff macros properly. This fixes
the result of "apropos chrtbl". Problem pointed out by wizd(8)
in private e-mail.
 1.31.2.5 15-Sep-2005  snj Pull up following revision(s) (requested by tron in ticket #789):
libexec/makewhatis/makewhatis.c: revision 1.36
appease gcc -Wuninitialized
 1.31.2.4 15-Sep-2005  snj Pull up following revision(s) (requested by tron in ticket #789):
libexec/makewhatis/makewhatis.c: revision 1.35
Sync usage with man page.
 1.31.2.3 15-Sep-2005  snj Pull up following revision(s) (requested by tron in ticket #789):
libexec/makewhatis/makewhatis.c: revision 1.34
libexec/makewhatis/makewhatis.8: revision 1.10
Make it parse old man pages, new mdoc pages, broken pages, and pages where
the synopsis line does not give us the section number. Add -w flag to print
pages we still don't like. Now we parse 99% of the pages properly.
 1.31.2.2 15-Sep-2005  snj Pull up following revision(s) (requested by tron in ticket #789):
libexec/makewhatis/makewhatis.c: revision 1.33
remove debugging printfs.
 1.31.2.1 15-Sep-2005  snj Pull up following revision(s) (requested by tron in ticket #789):
libexec/makewhatis/makewhatis.c: revision 1.32
Cat pages end up looking like "page -- description", so substitute "--" for
the section page. This makes things look right again, and avoids duplicates.
 1.40.16.2 04-Jun-2008  yamt sync with head
 1.40.16.1 18-May-2008  yamt sync with head.
 1.41.2.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.41.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.44.4.1 04-Apr-2009  snj Pull up following revision(s) (requested by apb in ticket #667):
libexec/makewhatis/makewhatis.c: revision 1.47
In addwhatis(), two items should not be treated as duplicates unless
both the "data" and "prefix" elements are identical. For example, the
two lines
amiga/boot (8) - system bootstrapping procedures
amd64/boot (8) - system bootstrapping procedures
both appear with data = "boot (8) - system bootstrapping procedures" but
with different values for prefix, and we do not want to reject one of
them as a duplicate.
 1.46.2.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.47.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.47.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.49.20.1 18-Nov-2018  martin Pull up following revision(s) (requested by sevan in ticket #1096):

libexec/makewhatis/makewhatis.c: revision 1.50
libexec/makewhatis/makewhatis.c: revision 1.51

Include time.h for time.
XXX Doesn't build with newer zlib, remove?

-

make this compile.
 1.19 10-Mar-2002  jdolecek remove - the C version diverged enough for this to not be
full-featured replacement
 1.18 30-Mar-1999  cjs For install makefile, set DESTDIR on command line rather than in makefile
so it overrides /etc/mk.conf as well as environment variables.
 1.17 24-May-1998  tv ...and clear DESTDIR in fake Makefile.
 1.16 23-May-1998  frueauf Don't ignore compressed unformatted man pages and use $MKWHATIS where
makewhatis.sed should be used.
 1.15 23-May-1998  tv Use a "smart" lookup of makewhatis.sed.
 1.14 21-May-1998  tv Don't try to get at ${DESTDIR} inside /usr/libexec/makewhatis; instead,
supply ${DESTDIR} as part of the command line argument in
src/share/man/Makefile, and use that modified $MANPATH to find
makewhatis.sed.
 1.13 21-Mar-1998  tron Add support for "${DESTDIR}".
 1.12 09-Feb-1998  lukem cons up a makefile to install whatis.db with FILES=
 1.11 09-Jan-1998  perry RCS Id Police.
 1.10 18-Nov-1997  mrg oops! dont clobber the list after building it. (pr#4528 John.P.Darrow@wheaton.edu)
 1.9 02-Nov-1997  lukem * remove duplicate inode entries, so files with multiple hard links are
only parsed once; results in a 33% speedup on a p5-200
* order SEE ALSO by section
 1.8 02-Nov-1997  lukem use $TMP and $LIST everywhere, remove $LIST upon successful exit
 1.7 01-Nov-1997  mrg use the updated getNAME(8) now that it has a reasonable output. this
makes makewhatis several orders of magnitude faster for manual sources,
as we now avoid a costly `nroff -mandoc' for each one...
 1.6 04-Aug-1997  perry branches: 1.6.2;
now finds symlinked man pages, as submitted by Thorsten Frueauf in pr-3087
 1.5 11-May-1995  jtc Winning Strategies has placed this code in the public domain.
 1.4 19-Mar-1994  cgd support for compressed and gzipped man pages. more or less from
Luke Mewburn <lm@rmit.edu.au>
 1.3 07-Feb-1994  cgd actually do the install when done
 1.2 29-Jan-1994  jtc Fix spelling error in Copyright notice
 1.1 21-Dec-1993  cgd moved here from old location in src/usr.bin/man
 1.6.2.2 18-Nov-1997  mrg pull up from trunk: oops! dont clobber the list after building it. (pr#4528 John.P.Darrow@wheaton.edu)
 1.6.2.1 10-Nov-1997  thorpej Sync w/ trunk.
 1.10 16-Mar-2009  lukem Default to WARNS=4
Exceptions that need a lower level are:
getty ld.elf_so lfs_cleanerd makewhatis telnetd tftpd
hpropd ipropd-master ipropd-slave kadmind kpasswdd
 1.9 04-Mar-2005  he branches: 1.9.34;
Introduce PAM_STATIC_LDADD and PAM_STATIC_DPADD. When compiling
with MKPIC=no, possibly because the target does not support shared
libraries, these include libraries required to resolve all symbols
which end up referenced from PAM-using applications. The libraries
presently required are -lcrypt, -lrpcsvc and -lutil.

Add use of these variables which are currently set up to use PAM,
so that they compile when MKPIC=no.

Also, in the telnetd case, reorder the order of the libraries, so
that libtelnet.a comes before -ltermcap and -lutil, again to fix
link error when MKPIC=no.

Discussed with thorpej and christos.
 1.8 23-Feb-2005  christos PAMify: From John Nemeth with fixes from me.
 1.7 08-Oct-1997  mrg merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.6 07-Oct-1997  mrg merge lite-2. WARNS?=1.
 1.5 22-Dec-1994  cgd specify man pages the new way.
 1.4 07-Oct-1993  cgd always use libcrypt
 1.3 01-Aug-1993  mycroft Add RCS identifiers.
 1.2 26-Apr-1993  cgd changed to use new libcrypt scheme.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.9.34.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.13 03-Jul-2017  wiz Remove workaround for ancient HTML generation code.
 1.12 09-Apr-2009  joerg Remove physical markup.
 1.11 07-Aug-2003  agc branches: 1.11.40;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.10 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.9 08-Feb-2002  ross Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
 1.8 15-Jan-2002  wiz Sort sections.
 1.7 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.6 08-Jun-1998  lukem Implement a new manual page category ``SECURITY CONSIDERATIONS''
(suggested by mycroft)
 1.5 29-Apr-1998  fair fix bad .Xr references
 1.4 20-Oct-1997  enami Fix .Nm usage.
 1.3 07-Oct-1997  mrg merge lite-2. WARNS?=1.
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.3 29-Apr-1997  tls Import from 4.4BSD-Lite2
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.11.40.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.26 20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
 1.25 15-Dec-2007  perry branches: 1.25.6;
convert __attribute__s to applicable cdefs.h macros
 1.24 11-May-2006  mrg branches: 1.24.10;
end the argument list to exec*(3) with a NULL instead of a bare '0', as
the latter isn't a pointer context in these varargs functions.
 1.23 19-Apr-2005  christos check pwd != NULL
 1.22 30-Mar-2005  christos - KNF fixes from John Nemeth
- Use getpwnam_r because pam may use getpw* and overwrite the static area
(from FreeBSD)
 1.21 23-Feb-2005  christos branches: 1.21.2;
PAMify: From John Nemeth with fixes from me.
 1.20 10-Jan-2005  ginsbach Fix thinko with last commit.
 1.19 08-Jan-2005  ginsbach ANSIfy; de-__P(); use STD*_FILENO rather than `magic' numbers
 1.18 11-May-2004  kleink Also set LOGNAME in the environment.
 1.17 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.16 17-May-2003  itojun use strlcat
 1.15 03-Mar-2003  dsl Call setsid so we don't change inetd's logname (and that of our peers).
(approved by christos)
 1.14 06-Dec-2002  thorpej Avoid conflict with reserved identifier "log".
 1.13 23-Sep-2002  mycroft null commit
 1.12 23-Sep-2002  itojun poll.h, not sys/poll.h
 1.11 05-Jun-2002  itojun make it AF independent as much as possible
 1.10 26-May-2002  wiz __STDC__ is always defined on NetBSD.
 1.9 24-Sep-2001  wiz branches: 1.9.2;
va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
 1.8 06-Apr-2001  wiz Negative exit code cleanup: Replace exit(-x) with exit(x).
As seen on tech-userlevel.
 1.7 10-Oct-2000  is Format string cleanups by sommerfeld.
 1.6 26-Jul-1998  mycroft branches: 1.6.2; 1.6.10;
const poisoning.
 1.5 04-Jul-1998  mrg - KNF.
- check return call of several important system calls
- clean up some more cruft.
- support "rexecd -l" for extra (syslog(3)) logging.
- avoid *sprintf
 1.4 07-Oct-1997  mrg merge lite-2. WARNS?=1.
 1.3 21-May-1996  mrg call setlogin. from pr#1292 (James Jegers <jimj@miller.cs.uwm.edu>)
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.10.1 17-Oct-2000  tv Pullup libexec string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.
 1.6.2.1 10-Oct-2000  he Pull up revision 1.7 (requested by is):
Format string cleanup.
 1.9.2.1 23-Jul-2004  tron Apply patch (requested by dbj in ticket 1724):
Fix problems when building the netbsd-1-6 branch with GCC 3.3.3.
 1.21.2.2 05-Jul-2005  tron Pull up revision 1.23 (requested by lukem in ticket #529):
check pwd != NULL
 1.21.2.1 05-Jul-2005  tron Pull up revision 1.22 (requested by lukem in ticket #529):
- KNF fixes from John Nemeth
- Use getpwnam_r because pam may use getpw* and overwrite the static area
(from FreeBSD)
 1.24.10.1 09-Jan-2008  matt sync with HEAD
 1.25.6.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.2 16-Mar-2009  lukem Default to WARNS=4
Exceptions that need a lower level are:
getty ld.elf_so lfs_cleanerd makewhatis telnetd tftpd
hpropd ipropd-master ipropd-slave kadmind kpasswdd
 1.1 23-Feb-2005  christos branches: 1.1.34;
Add an example program that tests rexecd... I really don't want to encourage
its use though.
 1.1.34.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 15-Dec-2007  perry branches: 1.3.4;
convert __attribute__s to applicable cdefs.h macros
 1.2 27-Feb-2005  christos branches: 1.2.16;
Add a few lines of code to print the output from the remotely executed program.
 1.1 23-Feb-2005  christos Add an example program that tests rexecd... I really don't want to encourage
its use though.
 1.2.16.1 09-Jan-2008  matt sync with HEAD
 1.3.4.1 18-May-2008  yamt sync with head.
 1.12 16-Mar-2009  lukem Default to WARNS=4
Exceptions that need a lower level are:
getty ld.elf_so lfs_cleanerd makewhatis telnetd tftpd
hpropd ipropd-master ipropd-slave kadmind kpasswdd
 1.11 10-Jan-2005  lukem branches: 1.11.34;
Only compile in IPv6 support if ${USE_INET6} != "no"

MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
 1.10 15-Nov-2004  christos - use sockaddr_storage directly.
- socklen_t instead of int.
- check ss_len for validity.
- pass -a to login so that it can record the address we've logged in from.
- constify.
 1.9 20-Aug-2002  christos PR/17999: FUKAUMI Naoki: Support wtmpx entries.
 1.8 31-Jan-2000  itojun IPv6 support.
 1.7 08-Oct-1997  mrg merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.6 07-Oct-1997  mrg WARNS?=1. RCS ids
 1.5 22-Dec-1994  cgd specify man pages the new way.
 1.4 05-Jun-1994  cgd kill kerberos and stream encryption support, so it's exportable.
 1.3 05-Jun-1994  cgd clean up import, RCS ids
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 05-Jun-1994  cgd virgin rlogind from 4.4-lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.11.34.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.5 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.4 07-Oct-1997  mrg WARNS?=1. RCS ids
 1.3 05-Jun-1994  cgd clean up import, RCS ids
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 05-Jun-1994  cgd virgin rlogind from 4.4-lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.17 17-Jul-2004  wiz Bump date for previous.
 1.16 17-Jul-2004  wiz Code is not using gethostbyaddr any longer, but getnameinfo.
Fix references. Addresses part of PR 26337 by Peter Postma.
 1.15 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.14 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.13 15-Jan-2002  wiz Sort sections.
 1.12 04-Apr-2001  wiz Actually, it's ttyaction, note the silent 't' ;)
 1.11 30-May-2000  itojun branches: 1.11.2;
document IPv4 mapped address twists.
- ftp(1): treats IPv4 mapped destination as IPv4 peer, not native IPv6 peer.
this does not support network with SIIT translator.
- rshd(8)/rlogind(8): rejects accesses from IPv4 mapped peer, to avoid
possible abuse of IPv4 mapped addr (rshd/rlogind use source address-based
auth so it is important to check the condition).
 1.10 22-Mar-1999  garbled branches: 1.10.8;
More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.9 29-Aug-1998  tsarna Execute ttyaction on termination of rlogind/telnetd sessions.
Also, say a little bit about ttyaction in the getty and login manpages.
 1.8 29-Apr-1998  fair fix a bad .Xr
 1.7 29-Apr-1998  fair fix bad .Xr references
 1.6 20-Oct-1997  enami Fix .Nm usage.
 1.5 07-Oct-1997  mrg WARNS?=1. RCS ids
 1.4 08-Nov-1996  lukem - implement -a (verfiy all hostnames) with code taken from rshd(8).
closes [misc/543] and [bin/1295]
- syslog() failures of iruserok(), which should help debugging why
a .rhosts authentication failed.
- log a successful iruserok() if -L given. idea from rshd(8).
- allow root .rhosts to authenticate, the same way that rshd(8) does.
the prior behaviour meant that 'rsh foo csh -i' could get a shell
without a password, but 'rlogin foo' couldn't; very inconsistant.
closes [bin/1078] and [bin/1239]
 1.3 05-Jun-1994  cgd clean up import, RCS ids
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 05-Jun-1994  cgd virgin rlogind from 4.4-lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.10.8.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.11.2.1 26-Apr-2001  he Pull up revision 1.12 (requested by wiz):
Correct typo in ttyaction(3) reference.
 1.42 04-Nov-2012  christos if you are going to use utmpx.h, include it.
 1.41 16-Sep-2011  plunky branches: 1.41.2; 1.41.8;
NULL does not need a cast, here
 1.40 27-Aug-2011  joerg ANSIfy. staticfy. Bail out on command line error. Use __dead.
 1.39 16-Mar-2009  lukem fix sign-compare issue
 1.38 20-Jul-2008  lukem branches: 1.38.6;
Remove the \n and tabs from the __COPYRIGHT() strings.
 1.37 09-May-2006  mrg branches: 1.37.20;
change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
 1.36 16-Nov-2004  itojun NI_WITHSCOPEID was not picked up by IETF standardization process
 1.35 15-Nov-2004  christos Oops, always store a full struct sockaddr_storage.
 1.34 15-Nov-2004  christos - use sockaddr_storage directly.
- socklen_t instead of int.
- check ss_len for validity.
- pass -a to login so that it can record the address we've logged in from.
- constify.
 1.33 17-Jul-2004  wiz Code is not using gethostbyaddr any longer, but getnameinfo.
Fix references. Addresses part of PR 26337 by Peter Postma.
 1.32 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.31 17-May-2003  itojun string manipulation audit
 1.30 23-Sep-2002  mycroft null commit
 1.29 23-Sep-2002  itojun poll.h, not sys/poll.h
 1.28 20-Sep-2002  mycroft Remove a small piece of dead code.
 1.27 18-Sep-2002  mycroft select() -> poll()
 1.26 20-Aug-2002  christos PR/17999: FUKAUMI Naoki: Support wtmpx entries.
 1.25 01-Aug-2002  christos It is pointless to limit the login name for utmp's purposes here.
 1.24 04-Feb-2001  christos fix nested extern
 1.23 10-Jan-2001  lukem consistently use LOG_NOTICE instead of LOG_INFO for hostname lookup probs
 1.22 09-Nov-2000  itojun do not refer free'ed memory region. KAME PR 302 from ryo@iij.ad.jp
 1.21 14-Apr-2000  itojun reject connection attempt from IPv4 mapped addr, for safety.
 1.20 31-Jan-2000  itojun IPv6 support.
 1.19 31-Dec-1999  itojun indentation fix.
 1.18 29-Aug-1998  tsarna Execute ttyaction on termination of rlogind/telnetd sessions.
Also, say a little bit about ttyaction in the getty and login manpages.
 1.17 26-Aug-1998  perry fix bcopy->memcpy with memcpy->memmove -- not strictly needed, but...
 1.16 25-Aug-1998  ross {} "fix" for lame egcs warning, from Erik Bertelsen <erik@mediator.uni-c.dk>
 1.15 10-Aug-1998  perry bzero->memset, bcopy->memcpy, bcmp->memcmp
 1.14 06-Jul-1998  mrg - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
 1.13 30-Mar-1998  mrg remove register.
 1.12 08-Oct-1997  enami Compare a return value of getopt() against -1 instead of EOF.
 1.11 07-Oct-1997  mrg WARNS?=1. RCS ids
 1.10 07-Oct-1997  mrg merge lite-2.
 1.9 08-Nov-1996  lukem - implement -a (verfiy all hostnames) with code taken from rshd(8).
closes [misc/543] and [bin/1295]
- syslog() failures of iruserok(), which should help debugging why
a .rhosts authentication failed.
- log a successful iruserok() if -L given. idea from rshd(8).
- allow root .rhosts to authenticate, the same way that rshd(8) does.
the prior behaviour meant that 'rsh foo csh -i' could get a shell
without a password, but 'rlogin foo' couldn't; very inconsistant.
closes [bin/1078] and [bin/1239]
 1.8 21-May-1996  mrg log the IP address if the hostname is > UT_HOSTSIZE, as per telnet. pr#1946
 1.7 08-Feb-1996  mycroft Make sure that the user name cannot ever be interpreted as an option to
login(8). Note: This does *not* fix any security holes.
 1.6 05-Jun-1994  cgd kill kerberos and stream encryption support, so it's exportable.
 1.5 05-Jun-1994  cgd clean up import, RCS ids
 1.4 02-Jun-1994  pk another case of overloading hostent's storage.
 1.3 19-May-1994  pk Add underscore to _check_rhosts_file
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.3 29-Apr-1997  tls Import from 4.4BSD-Lite2
 1.1.1.2 05-Jun-1994  cgd virgin rlogind from 4.4-lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.37.20.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.38.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.41.8.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.41.2.1 16-Jan-2013  yamt sync with (a bit old) head
 1.11 03-Jun-2023  lukem bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.10 13-Oct-2019  mrg introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
 1.9 01-Feb-2012  dholland branches: 1.9.40;
libquota no longer requires libprop. Also remove some other no-longer-used
.PATH'd-in bits from repquota.
 1.8 24-Mar-2011  bouyer branches: 1.8.4;
Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)
 1.7 06-Mar-2011  bouyer merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
 1.6 08-Oct-1997  mrg branches: 1.6.64;
merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.5 07-Oct-1997  mrg WARNS?=1. RCS ids. cleanup a little.
 1.4 30-Aug-1996  thorpej RCS id police.
 1.3 12-Apr-1995  jtc Install manpage as foo(8) as well as rpc.foo(8), a convenient shorthand.
Also make sure that foo and rpc.foo are mentioned in the NAME section.
 1.2 25-Dec-1994  pk Define `MAN'.
 1.1 24-Jun-1994  deraadt from bouyer@ensta.fr; cleaned by me
 1.6.64.2 14-Feb-2011  bouyer The rpc.rquotad protocol uses the legacy definitions and integer types.
Convert from/to dqblk using the quota1_subr.c routines to have the
necessery convertions done.
 1.6.64.1 08-Feb-2011  bouyer Convert to new quotactl interface
 1.8.4.1 17-Apr-2012  yamt sync with head
 1.9.40.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.10 01-Sep-2025  riastradh rpc.rquotad(8): Document security limitation.

Obviously nobody wants to fix this so it hurts users more to keep it
secret than to just document the information and let users make
informed decisions based on that.

PR bin/45005: rpc.rquotad does no access checks
 1.9 10-Dec-2003  agc Modify the licences of code written by Theo De Raadt from a 4-clause
to a 2-clause licence (retaining UCB clauses (1) and (2)), per PR
22409 from Joel Baker, approved by Theo de Raadt, and ratified by
myself - the only discrepancy being the handling of the original
clause 3 in src/usr.sbin/yppoll/yppoll.c.
 1.8 14-Feb-2003  bouyer Remove bug section, we now support group quotas.
 1.7 15-Jan-2002  wiz Whitespace nits, sort sections.
 1.6 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.5 06-Feb-1998  perry macroize BSD, NetBSD, FreeBSD and misc cleanup
 1.4 20-Oct-1997  enami Fix .Nm usage.
 1.3 30-Aug-1996  thorpej RCS id police.
 1.2 12-Apr-1995  jtc Install manpage as foo(8) as well as rpc.foo(8), a convenient shorthand.
Also make sure that foo and rpc.foo are mentioned in the NAME section.
 1.1 24-Jun-1994  deraadt from bouyer@ensta.fr; cleaned by me
 1.33 18-Mar-2014  gson Delay daemonization until RPC services have been registered.
Fixes one of the race conditions of PR misc/48282.
 1.32 09-Jan-2012  dholland branches: 1.32.6;
Update rquotad to use the new libquota API.
 1.31 25-Nov-2011  dholland Rename struct ufs_quota_entry -> struct quotaval.
 1.30 16-Sep-2011  plunky branches: 1.30.2;
NULL does not need a cast, here
 1.29 30-Aug-2011  plunky Apply casts to cases where xdrproc_t is expected but is not
strictly passed, for example because the second argument is
a different kind of pointer.
 1.28 27-Aug-2011  joerg staticfy. Use __dead.
 1.27 24-Mar-2011  bouyer Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)
 1.26 12-Mar-2011  bouyer Define qfextension here
 1.25 06-Mar-2011  bouyer merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
 1.24 16-Mar-2009  lukem branches: 1.24.2;
WARNS=4
 1.23 09-May-2006  mrg branches: 1.23.28;
change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
 1.22 07-Sep-2004  jrf Replaced strncpy with strlcpy. Thanks to Peter Postma who
pointed them our in PR #25762. Approved by christos@NetBSD.org.
 1.21 20-Sep-2003  bouyer memset(0) ext_getq_args before use. Should fix bin/22592 by Mark Davies.
 1.20 14-Feb-2003  bouyer Implement rquota RPC version 2, compatible with the linux implementation,
as proposed on tech-userlevel on Dec 06 2002. This allows to retrieve
group quota informations from NFS servers.
 1.19 09-Jun-2002  bouyer Make this file explicitely public domain.
 1.18 05-Jun-2002  itojun g/c unused function, which uses TS RPC.
 1.17 10-Jan-2001  lukem use LOG_WARNING instead of LOG_ERR for non critical errors
 1.16 03-Jun-2000  fvdl Missed a pmap_unset -> rpcb_unset change.
 1.15 03-Jun-2000  fvdl Adapt for TI-RPC.
 1.14 29-Nov-1999  pk branches: 1.14.2;
No need for <varargs.h> here.
 1.13 31-Jan-1999  mrg branches: 1.13.6;
do not use LOG_CONS.
 1.12 10-Aug-1998  perry bzero->memset, bcopy->memcpy, bcmp->memcmp
 1.11 03-Jul-1998  mrg KNF, and use MOUNT_FFS over "ffs"
 1.10 21-Jan-1998  lukem * store st_dev of filesystem not quotafile. (inspired by an openbsd commitmsg)
* minor KNF, fix typos, use strchr() not index()
* check return value of malloc() and use strdup() where appropriate
 1.9 07-Oct-1997  mrg WARNS?=1. RCS ids. cleanup a little.
 1.8 25-Aug-1997  kleink Lseek(2) usage cleanup: the use of L_SET/L_INCR/L_XTND is deprecated,
use SEEK_SET/SEEK_CUR/SEEK_END instead.
 1.7 30-Aug-1996  thorpej RCS id police.
 1.6 01-Feb-1996  jtc Fixed to use ffs instead of ufs; See PR #1984
 1.5 12-Apr-1995  jtc branches: 1.5.2;
#include <sys/signal.h> -> <signal.h>
 1.4 13-Jan-1995  mycroft Free argument list (for !from_inetd case). General cleanup.
 1.3 13-Jan-1995  mycroft Correct calling sequence of getsockname(2).
 1.2 23-Dec-1994  cgd be a bit more careful with types, casts, and and function declarations.
 1.1 24-Jun-1994  deraadt from bouyer@ensta.fr; cleaned by me
 1.5.2.1 01-Feb-1996  jtc ufs -> ffs change from main branch
 1.13.6.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.14.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.23.28.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.24.2.2 14-Feb-2011  bouyer The rpc.rquotad protocol uses the legacy definitions and integer types.
Convert from/to dqblk using the quota1_subr.c routines to have the
necessery convertions done.
 1.24.2.1 08-Feb-2011  bouyer Convert to new quotactl interface
 1.30.2.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.30.2.1 17-Apr-2012  yamt sync with head
 1.32.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.24 03-Jun-2023  lukem bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.23 13-Oct-2019  mrg introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
 1.22 23-Jan-2016  christos branches: 1.22.16;
Define _KERNTYPES for things that need it.
 1.21 02-Jun-2014  joerg Remove remaining kvm glue.
 1.20 14-Apr-2006  blymn branches: 1.20.48; 1.20.60;
New io statistics
 1.19 18-Sep-2002  lukem use bsd.own.mk instead of the (obvious typo of) bsd.obj.mk
 1.18 19-Aug-2002  lukem Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path
 1.17 12-Sep-1999  chs the PMAP_NEW option is gone as the new interface is no longer optional.
 1.16 24-Mar-1999  mrg completely remove Mach VM support. all that is left is the all the
header files as UVM still uses (most of) these.
 1.15 18-Feb-1998  perry add -DPMAP_NEW if PMAP_NEW is on in mk.conf
 1.14 09-Feb-1998  mrg add -DUVM to CPPFLAGS if defined(UVM)
 1.13 22-Oct-1997  lukem use CPPFLAGS instead of CFLAGS
 1.12 08-Oct-1997  mrg branches: 1.12.2;
merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.11 07-Oct-1997  mrg WARNS?=1. RCS ids.
 1.10 22-Feb-1997  thorpej Fix reporting of disk statistics that's been broken since new disk
framework went in. From Jarle Greipsland <jarle@runit.sintef.no>, PR #3200.
 1.9 30-Aug-1996  thorpej RCS id police.
 1.8 12-Apr-1995  jtc Install manpage as foo(8) as well as rpc.foo(8), a convenient shorthand.
Also make sure that foo and rpc.foo are mentioned in the NAME section.
 1.7 22-Dec-1994  cgd specify man pages the new way.
 1.6 28-Jan-1994  cgd no longer need lib hackery
 1.5 28-Jan-1994  cgd hack to make getloadavg() link properly
 1.4 02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.3 08-Jun-1993  brezak Updated man page.
 1.2 04-Jun-1993  brezak No need to link with -lrpc
 1.1 03-Jun-1993  brezak Add rpc.rstatd, rpc.rusersd, and rpc.rwalld.
 1.12.2.1 08-Nov-1997  lukem sync with trunk (approved by thorpej)
 1.20.60.1 10-Aug-2014  tls Rebase.
 1.20.48.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.22.16.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.13 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.12 29-Sep-2002  wiz Begin new sentences on new lines.
Patch from Robert Elz (kre at munnari oz au).
 1.11 15-Jan-2002  wiz Whitespace nits.
 1.10 25-Mar-1999  bgrayson Added description of argv[1] value interval (rpc.rstatd doesn\'t use getopt)
 1.9 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.8 20-Oct-1997  enami Fix .Nm usage.
 1.7 30-Aug-1996  thorpej RCS id police.
 1.6 12-Apr-1995  jtc Install manpage as foo(8) as well as rpc.foo(8), a convenient shorthand.
Also make sure that foo and rpc.foo are mentioned in the NAME section.
 1.5 16-Aug-1993  mycroft Add missing space after path name.
 1.4 16-Aug-1993  jtc Touch up manpages.
 1.3 02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.2 08-Jun-1993  brezak Updated man page.
 1.1 03-Jun-1993  brezak Add rpc.rstatd, rpc.rusersd, and rpc.rwalld.
 1.53 30-Oct-2018  kre sysctl(KERN_BOOTTIME) is a struct timespec, not struct timeval
and has eben since 2009. Adapt.

NFCI - while the tv_usec (now tv_nsec) field is used, we will
keep its uses to microsecond precision to avoid any compat issues.
 1.52 26-Jun-2014  dholland branches: 1.52.22; 1.52.24;
put the sccsids back here too
 1.51 06-Jun-2014  christos Although the kernel handles non-NUL terminated interface names, it is better
to avoid this, and all other places that create ifdr_name use strlcpy anyway
so make it conform.
 1.50 02-Jun-2014  joerg Remove remaining kvm glue.
 1.49 02-Jun-2014  joerg Remove majority of KVM usage.
 1.48 02-Jun-2014  joerg Remove !BSD and lint branches.
 1.47 19-Jun-2012  dholland branches: 1.47.2; 1.47.8;
Pass WARNS=5
 1.46 16-Sep-2011  plunky branches: 1.46.2;
NULL does not need a cast, here
 1.45 30-Aug-2011  plunky Apply casts to cases where xdrproc_t is expected but is not
strictly passed, for example because the second argument is
a different kind of pointer.
 1.44 16-Mar-2009  lukem WARNS=4
 1.43 14-Apr-2006  blymn branches: 1.43.28;
New io statistics
 1.42 11-Jun-2003  drochner no need to #include <sys/dkstat.h>
 1.41 09-Mar-2003  hannken Dont call gettimeofday on a rpc timeval.
This fails on sparc64 because rpc timeval elements are int
and timeval elements are long.
 1.40 02-Nov-2002  mrg update to new dkstats.c interface; no changes to how this program works.
pointed out by uwe@ in private email.
 1.39 28-Jan-2002  augustss Make it compile again (vmstat change fallout).
 1.38 01-Dec-2000  simonb Remove extern variables and functions now declared in dkstats.h.
 1.37 30-Nov-2000  simonb ANSIfy.
 1.36 29-Nov-2000  simonb Use the vm.uvmexp2 sysctl.
 1.35 29-Jun-2000  mrg remove include of <vm/vm.h>
 1.34 04-Jun-2000  perry include sys/sched.h to get definition of CPUSTATES
 1.33 03-Jun-2000  fvdl ANSIfy function prototypes and definitions.
 1.32 03-Jun-2000  fvdl Oops, remove debugging printf.
 1.31 02-Jun-2000  fvdl Adapt for new RPC interface.
 1.30 29-May-2000  simonb The cp_time array has had 5 members since 1994 - show them all in debug
output.
 1.29 25-Mar-1999  bgrayson branches: 1.29.8;
Avoid an open-file leak when not inetd-spawned: only call kvm_openfiles() once
 1.28 24-Mar-1999  mrg completely remove Mach VM support. all that is left is the all the
header files as UVM still uses (most of) these.
 1.27 11-Jan-1999  kleink In userland, pull in <errno.h> instead of <sys/errno.h> for the declaration
of errno.
 1.26 10-Aug-1998  perry bzero->memset, bcopy->memcpy, bcmp->memcmp
 1.25 19-Jul-1998  drochner adapt to changed dkinit() in ../../usr.bin/vmstat/dkstats.c
 1.24 30-Mar-1998  mrg use static int, not just static
 1.23 12-Feb-1998  mrg use sysctl for "kern.boottime" over kvm_read
 1.22 11-Feb-1998  bad Make this compile with -DUVM.
 1.21 07-Feb-1998  mrg make this work in the -DUVM case.
 1.20 07-Oct-1997  mrg WARNS?=1. RCS ids.
 1.19 19-Jul-1997  fvdl Make sure that the last fields in the transmitted stat structs are set
correctly. PR 809, from Jarle Greipsland
 1.18 22-Feb-1997  thorpej Fix reporting of disk statistics that's been broken since new disk
framework went in. From Jarle Greipsland <jarle@runit.sintef.no>, PR #3200.
 1.17 01-Oct-1996  cgd disable use of dk_xfer since it's no longer in the kernel. eventually,
this should be updated to use the new disk statistics structures, but it
would be good if there were an efficient way to get them from the kernel
before that's done. Also, while here, terminate nlist struct array with
an entry with a NULL name, not the name "".
 1.16 30-Aug-1996  thorpej RCS id police.
 1.15 10-Mar-1996  ragge Removed a couple of "ifdef vax" that caused rstatd not to work.
 1.14 09-Jul-1995  pk Use `xdrproc_t' to declare xdr_{args,result}. (takes care of PR#1182).
 1.13 24-Jun-1995  pk Conform to rpcgen generated prototypes.
 1.12 19-Jun-1995  cgd update for new network queues
 1.11 13-Jan-1995  mycroft Fix error messages.
 1.10 23-Dec-1994  cgd be a bit more careful with types, casts, and and function declarations.
 1.9 25-May-1994  pk Use new kvm interface (fixes bug 253)
Also, use the crummy protocol's idea of CPU times.
 1.8 14-May-1994  cgd more #undefs to get it to compile! perverted
 1.7 15-Apr-1994  cgd sum -> cnt
 1.6 01-Apr-1994  cgd long cast
 1.5 07-Dec-1993  mycroft Eliminate a compiler warning.
 1.4 23-Sep-1993  jtc Make sure we use rstat's protocol's values of FSCALE. We were picking up
the FSCALE from sys/param.h which caused our load averages to be sent
incorrectly to remote machines.
 1.3 01-Aug-1993  mycroft Add RCS identifiers.
 1.2 09-Jun-1993  brezak Fix number of args to svcerr_progvers()
 1.1 03-Jun-1993  brezak Add rpc.rstatd, rpc.rusersd, and rpc.rwalld.
 1.29.8.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.43.28.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.46.2.1 30-Oct-2012  yamt sync with head
 1.47.8.1 10-Aug-2014  tls Rebase.
 1.47.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.52.24.1 10-Jun-2019  christos Sync with HEAD
 1.52.22.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.15 29-Aug-2011  joerg Use __dead
 1.14 09-May-2006  mrg change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
 1.13 03-Jun-2000  fvdl Use sockaddr_storage in from_inetd check (call to getsockname()).
 1.12 03-Jun-2000  fvdl ANSIfy function prototypes and definitions.
 1.11 03-Jun-2000  fvdl Use rpcb_unset, not pmap_unset.
 1.10 02-Jun-2000  fvdl Adapt for new RPC interface.
 1.9 31-Jan-1999  mrg branches: 1.9.8;
do not use LOG_CONS.
 1.8 07-Oct-1997  mrg WARNS?=1. RCS ids.
 1.7 30-Aug-1996  thorpej RCS id police.
 1.6 13-Jan-1995  mycroft Correct calling sequence of getsockname(2).
 1.5 22-Feb-1994  pk Don't use someone else's name when logging
 1.4 02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.3 10-Jun-1993  brezak Add LOG_CONS when openlog().
 1.2 04-Jun-1993  brezak Only cleanup registrations if not started by inetd.
 1.1 03-Jun-1993  brezak Add rpc.rstatd, rpc.rusersd, and rpc.rwalld.
 1.9.8.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.21 03-Jun-2023  lukem bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.20 13-Oct-2019  mrg introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
 1.19 28-Feb-2018  snj branches: 1.19.4;
prune disabled XIDLE support. the required X server extension hasn't been
around for a couple decades now. even if someone wanted to modernize this,
it wouldn't be appropriate for NetBSD, since we don't want programs in base
to be linked against X libs.
 1.18 04-Nov-2002  christos PR/18929: Kimmo Suominen: rpc.rusersd ignores utmpx
 1.17 23-Jan-2000  veego Disable the linking with X11 libraries.
No userland should be linked against X11.
 1.16 22-Oct-1997  lukem use CPPFLAGS instead of CFLAGS
 1.15 08-Oct-1997  mrg branches: 1.15.2;
merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.14 17-Sep-1997  christos Fix WARNS problems. sigsetjmp() was missing an argument.
 1.13 24-Mar-1997  christos - Makefile cleanups
 1.12 30-Aug-1996  thorpej RCS id police.
 1.11 12-Apr-1995  jtc Install manpage as foo(8) as well as rpc.foo(8), a convenient shorthand.
Also make sure that foo and rpc.foo are mentioned in the NAME section.
 1.10 22-Dec-1994  cgd specify man pages the new way.
 1.9 16-Feb-1994  jtc Look for X11 in various likely places.
From Thomas Eberhardt, who adapted it from similar code in gxditview.
 1.8 28-Jan-1994  cgd don't need -lutil
 1.7 21-Nov-1993  brezak Build rnusers XDR's into librpcsvc and use them.
 1.6 21-Nov-1993  brezak Remove support for vers 1 interface. Add vers 3 interface support. Fix ver 2 support to interoperate with Sun's.
 1.5 02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.4 22-Jul-1993  brezak use XIDLE extension (if present)
 1.3 08-Jun-1993  brezak Add man page.
 1.2 04-Jun-1993  brezak No need to link with -lrpc
 1.1 03-Jun-1993  brezak Add rpc.rstatd, rpc.rusersd, and rpc.rwalld.
 1.15.2.1 08-Nov-1997  lukem sync with trunk (approved by thorpej)
 1.19.4.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.9 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.8 15-Jan-2002  wiz Whitespace nits, sort SEE ALSO.
 1.7 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.6 20-Oct-1997  enami Fix .Nm usage.
 1.5 30-Aug-1996  thorpej RCS id police.
 1.4 12-Apr-1995  jtc Install manpage as foo(8) as well as rpc.foo(8), a convenient shorthand.
Also make sure that foo and rpc.foo are mentioned in the NAME section.
 1.3 16-Aug-1993  jtc Touch up manpages.
 1.2 02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.1 08-Jun-1993  brezak Add man page.
 1.29 01-Mar-2018  snj delete now-irrelevant comment
 1.28 28-Feb-2018  snj prune disabled XIDLE support. the required X server extension hasn't been
around for a couple decades now. even if someone wanted to modernize this,
it wouldn't be appropriate for NetBSD, since we don't want programs in base
to be linked against X libs.
 1.27 30-Aug-2011  plunky Apply casts to cases where xdrproc_t is expected but is not
strictly passed, for example because the second argument is
a different kind of pointer.
 1.26 16-Mar-2009  lukem fix WARNS=4 issues.
(arguably usr.bin/who/utmpentry.c::getutentries() could return size_t not int)
 1.25 01-Aug-2005  christos branches: 1.25.28;
Cleanup and make the arrays dynamically resizable. This will help for
only version 3, because version 2 is still artificially limited to MAXUSERS.
 1.24 04-Nov-2002  christos PR/18929: Kimmo Suominen: rpc.rusersd ignores utmpx
 1.23 10-Jan-2001  lukem use LOG_WARNING instead of LOG_ERR for non critical errors
 1.22 03-Jun-2000  fvdl Use TI-RPC interface. ANSIfy.
 1.21 06-Jul-1999  christos branches: 1.21.6;
use syslog instead of fprintf, otherwise no-one will see the error
 1.20 12-Aug-1998  christos fix bugs in getidle() that would cause -1 to be returned as the idle time.
also log when we cannot stat the device to get the idle time.
 1.19 10-Aug-1998  perry bzero->memset, bcopy->memcpy, bcmp->memcmp
 1.18 03-Jul-1998  mrg KNF.
 1.17 01-Apr-1998  kleink Need <time.h> for time() prototype, and rearrange inclusion order a bit.
 1.16 20-Jan-1998  christos PR/4848: Kimmo Suominen: rpc_rusersd tries to open remote host as display
- change LOG_ERR to LOG_DEBUG because xdisplay access fails most
of the time.
- only try the display code if the ut_host field has a :
 1.15 19-Sep-1997  thorpej The "ufp" global wasn't used in any XIDLE code, so don't declare it inside
an #ifdef XIDLE. Instead, declare it as an automatic in each function that
uses it.
 1.14 17-Sep-1997  christos Fix WARNS problems. sigsetjmp() was missing an argument.
 1.13 30-Aug-1996  thorpej RCS id police.
 1.12 14-Dec-1995  thorpej Now that we compile the tree with -Werror, remove an explicit #warning
and replace it with an XXX comment.
 1.11 09-Jul-1995  pk Use `xdrproc_t' to declare xdr_{args,result}. (takes care of PR#1182).
 1.10 24-Jun-1995  pk Make declarations confirm to rpcgen generated prototypes.
 1.9 13-Jan-1995  mycroft General cleanup.
 1.8 23-Dec-1994  cgd be a bit more careful with types, casts, and and function declarations.
 1.7 23-Nov-1993  cgd do the right thing with ifdef, and warn about i386 console hack
 1.6 21-Nov-1993  brezak Remove support for vers 1 interface. Add vers 3 interface support. Fix ver 2 support to interoperate with Sun's.
 1.5 02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.4 16-Jul-1993  brezak Look at correct device for X server idle time.
 1.3 11-Jun-1993  brezak Changes for using XIDLE option.
 1.2 09-Jun-1993  brezak Fix number of args to svcerr_progvers()
 1.1 03-Jun-1993  brezak Add rpc.rstatd, rpc.rusersd, and rpc.rwalld.
 1.21.6.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.25.28.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.3 21-Oct-2009  snj Remove 3rd and 4th clauses in christos' license. OK christos.
 1.2 01-Aug-2005  christos Cleanup and make the arrays dynamically resizable. This will help for
only version 3, because version 2 is still artificially limited to MAXUSERS.
 1.1 17-Sep-1997  christos Oops forgot this.
 1.17 15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.16 09-May-2006  mrg branches: 1.16.10;
change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
 1.15 01-Aug-2005  christos Cleanup and make the arrays dynamically resizable. This will help for
only version 3, because version 2 is still artificially limited to MAXUSERS.
 1.14 03-Jun-2000  fvdl Use sockaddr_storage.
 1.13 03-Jun-2000  fvdl Use TI-RPC interface. ANSIfy.
 1.12 31-Jan-1999  mrg branches: 1.12.8;
do not use LOG_CONS.
 1.11 03-Jul-1998  mrg KNF.
 1.10 17-Sep-1997  christos Fix WARNS problems. sigsetjmp() was missing an argument.
 1.9 30-Aug-1996  thorpej RCS id police.
 1.8 13-Jan-1995  mycroft General cleanup.
 1.7 13-Jan-1995  mycroft Correct calling sequence of getsockname(2).
 1.6 11-Jul-1994  mycroft Fix uninitialized variable.
 1.5 21-Nov-1993  brezak branches: 1.5.2;
Remove support for vers 1 interface. Add vers 3 interface support. Fix ver 2 support to interoperate with Sun's.
 1.4 02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.3 10-Jun-1993  brezak Add LOG_CONS when openlog().
 1.2 04-Jun-1993  brezak Only cleanup registrations if not started by inetd.
 1.1 03-Jun-1993  brezak Add rpc.rstatd, rpc.rusersd, and rpc.rwalld.
 1.5.2.1 12-Jul-1994  cgd fix uninitted varilable, from trunk.
 1.12.8.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.16.10.1 09-Jan-2008  matt sync with HEAD
 1.2 21-Nov-1993  mycroft Clean up deleted files.
 1.1 21-Nov-1993  brezak Remove support for vers 1 interface. Add vers 3 interface support. Fix ver 2 support to interoperate with Sun's.
 1.12 03-Jun-2023  lukem bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.11 13-Oct-2019  mrg introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
 1.10 08-Oct-1997  mrg branches: 1.10.110;
merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.9 17-Sep-1997  christos fix WARNS=1
 1.8 30-Aug-1996  thorpej RCS id police.
 1.7 12-Apr-1995  jtc Install manpage as foo(8) as well as rpc.foo(8), a convenient shorthand.
Also make sure that foo and rpc.foo are mentioned in the NAME section.
 1.6 22-Dec-1994  cgd specify man pages the new way.
 1.5 28-Jan-1994  cgd don't need -lutil
 1.4 02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.3 08-Jun-1993  brezak Add man page.
 1.2 04-Jun-1993  brezak No need to link with -lrpc
 1.1 03-Jun-1993  brezak Add rpc.rstatd, rpc.rusersd, and rpc.rwalld.
 1.10.110.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.10 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.9 29-Sep-2002  wiz Begin new sentences on new lines.
Patch from Robert Elz (kre at munnari oz au).
 1.8 15-Jan-2002  wiz Whitespace nits.
 1.7 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.6 20-Oct-1997  enami Fix .Nm usage.
 1.5 30-Aug-1996  thorpej RCS id police.
 1.4 12-Apr-1995  jtc Install manpage as foo(8) as well as rpc.foo(8), a convenient shorthand.
Also make sure that foo and rpc.foo are mentioned in the NAME section.
 1.3 16-Aug-1993  jtc Touch up manpages.
 1.2 02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.1 08-Jun-1993  brezak Add man page.
 1.23 16-Sep-2011  plunky NULL does not need a cast, here
 1.22 30-Aug-2011  plunky Apply casts to cases where xdrproc_t is expected but is not
strictly passed, for example because the second argument is
a different kind of pointer.
 1.21 29-Aug-2011  joerg Use __dead
 1.20 09-May-2006  mrg change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
 1.19 26-Jul-2003  salo netbsd.org->NetBSD.org
 1.18 14-Jun-2000  cgd sweep of my licenses (userland files w/o only my copyright) for
consistency. (no functional changes)
 1.17 14-Jun-2000  cgd fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well. No functional changes.
 1.16 03-Jun-2000  fvdl Use sockaddr_storage in the call to getsockname, not sockaddr_in.
 1.15 03-Jun-2000  fvdl Use TI-RPC, thus enabling IPv6.
 1.14 31-Jan-1999  mrg branches: 1.14.8;
do not use LOG_CONS.
 1.13 10-Aug-1998  perry bzero->memset, bcopy->memcpy, bcmp->memcmp
 1.12 03-Jul-1998  mrg KNF.
 1.11 17-Sep-1997  christos fix WARNS=1
 1.10 30-Aug-1996  thorpej RCS id police.
 1.9 09-Jul-1995  pk Use `xdrproc_t' to declare xdr_{args,result}. (takes care of PR#1182).
 1.8 24-Jun-1995  pk Conform to rpcgen generated prototypes.
 1.7 13-Jan-1995  mycroft Make sure we reply to the request, so the client will stop sending.
 1.6 13-Jan-1995  mycroft Need syslog.h.
 1.5 13-Jan-1995  mycroft Fix this for the case of not running from inetd. Send error messages to a
useful place. General cleanup.
 1.4 13-Jan-1995  mycroft Correct calling sequence of getsockname(2).
 1.3 23-Dec-1994  cgd be a bit more careful with types, casts, and and function declarations.
 1.2 02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.1 03-Jun-1993  brezak Add rpc.rstatd, rpc.rusersd, and rpc.rwalld.
 1.14.8.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.8 03-Jun-2023  lukem bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.7 13-Oct-2019  mrg introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
 1.6 08-Oct-1997  mrg branches: 1.6.110;
merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.5 17-Sep-1997  christos Fix for WARNS=1
 1.4 30-Aug-1996  thorpej RCS id police.
 1.3 12-Apr-1995  jtc Install manpage as foo(8) as well as rpc.foo(8), a convenient shorthand.
Also make sure that foo and rpc.foo are mentioned in the NAME section.
 1.2 22-Dec-1994  cgd specify man pages the new way.
 1.1 23-Jun-1994  deraadt from <christos@deshaw.com>
 1.6.110.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.10 21-Oct-2009  snj Remove 3rd and 4th clauses in christos' license. OK christos.
 1.9 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.8 15-Jan-2002  wiz Whitespace nits.
 1.7 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.6 08-Jun-1998  lukem Implement a new manual page category ``SECURITY CONSIDERATIONS''
(suggested by mycroft)
 1.5 20-Oct-1997  enami Fix .Nm usage.
 1.4 25-May-1997  cjs PR 3667 from SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp>.
Fix section number for spray(8).
 1.3 30-Aug-1996  thorpej RCS id police.
 1.2 12-Apr-1995  jtc Install manpage as foo(8) as well as rpc.foo(8), a convenient shorthand.
Also make sure that foo and rpc.foo are mentioned in the NAME section.
 1.1 23-Jun-1994  deraadt from <christos@deshaw.com>
 1.18 16-Sep-2011  plunky NULL does not need a cast, here
 1.17 30-Aug-2011  plunky Apply casts to cases where xdrproc_t is expected but is not
strictly passed, for example because the second argument is
a different kind of pointer.
 1.16 29-Aug-2011  joerg Use __dead
 1.15 21-Oct-2009  snj Remove 3rd and 4th clauses in christos' license. OK christos.
 1.14 09-May-2006  mrg change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
 1.13 10-Jan-2001  lukem consistently use exit instead of return in main()
use LOG_WARNING instead of LOG_ERR for non critical errors
 1.12 03-Jun-2000  fvdl Subject to TI-RPC, followed by complete and utter ANSIfication.
 1.11 31-Jan-1999  mrg branches: 1.11.8;
do not use LOG_CONS.
 1.10 03-Jul-1998  mrg KNF.
 1.9 17-Sep-1997  christos Fix for WARNS=1
 1.8 30-Aug-1996  thorpej RCS id police.
 1.7 26-Mar-1995  mycroft __timersub --> timersub
 1.6 13-Jan-1995  mycroft Die quietly when we time out.
 1.5 13-Jan-1995  mycroft Oops.
 1.4 13-Jan-1995  mycroft Only time out if called from inetd. Other cleanup.
 1.3 13-Jan-1995  mycroft Correct calling sequence of getsockname(2).
 1.2 24-Jun-1994  deraadt horrible spacing
 1.1 23-Jun-1994  deraadt from <christos@deshaw.com>
 1.11.8.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.19 16-Aug-2011  christos document non-literal format strings
 1.18 16-Mar-2009  lukem Default to WARNS=4
Exceptions that need a lower level are:
getty ld.elf_so lfs_cleanerd makewhatis telnetd tftpd
hpropd ipropd-master ipropd-slave kadmind kpasswdd
 1.17 27-Mar-2005  christos branches: 1.17.28;
KNF, WARNS == 3. Reported by John Nemeth
 1.16 04-Mar-2005  he branches: 1.16.2;
Introduce PAM_STATIC_LDADD and PAM_STATIC_DPADD. When compiling
with MKPIC=no, possibly because the target does not support shared
libraries, these include libraries required to resolve all symbols
which end up referenced from PAM-using applications. The libraries
presently required are -lcrypt, -lrpcsvc and -lutil.

Add use of these variables which are currently set up to use PAM,
so that they compile when MKPIC=no.

Also, in the telnetd case, reorder the order of the libraries, so
that libtelnet.a comes before -ltermcap and -lutil, again to fix
link error when MKPIC=no.

Discussed with thorpej and christos.
 1.15 20-Feb-2005  christos PAMify.
 1.14 10-Jan-2005  lukem Only compile in IPv6 support if ${USE_INET6} != "no"

MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
 1.13 30-Nov-2002  lukem revert previous; this *DOES* use -lutil
 1.12 30-Nov-2002  lukem don't need -lutil here
 1.11 31-Jan-2000  itojun IPv6 support.
 1.10 24-Jan-2000  itojun declare -DLOGIN_CAP in CPPFLAGS, not in CFLAGS.
 1.9 22-Jan-2000  mjl Login.conf-ify rshd. Heavily inspired by FreeBSD.
 1.8 08-Oct-1997  mrg merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.7 07-Oct-1997  mrg WARNS?=1
 1.6 22-Dec-1994  cgd specify man pages the new way.
 1.5 05-Jun-1994  cgd kill kerberos and stream encryption support, so it's exportable.
 1.4 05-Jun-1994  cgd clean up import, RCS ids
 1.3 28-Jan-1994  cgd don't need -lutil
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 05-Jun-1994  cgd update from 4.4-Lite. no local changes.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.16.2.1 09-Jul-2005  tron Pull up revision 1.17 (requested by lukem in ticket #532):
KNF, WARNS == 3. Reported by John Nemeth
 1.17.28.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.19 03-Jul-2017  wiz Remove workaround for ancient HTML generation code.
 1.18 09-Mar-2005  wiz Bump date for previous, and some minor cleanup while here.
 1.17 09-Mar-2005  hubertf * Add ssh(1), sshd(8) and hosts_access(5) to SEE ALSO list.
(What would one look at for Kerberos?)
* Be a bit more explicit about the security implications of rsh & friends,
as suggested by Steven M. Bellovin and OK'd by Christos Zoulas
 1.16 17-Jul-2004  wiz Code is not using gethostbyaddr any longer, but getnameinfo.
Fix references. Addresses part of PR 26337 by Peter Postma.
 1.15 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.14 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.13 29-Sep-2002  wiz Begin new sentences on new lines.
Patch from Robert Elz (kre at munnari oz au).
 1.12 08-Feb-2002  ross Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
 1.11 15-Jan-2002  wiz Whitespace nits.
 1.10 30-May-2000  itojun document IPv4 mapped address twists.
- ftp(1): treats IPv4 mapped destination as IPv4 peer, not native IPv6 peer.
this does not support network with SIIT translator.
- rshd(8)/rlogind(8): rejects accesses from IPv4 mapped peer, to avoid
possible abuse of IPv4 mapped addr (rshd/rlogind use source address-based
auth so it is important to check the condition).
 1.9 22-Jan-2000  mjl branches: 1.9.2;
Login.conf-ify rshd. Heavily inspired by FreeBSD.
 1.8 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.7 29-Apr-1998  fair fix bad .Xr references
 1.6 20-Oct-1997  enami Fix .Nm usage.
 1.5 07-Oct-1997  mrg WARNS?=1
 1.4 05-Jun-1994  cgd clean up import, RCS ids
 1.3 23-Dec-1993  cgd add '-L' flag, for those of us who are *really* paranoid...
Logs all rsh commands (including failed ones).
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 05-Jun-1994  cgd update from 4.4-Lite. no local changes.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.9.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.51 07-Oct-2017  ryo fix to compile without USE_PAM. (unused variables)
 1.50 14-Jul-2012  darrenr bin/46703: BSD r-commands use wrong source address for stderr
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=46703
Bump libc minor for the addition of rresvport_af_addr()
 1.49 30-Oct-2011  christos branches: 1.49.2;
PR/45542: Henning Petersen: Misplaced parenthesis in rshd.c
 1.48 27-Aug-2011  joerg Use static. Don't manipulate environ directly, just reset it and use
setenv.
 1.47 16-Mar-2009  lukem fix sign-compare issue
 1.46 20-Jul-2008  lukem branches: 1.46.6;
Remove the \n and tabs from the __COPYRIGHT() strings.
 1.45 15-Dec-2007  perry branches: 1.45.6;
convert __attribute__s to applicable cdefs.h macros
 1.44 09-May-2006  mrg branches: 1.44.10;
change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
 1.43 19-Apr-2005  christos check pwd != NULL
 1.42 30-Mar-2005  christos - use getpwnam_r
 1.41 27-Mar-2005  christos KNF, WARNS == 3. Reported by John Nemeth
 1.40 13-Mar-2005  christos branches: 1.40.2;
Handle the regular case too, not only the error case.
 1.39 12-Mar-2005  christos - Don't call pam functions after pam_end().
- Only call wait for our own pid.
- Improve error checking.
- Reorder some code to minimize diffs with FreeBSD.
 1.38 11-Mar-2005  ginsbach Remove unnecessary cast.
 1.37 09-Mar-2005  wiz Sort options.
 1.36 08-Mar-2005  christos Avoid source routing ip options. Described in:
http://www.citi.umich.edu/u/provos/papers/secnet-spoof.txt
 1.35 20-Feb-2005  christos Add missing goto badlogin; noticed by: Hisashi T Fujinaka
 1.34 20-Feb-2005  christos PAMify.
 1.33 16-Nov-2004  itojun NI_WITHSCOPEID was not picked up by IETF standardization process
 1.32 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.31 14-Jun-2003  joff use TCP_NODELAY
 1.30 17-May-2003  itojun string manipulation cleanup
 1.29 03-Mar-2003  dsl Call setsid() before (setusercontext() calls) setlogin() so we don't change
the username of inetd and everyone else that is logged in.
(approved by christos)
 1.28 23-Sep-2002  mycroft null commit
 1.27 23-Sep-2002  itojun poll.h, not sys/poll.h
 1.26 18-Sep-2002  mycroft select() -> poll()
 1.25 18-Mar-2002  mjl ANSIfy.
Lose \n from syslog messages.
strncpy() -> strlcpy().
Correct last arg to execl (NULL, not 0).
(From OpenBSD)
 1.24 24-Sep-2001  wiz va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
 1.23 04-Feb-2001  christos fix nested extern
 1.22 11-Jan-2001  lukem - use SHUT_RDWR instead of 1+1 for the 2nd arg to shutdown()
- use LOG_ERR for fatal errors
- don't use LOG_ODELAY, it's the default
 1.21 09-Nov-2000  itojun do not refer free'ed memory region. KAME PR 302 from ryo@iij.ad.jp
 1.20 10-Oct-2000  is Format string cleanups by sommerfeld.
 1.19 14-Apr-2000  itojun branches: 1.19.4;
reject conneciton attempt from IPv4 mapped address, just in case.
I thought of supporting it, however, rejected due to possible complication.
i prefer the safer side here... (code available, commented out)
 1.18 31-Jan-2000  itojun IPv6 support.
 1.17 22-Jan-2000  mjl Login.conf-ify rshd. Heavily inspired by FreeBSD.
 1.16 10-Aug-1998  perry branches: 1.16.2;
bzero->memset, bcopy->memcpy, bcmp->memcmp
 1.15 26-Jul-1998  mycroft const poisoning.
 1.14 06-Jul-1998  mrg - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
 1.13 28-Feb-1998  enami Cosmetic changes; fix more indentation (just added/deleted white spaces).
 1.12 08-Jan-1998  lukem fix indenting of a block
 1.11 08-Oct-1997  enami Compare a return value of getopt() against -1 instead of EOF.
 1.10 07-Oct-1997  mrg WARNS?=1
 1.9 20-Jan-1995  christos Fix:
Save hostname in a permanent buffer, otherwise ruserok()
can trash it if it calls gethostbyname() or inet_ntoa().
Repeat by:
Add entries in .rhosts and login from a machine that does
not have an entry there. Notice that the error message
in syslog contains the last hostname in .rhosts and not
the original remote hostname.
 1.8 05-Jun-1994  cgd kill kerberos and stream encryption support, so it's exportable.
 1.7 05-Jun-1994  cgd clean up import, RCS ids
 1.6 19-May-1994  pk Add underscore to _check_rhosts_file
 1.5 18-Feb-1994  cgd didn't apply that patch verbatim, and needless to say, i biffed it.
 1.4 18-Feb-1994  cgd fix from vdlinden@fwi.uva.nl (Frank van der Linden) to prevent null deref
 1.3 23-Dec-1993  cgd add '-L' flag, for those of us who are *really* paranoid...
Logs all rsh commands (including failed ones).
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 05-Jun-1994  cgd update from 4.4-Lite. no local changes.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.16.2.1 10-Oct-2000  he Pull up revision 1.20 (via patch, requested by is):
Format string cleanup.
 1.19.4.1 17-Oct-2000  tv Pullup libexec string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.
 1.40.2.3 09-Jul-2005  tron Pull up revision 1.43 (requested by lukem in ticket #532):
check pwd != NULL
 1.40.2.2 09-Jul-2005  tron Pull up revision 1.42 (requested by lukem in ticket #532):
- use getpwnam_r
 1.40.2.1 09-Jul-2005  tron Pull up revision 1.41 (requested by lukem in ticket #532):
KNF, WARNS == 3. Reported by John Nemeth
 1.44.10.1 09-Jan-2008  matt sync with HEAD
 1.45.6.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.46.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.49.2.1 30-Oct-2012  yamt sync with head
 1.13 27-Sep-2008  reed Fix the Document Title of manual page so it our official name (ntalkd).
Install so first file installed matches this correct manual page
name.

(Both manual pages are still installed. And only ntalkd binary is
installed. So no change.)
 1.12 24-Mar-2004  he The MLINKS needs to come before .include <bsd.prog.mk>.
 1.11 24-Mar-2004  fair Add man page link from talkd.8 to ntalkd.8 per PR 13433

We should probably rename all of this back to talkd. XXX
 1.10 19-Sep-2002  lukem use NETBSDSRCDIR as appropriate
 1.9 20-Aug-2002  christos utmpx support
 1.8 08-Oct-1997  mrg merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.7 06-Jul-1997  christos Use WARNS=1
 1.6 29-Jun-1997  christos Install as ntalkd
 1.5 29-Jun-1997  christos - use ttymsg from libutil
- clean warnings
- PR/3778: Eric Fischer: talkd should find the least idle terminal
 1.4 29-Jun-1997  christos Merge in lite-2
 1.3 22-Dec-1994  cgd specify man pages the new way.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.25 16-Mar-2009  lukem fix WARNS=4 issues (const & type mismatches)
 1.24 16-Mar-2009  lukem ANSI KNF
 1.23 04-Mar-2008  dholland branches: 1.23.10;
'struct timezone' belongs in the dustbin of history.
 1.22 04-Mar-2008  dholland fix typo in comment
 1.21 07-Aug-2003  agc branches: 1.21.22; 1.21.28;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.20 22-Apr-2003  itojun backout 1.18 and 1.19
 1.19 22-Apr-2003  itojun free vis_user
 1.18 22-Apr-2003  itojun malloc vis_user (why 1.6 branch has the fix already?)
 1.17 20-Nov-2002  itojun verify strvis() buffer length is enough. make sure string termination before
use. remove extra ntohs() which is not needed. from Charles Blundell
 1.16 25-Sep-2002  itojun Allocate vis_user on the stack instead of using malloc(). This
way we don't have to worry about malloc() failure. Also closes
a memory leak since vis_user was never free()d. Lack of malloc()
checking pointed out by Peter Werner.
from openbsd
 1.15 04-Mar-2002  enami Lineup comment and remove unnecessary whitespaces.
 1.14 04-Mar-2002  enami Use \a instead of embedding raw control-G character.
 1.13 17-Oct-2000  tv Formatting nit: add a space.
 1.12 10-Oct-2000  itojun make sure big_buf is big enough to hold line terminations.
if all the lines have N_CHARS of characters, we will write up
N_CHARS * N_LINES + (3 + 2 * N_LINES) + 1
of bytes.
 1.11 04-Jul-1998  mrg branches: 1.11.2; 1.11.10;
- clean up some more cruft
- support "talkd -l" for extra (syslog(3)) logging
- fix error in previous announce.c change
- use getopt
- add (missing) -d and -l descriptions to man page
 1.10 03-Jul-1998  mrg - use S_IWGRP over 020
- KNF
- ensure we don't overflow a buffer (don't think it would anyway).
- favour snprintf over sprintf (and varargs versions)
 1.9 01-Apr-1998  kleink Need <time.h> for localtime() prototype.
 1.8 29-Jun-1997  christos - use ttymsg from libutil
- clean warnings
- PR/3778: Eric Fischer: talkd should find the least idle terminal
 1.7 29-Jun-1997  christos Merge in lite-2
 1.6 17-Jul-1996  rat Use snprintf(3) when printing into arrays allocated on the stack.
Patch submitted by David Holland <dholland@hcs.HARVARD.EDU>
 1.5 07-Jun-1995  cgd branches: 1.5.6;
typeof(timeval.tv_sec) != time_t
 1.4 23-Dec-1994  cgd stdlib.h for protos
 1.3 21-Dec-1994  glass vis(3)ify remote user name. Fixes bug 589. Fix basically as submitted by matthew green
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.3 29-Apr-1997  tls Import from 4.4BSD-Lite2
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.5.6.1 20-Jul-1996  jtc Pulled up from rev 1.6 by request from rAT
 1.11.10.1 17-Oct-2000  tv Pullup 1.12 [itojun] and 1.13 [releng]:
make sure big_buf is big enough to hold line terminations.
if all the lines have N_CHARS of characters, we will write up
N_CHARS * N_LINES + (3 + 2 * N_LINES) + 1
of bytes.
 1.11.2.1 11-Oct-2000  he Pull up revision 1.12 (requested by itojun):
Make sure big_buf is big enough to hold output.
 1.21.28.1 24-Mar-2008  keiichi sync with head.
 1.21.22.1 23-Mar-2008  matt sync with HEAD
 1.23.10.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.7 21-Oct-2009  snj Remove 3rd and 4th clauses in christos' license. OK christos.
 1.6 16-Mar-2009  lukem fix WARNS=4 issues (const & type mismatches)
 1.5 16-Mar-2009  lukem ANSI KNF
 1.4 08-Jan-2007  christos branches: 1.4.20;
- use getnameinfo instead of gethostbyaddr
- add tsa2sa and use it
 1.3 19-Sep-2002  itojun find_user() in process.c does an unbounded copy into a destination
buffer that is smaller in size than the source buffer.

also, there is no guarantee that any of the string components of
the request packet are null terminated.

in some cases, not all elements of the response buffer are
explicitly set. specifically pad and addr. a talk client can spy to
see which host is talking to which host by sending out regular
packets, to which talkd responds without clearing the addr element.

from xs@kittenz.org
 1.2 04-Jul-1998  mrg branches: 1.2.10; 1.2.12;
- clean up some more cruft
- support "talkd -l" for extra (syslog(3)) logging
- fix error in previous announce.c change
- use getopt
- add (missing) -d and -l descriptions to man page
 1.1 29-Jun-1997  christos - use ttymsg from libutil
- clean warnings
- PR/3778: Eric Fischer: talkd should find the least idle terminal
 1.2.12.1 02-Oct-2002  lukem Pull up revision 1.3 (requested by itojun in ticket #846):
find_user() in process.c does an unbounded copy into a destination
buffer that is smaller in size than the source buffer.
also, there is no guarantee that any of the string components of
the request packet are null terminated.
in some cases, not all elements of the response buffer are
explicitly set. specifically pad and addr. a talk client can spy to
see which host is talking to which host by sending out regular
packets, to which talkd responds without clearing the addr element.
from xs@kittenz.org
 1.2.10.1 19-Sep-2002  itojun libexec/talkd/extern.h 1.3
libexec/talkd/process.c 1.8 via patch
libexec/talkd/talkd.c 1.13-1.14 via patch

Fix buffer overrun.
 1.4.20.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.10 16-Mar-2009  lukem fix WARNS=4 issues (const & type mismatches)
 1.9 16-Mar-2009  lukem ANSI KNF
 1.8 17-Mar-2006  elad branches: 1.8.28;
Fix three off-by-ones found by Coverity. CID 1444, 1445.
 1.7 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.6 04-Jul-1998  mrg - clean up some more cruft
- support "talkd -l" for extra (syslog(3)) logging
- fix error in previous announce.c change
- use getopt
- add (missing) -d and -l descriptions to man page
 1.5 03-Jul-1998  mrg - use S_IWGRP over 020
- KNF
- ensure we don't overflow a buffer (don't think it would anyway).
- favour snprintf over sprintf (and varargs versions)
 1.4 29-Jun-1997  christos - use ttymsg from libutil
- clean warnings
- PR/3778: Eric Fischer: talkd should find the least idle terminal
 1.3 29-Jun-1997  christos Merge in lite-2
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8.28.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.14 16-Mar-2009  lukem fix WARNS=4 issues (const & type mismatches)
 1.13 16-Mar-2009  lukem ANSI KNF
 1.12 08-Jan-2007  christos branches: 1.12.20;
- use getnameinfo instead of gethostbyaddr
- add tsa2sa and use it
 1.11 01-Oct-2004  christos PR/27097: John Klos: Talk daemon does not find additional ttys for
a particular user if the first tty is not writable. This broke in
revision 1.9 when it was strl'ified incorrectly (hi itojun). Thanks
to enami for spotting this.
 1.10 07-Aug-2003  agc branches: 1.10.2;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.9 17-May-2003  itojun strlcat is easier here
 1.8 19-Sep-2002  itojun find_user() in process.c does an unbounded copy into a destination
buffer that is smaller in size than the source buffer.

also, there is no guarantee that any of the string components of
the request packet are null terminated.

in some cases, not all elements of the response buffer are
explicitly set. specifically pad and addr. a talk client can spy to
see which host is talking to which host by sending out regular
packets, to which talkd responds without clearing the addr element.

from xs@kittenz.org
 1.7 20-Aug-2002  christos utmpx support
 1.6 04-Jul-1998  mrg branches: 1.6.10; 1.6.12;
- clean up some more cruft
- support "talkd -l" for extra (syslog(3)) logging
- fix error in previous announce.c change
- use getopt
- add (missing) -d and -l descriptions to man page
 1.5 03-Jul-1998  mrg - use S_IWGRP over 020
- KNF
- ensure we don't overflow a buffer (don't think it would anyway).
- favour snprintf over sprintf (and varargs versions)
 1.4 29-Jun-1997  christos - use ttymsg from libutil
- clean warnings
- PR/3778: Eric Fischer: talkd should find the least idle terminal
 1.3 29-Jun-1997  christos Merge in lite-2
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.12.1 02-Oct-2002  lukem Pull up revision 1.8 (requested by itojun in ticket #846):
find_user() in process.c does an unbounded copy into a destination
buffer that is smaller in size than the source buffer.
also, there is no guarantee that any of the string components of
the request packet are null terminated.
in some cases, not all elements of the response buffer are
explicitly set. specifically pad and addr. a talk client can spy to
see which host is talking to which host by sending out regular
packets, to which talkd responds without clearing the addr element.
from xs@kittenz.org
 1.6.10.1 19-Sep-2002  itojun libexec/talkd/extern.h 1.3
libexec/talkd/process.c 1.8 via patch
libexec/talkd/talkd.c 1.13-1.14 via patch

Fix buffer overrun.
 1.10.2.1 12-Nov-2004  jmc Pullup rev 1.11 (requested by jklos in ticket #960)

Talk daemon does not find additional ttys for particular user if the first tty
is not writable.
 1.12.20.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.11 03-Sep-2015  dholland Remove dead assignment; from Henning Petersen in PR 50196.
 1.10 16-Mar-2009  lukem fix WARNS=4 issues (const & type mismatches)
 1.9 16-Mar-2009  lukem ANSI KNF
 1.8 04-Mar-2008  dholland branches: 1.8.10;
y2038 fixes: time_t != long.
 1.7 04-Mar-2008  dholland 'struct timezone' belongs in the dustbin of history.
 1.6 07-Aug-2003  agc branches: 1.6.22; 1.6.28;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.5 04-Jul-1998  mrg - clean up some more cruft
- support "talkd -l" for extra (syslog(3)) logging
- fix error in previous announce.c change
- use getopt
- add (missing) -d and -l descriptions to man page
 1.4 29-Jun-1997  christos - use ttymsg from libutil
- clean warnings
- PR/3778: Eric Fischer: talkd should find the least idle terminal
 1.3 29-Jun-1997  christos Merge in lite-2
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.28.1 24-Mar-2008  keiichi sync with head.
 1.6.22.1 23-Mar-2008  matt sync with HEAD
 1.8.10.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.11 22-Mar-2010  joerg Use .In instead of .Aq Pa for header files.
 1.10 27-Sep-2008  reed Fix the Document Title of manual page so it our official name (ntalkd).
Install so first file installed matches this correct manual page
name.

(Both manual pages are still installed. And only ntalkd binary is
installed. So no change.)
 1.9 24-Mar-2004  fair Add FILES section to document where the daemon is.

Add some paragraph breaks to make the man page more readable.

Add the history of the talkd -> ntalkd change as I recall it to
the HISTORY section. All of this to answer PR 13433
 1.8 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.7 04-Apr-2001  wiz syslogd(8), not syslog(8).
 1.6 22-Mar-1999  garbled branches: 1.6.10;
More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.5 04-Jul-1998  mrg - clean up some more cruft
- support "talkd -l" for extra (syslog(3)) logging
- fix error in previous announce.c change
- use getopt
- add (missing) -d and -l descriptions to man page
 1.4 20-Oct-1997  enami Fix .Nm usage.
 1.3 29-Jun-1997  christos Merge in lite-2
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.10.1 26-Apr-2001  he Pull up revision 1.7 (requested by wiz):
It's syslogd(8), not syslog(8).
 1.21 16-Mar-2009  lukem ANSI KNF
 1.20 20-Jul-2008  lukem branches: 1.20.6;
Remove the \n and tabs from the __COPYRIGHT() strings.
 1.19 04-Mar-2008  dholland branches: 1.19.4;
y2038 fixes: time_t != long.
 1.18 08-Jan-2007  christos branches: 1.18.4; 1.18.8;
- use getnameinfo instead of gethostbyaddr
- add tsa2sa and use it
 1.17 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.16 20-Nov-2002  itojun verify strvis() buffer length is enough. make sure string termination before
use. remove extra ntohs() which is not needed. from Charles Blundell
 1.15 08-Oct-2002  itojun sa_family on wire format is network byteorder
from Alexander Yurchenko <grange@rt.mipt.ru>
 1.14 19-Sep-2002  itojun find_user() in process.c does an unbounded copy into a destination
buffer that is smaller in size than the source buffer.

also, there is no guarantee that any of the string components of
the request packet are null terminated.

in some cases, not all elements of the response buffer are
explicitly set. specifically pad and addr. a talk client can spy to
see which host is talking to which host by sending out regular
packets, to which talkd responds without clearing the addr element.

from xs@kittenz.org
 1.13 27-Sep-2001  christos branches: 1.13.2;
PR/5631: Rumi Szabolcs: Make talk work without COMPAT43
 1.12 19-Feb-2001  cgd convert to use getprogname()
 1.11 04-Feb-2001  christos fix nested extern
 1.10 06-Jul-1998  mrg branches: 1.10.10;
- use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
 1.9 04-Jul-1998  mrg - clean up some more cruft
- support "talkd -l" for extra (syslog(3)) logging
- fix error in previous announce.c change
- use getopt
- add (missing) -d and -l descriptions to man page
 1.8 03-Jul-1998  mrg - use S_IWGRP over 020
- KNF
- ensure we don't overflow a buffer (don't think it would anyway).
- favour snprintf over sprintf (and varargs versions)
 1.7 29-Jun-1997  christos We are not going to be running as root anymore, so no need to check for that.
 1.6 29-Jun-1997  christos - use ttymsg from libutil
- clean warnings
- PR/3778: Eric Fischer: talkd should find the least idle terminal
 1.5 29-Jun-1997  christos Merge in lite-2
 1.4 29-Jan-1997  explorer Doh! MAXHOSTNAMELEN, not MAXHOSTNAME
 1.3 29-Jan-1997  explorer Allow local hostname to be longer than 32 characters, and make certain it will
fit in the buffer space provided. Also, ensure null termination.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.10.10.1 19-Sep-2002  itojun libexec/talkd/extern.h 1.3
libexec/talkd/process.c 1.8 via patch
libexec/talkd/talkd.c 1.13-1.14 via patch

Fix buffer overrun.
 1.13.2.2 16-Jun-2003  grant Pull up revision 1.16 (requested by itojun in ticket #1001):

verify strvis() buffer length is enough. make sure string termination before
use. remove extra ntohs() which is not needed. from Charles Blundell
 1.13.2.1 02-Oct-2002  lukem Pull up revision 1.14 (requested by itojun in ticket #846):
find_user() in process.c does an unbounded copy into a destination
buffer that is smaller in size than the source buffer.
also, there is no guarantee that any of the string components of
the request packet are null terminated.
in some cases, not all elements of the response buffer are
explicitly set. specifically pad and addr. a talk client can spy to
see which host is talking to which host by sending out regular
packets, to which talkd responds without clearing the addr element.
from xs@kittenz.org
 1.18.8.1 24-Mar-2008  keiichi sync with head.
 1.18.4.1 23-Mar-2008  matt sync with HEAD
 1.19.4.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.20.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.53 25-Feb-2018  mrg add LIBKRB5_LDADD/LIBKRB5_DPADD and their static counterparts
to bsd.prog.mk. use them instead of hard coding various lists
of libraries for krb5.

this fixes static builds.
 1.52 10-Feb-2018  christos We need authentication || encryption even when we are not building
kerberos. They are needed for telnet_net_write() which is used in libtelnet.
 1.51 21-May-2017  riastradh Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.
 1.50 28-Jan-2017  christos kerberos needs sqlite3
 1.49 09-Jan-2012  christos branches: 1.49.2; 1.49.8; 1.49.14; 1.49.18; 1.49.20; 1.49.22; 1.49.26; 1.49.28;
PR/45805: Borodin Oleg: telnet/telnetd with -DAUTHENTICATION -DENCRYPTION
(rfc2941)
- separate MKCRYPTO from USE_KERBEROS
- WARNS=4
 1.48 24-Apr-2011  elric branches: 1.48.4;
We no longer need -I/usr/include/krb5.
 1.47 15-Apr-2011  elric Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.
 1.46 03-Feb-2010  roy Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@
 1.45 16-Mar-2009  lukem Default to WARNS=4
Exceptions that need a lower level are:
getty ld.elf_so lfs_cleanerd makewhatis telnetd tftpd
hpropd ipropd-master ipropd-slave kadmind kpasswdd
 1.44 20-Mar-2006  christos branches: 1.44.28;
Goodbye KerberosIV
 1.43 04-Mar-2005  he Add -lcrypt to link lines for applications using -lkrb5, so that they
link successfully when MKPIC=no, as is always the case for our ports
which do not support shared libraries.

Discussed with thorpej and christos.
 1.42 04-Mar-2005  he Introduce PAM_STATIC_LDADD and PAM_STATIC_DPADD. When compiling
with MKPIC=no, possibly because the target does not support shared
libraries, these include libraries required to resolve all symbols
which end up referenced from PAM-using applications. The libraries
presently required are -lcrypt, -lrpcsvc and -lutil.

Add use of these variables which are currently set up to use PAM,
so that they compile when MKPIC=no.

Also, in the telnetd case, reorder the order of the libraries, so
that libtelnet.a comes before -ltermcap and -lutil, again to fix
link error when MKPIC=no.

Discussed with thorpej and christos.
 1.41 20-Feb-2005  christos Add pam glue.
 1.40 22-Dec-2004  lha Move linking with libdes to the common kerberos section since
libtelnet depends on the old des functions.

From Jukka Salmi in NetBSD pr misc/28727
 1.39 13-Dec-2003  chs rearrange lib stuff so that these link on non-shared-lib platforms.
 1.38 11-Dec-2003  dyoung Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)
 1.37 05-Aug-2003  lha libkrb depend on libdes
libkrb5 depends on libasn1 and libcrypto
 1.36 23-Jul-2003  itojun split MKKERBEROS4 from MKKERBEROS. based on work by lha at stacken.kth.se
(build confirmed with both MKKERBEROS4=yes and MKKERBEROS4=no)
 1.35 16-Jul-2003  itojun stop installing install libtelnet. build under lib/libtelnet and reference
it from usr.bin/telnet and libexec/telnetd.
(reason for separate build: compiler flags)
 1.34 14-Jul-2003  itojun remove unneeded #ifdefs. improves readability.
(confirmed that exact same *.o is produced)
 1.33 20-Aug-2002  christos PR/17999: FUKAUMI Naoki: Support wtmpx entries.
 1.32 19-Aug-2002  lukem Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path
 1.31 22-Mar-2002  thorpej Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.
 1.30 30-Dec-2000  sommerfeld ${MAKE} print-objdir -> ${PRINTOBJDIR}
 1.29 26-Oct-2000  garbled Remove direct calls to "make" and replace with ${MAKE}
 1.28 03-Aug-2000  assar forced: previous was really: remove libvers, it's not being used
 1.27 03-Aug-2000  assar link against the not-installed libvers
 1.26 03-Aug-2000  assar update build infrastructure for heimdal 0.3a
 1.25 23-Jun-2000  thorpej Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.
 1.24 22-Jun-2000  thorpej Bring the telnet situation back into better shape. Specifically,
pull in just about all of the differences from the crypto-us telnet
suite (which includes Kerberos 4 and connection encryption support).
Also bring in the Kerberos 5 support from the Heimdal telnet, and
frob a little so that it can work with the non-Heimdal telnet suite.

There is still some work left to do, specifically:
- Add Heimdal's ticket forwarding support to the Berkeley Kerberos 4
module.
- Add connection encryption support to the Heimdal Kerberos 5
module. Hints on this can be taken from the MIT Kerberos 5
module which still exists in crypto-us.

However, even with the shortcomings listed above, this is a
better situation than using the stock Heimdal telnet suite,
which does not understand the IPSec policy stuff, and is also
based on much older code which contains bugs that we have already
fixed in the NetBSD sources.
 1.23 20-Jun-2000  thorpej branches: 1.23.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.
 1.22 20-Jul-1999  mrg branches: 1.22.6;
optionally include CRYPTOPATH Makefile.frag files.
 1.21 12-Jul-1999  thorpej Use bsd.crypto.mk.
 1.20 02-Jul-1999  itojun dual-stack telnetd.
 1.19 07-Jun-1999  thorpej Treat crypto-us like domestic.
 1.18 12-Feb-1999  dean Fix for PR 5821
- s/SecurID/SECURELOGIN/g and define SECURELOGIN in Makefile
- update man page to reflect S/Key and Kerboros authentication used
not SecurID
 1.17 03-Jan-1999  cjs Descend on obj, as well as clean, cleandir, etc.
 1.16 05-Sep-1998  lukem distclean is a synonym for cleandir
 1.15 05-Aug-1998  perry Fix for pr 5904 from Zdenek Salvet; we now use openpty() to get a pty.
 1.14 27-Jul-1998  scottr Ack! I misunderstood a problem reported to me. We don't need to do
anything special to handle obj directories; bsd.man.mk does it for us
already. Back out that part of the previos commit.
 1.13 27-Jul-1998  scottr Fix two problems with my previous change:

- We must include bsd.own.mk to get EXPORTABLE_SYSTEM from mk.conf.
Noted by Bernd Ernesti.
- If we're only generating man pages, we should deal with obj
directories as appropriate. Both Perry Metzger and I found this
independently.

This completes the tasks necessary to close PR 5519.
 1.12 22-Jul-1998  scottr Unlike other domestic bits, telnet and telnetd are never built as a part
of the domestic build process. No domestic program actually builds its
own man pages but instead relies on those built in the exportable tree.
The result is missing telnet(1) and telnet(8) pages.

Fix this problem descending into the telnet and telnetd directories
regardless of whether we're doing an exportable build or not. Once there,
we generate only the man pages if we're building a non-exportable system.
 1.11 22-Oct-1997  lukem use CPPFLAGS instead of CFLAGS
 1.10 16-Oct-1997  mikel branches: 1.10.2;
add commented CFLAGS for AUTHENTICATION, remove list of crypto files
 1.9 08-Oct-1997  mrg merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.8 08-Oct-1997  mrg WARNS?=1. RCS ids.
 1.7 24-Mar-1997  christos - Makefile cleanups
 1.6 24-Feb-1996  jtk update to telnetd from 95.10.23 version. Includes Borman's scrub_env()
to keep stuff out of the environment on the way to exec (we already have
one in the state machine that keeps them from arriving over the wire, so
this should be redundant, but it'll make any further updates easier to
have it present).

also, RCS Id police.
 1.5 22-Dec-1994  cgd specify man pages the new way.
 1.4 25-Feb-1994  cgd new telnetd from ftp.cray.com. Encryption support ripped out, pending
figuring out what to do about it...
 1.3 01-Aug-1993  mycroft Add RCS identifiers.
 1.2 21-Mar-1993  cgd after 0.2.2 "stable" patches applied
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 24-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.10.2.1 08-Nov-1997  lukem sync with trunk (approved by thorpej)
 1.22.6.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.23.2.3 24-Jun-2000  thorpej Update from trunk:
Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.
 1.23.2.2 22-Jun-2000  thorpej Update from trunk:
Bring the telnet situation back into better shape. Specifically,
pull in just about all of the differences from the crypto-us telnet
suite (which includes Kerberos 4 and connection encryption support).
Also bring in the Kerberos 5 support from the Heimdal telnet, and
frob a little so that it can work with the non-Heimdal telnet suite.

There is still some work left to do, specifically:
- Add Heimdal's ticket forwarding support to the Berkeley Kerberos 4
module.
- Add connection encryption support to the Heimdal Kerberos 5
module. Hints on this can be taken from the MIT Kerberos 5
module which still exists in crypto-us.

However, even with the shortcomings listed above, this is a
better situation than using the stock Heimdal telnet suite,
which does not understand the IPSec policy stuff, and is also
based on much older code which contains bugs that we have already
fixed in the NetBSD sources.
 1.23.2.1 20-Jun-2000  thorpej file Makefile was added on branch netbsd-1-5 on 2000-06-22 07:09:04 +0000
 1.44.28.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.48.4.1 17-Apr-2012  yamt sync with head
 1.49.28.1 20-Aug-2017  snj Pull up following revision(s) (requested by mrg in ticket #1493):
crypto/external/bsd/heimdal/Makefile.rules.inc: up to 1.8
crypto/external/bsd/heimdal/bin/Makefile.inc: up to 1.3
crypto/external/bsd/heimdal/bin/kcc/Makefile: up to 1.3
crypto/external/bsd/heimdal/dist/LICENSE: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/NEWS: up to 1.2
crypto/external/bsd/heimdal/dist/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/README.fast: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/admin/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/admin/add.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/change.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/copy.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/get.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/ktutil-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/admin/ktutil.1: up to 1.2
crypto/external/bsd/heimdal/dist/admin/ktutil.8 delete
crypto/external/bsd/heimdal/dist/admin/ktutil.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/list.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/purge.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/remove.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/rename.c: up to 1.2
crypto/external/bsd/heimdal/dist/appveyor.yml: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/autogen.sh: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/base/Makefile.am delete
crypto/external/bsd/heimdal/dist/base/NTMakefile delete
crypto/external/bsd/heimdal/dist/base/array.c delete
crypto/external/bsd/heimdal/dist/base/baselocl.h delete
crypto/external/bsd/heimdal/dist/base/bool.c delete
crypto/external/bsd/heimdal/dist/base/dict.c delete
crypto/external/bsd/heimdal/dist/base/heimbase.c delete
crypto/external/bsd/heimdal/dist/base/heimbase.h delete
crypto/external/bsd/heimdal/dist/base/heimbasepriv.h delete
crypto/external/bsd/heimdal/dist/base/heimqueue.h delete
crypto/external/bsd/heimdal/dist/base/json.c delete
crypto/external/bsd/heimdal/dist/base/null.c delete
crypto/external/bsd/heimdal/dist/base/number.c delete
crypto/external/bsd/heimdal/dist/base/roken_rename.h delete
crypto/external/bsd/heimdal/dist/base/string.c delete
crypto/external/bsd/heimdal/dist/base/test_base.c delete
crypto/external/bsd/heimdal/dist/base/version-script.map delete
crypto/external/bsd/heimdal/dist/cf/Makefile.am.common: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/check-compile-et.m4: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/check-x.m4 delete
crypto/external/bsd/heimdal/dist/cf/check-xau.m4 delete
crypto/external/bsd/heimdal/dist/cf/crypto.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/db.m4: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/dispatch.m4: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/dlopen.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/find-func-no-libs2.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/install-catman.sh: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/krb-ipv6.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/krb-prog-perl.m4: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/cf/make-proto.pl: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/maybe-valgrind.sh: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/misc.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/proto-compat.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/pthreads.m4: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/retsigtype.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/roken-frag.m4: up to 1.2
crypto/external/bsd/heimdal/dist/cf/roken-h-process.pl: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/sunos.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/test-package.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/valgrind-suppressions: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/version-script.m4: up to 1.2
crypto/external/bsd/heimdal/dist/cf/wflags.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/with-all.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/configure.ac: up to 1.2
crypto/external/bsd/heimdal/dist/doc/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/doc/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/ack.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/base.din: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/base.hhp: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/copyright.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/doxytmpl.dxy: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/heimdal.hhp: up to 1.2
crypto/external/bsd/heimdal/dist/doc/hx509.hhp: up to 1.2
crypto/external/bsd/heimdal/dist/doc/migration.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/oid.txt delete
crypto/external/bsd/heimdal/dist/doc/setup.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/vars.tin: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/include/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/include/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/include/bits.c: up to 1.2
crypto/external/bsd/heimdal/dist/include/config.h.w32: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/include/crypto-headers.h: up to 1.2
crypto/external/bsd/heimdal/dist/include/hcrypto/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/include/heim_threads.h: up to 1.2
crypto/external/bsd/heimdal/dist/include/krb5-types.cross: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kadmin/add-random-users.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/add_enctype.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/ank.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/check.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/cpw.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/del_enctype.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/dump.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/ext.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/get.c: up to 1.4
crypto/external/bsd/heimdal/dist/kadmin/init.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadm_conn.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadmin-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/kadmin/kadmin.1: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadmin.8 delete
crypto/external/bsd/heimdal/dist/kadmin/kadmin.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadmin_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadmind.8: up to 1.5
crypto/external/bsd/heimdal/dist/kadmin/kadmind.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/load.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/mod.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/rpc.c: up to 1.3
crypto/external/bsd/heimdal/dist/kadmin/server.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/stash.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/util.c: up to 1.4
crypto/external/bsd/heimdal/dist/kcm/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kcm/acquire.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/cache.c: up to 1.3
crypto/external/bsd/heimdal/dist/kcm/client.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/config.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/events.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/kcm.8: up to 1.5
crypto/external/bsd/heimdal/dist/kcm/kcm_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/log.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/main.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/protocol.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/renew.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kdc/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kdc/config.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/connect.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/default_config.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/digest-service.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/digest.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/fast.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/headers.h: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/hprop.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/hprop.h: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/hpropd.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kdc-replay.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kdc-tester.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kdc.8: up to 1.5
crypto/external/bsd/heimdal/dist/kdc/kdc.h: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kdc_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kerberos5.c: up to 1.7
crypto/external/bsd/heimdal/dist/kdc/krb5tgs.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kstash.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kx509.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/log.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/main.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/misc.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/mit_dump.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/pkinit-ec.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/pkinit.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/process.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/string2key.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/windc.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/windc_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/kpasswd/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kpasswd/kpasswd-generator.c: up to 1.2
crypto/external/bsd/heimdal/dist/kpasswd/kpasswd.c: up to 1.2
crypto/external/bsd/heimdal/dist/kpasswd/kpasswd_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kpasswd/kpasswdd.c: up to 1.4
crypto/external/bsd/heimdal/dist/krb5.conf: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kuser/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kuser/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kuser/copy_cred_cache.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/generate-requests.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/heimtools-commands.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/kuser/heimtools-version.rc: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/kuser/heimtools.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kcc-commands.in delete
crypto/external/bsd/heimdal/dist/kuser/kcc-version.rc delete
crypto/external/bsd/heimdal/dist/kuser/kcc.c delete
crypto/external/bsd/heimdal/dist/kuser/kcpytkt.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kdecode_ticket.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kdeltkt.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kdigest.8: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kdigest.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kgetcred.1: up to 1.4
crypto/external/bsd/heimdal/dist/kuser/kgetcred.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kimpersonate.8: up to 1.5
crypto/external/bsd/heimdal/dist/kuser/kimpersonate.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kinit.1: up to 1.4
crypto/external/bsd/heimdal/dist/kuser/kinit.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/klist.c: up to 1.4
crypto/external/bsd/heimdal/dist/kuser/kswitch.1: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kswitch.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kuser_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kverify.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/45/NTMakefile delete
crypto/external/bsd/heimdal/dist/lib/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/asn1/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/asn1/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1-common.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1-template.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1_gen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1_print.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1parse.y: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-ber.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-common.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-der.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-gen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-template.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-timegm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_cmp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_copy.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_format.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_free.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_get.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_length.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_put.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/digest.asn1: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/asn1/extra.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/fuzzer.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen.c: up to 1.5
crypto/external/bsd/heimdal/dist/lib/asn1/gen_copy.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_decode.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_encode.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_free.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_length.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_locl.h: up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/gen_seq.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_template.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/hash.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/krb5.asn1: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/asn1/lex.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/lex.l: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/libasn1-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/asn1/main.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/pkinit.asn1: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/asn1/pku2u.asn1: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/asn1/rfc2459.asn1: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/asn1/roken_rename.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/symbol.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/symbol.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/template.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/test.asn1: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/asn1/test.opt: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/asn1/timegm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/Makefile.am: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/base/NTMakefile: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/base/array.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/baselocl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/bool.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/bsearch.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/data.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/db.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/dict.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/dll.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/heimbase.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/heimbase.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/heimbasepriv.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/heimqueue.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/json.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/null.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/number.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/roken_rename.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/string.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/test_base.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/version-script.map: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/com_err/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/com_err/com_err.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/com_err/com_err.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/com_err/com_right.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/com_err/compile_et.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/com_err/error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/com_err/lex.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/gssapi/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/gen-oid.pl: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/gss-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/gss_acquire_cred.3: up to 1.4
crypto/external/bsd/heimdal/dist/lib/gssapi/gssapi/gssapi.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/gssapi/gssapi_krb5.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/gssapi_mech.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/gsstool.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/8003.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/accept_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/acquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/add_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/aeap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/arcfour.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/authorize_localname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/canonicalize_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/cfx.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/compare_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/context_time.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/copy_ccache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/creds.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/decapsulate.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/display_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/duplicate_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/export_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/export_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/external.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/get_mic.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/gsskrb5_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/import_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/import_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/init_sec_context.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_cred_by_mech.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_cred_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_mechs_for_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_sec_context_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/pname_to_uid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/process_context_token.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/set_sec_context_option.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/store_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/test_cfx.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/unwrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/verify_mic.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/wrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/libgssapi-exports.def: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/compat.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/doxygen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_accept_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_acquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_acquire_cred_ext.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_acquire_cred_with_password.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_add_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_add_cred_with_password.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_aeap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_authorize_localname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_canonicalize_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_compare_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_context_time.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_delete_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_display_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_display_status.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_duplicate_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_export_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_get_mic.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_import_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_indicate_mechs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_init_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_cred_by_mech.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_cred_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_mechs_for_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_sec_context_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_mech_switch.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_mo.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_pname_to_uid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_process_context_token.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_store_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_unwrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_verify_mic.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_wrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_wrap_size_limit.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gssapi.asn1: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/accept_sec_context.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/acquire_cred.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/add_cred.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/canonicalize_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/compare_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/display_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/duplicate_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/export_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/init_sec_context.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/inquire_cred.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/inquire_cred_by_mech.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/inquire_mechs_for_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/accept_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/acquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/add_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/canonicalize_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/compare_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/context_time.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/creds.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/crypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/display_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/duplicate_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/export_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/external.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/init_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/inquire_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/inquire_cred_by_mech.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/inquire_mechs_for_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/inquire_sec_context_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/kdc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/process_context_token.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/oid.txt: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/accept_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/compat.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/context_stubs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/cred_stubs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/external.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/init_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_add_store_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_ntlm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/version-script.map: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/aes.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/bn.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/bn.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/camellia-ntt.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/camellia.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/des.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/destest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dh-ltm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dh-tfm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dh.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dh.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dllmain.c delete
crypto/external/bsd/heimdal/dist/lib/hcrypto/dsa.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dsa.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/ec.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/engine.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/engine.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-cc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-cc.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-crypt.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-hcrypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-openssl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-openssl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-pkcs11.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-pkcs11.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-w32.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-wincng.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-wincng.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/example_evp_cipher.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/hash.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/hmac.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libhcrypto-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_find_prime.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_isprime.c delete
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_prime_next_prime.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_shrink.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/timer.asm: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/gen.pl: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/logs/README: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/pics/makefile: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/pretty.build: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/tommath.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/tommath_class.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md2.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/md2.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md4.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md4.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md5.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md5.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md5crypt_test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/mdtest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/passwd_dlg.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/pkcs12.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/pkcs5.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-egd.c delete
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-fortuna.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-timer.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-unix.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/randi.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rc2.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rc2test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rc4.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rctest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rijndael-alg-fst.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rnd_keys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa-gmp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa-ltm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa-tfm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/sha.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/sha.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/sha256.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/sha512.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_bn.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_bulk.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_cipher.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_crypto.in: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_dh.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_engine_dso.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_hmac.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_pkcs12.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_pkcs5.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_rsa.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/ui.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/undef.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/validate.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/hdb/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/db.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/db3.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/dbinfo.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/ext.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-ldap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mdb.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mitdb.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-sqlite.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb.asn1: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/hdb.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hdb/hdb.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb.schema: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/hdb_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/hdb_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/keys.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hdb/keytab.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/libhdb-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hdb/mkey.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/print.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/test_dbinfo.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/test_hdbkeys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/test_hdbplugin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/test_mkey.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/heimdal/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/heimdal/dllmain.c delete
crypto/external/bsd/heimdal/dist/lib/hx509/ChangeLog: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ca.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/cert.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hx509/cms.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/crypto-ec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/crypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/data/mkcert.sh: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/openssl.cnf: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r1TestCA.cert.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r1TestCA.key.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r1TestCA.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestClient.cert.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestClient.key.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestClient.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestServer.cert.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestServer.key.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestServer.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r1TestCA.cert.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r1TestCA.key.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r1TestCA.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestClient.cert.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestClient.key.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestClient.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestServer.cert.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestServer.key.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestServer.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/doxygen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/env.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/file.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/hx509.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/hx509_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/hx_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/hxtool-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/hxtool.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/keyset.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_dir.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_file.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_keychain.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_null.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_p11.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_p12.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/libhx509-exports.def: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/lock.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/print.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ref/pkcs11.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/revoke.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hx509/sel-lex.l: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/softp11.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/test_ca.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_cert.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_chain.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_cms.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/test_nist_pkcs12.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_soft_pkcs11.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ipc/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ipc/client.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/heim-ipc.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/server.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/tc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/ts-http.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/ts.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/kadm5/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/acl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ad.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/kadm5/admin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/bump_pw_expire.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/chpass_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/chpass_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/client_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/common_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/context_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/create_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/create_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/default_keys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/delete_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/delete_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/destroy_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/destroy_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ent_setup.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/flush.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/flush_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/flush_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/free.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/get_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/get_princs_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/get_princs_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/get_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/init_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/init_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop-log.8: up to 1.6
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop-log.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop.8: up to 1.5
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_master.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_slave.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/kadm5_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/kadm5_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/keys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/libkadm5srv-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/log.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/marshall.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/modify_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/modify_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/password_quality.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/private.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/privs_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/privs_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/randkey_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/randkey_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/rename_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/rename_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/send_recv.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/server_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/set_keys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/set_modifier.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/setkey3_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/test_pw_quality.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/version-script-client.map: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/kadm5/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/kafs/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/kafs/afskrb5.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/afssys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/kafs.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/kafs_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/rxkad_kdf.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kdfs/k5dfspag.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/krb5/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/krb5/acache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/acl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/addr_families.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/aes-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/an2ln_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/aname_to_localname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/asn1_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/auth_context.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/build_auth.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/cache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/changepw.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/config_file.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/config_reg.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/constants.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/context.c: up to 1.6
crypto/external/bsd/heimdal/dist/lib/krb5/copy_host_realm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/creds.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-aes-sha1.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-aes-sha2.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-aes.c delete
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-algs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-arcfour.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des-common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des3.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-evp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-null.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-pk.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-stubs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/data.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/db_plugin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/db_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/dcache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/deprecated.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/derived-key-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/digest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/dll.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/doxygen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/enomem.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/error_string.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/expand_hostname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/expand_path.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/fast.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/fcache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/generate_subkey.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_addrs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_default_principal.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_default_realm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_for_creds.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_host_realm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_in_tkt.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/heim_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/krb5/init_creds.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/init_creds_pw.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/kcm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/kerberos.8: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keyblock.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab_any.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab_file.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab_keyfile.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab_memory.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5-plugin.7: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5.conf.5: up to 1.6
crypto/external/bsd/heimdal/dist/lib/krb5/krb5.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_auth_context.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_c_make_checksum.3: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_digest.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_get_creds.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_get_init_creds.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_parse_name.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_principal.3: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_set_default_realm.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_timeofday.3: up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/krbhst.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/kuserok.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/kuserok_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/libkrb5-exports.def.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/krb5/locate_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/log.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mcache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/misc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mit_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mk_error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mk_priv.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mk_rep.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mk_req_ext.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/n-fold-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/n-fold.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/net_read.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pac.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/padata.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pcache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pkinit-ec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pkinit.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/plugin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/principal.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pseudo-random-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_priv.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_rep.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_req.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_safe.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/recvauth.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/replay.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-aes-sha1.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-aes-sha2.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-aes.c delete
crypto/external/bsd/heimdal/dist/lib/krb5/salt-arcfour.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-des.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-des3.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/scache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/send_to_kdc.c: up to 1.7
crypto/external/bsd/heimdal/dist/lib/krb5/send_to_kdc_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/sendauth.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/set_default_realm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/sp800-108-kdf.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store-int.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store-int.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store_emem.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store_fd.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store_mem.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store_sock.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/string-to-key-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_alname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_canon.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_cc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_crypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_crypto_wrapping.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_expand_toks.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_fx.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_kuserok.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_pknistkdf.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/test_plugin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_rfc3961.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_set_kvno0.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_store.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_time.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/ticket.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/transited.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/verify_init.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/verify_krb5_conf.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/verify_user.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/version-script.map: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/warn.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ntlm/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/ntlm/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/ntlm/apop.c: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/digest.c: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/heim-auth.h: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/heimntlm.h: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/ntlm.c: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/ntlm_err.et: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/ntlm/test_commonauth.c: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/test_ntlm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/otp/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/otp/otp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/otp/otp_challenge.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/otp/otp_db.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/otp/otp_parse.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/otp/otp_print.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/otp/otp_verify.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/otp/otptest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/ChangeLog: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/roken/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/roken/base64-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/base64.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/base64.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/bswap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/cloexec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/ct.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/daemon.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/detach.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/dirent.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/dlfcn.hin: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/roken/dlfcn_w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/dumpdata.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/err.hin: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getarg.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getarg.c: up to 1.5
crypto/external/bsd/heimdal/dist/lib/roken/getcap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getxxyyy.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/glob.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/hex-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/issuid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/memset_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/mkdir.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/ndbm_wrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/parse_bytes-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/parse_time-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/parse_time.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/realloc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/resolve-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/resolve.c: up to 1.5
crypto/external/bsd/heimdal/dist/lib/roken/rkpty.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/roken-common.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/roken.awk: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/roken/roken.h.in: up to 1.4
crypto/external/bsd/heimdal/dist/lib/roken/roken_gethostby.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/rtbl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/rtbl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/simple_exec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/simple_exec_w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/sleep.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/snprintf-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/snprintf.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/socket.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/stdint.hin: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/roken/strtoll.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/strtoull.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/test-detach.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/test-mem.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/tsearch.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/roken/win32_alloc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/write_pid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/sl/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/sl/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/sl/sl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/sl/sl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/sl/slc-gram.y: up to 1.2
crypto/external/bsd/heimdal/dist/lib/vers/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/vers/print_version.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/wind/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/wind/bidi.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/combining.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/errorlist.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/gen-bidi.py: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/wind/gen-combining.py: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/wind/gen-errorlist.py: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/wind/gen-normalize.py: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/wind/libwind-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/wind/map.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/normalize.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/test-normalize.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/test-utf8.c: up to 1.2
crypto/external/bsd/heimdal/dist/packages/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/packages/mac/Resources/English.lproj/Welcome.rtf: up to 1.2
crypto/external/bsd/heimdal/dist/packages/mac/mac.sh: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/packages/windows/NTMakefile: up to 1.2
crypto/external/bsd/heimdal/dist/packages/windows/assembly/Heimdal.Kerberos.manifest.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/packages/windows/assembly/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/packages/windows/assembly/policy.Heimdal.Kerberos.in: up to 1.2
crypto/external/bsd/heimdal/dist/packages/windows/installer/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-assemblies.wxs: up to 1.2
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-command.wxs: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-gss.wxs: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-installer.wxs: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-policy.wxs: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/packages/windows/installer/images/Heimdal_banner.bmp: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/images/Heimdal_banner.png: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/images/Heimdal_dialog.bmp: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/images/Heimdal_dialog.png: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/sdk/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/po/heimdal_krb5/heimdal_krb5.pot: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/po/heimdal_krb5/sv_SE.po: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/bin/Makefile.am: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/bin/intr.c: up to 1.2
crypto/external/bsd/heimdal/dist/tests/bin/setup-env.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/can/check-can.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/can/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/can/mit-pkinit-20070607.xf: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/can/test_can.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/db/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/db/add-modify-delete.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/db/check-aliases.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/db/check-dbinfo.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/db/have-db.in: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/db/krb5-mit.conf.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/db/krb5.conf.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/db/loaddump-db.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/gss/check-basic.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/check-context.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/check-gssmask.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/check-ntlm.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/check-spnego.in: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/gss/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/java/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/java/check-kinit.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/java/jaas.conf: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/java/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/an2ln-db.txt: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-authz.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-canon.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-cc.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-delegation.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-des.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-digest.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/check-fast.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-hdb-mitdb.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-iprop.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-kadmin.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/check-kdc.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/check-kinit.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-kpasswdd.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-pkinit.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-referral.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/check-tester.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-uu.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/hdb-mitdb: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/hdb-mitdb.kadm5: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/hdb-mitdb.mkey: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/heimdal.acl: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/k5login/foo: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/kdc-tester1.json: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/kdc-tester2.json: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/kdc-tester3.json: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/kdc-tester4.json.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-authz.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-authz2.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-canon.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-canon2.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-hdb-mitdb.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-pkinit.conf.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/krb5.conf.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/krb5.conf.keys.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/leaks-kill.sh: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/wait-kdc.sh: up to 1.2
crypto/external/bsd/heimdal/dist/tests/ldap/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/ldap/check-ldap.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/ldap/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/ldap/slapd-init.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/ldap/slapd.conf: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/plugin/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/plugin/check-pac.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/plugin/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/plugin/windc.c: up to 1.2
crypto/external/bsd/heimdal/dist/tools/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tools/heimdal-gssapi.pc.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tools/heimdal-kadm-client.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/heimdal-kadm-server.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/heimdal-krb5.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/kadm-client.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/kadm-server.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/kafs.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/krb5-config.1: up to 1.2
crypto/external/bsd/heimdal/dist/tools/krb5-config.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tools/krb5-gssapi.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/krb5.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/windows/NTMakefile.config: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/windows/NTMakefile.version: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/windows/NTMakefile.w32: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/windows/README delete
crypto/external/bsd/heimdal/dist/windows/README.md: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/windows/maint.el delete
crypto/external/bsd/heimdal/dist/windows/version.rc: up to 1.1.1.2
crypto/external/bsd/heimdal/heimdal2netbsd: up to 1.8
crypto/external/bsd/heimdal/include/config.h: up to 1.8
crypto/external/bsd/heimdal/include/der-private.h: up to 1.2
crypto/external/bsd/heimdal/include/der-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/gsskrb5-private.h: up to 1.3
crypto/external/bsd/heimdal/include/hdb-private.h: up to 1.2
crypto/external/bsd/heimdal/include/hdb-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/heimntlm-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/hx509-private.h: up to 1.3
crypto/external/bsd/heimdal/include/hx509-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/kadm5-private.h: up to 1.2
crypto/external/bsd/heimdal/include/kadm5-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/kcm-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/kdc-private.h: up to 1.3
crypto/external/bsd/heimdal/include/kdc-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/krb5-private.h: up to 1.3
crypto/external/bsd/heimdal/include/krb5-protos.h: up to 1.4
crypto/external/bsd/heimdal/include/krb5-types.h: up to 1.7
crypto/external/bsd/heimdal/include/ntlm-private.h: up to 1.3
crypto/external/bsd/heimdal/include/roken.h: up to 1.7
crypto/external/bsd/heimdal/include/spnego-private.h: up to 1.2
crypto/external/bsd/heimdal/include/version.h: up to 1.3
crypto/external/bsd/heimdal/lib/libasn1/Makefile: up to 1.5
crypto/external/bsd/heimdal/lib/libasn1/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libcom_err/compile_et/Makefile: up to 1.4
crypto/external/bsd/heimdal/lib/libcom_err/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libgssapi/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libhdb/Makefile: up to 1.4
crypto/external/bsd/heimdal/lib/libhdb/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libheimbase/Makefile: up to 1.2
crypto/external/bsd/heimdal/lib/libheimbase/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libheimntlm/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libhx509/Makefile: up to 1.5
crypto/external/bsd/heimdal/lib/libhx509/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkadm5clnt/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkadm5srv/Makefile: up to 1.4
crypto/external/bsd/heimdal/lib/libkadm5srv/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkafs/Makefile: up to 1.3
crypto/external/bsd/heimdal/lib/libkafs/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkdc/Makefile: up to 1.3
crypto/external/bsd/heimdal/lib/libkdc/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkrb5/Makefile: up to 1.11
crypto/external/bsd/heimdal/lib/libkrb5/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libroken/Makefile: up to 1.2
crypto/external/bsd/heimdal/lib/libroken/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libsl/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libsl/slc/Makefile: up to 1.4
crypto/external/bsd/heimdal/lib/libwind/shlib_version: up to 1.2
crypto/external/bsd/heimdal/libexec/Makefile.inc: up to 1.5
crypto/external/bsd/heimdal/sbin/Makefile.inc: up to 1.4
crypto/external/bsd/heimdal/sbin/kadmin/Makefile: up to 1.3
crypto/external/bsd/heimdal/sbin/ktutil/Makefile: up to 1.3
crypto/external/bsd/openssh/bin/ssh/Makefile: revision 1.11
crypto/external/bsd/openssh/bin/sshd/Makefile: revision 1.15
distrib/sets/lists/base/ad.aarch64: patch
distrib/sets/lists/base/ad.arm: patch
distrib/sets/lists/base/ad.mips: patch
distrib/sets/lists/base/ad.powerpc: patch
distrib/sets/lists/base/md.amd64: patch
distrib/sets/lists/base/md.sparc64: patch
distrib/sets/lists/base/shl.mi: revision 1.798 via patch
distrib/sets/lists/debug/ad.aarch64: patch
distrib/sets/lists/debug/ad.arm: patch
distrib/sets/lists/debug/ad.mips: patch
distrib/sets/lists/debug/ad.powerpc: patch
distrib/sets/lists/debug/md.amd64: patch
distrib/sets/lists/debug/md.sparc64: patch
distrib/sets/lists/debug/shl.mi: revision 1.157 via patch
external/bsd/dhcp/Makefile.inc: revision 1.17
libexec/telnetd/Makefile: revision 1.50
usr.bin/passwd/Makefile: revision 1.45
usr.bin/telnet/Makefile: revision 1.51
usr.sbin/racoon/Makefile: revision 1.28
Update Heimdal to 7.1, fixing CVE-2016-2400.
 1.49.26.1 21-Apr-2017  bouyer Sync with HEAD
 1.49.22.1 20-Mar-2017  pgoyette Sync with HEAD
 1.49.20.1 20-Aug-2017  snj Pull up following revision(s) (requested by mrg in ticket #1493):
crypto/external/bsd/heimdal/Makefile.rules.inc: up to 1.8
crypto/external/bsd/heimdal/bin/Makefile.inc: up to 1.3
crypto/external/bsd/heimdal/bin/kcc/Makefile: up to 1.3
crypto/external/bsd/heimdal/dist/LICENSE: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/NEWS: up to 1.2
crypto/external/bsd/heimdal/dist/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/README.fast: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/admin/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/admin/add.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/change.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/copy.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/get.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/ktutil-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/admin/ktutil.1: up to 1.2
crypto/external/bsd/heimdal/dist/admin/ktutil.8 delete
crypto/external/bsd/heimdal/dist/admin/ktutil.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/list.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/purge.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/remove.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/rename.c: up to 1.2
crypto/external/bsd/heimdal/dist/appveyor.yml: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/autogen.sh: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/base/Makefile.am delete
crypto/external/bsd/heimdal/dist/base/NTMakefile delete
crypto/external/bsd/heimdal/dist/base/array.c delete
crypto/external/bsd/heimdal/dist/base/baselocl.h delete
crypto/external/bsd/heimdal/dist/base/bool.c delete
crypto/external/bsd/heimdal/dist/base/dict.c delete
crypto/external/bsd/heimdal/dist/base/heimbase.c delete
crypto/external/bsd/heimdal/dist/base/heimbase.h delete
crypto/external/bsd/heimdal/dist/base/heimbasepriv.h delete
crypto/external/bsd/heimdal/dist/base/heimqueue.h delete
crypto/external/bsd/heimdal/dist/base/json.c delete
crypto/external/bsd/heimdal/dist/base/null.c delete
crypto/external/bsd/heimdal/dist/base/number.c delete
crypto/external/bsd/heimdal/dist/base/roken_rename.h delete
crypto/external/bsd/heimdal/dist/base/string.c delete
crypto/external/bsd/heimdal/dist/base/test_base.c delete
crypto/external/bsd/heimdal/dist/base/version-script.map delete
crypto/external/bsd/heimdal/dist/cf/Makefile.am.common: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/check-compile-et.m4: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/check-x.m4 delete
crypto/external/bsd/heimdal/dist/cf/check-xau.m4 delete
crypto/external/bsd/heimdal/dist/cf/crypto.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/db.m4: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/dispatch.m4: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/dlopen.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/find-func-no-libs2.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/install-catman.sh: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/krb-ipv6.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/krb-prog-perl.m4: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/cf/make-proto.pl: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/maybe-valgrind.sh: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/misc.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/proto-compat.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/pthreads.m4: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/retsigtype.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/roken-frag.m4: up to 1.2
crypto/external/bsd/heimdal/dist/cf/roken-h-process.pl: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/sunos.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/test-package.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/valgrind-suppressions: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/version-script.m4: up to 1.2
crypto/external/bsd/heimdal/dist/cf/wflags.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/with-all.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/configure.ac: up to 1.2
crypto/external/bsd/heimdal/dist/doc/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/doc/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/ack.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/base.din: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/base.hhp: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/copyright.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/doxytmpl.dxy: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/heimdal.hhp: up to 1.2
crypto/external/bsd/heimdal/dist/doc/hx509.hhp: up to 1.2
crypto/external/bsd/heimdal/dist/doc/migration.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/oid.txt delete
crypto/external/bsd/heimdal/dist/doc/setup.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/vars.tin: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/include/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/include/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/include/bits.c: up to 1.2
crypto/external/bsd/heimdal/dist/include/config.h.w32: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/include/crypto-headers.h: up to 1.2
crypto/external/bsd/heimdal/dist/include/hcrypto/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/include/heim_threads.h: up to 1.2
crypto/external/bsd/heimdal/dist/include/krb5-types.cross: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kadmin/add-random-users.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/add_enctype.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/ank.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/check.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/cpw.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/del_enctype.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/dump.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/ext.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/get.c: up to 1.4
crypto/external/bsd/heimdal/dist/kadmin/init.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadm_conn.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadmin-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/kadmin/kadmin.1: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadmin.8 delete
crypto/external/bsd/heimdal/dist/kadmin/kadmin.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadmin_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadmind.8: up to 1.5
crypto/external/bsd/heimdal/dist/kadmin/kadmind.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/load.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/mod.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/rpc.c: up to 1.3
crypto/external/bsd/heimdal/dist/kadmin/server.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/stash.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/util.c: up to 1.4
crypto/external/bsd/heimdal/dist/kcm/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kcm/acquire.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/cache.c: up to 1.3
crypto/external/bsd/heimdal/dist/kcm/client.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/config.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/events.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/kcm.8: up to 1.5
crypto/external/bsd/heimdal/dist/kcm/kcm_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/log.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/main.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/protocol.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/renew.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kdc/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kdc/config.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/connect.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/default_config.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/digest-service.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/digest.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/fast.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/headers.h: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/hprop.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/hprop.h: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/hpropd.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kdc-replay.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kdc-tester.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kdc.8: up to 1.5
crypto/external/bsd/heimdal/dist/kdc/kdc.h: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kdc_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kerberos5.c: up to 1.7
crypto/external/bsd/heimdal/dist/kdc/krb5tgs.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kstash.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kx509.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/log.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/main.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/misc.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/mit_dump.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/pkinit-ec.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/pkinit.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/process.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/string2key.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/windc.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/windc_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/kpasswd/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kpasswd/kpasswd-generator.c: up to 1.2
crypto/external/bsd/heimdal/dist/kpasswd/kpasswd.c: up to 1.2
crypto/external/bsd/heimdal/dist/kpasswd/kpasswd_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kpasswd/kpasswdd.c: up to 1.4
crypto/external/bsd/heimdal/dist/krb5.conf: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kuser/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kuser/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kuser/copy_cred_cache.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/generate-requests.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/heimtools-commands.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/kuser/heimtools-version.rc: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/kuser/heimtools.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kcc-commands.in delete
crypto/external/bsd/heimdal/dist/kuser/kcc-version.rc delete
crypto/external/bsd/heimdal/dist/kuser/kcc.c delete
crypto/external/bsd/heimdal/dist/kuser/kcpytkt.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kdecode_ticket.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kdeltkt.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kdigest.8: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kdigest.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kgetcred.1: up to 1.4
crypto/external/bsd/heimdal/dist/kuser/kgetcred.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kimpersonate.8: up to 1.5
crypto/external/bsd/heimdal/dist/kuser/kimpersonate.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kinit.1: up to 1.4
crypto/external/bsd/heimdal/dist/kuser/kinit.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/klist.c: up to 1.4
crypto/external/bsd/heimdal/dist/kuser/kswitch.1: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kswitch.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kuser_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kverify.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/45/NTMakefile delete
crypto/external/bsd/heimdal/dist/lib/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/asn1/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/asn1/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1-common.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1-template.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1_gen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1_print.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1parse.y: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-ber.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-common.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-der.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-gen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-template.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-timegm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_cmp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_copy.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_format.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_free.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_get.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_length.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_put.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/digest.asn1: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/asn1/extra.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/fuzzer.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen.c: up to 1.5
crypto/external/bsd/heimdal/dist/lib/asn1/gen_copy.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_decode.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_encode.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_free.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_length.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_locl.h: up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/gen_seq.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_template.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/hash.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/krb5.asn1: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/asn1/lex.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/lex.l: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/libasn1-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/asn1/main.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/pkinit.asn1: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/asn1/pku2u.asn1: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/asn1/rfc2459.asn1: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/asn1/roken_rename.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/symbol.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/symbol.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/template.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/test.asn1: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/asn1/test.opt: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/asn1/timegm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/Makefile.am: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/base/NTMakefile: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/base/array.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/baselocl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/bool.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/bsearch.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/data.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/db.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/dict.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/dll.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/heimbase.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/heimbase.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/heimbasepriv.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/heimqueue.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/json.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/null.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/number.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/roken_rename.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/string.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/test_base.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/version-script.map: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/com_err/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/com_err/com_err.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/com_err/com_err.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/com_err/com_right.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/com_err/compile_et.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/com_err/error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/com_err/lex.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/gssapi/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/gen-oid.pl: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/gss-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/gss_acquire_cred.3: up to 1.4
crypto/external/bsd/heimdal/dist/lib/gssapi/gssapi/gssapi.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/gssapi/gssapi_krb5.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/gssapi_mech.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/gsstool.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/8003.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/accept_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/acquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/add_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/aeap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/arcfour.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/authorize_localname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/canonicalize_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/cfx.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/compare_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/context_time.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/copy_ccache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/creds.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/decapsulate.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/display_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/duplicate_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/export_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/export_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/external.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/get_mic.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/gsskrb5_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/import_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/import_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/init_sec_context.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_cred_by_mech.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_cred_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_mechs_for_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_sec_context_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/pname_to_uid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/process_context_token.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/set_sec_context_option.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/store_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/test_cfx.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/unwrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/verify_mic.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/wrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/libgssapi-exports.def: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/compat.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/doxygen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_accept_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_acquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_acquire_cred_ext.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_acquire_cred_with_password.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_add_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_add_cred_with_password.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_aeap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_authorize_localname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_canonicalize_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_compare_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_context_time.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_delete_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_display_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_display_status.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_duplicate_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_export_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_get_mic.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_import_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_indicate_mechs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_init_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_cred_by_mech.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_cred_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_mechs_for_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_sec_context_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_mech_switch.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_mo.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_pname_to_uid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_process_context_token.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_store_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_unwrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_verify_mic.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_wrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_wrap_size_limit.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gssapi.asn1: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/accept_sec_context.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/acquire_cred.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/add_cred.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/canonicalize_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/compare_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/display_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/duplicate_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/export_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/init_sec_context.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/inquire_cred.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/inquire_cred_by_mech.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/inquire_mechs_for_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/accept_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/acquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/add_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/canonicalize_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/compare_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/context_time.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/creds.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/crypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/display_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/duplicate_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/export_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/external.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/init_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/inquire_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/inquire_cred_by_mech.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/inquire_mechs_for_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/inquire_sec_context_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/kdc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/process_context_token.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/oid.txt: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/accept_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/compat.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/context_stubs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/cred_stubs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/external.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/init_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_add_store_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_ntlm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/version-script.map: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/aes.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/bn.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/bn.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/camellia-ntt.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/camellia.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/des.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/destest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dh-ltm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dh-tfm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dh.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dh.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dllmain.c delete
crypto/external/bsd/heimdal/dist/lib/hcrypto/dsa.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dsa.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/ec.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/engine.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/engine.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-cc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-cc.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-crypt.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-hcrypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-openssl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-openssl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-pkcs11.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-pkcs11.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-w32.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-wincng.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-wincng.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/example_evp_cipher.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/hash.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/hmac.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libhcrypto-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_find_prime.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_isprime.c delete
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_prime_next_prime.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_shrink.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/timer.asm: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/gen.pl: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/logs/README: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/pics/makefile: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/pretty.build: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/tommath.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/tommath_class.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md2.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/md2.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md4.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md4.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md5.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md5.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md5crypt_test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/mdtest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/passwd_dlg.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/pkcs12.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/pkcs5.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-egd.c delete
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-fortuna.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-timer.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-unix.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/randi.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rc2.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rc2test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rc4.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rctest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rijndael-alg-fst.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rnd_keys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa-gmp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa-ltm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa-tfm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/sha.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/sha.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/sha256.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/sha512.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_bn.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_bulk.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_cipher.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_crypto.in: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_dh.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_engine_dso.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_hmac.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_pkcs12.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_pkcs5.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_rsa.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/ui.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/undef.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/validate.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/hdb/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/db.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/db3.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/dbinfo.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/ext.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-ldap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mdb.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mitdb.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-sqlite.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb.asn1: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/hdb.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hdb/hdb.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb.schema: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/hdb_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/hdb_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/keys.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hdb/keytab.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/libhdb-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hdb/mkey.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/print.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/test_dbinfo.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/test_hdbkeys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/test_hdbplugin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/test_mkey.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/heimdal/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/heimdal/dllmain.c delete
crypto/external/bsd/heimdal/dist/lib/hx509/ChangeLog: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ca.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/cert.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hx509/cms.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/crypto-ec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/crypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/data/mkcert.sh: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/openssl.cnf: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r1TestCA.cert.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r1TestCA.key.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r1TestCA.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestClient.cert.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestClient.key.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestClient.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestServer.cert.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestServer.key.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestServer.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r1TestCA.cert.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r1TestCA.key.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r1TestCA.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestClient.cert.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestClient.key.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestClient.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestServer.cert.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestServer.key.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestServer.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/doxygen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/env.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/file.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/hx509.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/hx509_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/hx_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/hxtool-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/hxtool.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/keyset.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_dir.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_file.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_keychain.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_null.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_p11.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_p12.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/libhx509-exports.def: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/lock.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/print.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ref/pkcs11.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/revoke.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hx509/sel-lex.l: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/softp11.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/test_ca.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_cert.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_chain.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_cms.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/test_nist_pkcs12.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_soft_pkcs11.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ipc/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ipc/client.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/heim-ipc.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/server.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/tc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/ts-http.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/ts.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/kadm5/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/acl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ad.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/kadm5/admin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/bump_pw_expire.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/chpass_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/chpass_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/client_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/common_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/context_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/create_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/create_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/default_keys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/delete_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/delete_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/destroy_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/destroy_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ent_setup.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/flush.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/flush_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/flush_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/free.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/get_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/get_princs_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/get_princs_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/get_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/init_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/init_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop-log.8: up to 1.6
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop-log.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop.8: up to 1.5
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_master.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_slave.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/kadm5_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/kadm5_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/keys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/libkadm5srv-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/log.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/marshall.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/modify_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/modify_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/password_quality.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/private.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/privs_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/privs_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/randkey_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/randkey_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/rename_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/rename_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/send_recv.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/server_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/set_keys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/set_modifier.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/setkey3_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/test_pw_quality.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/version-script-client.map: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/kadm5/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/kafs/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/kafs/afskrb5.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/afssys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/kafs.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/kafs_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/rxkad_kdf.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kdfs/k5dfspag.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/krb5/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/krb5/acache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/acl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/addr_families.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/aes-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/an2ln_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/aname_to_localname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/asn1_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/auth_context.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/build_auth.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/cache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/changepw.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/config_file.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/config_reg.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/constants.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/context.c: up to 1.6
crypto/external/bsd/heimdal/dist/lib/krb5/copy_host_realm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/creds.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-aes-sha1.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-aes-sha2.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-aes.c delete
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-algs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-arcfour.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des-common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des3.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-evp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-null.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-pk.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-stubs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/data.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/db_plugin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/db_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/dcache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/deprecated.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/derived-key-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/digest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/dll.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/doxygen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/enomem.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/error_string.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/expand_hostname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/expand_path.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/fast.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/fcache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/generate_subkey.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_addrs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_default_principal.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_default_realm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_for_creds.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_host_realm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_in_tkt.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/heim_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/krb5/init_creds.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/init_creds_pw.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/kcm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/kerberos.8: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keyblock.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab_any.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab_file.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab_keyfile.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab_memory.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5-plugin.7: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5.conf.5: up to 1.6
crypto/external/bsd/heimdal/dist/lib/krb5/krb5.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_auth_context.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_c_make_checksum.3: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_digest.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_get_creds.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_get_init_creds.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_parse_name.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_principal.3: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_set_default_realm.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_timeofday.3: up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/krbhst.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/kuserok.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/kuserok_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/libkrb5-exports.def.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/krb5/locate_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/log.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mcache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/misc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mit_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mk_error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mk_priv.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mk_rep.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mk_req_ext.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/n-fold-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/n-fold.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/net_read.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pac.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/padata.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pcache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pkinit-ec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pkinit.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/plugin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/principal.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pseudo-random-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_priv.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_rep.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_req.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_safe.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/recvauth.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/replay.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-aes-sha1.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-aes-sha2.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-aes.c delete
crypto/external/bsd/heimdal/dist/lib/krb5/salt-arcfour.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-des.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-des3.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/scache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/send_to_kdc.c: up to 1.7
crypto/external/bsd/heimdal/dist/lib/krb5/send_to_kdc_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/sendauth.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/set_default_realm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/sp800-108-kdf.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store-int.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store-int.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store_emem.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store_fd.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store_mem.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store_sock.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/string-to-key-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_alname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_canon.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_cc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_crypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_crypto_wrapping.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_expand_toks.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_fx.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_kuserok.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_pknistkdf.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/test_plugin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_rfc3961.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_set_kvno0.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_store.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_time.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/ticket.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/transited.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/verify_init.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/verify_krb5_conf.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/verify_user.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/version-script.map: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/warn.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ntlm/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/ntlm/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/ntlm/apop.c: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/digest.c: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/heim-auth.h: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/heimntlm.h: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/ntlm.c: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/ntlm_err.et: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/ntlm/test_commonauth.c: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/test_ntlm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/otp/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/otp/otp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/otp/otp_challenge.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/otp/otp_db.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/otp/otp_parse.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/otp/otp_print.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/otp/otp_verify.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/otp/otptest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/ChangeLog: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/roken/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/roken/base64-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/base64.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/base64.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/bswap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/cloexec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/ct.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/daemon.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/detach.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/dirent.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/dlfcn.hin: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/roken/dlfcn_w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/dumpdata.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/err.hin: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getarg.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getarg.c: up to 1.5
crypto/external/bsd/heimdal/dist/lib/roken/getcap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getxxyyy.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/glob.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/hex-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/issuid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/memset_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/mkdir.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/ndbm_wrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/parse_bytes-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/parse_time-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/parse_time.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/realloc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/resolve-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/resolve.c: up to 1.5
crypto/external/bsd/heimdal/dist/lib/roken/rkpty.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/roken-common.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/roken.awk: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/roken/roken.h.in: up to 1.4
crypto/external/bsd/heimdal/dist/lib/roken/roken_gethostby.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/rtbl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/rtbl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/simple_exec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/simple_exec_w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/sleep.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/snprintf-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/snprintf.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/socket.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/stdint.hin: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/roken/strtoll.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/strtoull.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/test-detach.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/test-mem.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/tsearch.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/roken/win32_alloc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/write_pid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/sl/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/sl/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/sl/sl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/sl/sl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/sl/slc-gram.y: up to 1.2
crypto/external/bsd/heimdal/dist/lib/vers/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/vers/print_version.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/wind/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/wind/bidi.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/combining.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/errorlist.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/gen-bidi.py: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/wind/gen-combining.py: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/wind/gen-errorlist.py: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/wind/gen-normalize.py: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/wind/libwind-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/wind/map.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/normalize.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/test-normalize.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/test-utf8.c: up to 1.2
crypto/external/bsd/heimdal/dist/packages/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/packages/mac/Resources/English.lproj/Welcome.rtf: up to 1.2
crypto/external/bsd/heimdal/dist/packages/mac/mac.sh: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/packages/windows/NTMakefile: up to 1.2
crypto/external/bsd/heimdal/dist/packages/windows/assembly/Heimdal.Kerberos.manifest.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/packages/windows/assembly/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/packages/windows/assembly/policy.Heimdal.Kerberos.in: up to 1.2
crypto/external/bsd/heimdal/dist/packages/windows/installer/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-assemblies.wxs: up to 1.2
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-command.wxs: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-gss.wxs: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-installer.wxs: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-policy.wxs: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/packages/windows/installer/images/Heimdal_banner.bmp: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/images/Heimdal_banner.png: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/images/Heimdal_dialog.bmp: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/images/Heimdal_dialog.png: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/sdk/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/po/heimdal_krb5/heimdal_krb5.pot: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/po/heimdal_krb5/sv_SE.po: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/bin/Makefile.am: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/bin/intr.c: up to 1.2
crypto/external/bsd/heimdal/dist/tests/bin/setup-env.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/can/check-can.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/can/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/can/mit-pkinit-20070607.xf: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/can/test_can.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/db/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/db/add-modify-delete.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/db/check-aliases.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/db/check-dbinfo.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/db/have-db.in: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/db/krb5-mit.conf.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/db/krb5.conf.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/db/loaddump-db.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/gss/check-basic.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/check-context.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/check-gssmask.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/check-ntlm.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/check-spnego.in: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/gss/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/java/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/java/check-kinit.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/java/jaas.conf: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/java/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/an2ln-db.txt: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-authz.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-canon.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-cc.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-delegation.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-des.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-digest.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/check-fast.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-hdb-mitdb.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-iprop.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-kadmin.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/check-kdc.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/check-kinit.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-kpasswdd.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-pkinit.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-referral.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/check-tester.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-uu.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/hdb-mitdb: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/hdb-mitdb.kadm5: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/hdb-mitdb.mkey: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/heimdal.acl: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/k5login/foo: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/kdc-tester1.json: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/kdc-tester2.json: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/kdc-tester3.json: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/kdc-tester4.json.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-authz.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-authz2.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-canon.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-canon2.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-hdb-mitdb.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-pkinit.conf.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/krb5.conf.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/krb5.conf.keys.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/leaks-kill.sh: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/wait-kdc.sh: up to 1.2
crypto/external/bsd/heimdal/dist/tests/ldap/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/ldap/check-ldap.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/ldap/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/ldap/slapd-init.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/ldap/slapd.conf: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/plugin/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/plugin/check-pac.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/plugin/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/plugin/windc.c: up to 1.2
crypto/external/bsd/heimdal/dist/tools/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tools/heimdal-gssapi.pc.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tools/heimdal-kadm-client.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/heimdal-kadm-server.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/heimdal-krb5.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/kadm-client.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/kadm-server.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/kafs.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/krb5-config.1: up to 1.2
crypto/external/bsd/heimdal/dist/tools/krb5-config.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tools/krb5-gssapi.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/krb5.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/windows/NTMakefile.config: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/windows/NTMakefile.version: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/windows/NTMakefile.w32: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/windows/README delete
crypto/external/bsd/heimdal/dist/windows/README.md: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/windows/maint.el delete
crypto/external/bsd/heimdal/dist/windows/version.rc: up to 1.1.1.2
crypto/external/bsd/heimdal/heimdal2netbsd: up to 1.8
crypto/external/bsd/heimdal/include/config.h: up to 1.8
crypto/external/bsd/heimdal/include/der-private.h: up to 1.2
crypto/external/bsd/heimdal/include/der-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/gsskrb5-private.h: up to 1.3
crypto/external/bsd/heimdal/include/hdb-private.h: up to 1.2
crypto/external/bsd/heimdal/include/hdb-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/heimntlm-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/hx509-private.h: up to 1.3
crypto/external/bsd/heimdal/include/hx509-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/kadm5-private.h: up to 1.2
crypto/external/bsd/heimdal/include/kadm5-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/kcm-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/kdc-private.h: up to 1.3
crypto/external/bsd/heimdal/include/kdc-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/krb5-private.h: up to 1.3
crypto/external/bsd/heimdal/include/krb5-protos.h: up to 1.4
crypto/external/bsd/heimdal/include/krb5-types.h: up to 1.7
crypto/external/bsd/heimdal/include/ntlm-private.h: up to 1.3
crypto/external/bsd/heimdal/include/roken.h: up to 1.7
crypto/external/bsd/heimdal/include/spnego-private.h: up to 1.2
crypto/external/bsd/heimdal/include/version.h: up to 1.3
crypto/external/bsd/heimdal/lib/libasn1/Makefile: up to 1.5
crypto/external/bsd/heimdal/lib/libasn1/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libcom_err/compile_et/Makefile: up to 1.4
crypto/external/bsd/heimdal/lib/libcom_err/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libgssapi/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libhdb/Makefile: up to 1.4
crypto/external/bsd/heimdal/lib/libhdb/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libheimbase/Makefile: up to 1.2
crypto/external/bsd/heimdal/lib/libheimbase/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libheimntlm/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libhx509/Makefile: up to 1.5
crypto/external/bsd/heimdal/lib/libhx509/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkadm5clnt/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkadm5srv/Makefile: up to 1.4
crypto/external/bsd/heimdal/lib/libkadm5srv/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkafs/Makefile: up to 1.3
crypto/external/bsd/heimdal/lib/libkafs/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkdc/Makefile: up to 1.3
crypto/external/bsd/heimdal/lib/libkdc/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkrb5/Makefile: up to 1.11
crypto/external/bsd/heimdal/lib/libkrb5/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libroken/Makefile: up to 1.2
crypto/external/bsd/heimdal/lib/libroken/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libsl/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libsl/slc/Makefile: up to 1.4
crypto/external/bsd/heimdal/lib/libwind/shlib_version: up to 1.2
crypto/external/bsd/heimdal/libexec/Makefile.inc: up to 1.5
crypto/external/bsd/heimdal/sbin/Makefile.inc: up to 1.4
crypto/external/bsd/heimdal/sbin/kadmin/Makefile: up to 1.3
crypto/external/bsd/heimdal/sbin/ktutil/Makefile: up to 1.3
crypto/external/bsd/openssh/bin/ssh/Makefile: revision 1.11
crypto/external/bsd/openssh/bin/sshd/Makefile: revision 1.15
distrib/sets/lists/base/ad.aarch64: patch
distrib/sets/lists/base/ad.arm: patch
distrib/sets/lists/base/ad.mips: patch
distrib/sets/lists/base/ad.powerpc: patch
distrib/sets/lists/base/md.amd64: patch
distrib/sets/lists/base/md.sparc64: patch
distrib/sets/lists/base/shl.mi: revision 1.798 via patch
distrib/sets/lists/debug/ad.aarch64: patch
distrib/sets/lists/debug/ad.arm: patch
distrib/sets/lists/debug/ad.mips: patch
distrib/sets/lists/debug/ad.powerpc: patch
distrib/sets/lists/debug/md.amd64: patch
distrib/sets/lists/debug/md.sparc64: patch
distrib/sets/lists/debug/shl.mi: revision 1.157 via patch
external/bsd/dhcp/Makefile.inc: revision 1.17
libexec/telnetd/Makefile: revision 1.50
usr.bin/passwd/Makefile: revision 1.45
usr.bin/telnet/Makefile: revision 1.51
usr.sbin/racoon/Makefile: revision 1.28
Update Heimdal to 7.1, fixing CVE-2016-2400.
 1.49.18.1 21-Aug-2017  snj Pull up following revision(s) (requested by mrg in ticket #1493):
crypto/external/bsd/openssh/bin/ssh/Makefile: revision 1.11
usr.bin/passwd/Makefile: revision 1.45
external/bsd/dhcp/Makefile.inc: revision 1.17
crypto/external/bsd/openssh/bin/sshd/Makefile: revision 1.15
usr.bin/telnet/Makefile: revision 1.51
usr.sbin/racoon/Makefile: revision 1.28
libexec/telnetd/Makefile: revision 1.50
krb5 needs sqlite3 now
kerberos needs sqlite3
add sqlite3
add sqlite3
add sqlite3
add sqlite3
 1.49.14.1 30-Aug-2017  snj Pull up following revision(s) (requested by mrg in ticket #1493):
crypto/external/bsd/heimdal/Makefile.inc: up to 1.3
crypto/external/bsd/heimdal/Makefile.rules.inc: up to 1.8
crypto/external/bsd/heimdal/bin/Makefile: up to 1.2
crypto/external/bsd/heimdal/bin/Makefile.inc: up to 1.3
crypto/external/bsd/heimdal/bin/kcc/Makefile: up to 1.3
crypto/external/bsd/heimdal/bin/krb5-config/Makefile: up to 1.3
crypto/external/bsd/heimdal/bin/kvno/Makefile: up to 1.1
crypto/external/bsd/heimdal/bin/kvno/kvno.1: up to 1.1
crypto/external/bsd/heimdal/dist/LICENSE: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/NEWS: up to 1.2
crypto/external/bsd/heimdal/dist/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/README.fast: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/admin/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/admin/add.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/change.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/get.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/ktutil-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/admin/ktutil.1: up to 1.2
crypto/external/bsd/heimdal/dist/admin/ktutil.8 delete
crypto/external/bsd/heimdal/dist/admin/ktutil.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/list.c: up to 1.2
crypto/external/bsd/heimdal/dist/appveyor.yml: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/autogen.sh: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/base/Makefile.am delete
crypto/external/bsd/heimdal/dist/base/NTMakefile delete
crypto/external/bsd/heimdal/dist/base/array.c delete
crypto/external/bsd/heimdal/dist/base/baselocl.h delete
crypto/external/bsd/heimdal/dist/base/bool.c delete
crypto/external/bsd/heimdal/dist/base/dict.c delete
crypto/external/bsd/heimdal/dist/base/heimbase.c delete
crypto/external/bsd/heimdal/dist/base/heimbase.h delete
crypto/external/bsd/heimdal/dist/base/heimbasepriv.h delete
crypto/external/bsd/heimdal/dist/base/heimqueue.h delete
crypto/external/bsd/heimdal/dist/base/json.c delete
crypto/external/bsd/heimdal/dist/base/null.c delete
crypto/external/bsd/heimdal/dist/base/number.c delete
crypto/external/bsd/heimdal/dist/base/roken_rename.h delete
crypto/external/bsd/heimdal/dist/base/string.c delete
crypto/external/bsd/heimdal/dist/base/test_base.c delete
crypto/external/bsd/heimdal/dist/base/version-script.map delete
crypto/external/bsd/heimdal/dist/cf/Makefile.am.common: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/check-compile-et.m4: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/check-getpwnam_r-posix.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/check-man.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/check-x.m4 delete
crypto/external/bsd/heimdal/dist/cf/check-xau.m4 delete
crypto/external/bsd/heimdal/dist/cf/crypto.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/db.m4: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/dispatch.m4: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/dlopen.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/find-func-no-libs2.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/install-catman.sh: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/krb-ipv6.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/krb-prog-perl.m4: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/cf/make-proto.pl: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/maybe-valgrind.sh: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/misc.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/proto-compat.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/pthreads.m4: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/retsigtype.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/roken-frag.m4: up to 1.2
crypto/external/bsd/heimdal/dist/cf/roken-h-process.pl: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/sunos.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/test-package.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/valgrind-suppressions: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/version-script.m4: up to 1.2
crypto/external/bsd/heimdal/dist/cf/wflags.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/with-all.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/configure.ac: up to 1.2
crypto/external/bsd/heimdal/dist/doc/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/doc/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/ack.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/base.din: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/base.hhp: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/copyright.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/doxytmpl.dxy: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/heimdal.hhp: up to 1.2
crypto/external/bsd/heimdal/dist/doc/heimdal.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/hx509.hhp: up to 1.2
crypto/external/bsd/heimdal/dist/doc/hx509.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/intro.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/kerberos4.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/migration.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/oid.txt delete
crypto/external/bsd/heimdal/dist/doc/setup.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/vars.tin: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/whatis.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/win2k.texi: up to 1.2
crypto/external/bsd/heimdal/dist/etc/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/include/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/include/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/include/bits.c: up to 1.2
crypto/external/bsd/heimdal/dist/include/config.h.w32: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/include/crypto-headers.h: up to 1.2
crypto/external/bsd/heimdal/dist/include/gssapi/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/include/hcrypto/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/include/heim_threads.h: up to 1.2
crypto/external/bsd/heimdal/dist/include/kadm5/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/include/krb5-types.cross: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kadmin/add-random-users.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/add_enctype.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/ank.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/check.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/cpw.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/del_enctype.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/dump.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/ext.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/get.c: up to 1.4
crypto/external/bsd/heimdal/dist/kadmin/init.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadm_conn.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadmin-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/kadmin/kadmin.1: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadmin.8 delete
crypto/external/bsd/heimdal/dist/kadmin/kadmin.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadmin_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadmind.8: up to 1.5
crypto/external/bsd/heimdal/dist/kadmin/kadmind.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/load.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/mod.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/rpc.c: up to 1.3
crypto/external/bsd/heimdal/dist/kadmin/server.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/stash.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/util.c: up to 1.4
crypto/external/bsd/heimdal/dist/kcm/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kcm/acquire.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/cache.c: up to 1.3
crypto/external/bsd/heimdal/dist/kcm/client.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/config.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/connect.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/events.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/kcm.8: up to 1.5
crypto/external/bsd/heimdal/dist/kcm/kcm_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/log.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/main.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/protocol.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/renew.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/sessions.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kdc/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kdc/announce.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/config.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/connect.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/default_config.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/digest-service.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/digest.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/fast.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/headers.h: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/hprop.8: up to 1.5
crypto/external/bsd/heimdal/dist/kdc/hprop.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/hprop.h: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/hpropd.8: up to 1.4
crypto/external/bsd/heimdal/dist/kdc/hpropd.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kdc-replay.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kdc-tester.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kdc.8: up to 1.5
crypto/external/bsd/heimdal/dist/kdc/kdc.h: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kdc_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kerberos5.c: up to 1.7
crypto/external/bsd/heimdal/dist/kdc/krb5tgs.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kstash.8: up to 1.4
crypto/external/bsd/heimdal/dist/kdc/kstash.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kx509.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/log.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/main.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/misc.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/mit_dump.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/pkinit-ec.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/pkinit.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/process.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/set_dbinfo.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/string2key.8: up to 1.4
crypto/external/bsd/heimdal/dist/kdc/string2key.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/windc.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/windc_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/kpasswd/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kpasswd/kpasswd-generator.c: up to 1.2
crypto/external/bsd/heimdal/dist/kpasswd/kpasswd.1: up to 1.2
crypto/external/bsd/heimdal/dist/kpasswd/kpasswd.c: up to 1.2
crypto/external/bsd/heimdal/dist/kpasswd/kpasswd_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kpasswd/kpasswdd.8: up to 1.4
crypto/external/bsd/heimdal/dist/kpasswd/kpasswdd.c: up to 1.4
crypto/external/bsd/heimdal/dist/krb5.conf: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kuser/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kuser/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kuser/copy_cred_cache.1: up to 1.4
crypto/external/bsd/heimdal/dist/kuser/copy_cred_cache.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/generate-requests.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/heimtools-commands.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/kuser/heimtools-version.rc: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/kuser/heimtools.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kcc-commands.in delete
crypto/external/bsd/heimdal/dist/kuser/kcc-version.rc delete
crypto/external/bsd/heimdal/dist/kuser/kcc.c delete
crypto/external/bsd/heimdal/dist/kuser/kcpytkt.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kdecode_ticket.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kdeltkt.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kdestroy.1: up to 1.5
crypto/external/bsd/heimdal/dist/kuser/kdestroy.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kdigest.8: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kdigest.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kgetcred.1: up to 1.4
crypto/external/bsd/heimdal/dist/kuser/kgetcred.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kimpersonate.8: up to 1.5
crypto/external/bsd/heimdal/dist/kuser/kimpersonate.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kinit.1: up to 1.4
crypto/external/bsd/heimdal/dist/kuser/kinit.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/klist.1: up to 1.4
crypto/external/bsd/heimdal/dist/kuser/klist.c: up to 1.4
crypto/external/bsd/heimdal/dist/kuser/kswitch.1: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kswitch.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kuser_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kverify.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kvno.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/45/NTMakefile delete
crypto/external/bsd/heimdal/dist/lib/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/asn1/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/asn1/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1-common.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1-template.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1_gen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1_print.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1parse.y: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-common.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-der.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-gen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-template.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_cmp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_copy.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_format.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_free.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_get.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_length.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_put.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/digest.asn1: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/asn1/extra.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/fuzzer.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen.c: up to 1.5
crypto/external/bsd/heimdal/dist/lib/asn1/gen_decode.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_encode.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_free.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_length.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_locl.h: up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/gen_seq.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_template.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/krb5.asn1: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/asn1/lex.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/lex.l: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/libasn1-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/asn1/main.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/pkinit.asn1: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/asn1/pku2u.asn1: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/asn1/rfc2459.asn1: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/asn1/roken_rename.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/symbol.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/symbol.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/template.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/test.asn1: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/asn1/test.opt: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/asn1/timegm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/Makefile.am: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/base/NTMakefile: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/base/array.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/baselocl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/bool.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/bsearch.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/data.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/db.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/dict.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/dll.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/heimbase.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/heimbase.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/heimbasepriv.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/heimqueue.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/json.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/null.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/number.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/roken_rename.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/string.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/test_base.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/version-script.map: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/com_err/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/com_err/com_err.3: up to 1.4
crypto/external/bsd/heimdal/dist/lib/com_err/com_err.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/com_err/com_err.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/com_err/com_right.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/com_err/compile_et.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/com_err/error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/com_err/lex.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/com_err/parse.y: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/gssapi/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/gen-oid.pl: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/gss-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/gss_acquire_cred.3: up to 1.4
crypto/external/bsd/heimdal/dist/lib/gssapi/gssapi.3: up to 1.5
crypto/external/bsd/heimdal/dist/lib/gssapi/gssapi/gssapi.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/gssapi/gssapi_krb5.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/gssapi/gssapi_oid.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/gssapi_mech.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/gsstool.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/8003.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/accept_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/acquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/add_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/aeap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/arcfour.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/authorize_localname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/canonicalize_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/cfx.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/compare_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/compat.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/context_time.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/copy_ccache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/creds.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/decapsulate.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/display_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/duplicate_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/encapsulate.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/export_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/export_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/external.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/get_mic.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/gsskrb5_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/import_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/import_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/init_sec_context.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_cred_by_mech.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_cred_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_mechs_for_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_names_for_mech.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_sec_context_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/pname_to_uid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/prf.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/process_context_token.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/sequence.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/set_cred_option.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/set_sec_context_option.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/store_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/test_acquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/test_cfx.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/test_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/test_kcred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/unwrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/verify_mic.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/wrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/libgssapi-exports.def: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/compat.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/cred.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/doxygen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_accept_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_acquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_acquire_cred_ext.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_acquire_cred_with_password.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_add_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_add_cred_with_password.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_add_oid_set_member.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_aeap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_authorize_localname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_buffer_set.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_canonicalize_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_compare_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_context_time.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_decapsulate_token.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_delete_name_attribute.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_delete_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_destroy_cred.c: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_display_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_display_name_ext.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_display_status.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_duplicate_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_encapsulate_token.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_export_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_export_name_composite.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_export_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_get_mic.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_get_name_attribute.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_import_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_import_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_indicate_mechs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_init_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_cred_by_mech.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_cred_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_mechs_for_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_sec_context_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_krb5.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_mech_switch.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_mo.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_names.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_oid_equal.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_pname_to_uid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_process_context_token.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_release_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_set_cred_option.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_set_name_attribute.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_store_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_test_oid_set_member.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_unwrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_verify_mic.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_wrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_wrap_size_limit.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gssapi.asn1: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/mech.5: up to 1.5
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/mech_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/accept_sec_context.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/acquire_cred.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/add_cred.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/canonicalize_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/compare_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/display_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/duplicate_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/export_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/init_sec_context.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/inquire_cred.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/inquire_cred_by_mech.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/inquire_mechs_for_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/accept_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/acquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/add_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/canonicalize_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/compare_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/context_time.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/creds.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/crypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/display_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/duplicate_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/export_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/external.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/import_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/init_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/inquire_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/inquire_cred_by_mech.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/inquire_mechs_for_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/inquire_sec_context_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/iter_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/kdc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/process_context_token.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/oid.txt: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/accept_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/compat.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/context_stubs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/cred_stubs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/external.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/init_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/spnego_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_acquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_add_store_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_kcred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_ntlm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/version-script.map: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/aes.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/bn.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/bn.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/camellia-ntt.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/camellia.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/des.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/des.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/destest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dh-ltm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dh-tfm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dh.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dh.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dllmain.c delete
crypto/external/bsd/heimdal/dist/lib/hcrypto/dsa.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dsa.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/ec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/ec.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/ecdsa.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/engine.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/engine.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-cc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-cc.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-crypt.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-hcrypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-openssl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-openssl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-pkcs11.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-pkcs11.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-w32.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-wincng.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-wincng.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/example_evp_cipher.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/hash.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/hmac.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libhcrypto-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_fast_mp_invmod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_fast_mp_montgomery_reduce.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_fast_s_mp_mul_digs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_fast_s_mp_mul_high_digs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_fast_s_mp_sqr.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_2expt.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_abs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_add.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_add_d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_addmod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_and.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_clamp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_clear.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_clear_multi.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_cmp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_cmp_d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_cmp_mag.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_cnt_lsb.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_copy.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_count_bits.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_div.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_div_2.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_div_2d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_div_3.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_div_d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_dr_is_modulus.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_dr_reduce.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_dr_setup.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_exch.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_expt_d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_exptmod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_exptmod_fast.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_exteuclid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_find_prime.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_fread.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_fwrite.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_gcd.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_get_int.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_grow.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_init.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_init_copy.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_init_multi.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_init_set.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_init_set_int.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_init_size.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_invmod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_invmod_slow.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_is_square.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_isprime.c delete
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_jacobi.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_karatsuba_mul.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_karatsuba_sqr.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_lcm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_lshd.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mod_2d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mod_d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_montgomery_calc_normalization.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_montgomery_reduce.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_montgomery_setup.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mul.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mul_2.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mul_2d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mul_d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mulmod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_n_root.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_neg.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_or.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_prime_fermat.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_prime_is_divisible.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_prime_is_prime.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_prime_miller_rabin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_prime_next_prime.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_prime_rabin_miller_trials.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_prime_random_ex.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_radix_size.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_radix_smap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_read_radix.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_read_signed_bin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_read_unsigned_bin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce_2k.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce_2k_l.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce_2k_setup.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce_2k_setup_l.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce_is_2k.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce_is_2k_l.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce_setup.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_rshd.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_set.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_set_int.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_shrink.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_signed_bin_size.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_sqr.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_sqrmod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_sqrt.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_sub.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_sub_d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_submod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_to_signed_bin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_to_signed_bin_n.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_to_unsigned_bin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_to_unsigned_bin_n.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_toom_mul.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_toom_sqr.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_toradix.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_toradix_n.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_unsigned_bin_size.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_xor.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_zero.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_zero_multi.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_prime_tab.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_reverse.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_s_mp_add.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_s_mp_exptmod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_s_mp_mul_digs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_s_mp_mul_high_digs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_s_mp_sqr.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_s_mp_sub.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bncore.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/demo/demo.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/demo/timing.c: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/2kprime.c: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/drprime.c: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/mersenne.c: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/mont.c: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/pprime.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/timer.asm: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/tune.c: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/gen.pl: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/logs/README: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/logs/index.html: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/makefile.cygwin_dll: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/mtest/logtab.h: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/mtest/mpi-config.h: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/mtest/mpi-types.h: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/mtest/mpi.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/mtest/mpi.h: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/mtest/mtest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/pics/makefile: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/pretty.build: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/tommath.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/tommath_class.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/tommath_superclass.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md2.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/md2.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md4.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md4.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md5.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md5.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md5crypt_test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/mdtest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/passwd_dlg.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/pkcs12.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/pkcs5.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-egd.c delete
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-fortuna.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-timer.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-unix.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/randi.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rc2.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rc2test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rc4.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rctest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rijndael-alg-fst.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rnd_keys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa-gmp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa-ltm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa-tfm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/sha.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/sha.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/sha256.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/sha512.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_bn.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_bulk.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_cipher.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_crypto.in: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_dh.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_engine_dso.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_hmac.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_pkcs12.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_pkcs5.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_rsa.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/ui.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/undef.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/validate.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/hdb/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/db.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/db3.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/dbinfo.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/ext.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-keytab.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-ldap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mdb.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mitdb.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-sqlite.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb.asn1: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/hdb.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hdb/hdb.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb.schema: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/hdb_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/hdb_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/keys.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hdb/keytab.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/libhdb-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hdb/mkey.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/print.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/test_dbinfo.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/test_hdbkeys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/test_hdbplugin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/test_mkey.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/heimdal/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/heimdal/dllmain.c delete
crypto/external/bsd/heimdal/dist/lib/hx509/ChangeLog: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ca.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/cert.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hx509/char_map.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/cms.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/collector.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/crypto-ec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/crypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/data/mkcert.sh: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/openssl.cnf: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r1TestCA.cert.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r1TestCA.key.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r1TestCA.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestClient.cert.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestClient.key.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestClient.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestServer.cert.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestServer.key.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestServer.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r1TestCA.cert.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r1TestCA.key.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r1TestCA.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestClient.cert.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestClient.key.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestClient.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestServer.cert.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestServer.key.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestServer.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/doxygen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/env.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/file.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/hx509.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/hx509_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/hx_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/hxtool-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/hxtool.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/keyset.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_dir.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_file.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_keychain.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_mem.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_null.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_p11.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_p12.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/libhx509-exports.def: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/lock.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/print.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ref/pkcs11.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/revoke.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hx509/sel-lex.l: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/sel.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/sel.h: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hx509/softp11.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/test_ca.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_cert.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_chain.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_cms.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_expr.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/test_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/test_nist.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_nist2.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_nist_pkcs12.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_soft_pkcs11.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ipc/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ipc/client.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/heim-ipc.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/server.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/tc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/ts-http.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/ts.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/kadm5/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/acl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ad.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/kadm5/admin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/chpass_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/chpass_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/common_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/context_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/create_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/create_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/default_keys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/delete_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/destroy_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/destroy_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ent_setup.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/free.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/get_princs_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/get_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/init_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/init_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop-log.8: up to 1.6
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop-log.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop.8: up to 1.5
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_master.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_slave.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/kadm5_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/kadm5_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/keys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/libkadm5srv-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/log.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/marshall.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/modify_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/password_quality.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/private.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/randkey_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/randkey_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/rename_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/send_recv.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/set_keys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/setkey3_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/test_pw_quality.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/version-script-client.map: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/kadm5/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/kafs/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/kafs/afskrb5.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/afssys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/kafs.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/kafs.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/kafs_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/rxkad_kdf.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kdfs/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/kdfs/k5dfspag.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/krb5/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/krb5/acache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/acl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/addr_families.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/aes-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/an2ln_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/aname_to_localname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/appdefault.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/asn1_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/auth_context.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/build_auth.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/cache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/changepw.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/codec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/config_file.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/config_reg.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/constants.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/context.c: up to 1.6
crypto/external/bsd/heimdal/dist/lib/krb5/convert_creds.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/copy_host_realm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/creds.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-aes-sha1.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-aes-sha2.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-aes.c delete
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-algs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-arcfour.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des-common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des3.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-evp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-null.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-pk.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-stubs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/data.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/db_plugin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/db_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/dcache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/deprecated.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/derived-key-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/digest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/dll.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/doxygen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/eai_to_heim_errno.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/enomem.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/error_string.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/expand_hostname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/expand_path.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/fast.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/fcache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/generate_subkey.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_addrs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_default_principal.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_default_realm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_for_creds.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_host_realm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_in_tkt.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/heim_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/krb5/init_creds.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/init_creds_pw.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/kcm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/kerberos.8: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keyblock.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab_any.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab_file.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab_keyfile.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab_memory.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5-plugin.7: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5.conf.5: up to 1.6
crypto/external/bsd/heimdal/dist/lib/krb5/krb5.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_auth_context.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_c_make_checksum.3: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_check_transited.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_create_checksum.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_creds.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_digest.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_encrypt.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_get_creds.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_get_init_creds.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_init_context.3: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_mk_req.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_parse_name.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_principal.3: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_set_default_realm.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_timeofday.3: up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/krbhst.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/kuserok.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/kuserok_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/libkrb5-exports.def.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/krb5/locate_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/log.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mcache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/misc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mit_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mk_error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mk_priv.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mk_rep.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mk_req_ext.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mk_safe.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/n-fold-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/n-fold.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/net_read.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/net_write.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pac.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/padata.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pcache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pkinit-ec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pkinit.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/plugin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/principal.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pseudo-random-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_priv.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_rep.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_req.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_safe.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/recvauth.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/replay.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-aes-sha1.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-aes-sha2.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-aes.c delete
crypto/external/bsd/heimdal/dist/lib/krb5/salt-arcfour.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-des.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-des3.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/scache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/send_to_kdc.c: up to 1.7
crypto/external/bsd/heimdal/dist/lib/krb5/send_to_kdc_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/sendauth.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/set_default_realm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/sp800-108-kdf.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store-int.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store-int.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store_emem.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store_fd.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store_mem.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store_sock.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/string-to-key-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_acl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_alname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_ap-req.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_canon.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_cc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_config.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_crypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_crypto_wrapping.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_expand_toks.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_fx.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_gic.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_keytab.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_kuserok.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_pac.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_pknistkdf.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/test_plugin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_rfc3961.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_set_kvno0.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_store.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_time.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_x500.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/ticket.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/transited.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/verify_init.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/verify_krb5_conf.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/verify_user.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/version-script.map: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/warn.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ntlm/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/ntlm/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/ntlm/apop.c: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/digest.c: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/heim-auth.h: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/heimntlm.h: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/ntlm.c: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/ntlm_err.et: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/ntlm/test_commonauth.c: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/test_ntlm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/otp/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/otp/otp_md.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/otp/otptest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/ChangeLog: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/roken/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/roken/base64-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/base64.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/base64.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/bswap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/cloexec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/concat.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/ct.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/daemon.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/detach.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/dirent-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/dirent.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/dlfcn.hin: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/roken/dlfcn_w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/dumpdata.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/ecalloc.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/err.hin: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/fnmatch.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/get_window_size.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/roken/getaddrinfo_hostspec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getarg.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getarg.c: up to 1.5
crypto/external/bsd/heimdal/dist/lib/roken/getcap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getifaddrs-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getifaddrs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getifaddrs_w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getxxyyy.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/glob.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/hex-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/hex.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/issuid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/memset_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/mkdir.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/ndbm_wrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/parse_bytes-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/parse_time-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/parse_time.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/parse_units.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/qsort.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/realloc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/rename.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/resolve-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/resolve.c: up to 1.5
crypto/external/bsd/heimdal/dist/lib/roken/rkpty.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/roken-common.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/roken.awk: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/roken/roken.h.in: up to 1.4
crypto/external/bsd/heimdal/dist/lib/roken/roken_gethostby.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/rtbl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/rtbl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/search.hin: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/roken/sendmsg.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/simple_exec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/simple_exec_w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/sleep.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/snprintf-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/snprintf.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/socket.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/socket_wrapper.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/sockstartup_w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/stdint.hin: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/roken/strftime.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/strsep_copy.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/strtoll.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/strtoull.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/syslogc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/test-detach.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/test-mem.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/test-mini_inetd.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/tsearch-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/tsearch.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/unvis.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/roken/win32_alloc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/write_pid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/sl/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/sl/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/sl/sl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/sl/sl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/sl/slc-gram.y: up to 1.2
crypto/external/bsd/heimdal/dist/lib/vers/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/vers/print_version.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/wind/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/wind/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/wind/bidi.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/combining.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/errorlist.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/gen-bidi.py: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/wind/gen-combining.py: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/wind/gen-errorlist.py: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/wind/gen-normalize.py: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/wind/ldap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/libwind-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/wind/map.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/normalize.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/stringprep.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/test-bidi.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/test-ldap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/test-normalize.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/test-prohibited.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/test-utf8.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/utf8.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/packages/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/packages/mac/Resources/English.lproj/Welcome.rtf: up to 1.2
crypto/external/bsd/heimdal/dist/packages/mac/mac.sh: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/packages/windows/NTMakefile: up to 1.2
crypto/external/bsd/heimdal/dist/packages/windows/assembly/Heimdal.Kerberos.manifest.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/packages/windows/assembly/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/packages/windows/assembly/policy.Heimdal.Kerberos.in: up to 1.2
crypto/external/bsd/heimdal/dist/packages/windows/installer/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-assemblies.wxs: up to 1.2
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-command.wxs: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-gss.wxs: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-installer.wxs: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-policy.wxs: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/packages/windows/installer/images/Heimdal_banner.bmp: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/images/Heimdal_banner.png: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/images/Heimdal_dialog.bmp: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/images/Heimdal_dialog.png: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/lang/en-us.wxl: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/packages/windows/sdk/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/po/heimdal_krb5/heimdal_krb5.pot: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/po/heimdal_krb5/sv_SE.po: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/bin/Makefile.am: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/bin/intr.c: up to 1.2
crypto/external/bsd/heimdal/dist/tests/bin/setup-env.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/can/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/can/check-can.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/can/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/can/mit-pkinit-20070607.xf: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/can/test_can.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/db/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/db/add-modify-delete.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/db/check-aliases.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/db/check-dbinfo.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/db/have-db.in: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/db/krb5-mit.conf.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/db/krb5.conf.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/db/loaddump-db.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/gss/check-basic.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/check-context.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/check-gssmask.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/check-ntlm.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/check-spnego.in: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/gss/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/java/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/java/check-kinit.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/java/jaas.conf: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/java/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/an2ln-db.txt: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-authz.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-canon.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-cc.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-delegation.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-des.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-digest.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/check-fast.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-hdb-mitdb.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-iprop.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-kadmin.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/check-kdc.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/check-kinit.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-kpasswdd.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-pkinit.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-referral.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/check-tester.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-uu.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/hdb-mitdb: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/hdb-mitdb.kadm5: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/hdb-mitdb.mkey: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/heimdal.acl: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/k5login/foo: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/kdc-tester1.json: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/kdc-tester2.json: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/kdc-tester3.json: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/kdc-tester4.json.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-authz.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-authz2.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-canon.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-canon2.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-hdb-mitdb.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-pkinit.conf.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/krb5.conf.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/krb5.conf.keys.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/leaks-kill.sh: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/wait-kdc.sh: up to 1.2
crypto/external/bsd/heimdal/dist/tests/ldap/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/ldap/check-ldap.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/ldap/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/ldap/slapd-init.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/ldap/slapd.conf: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/plugin/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/plugin/check-pac.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/plugin/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/plugin/windc.c: up to 1.2
crypto/external/bsd/heimdal/dist/tools/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tools/heimdal-gssapi.pc.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tools/heimdal-kadm-client.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/heimdal-kadm-server.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/heimdal-krb5.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/kadm-client.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/kadm-server.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/kafs.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/krb5-config.1: up to 1.2
crypto/external/bsd/heimdal/dist/tools/krb5-config.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tools/krb5-gssapi.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/krb5.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/windows/NTMakefile.config: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/windows/NTMakefile.version: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/windows/NTMakefile.w32: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/windows/README delete
crypto/external/bsd/heimdal/dist/windows/README.md: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/windows/maint.el delete
crypto/external/bsd/heimdal/dist/windows/version.rc: up to 1.1.1.2
crypto/external/bsd/heimdal/heimdal2netbsd: up to 1.8
crypto/external/bsd/heimdal/include/config.h: up to 1.8 via patch
crypto/external/bsd/heimdal/include/der-private.h: up to 1.2
crypto/external/bsd/heimdal/include/der-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/gsskrb5-private.h: up to 1.3
crypto/external/bsd/heimdal/include/hdb-private.h: up to 1.2
crypto/external/bsd/heimdal/include/hdb-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/heimntlm-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/hx509-private.h: up to 1.3
crypto/external/bsd/heimdal/include/hx509-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/kadm5-private.h: up to 1.2
crypto/external/bsd/heimdal/include/kadm5-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/kcm-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/kdc-private.h: up to 1.3
crypto/external/bsd/heimdal/include/kdc-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/krb5-private.h: up to 1.3
crypto/external/bsd/heimdal/include/krb5-protos.h: up to 1.4
crypto/external/bsd/heimdal/include/krb5-types.h: up to 1.7
crypto/external/bsd/heimdal/include/ntlm-private.h: up to 1.3
crypto/external/bsd/heimdal/include/roken.h: up to 1.7
crypto/external/bsd/heimdal/include/spnego-private.h: up to 1.2
crypto/external/bsd/heimdal/include/version.h: up to 1.3
crypto/external/bsd/heimdal/lib/libasn1/Makefile: up to 1.5
crypto/external/bsd/heimdal/lib/libasn1/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libcom_err/compile_et/Makefile: up to 1.4
crypto/external/bsd/heimdal/lib/libcom_err/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libgssapi/Makefile: up to 1.4
crypto/external/bsd/heimdal/lib/libgssapi/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libhdb/Makefile: up to 1.4
crypto/external/bsd/heimdal/lib/libhdb/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libheimbase/Makefile: up to 1.2
crypto/external/bsd/heimdal/lib/libheimbase/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libheimntlm/Makefile: up to 1.2
crypto/external/bsd/heimdal/lib/libheimntlm/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libhx509/Makefile: up to 1.5
crypto/external/bsd/heimdal/lib/libhx509/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkadm5clnt/Makefile: up to 1.3
crypto/external/bsd/heimdal/lib/libkadm5clnt/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkadm5srv/Makefile: up to 1.4
crypto/external/bsd/heimdal/lib/libkadm5srv/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkafs/Makefile: up to 1.3
crypto/external/bsd/heimdal/lib/libkafs/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkdc/Makefile: up to 1.3
crypto/external/bsd/heimdal/lib/libkdc/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkrb5/Makefile: up to 1.11
crypto/external/bsd/heimdal/lib/libkrb5/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libroken/Makefile: up to 1.2
crypto/external/bsd/heimdal/lib/libroken/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libsl/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libsl/slc/Makefile: up to 1.4
crypto/external/bsd/heimdal/lib/libwind/shlib_version: up to 1.2
crypto/external/bsd/heimdal/libexec/Makefile.inc: up to 1.5
crypto/external/bsd/heimdal/sbin/Makefile.inc: up to 1.4
crypto/external/bsd/heimdal/sbin/kadmin/Makefile: up to 1.3
crypto/external/bsd/heimdal/sbin/kdigest/Makefile: up to 1.3
crypto/external/bsd/heimdal/sbin/ktutil/Makefile: up to 1.3
distrib/sets/lists/base/ad.mips64eb: patch
distrib/sets/lists/base/ad.mips64el: patch
distrib/sets/lists/base/md.amd64: patch
distrib/sets/lists/base/md.sparc64: patch
distrib/sets/lists/base/mi: patch
distrib/sets/lists/base/shl.mi: patch
distrib/sets/lists/comp/ad.mips64eb: patch
distrib/sets/lists/comp/ad.mips64el patch
distrib/sets/lists/comp/md.amd64: patch
distrib/sets/lists/comp/md.sparc64: patch
distrib/sets/lists/comp/mi: patch
distrib/sets/lists/comp/shl.mi: patch
distrib/sets/lists/man/mi: patch
external/bsd/bind/Makefile.inc: 1.25 via patch
external/gpl2/xcvs/bin/xcvs/Makefile: 1.5
libexec/telnetd/Makefile: 1.50
share/mk/bsd.prog.mk: 1.301
usr.bin/passwd/Makefile: 1.45 via patch
usr.bin/telnet/Makefile: 1.51
usr.sbin/racoon/Makefile: 1.28
Update Heimdal to 7.1.
 1.49.8.1 30-Aug-2017  snj Pull up following revision(s) (requested by mrg in ticket #1493):
crypto/external/bsd/heimdal/Makefile.inc: up to 1.3
crypto/external/bsd/heimdal/Makefile.rules.inc: up to 1.8
crypto/external/bsd/heimdal/bin/Makefile: up to 1.2
crypto/external/bsd/heimdal/bin/Makefile.inc: up to 1.3
crypto/external/bsd/heimdal/bin/kcc/Makefile: up to 1.3
crypto/external/bsd/heimdal/bin/krb5-config/Makefile: up to 1.3
crypto/external/bsd/heimdal/bin/kvno/Makefile: up to 1.1
crypto/external/bsd/heimdal/bin/kvno/kvno.1: up to 1.1
crypto/external/bsd/heimdal/dist/LICENSE: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/NEWS: up to 1.2
crypto/external/bsd/heimdal/dist/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/README.fast: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/admin/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/admin/add.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/change.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/get.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/ktutil-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/admin/ktutil.1: up to 1.2
crypto/external/bsd/heimdal/dist/admin/ktutil.8 delete
crypto/external/bsd/heimdal/dist/admin/ktutil.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/list.c: up to 1.2
crypto/external/bsd/heimdal/dist/appveyor.yml: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/autogen.sh: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/base/Makefile.am delete
crypto/external/bsd/heimdal/dist/base/NTMakefile delete
crypto/external/bsd/heimdal/dist/base/array.c delete
crypto/external/bsd/heimdal/dist/base/baselocl.h delete
crypto/external/bsd/heimdal/dist/base/bool.c delete
crypto/external/bsd/heimdal/dist/base/dict.c delete
crypto/external/bsd/heimdal/dist/base/heimbase.c delete
crypto/external/bsd/heimdal/dist/base/heimbase.h delete
crypto/external/bsd/heimdal/dist/base/heimbasepriv.h delete
crypto/external/bsd/heimdal/dist/base/heimqueue.h delete
crypto/external/bsd/heimdal/dist/base/json.c delete
crypto/external/bsd/heimdal/dist/base/null.c delete
crypto/external/bsd/heimdal/dist/base/number.c delete
crypto/external/bsd/heimdal/dist/base/roken_rename.h delete
crypto/external/bsd/heimdal/dist/base/string.c delete
crypto/external/bsd/heimdal/dist/base/test_base.c delete
crypto/external/bsd/heimdal/dist/base/version-script.map delete
crypto/external/bsd/heimdal/dist/cf/Makefile.am.common: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/check-compile-et.m4: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/check-getpwnam_r-posix.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/check-man.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/check-x.m4 delete
crypto/external/bsd/heimdal/dist/cf/check-xau.m4 delete
crypto/external/bsd/heimdal/dist/cf/crypto.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/db.m4: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/dispatch.m4: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/dlopen.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/find-func-no-libs2.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/install-catman.sh: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/krb-ipv6.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/krb-prog-perl.m4: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/cf/make-proto.pl: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/maybe-valgrind.sh: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/misc.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/proto-compat.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/pthreads.m4: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/retsigtype.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/roken-frag.m4: up to 1.2
crypto/external/bsd/heimdal/dist/cf/roken-h-process.pl: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/sunos.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/test-package.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/valgrind-suppressions: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/version-script.m4: up to 1.2
crypto/external/bsd/heimdal/dist/cf/wflags.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/with-all.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/configure.ac: up to 1.2
crypto/external/bsd/heimdal/dist/doc/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/doc/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/ack.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/base.din: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/base.hhp: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/copyright.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/doxytmpl.dxy: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/heimdal.hhp: up to 1.2
crypto/external/bsd/heimdal/dist/doc/heimdal.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/hx509.hhp: up to 1.2
crypto/external/bsd/heimdal/dist/doc/hx509.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/intro.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/kerberos4.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/migration.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/oid.txt delete
crypto/external/bsd/heimdal/dist/doc/setup.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/vars.tin: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/whatis.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/win2k.texi: up to 1.2
crypto/external/bsd/heimdal/dist/etc/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/include/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/include/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/include/bits.c: up to 1.2
crypto/external/bsd/heimdal/dist/include/config.h.w32: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/include/crypto-headers.h: up to 1.2
crypto/external/bsd/heimdal/dist/include/gssapi/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/include/hcrypto/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/include/heim_threads.h: up to 1.2
crypto/external/bsd/heimdal/dist/include/kadm5/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/include/krb5-types.cross: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kadmin/add-random-users.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/add_enctype.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/ank.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/check.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/cpw.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/del_enctype.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/dump.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/ext.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/get.c: up to 1.4
crypto/external/bsd/heimdal/dist/kadmin/init.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadm_conn.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadmin-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/kadmin/kadmin.1: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadmin.8 delete
crypto/external/bsd/heimdal/dist/kadmin/kadmin.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadmin_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadmind.8: up to 1.5
crypto/external/bsd/heimdal/dist/kadmin/kadmind.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/load.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/mod.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/rpc.c: up to 1.3
crypto/external/bsd/heimdal/dist/kadmin/server.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/stash.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/util.c: up to 1.4
crypto/external/bsd/heimdal/dist/kcm/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kcm/acquire.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/cache.c: up to 1.3
crypto/external/bsd/heimdal/dist/kcm/client.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/config.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/connect.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/events.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/kcm.8: up to 1.5
crypto/external/bsd/heimdal/dist/kcm/kcm_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/log.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/main.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/protocol.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/renew.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/sessions.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kdc/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kdc/announce.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/config.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/connect.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/default_config.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/digest-service.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/digest.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/fast.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/headers.h: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/hprop.8: up to 1.5
crypto/external/bsd/heimdal/dist/kdc/hprop.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/hprop.h: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/hpropd.8: up to 1.4
crypto/external/bsd/heimdal/dist/kdc/hpropd.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kdc-replay.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kdc-tester.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kdc.8: up to 1.5
crypto/external/bsd/heimdal/dist/kdc/kdc.h: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kdc_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kerberos5.c: up to 1.7
crypto/external/bsd/heimdal/dist/kdc/krb5tgs.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kstash.8: up to 1.4
crypto/external/bsd/heimdal/dist/kdc/kstash.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kx509.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/log.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/main.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/misc.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/mit_dump.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/pkinit-ec.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/pkinit.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/process.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/set_dbinfo.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/string2key.8: up to 1.4
crypto/external/bsd/heimdal/dist/kdc/string2key.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/windc.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/windc_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/kpasswd/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kpasswd/kpasswd-generator.c: up to 1.2
crypto/external/bsd/heimdal/dist/kpasswd/kpasswd.1: up to 1.2
crypto/external/bsd/heimdal/dist/kpasswd/kpasswd.c: up to 1.2
crypto/external/bsd/heimdal/dist/kpasswd/kpasswd_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kpasswd/kpasswdd.8: up to 1.4
crypto/external/bsd/heimdal/dist/kpasswd/kpasswdd.c: up to 1.4
crypto/external/bsd/heimdal/dist/krb5.conf: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kuser/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kuser/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kuser/copy_cred_cache.1: up to 1.4
crypto/external/bsd/heimdal/dist/kuser/copy_cred_cache.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/generate-requests.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/heimtools-commands.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/kuser/heimtools-version.rc: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/kuser/heimtools.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kcc-commands.in delete
crypto/external/bsd/heimdal/dist/kuser/kcc-version.rc delete
crypto/external/bsd/heimdal/dist/kuser/kcc.c delete
crypto/external/bsd/heimdal/dist/kuser/kcpytkt.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kdecode_ticket.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kdeltkt.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kdestroy.1: up to 1.5
crypto/external/bsd/heimdal/dist/kuser/kdestroy.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kdigest.8: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kdigest.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kgetcred.1: up to 1.4
crypto/external/bsd/heimdal/dist/kuser/kgetcred.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kimpersonate.8: up to 1.5
crypto/external/bsd/heimdal/dist/kuser/kimpersonate.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kinit.1: up to 1.4
crypto/external/bsd/heimdal/dist/kuser/kinit.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/klist.1: up to 1.4
crypto/external/bsd/heimdal/dist/kuser/klist.c: up to 1.4
crypto/external/bsd/heimdal/dist/kuser/kswitch.1: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kswitch.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kuser_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kverify.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kvno.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/45/NTMakefile delete
crypto/external/bsd/heimdal/dist/lib/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/asn1/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/asn1/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1-common.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1-template.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1_gen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1_print.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1parse.y: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-common.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-der.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-gen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-template.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_cmp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_copy.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_format.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_free.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_get.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_length.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_put.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/digest.asn1: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/asn1/extra.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/fuzzer.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen.c: up to 1.5
crypto/external/bsd/heimdal/dist/lib/asn1/gen_decode.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_encode.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_free.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_length.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_locl.h: up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/gen_seq.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_template.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/krb5.asn1: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/asn1/lex.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/lex.l: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/libasn1-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/asn1/main.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/pkinit.asn1: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/asn1/pku2u.asn1: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/asn1/rfc2459.asn1: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/asn1/roken_rename.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/symbol.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/symbol.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/template.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/test.asn1: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/asn1/test.opt: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/asn1/timegm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/Makefile.am: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/base/NTMakefile: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/base/array.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/baselocl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/bool.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/bsearch.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/data.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/db.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/dict.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/dll.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/heimbase.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/heimbase.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/heimbasepriv.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/heimqueue.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/json.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/null.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/number.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/roken_rename.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/string.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/test_base.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/version-script.map: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/com_err/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/com_err/com_err.3: up to 1.4
crypto/external/bsd/heimdal/dist/lib/com_err/com_err.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/com_err/com_err.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/com_err/com_right.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/com_err/compile_et.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/com_err/error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/com_err/lex.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/com_err/parse.y: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/gssapi/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/gen-oid.pl: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/gss-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/gss_acquire_cred.3: up to 1.4
crypto/external/bsd/heimdal/dist/lib/gssapi/gssapi.3: up to 1.5
crypto/external/bsd/heimdal/dist/lib/gssapi/gssapi/gssapi.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/gssapi/gssapi_krb5.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/gssapi/gssapi_oid.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/gssapi_mech.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/gsstool.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/8003.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/accept_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/acquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/add_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/aeap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/arcfour.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/authorize_localname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/canonicalize_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/cfx.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/compare_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/compat.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/context_time.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/copy_ccache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/creds.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/decapsulate.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/display_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/duplicate_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/encapsulate.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/export_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/export_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/external.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/get_mic.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/gsskrb5_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/import_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/import_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/init_sec_context.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_cred_by_mech.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_cred_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_mechs_for_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_names_for_mech.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_sec_context_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/pname_to_uid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/prf.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/process_context_token.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/sequence.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/set_cred_option.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/set_sec_context_option.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/store_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/test_acquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/test_cfx.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/test_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/test_kcred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/unwrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/verify_mic.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/wrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/libgssapi-exports.def: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/compat.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/cred.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/doxygen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_accept_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_acquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_acquire_cred_ext.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_acquire_cred_with_password.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_add_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_add_cred_with_password.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_add_oid_set_member.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_aeap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_authorize_localname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_buffer_set.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_canonicalize_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_compare_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_context_time.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_decapsulate_token.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_delete_name_attribute.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_delete_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_destroy_cred.c: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_display_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_display_name_ext.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_display_status.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_duplicate_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_encapsulate_token.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_export_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_export_name_composite.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_export_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_get_mic.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_get_name_attribute.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_import_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_import_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_indicate_mechs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_init_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_cred_by_mech.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_cred_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_mechs_for_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_sec_context_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_krb5.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_mech_switch.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_mo.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_names.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_oid_equal.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_pname_to_uid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_process_context_token.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_release_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_set_cred_option.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_set_name_attribute.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_store_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_test_oid_set_member.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_unwrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_verify_mic.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_wrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_wrap_size_limit.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gssapi.asn1: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/mech.5: up to 1.5
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/mech_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/accept_sec_context.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/acquire_cred.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/add_cred.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/canonicalize_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/compare_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/display_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/duplicate_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/export_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/init_sec_context.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/inquire_cred.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/inquire_cred_by_mech.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/inquire_mechs_for_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/accept_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/acquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/add_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/canonicalize_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/compare_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/context_time.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/creds.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/crypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/display_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/duplicate_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/export_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/external.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/import_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/init_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/inquire_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/inquire_cred_by_mech.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/inquire_mechs_for_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/inquire_sec_context_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/iter_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/kdc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/process_context_token.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/oid.txt: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/accept_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/compat.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/context_stubs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/cred_stubs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/external.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/init_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/spnego_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_acquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_add_store_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_kcred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_ntlm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/version-script.map: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/aes.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/bn.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/bn.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/camellia-ntt.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/camellia.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/des.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/des.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/destest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dh-ltm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dh-tfm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dh.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dh.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dllmain.c delete
crypto/external/bsd/heimdal/dist/lib/hcrypto/dsa.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dsa.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/ec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/ec.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/ecdsa.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/engine.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/engine.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-cc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-cc.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-crypt.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-hcrypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-openssl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-openssl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-pkcs11.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-pkcs11.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-w32.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-wincng.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-wincng.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/example_evp_cipher.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/hash.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/hmac.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libhcrypto-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_fast_mp_invmod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_fast_mp_montgomery_reduce.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_fast_s_mp_mul_digs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_fast_s_mp_mul_high_digs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_fast_s_mp_sqr.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_2expt.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_abs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_add.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_add_d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_addmod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_and.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_clamp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_clear.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_clear_multi.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_cmp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_cmp_d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_cmp_mag.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_cnt_lsb.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_copy.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_count_bits.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_div.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_div_2.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_div_2d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_div_3.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_div_d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_dr_is_modulus.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_dr_reduce.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_dr_setup.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_exch.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_expt_d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_exptmod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_exptmod_fast.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_exteuclid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_find_prime.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_fread.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_fwrite.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_gcd.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_get_int.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_grow.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_init.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_init_copy.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_init_multi.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_init_set.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_init_set_int.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_init_size.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_invmod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_invmod_slow.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_is_square.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_isprime.c delete
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_jacobi.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_karatsuba_mul.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_karatsuba_sqr.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_lcm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_lshd.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mod_2d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mod_d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_montgomery_calc_normalization.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_montgomery_reduce.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_montgomery_setup.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mul.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mul_2.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mul_2d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mul_d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mulmod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_n_root.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_neg.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_or.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_prime_fermat.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_prime_is_divisible.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_prime_is_prime.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_prime_miller_rabin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_prime_next_prime.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_prime_rabin_miller_trials.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_prime_random_ex.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_radix_size.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_radix_smap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_read_radix.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_read_signed_bin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_read_unsigned_bin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce_2k.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce_2k_l.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce_2k_setup.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce_2k_setup_l.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce_is_2k.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce_is_2k_l.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce_setup.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_rshd.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_set.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_set_int.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_shrink.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_signed_bin_size.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_sqr.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_sqrmod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_sqrt.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_sub.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_sub_d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_submod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_to_signed_bin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_to_signed_bin_n.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_to_unsigned_bin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_to_unsigned_bin_n.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_toom_mul.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_toom_sqr.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_toradix.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_toradix_n.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_unsigned_bin_size.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_xor.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_zero.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_zero_multi.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_prime_tab.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_reverse.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_s_mp_add.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_s_mp_exptmod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_s_mp_mul_digs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_s_mp_mul_high_digs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_s_mp_sqr.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_s_mp_sub.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bncore.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/demo/demo.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/demo/timing.c: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/2kprime.c: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/drprime.c: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/mersenne.c: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/mont.c: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/pprime.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/timer.asm: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/tune.c: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/gen.pl: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/logs/README: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/logs/index.html: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/makefile.cygwin_dll: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/mtest/logtab.h: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/mtest/mpi-config.h: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/mtest/mpi-types.h: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/mtest/mpi.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/mtest/mpi.h: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/mtest/mtest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/pics/makefile: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/pretty.build: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/tommath.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/tommath_class.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/tommath_superclass.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md2.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/md2.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md4.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md4.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md5.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md5.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md5crypt_test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/mdtest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/passwd_dlg.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/pkcs12.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/pkcs5.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-egd.c delete
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-fortuna.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-timer.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-unix.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/randi.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rc2.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rc2test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rc4.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rctest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rijndael-alg-fst.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rnd_keys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa-gmp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa-ltm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa-tfm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/sha.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/sha.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/sha256.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/sha512.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_bn.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_bulk.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_cipher.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_crypto.in: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_dh.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_engine_dso.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_hmac.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_pkcs12.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_pkcs5.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_rsa.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/ui.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/undef.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/validate.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/hdb/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/db.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/db3.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/dbinfo.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/ext.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-keytab.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-ldap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mdb.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mitdb.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-sqlite.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb.asn1: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/hdb.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hdb/hdb.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb.schema: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/hdb_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/hdb_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/keys.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hdb/keytab.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/libhdb-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hdb/mkey.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/print.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/test_dbinfo.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/test_hdbkeys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/test_hdbplugin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/test_mkey.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/heimdal/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/heimdal/dllmain.c delete
crypto/external/bsd/heimdal/dist/lib/hx509/ChangeLog: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ca.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/cert.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hx509/char_map.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/cms.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/collector.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/crypto-ec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/crypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/data/mkcert.sh: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/openssl.cnf: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r1TestCA.cert.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r1TestCA.key.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r1TestCA.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestClient.cert.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestClient.key.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestClient.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestServer.cert.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestServer.key.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestServer.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r1TestCA.cert.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r1TestCA.key.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r1TestCA.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestClient.cert.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestClient.key.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestClient.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestServer.cert.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestServer.key.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestServer.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/doxygen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/env.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/file.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/hx509.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/hx509_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/hx_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/hxtool-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/hxtool.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/keyset.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_dir.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_file.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_keychain.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_mem.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_null.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_p11.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_p12.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/libhx509-exports.def: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/lock.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/print.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ref/pkcs11.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/revoke.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hx509/sel-lex.l: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/sel.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/sel.h: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hx509/softp11.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/test_ca.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_cert.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_chain.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_cms.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_expr.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/test_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/test_nist.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_nist2.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_nist_pkcs12.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_soft_pkcs11.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ipc/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ipc/client.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/heim-ipc.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/server.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/tc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/ts-http.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/ts.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/kadm5/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/acl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ad.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/kadm5/admin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/chpass_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/chpass_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/common_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/context_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/create_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/create_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/default_keys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/delete_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/destroy_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/destroy_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ent_setup.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/free.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/get_princs_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/get_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/init_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/init_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop-log.8: up to 1.6
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop-log.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop.8: up to 1.5
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_master.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_slave.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/kadm5_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/kadm5_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/keys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/libkadm5srv-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/log.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/marshall.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/modify_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/password_quality.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/private.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/randkey_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/randkey_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/rename_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/send_recv.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/set_keys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/setkey3_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/test_pw_quality.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/version-script-client.map: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/kadm5/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/kafs/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/kafs/afskrb5.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/afssys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/kafs.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/kafs.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/kafs_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/rxkad_kdf.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kdfs/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/kdfs/k5dfspag.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/krb5/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/krb5/acache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/acl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/addr_families.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/aes-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/an2ln_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/aname_to_localname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/appdefault.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/asn1_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/auth_context.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/build_auth.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/cache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/changepw.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/codec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/config_file.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/config_reg.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/constants.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/context.c: up to 1.6
crypto/external/bsd/heimdal/dist/lib/krb5/convert_creds.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/copy_host_realm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/creds.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-aes-sha1.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-aes-sha2.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-aes.c delete
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-algs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-arcfour.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des-common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des3.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-evp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-null.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-pk.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-stubs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/data.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/db_plugin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/db_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/dcache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/deprecated.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/derived-key-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/digest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/dll.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/doxygen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/eai_to_heim_errno.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/enomem.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/error_string.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/expand_hostname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/expand_path.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/fast.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/fcache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/generate_subkey.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_addrs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_default_principal.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_default_realm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_for_creds.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_host_realm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_in_tkt.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/heim_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/krb5/init_creds.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/init_creds_pw.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/kcm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/kerberos.8: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keyblock.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab_any.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab_file.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab_keyfile.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab_memory.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5-plugin.7: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5.conf.5: up to 1.6
crypto/external/bsd/heimdal/dist/lib/krb5/krb5.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_auth_context.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_c_make_checksum.3: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_check_transited.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_create_checksum.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_creds.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_digest.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_encrypt.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_get_creds.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_get_init_creds.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_init_context.3: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_mk_req.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_parse_name.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_principal.3: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_set_default_realm.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_timeofday.3: up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/krbhst.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/kuserok.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/kuserok_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/libkrb5-exports.def.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/krb5/locate_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/log.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mcache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/misc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mit_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mk_error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mk_priv.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mk_rep.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mk_req_ext.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mk_safe.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/n-fold-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/n-fold.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/net_read.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/net_write.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pac.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/padata.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pcache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pkinit-ec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pkinit.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/plugin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/principal.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pseudo-random-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_priv.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_rep.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_req.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_safe.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/recvauth.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/replay.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-aes-sha1.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-aes-sha2.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-aes.c delete
crypto/external/bsd/heimdal/dist/lib/krb5/salt-arcfour.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-des.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-des3.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/scache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/send_to_kdc.c: up to 1.7
crypto/external/bsd/heimdal/dist/lib/krb5/send_to_kdc_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/sendauth.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/set_default_realm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/sp800-108-kdf.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store-int.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store-int.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store_emem.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store_fd.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store_mem.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store_sock.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/string-to-key-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_acl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_alname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_ap-req.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_canon.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_cc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_config.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_crypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_crypto_wrapping.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_expand_toks.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_fx.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_gic.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_keytab.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_kuserok.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_pac.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_pknistkdf.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/test_plugin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_rfc3961.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_set_kvno0.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_store.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_time.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_x500.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/ticket.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/transited.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/verify_init.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/verify_krb5_conf.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/verify_user.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/version-script.map: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/warn.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ntlm/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/ntlm/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/ntlm/apop.c: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/digest.c: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/heim-auth.h: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/heimntlm.h: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/ntlm.c: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/ntlm_err.et: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/ntlm/test_commonauth.c: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/test_ntlm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/otp/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/otp/otp_md.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/otp/otptest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/ChangeLog: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/roken/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/roken/base64-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/base64.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/base64.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/bswap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/cloexec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/concat.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/ct.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/daemon.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/detach.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/dirent-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/dirent.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/dlfcn.hin: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/roken/dlfcn_w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/dumpdata.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/ecalloc.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/err.hin: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/fnmatch.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/get_window_size.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/roken/getaddrinfo_hostspec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getarg.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getarg.c: up to 1.5
crypto/external/bsd/heimdal/dist/lib/roken/getcap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getifaddrs-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getifaddrs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getifaddrs_w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getxxyyy.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/glob.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/hex-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/hex.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/issuid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/memset_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/mkdir.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/ndbm_wrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/parse_bytes-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/parse_time-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/parse_time.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/parse_units.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/qsort.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/realloc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/rename.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/resolve-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/resolve.c: up to 1.5
crypto/external/bsd/heimdal/dist/lib/roken/rkpty.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/roken-common.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/roken.awk: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/roken/roken.h.in: up to 1.4
crypto/external/bsd/heimdal/dist/lib/roken/roken_gethostby.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/rtbl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/rtbl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/search.hin: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/roken/sendmsg.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/simple_exec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/simple_exec_w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/sleep.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/snprintf-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/snprintf.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/socket.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/socket_wrapper.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/sockstartup_w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/stdint.hin: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/roken/strftime.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/strsep_copy.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/strtoll.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/strtoull.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/syslogc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/test-detach.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/test-mem.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/test-mini_inetd.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/tsearch-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/tsearch.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/unvis.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/roken/win32_alloc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/write_pid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/sl/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/sl/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/sl/sl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/sl/sl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/sl/slc-gram.y: up to 1.2
crypto/external/bsd/heimdal/dist/lib/vers/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/vers/print_version.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/wind/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/wind/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/wind/bidi.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/combining.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/errorlist.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/gen-bidi.py: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/wind/gen-combining.py: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/wind/gen-errorlist.py: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/wind/gen-normalize.py: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/wind/ldap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/libwind-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/wind/map.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/normalize.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/stringprep.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/test-bidi.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/test-ldap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/test-normalize.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/test-prohibited.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/test-utf8.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/utf8.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/packages/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/packages/mac/Resources/English.lproj/Welcome.rtf: up to 1.2
crypto/external/bsd/heimdal/dist/packages/mac/mac.sh: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/packages/windows/NTMakefile: up to 1.2
crypto/external/bsd/heimdal/dist/packages/windows/assembly/Heimdal.Kerberos.manifest.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/packages/windows/assembly/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/packages/windows/assembly/policy.Heimdal.Kerberos.in: up to 1.2
crypto/external/bsd/heimdal/dist/packages/windows/installer/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-assemblies.wxs: up to 1.2
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-command.wxs: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-gss.wxs: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-installer.wxs: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-policy.wxs: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/packages/windows/installer/images/Heimdal_banner.bmp: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/images/Heimdal_banner.png: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/images/Heimdal_dialog.bmp: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/images/Heimdal_dialog.png: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/lang/en-us.wxl: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/packages/windows/sdk/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/po/heimdal_krb5/heimdal_krb5.pot: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/po/heimdal_krb5/sv_SE.po: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/bin/Makefile.am: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/bin/intr.c: up to 1.2
crypto/external/bsd/heimdal/dist/tests/bin/setup-env.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/can/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/can/check-can.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/can/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/can/mit-pkinit-20070607.xf: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/can/test_can.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/db/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/db/add-modify-delete.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/db/check-aliases.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/db/check-dbinfo.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/db/have-db.in: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/db/krb5-mit.conf.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/db/krb5.conf.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/db/loaddump-db.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/gss/check-basic.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/check-context.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/check-gssmask.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/check-ntlm.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/check-spnego.in: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/gss/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/java/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/java/check-kinit.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/java/jaas.conf: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/java/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/an2ln-db.txt: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-authz.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-canon.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-cc.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-delegation.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-des.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-digest.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/check-fast.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-hdb-mitdb.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-iprop.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-kadmin.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/check-kdc.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/check-kinit.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-kpasswdd.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-pkinit.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-referral.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/check-tester.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-uu.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/hdb-mitdb: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/hdb-mitdb.kadm5: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/hdb-mitdb.mkey: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/heimdal.acl: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/k5login/foo: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/kdc-tester1.json: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/kdc-tester2.json: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/kdc-tester3.json: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/kdc-tester4.json.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-authz.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-authz2.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-canon.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-canon2.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-hdb-mitdb.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-pkinit.conf.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/krb5.conf.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/krb5.conf.keys.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/leaks-kill.sh: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/wait-kdc.sh: up to 1.2
crypto/external/bsd/heimdal/dist/tests/ldap/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/ldap/check-ldap.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/ldap/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/ldap/slapd-init.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/ldap/slapd.conf: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/plugin/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/plugin/check-pac.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/plugin/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/plugin/windc.c: up to 1.2
crypto/external/bsd/heimdal/dist/tools/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tools/heimdal-gssapi.pc.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tools/heimdal-kadm-client.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/heimdal-kadm-server.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/heimdal-krb5.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/kadm-client.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/kadm-server.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/kafs.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/krb5-config.1: up to 1.2
crypto/external/bsd/heimdal/dist/tools/krb5-config.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tools/krb5-gssapi.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/krb5.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/windows/NTMakefile.config: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/windows/NTMakefile.version: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/windows/NTMakefile.w32: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/windows/README delete
crypto/external/bsd/heimdal/dist/windows/README.md: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/windows/maint.el delete
crypto/external/bsd/heimdal/dist/windows/version.rc: up to 1.1.1.2
crypto/external/bsd/heimdal/heimdal2netbsd: up to 1.8
crypto/external/bsd/heimdal/include/config.h: up to 1.8 via patch
crypto/external/bsd/heimdal/include/der-private.h: up to 1.2
crypto/external/bsd/heimdal/include/der-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/gsskrb5-private.h: up to 1.3
crypto/external/bsd/heimdal/include/hdb-private.h: up to 1.2
crypto/external/bsd/heimdal/include/hdb-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/heimntlm-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/hx509-private.h: up to 1.3
crypto/external/bsd/heimdal/include/hx509-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/kadm5-private.h: up to 1.2
crypto/external/bsd/heimdal/include/kadm5-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/kcm-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/kdc-private.h: up to 1.3
crypto/external/bsd/heimdal/include/kdc-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/krb5-private.h: up to 1.3
crypto/external/bsd/heimdal/include/krb5-protos.h: up to 1.4
crypto/external/bsd/heimdal/include/krb5-types.h: up to 1.7
crypto/external/bsd/heimdal/include/ntlm-private.h: up to 1.3
crypto/external/bsd/heimdal/include/roken.h: up to 1.7
crypto/external/bsd/heimdal/include/spnego-private.h: up to 1.2
crypto/external/bsd/heimdal/include/version.h: up to 1.3
crypto/external/bsd/heimdal/lib/libasn1/Makefile: up to 1.5
crypto/external/bsd/heimdal/lib/libasn1/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libcom_err/compile_et/Makefile: up to 1.4
crypto/external/bsd/heimdal/lib/libcom_err/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libgssapi/Makefile: up to 1.4
crypto/external/bsd/heimdal/lib/libgssapi/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libhdb/Makefile: up to 1.4
crypto/external/bsd/heimdal/lib/libhdb/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libheimbase/Makefile: up to 1.2
crypto/external/bsd/heimdal/lib/libheimbase/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libheimntlm/Makefile: up to 1.2
crypto/external/bsd/heimdal/lib/libheimntlm/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libhx509/Makefile: up to 1.5
crypto/external/bsd/heimdal/lib/libhx509/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkadm5clnt/Makefile: up to 1.3
crypto/external/bsd/heimdal/lib/libkadm5clnt/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkadm5srv/Makefile: up to 1.4
crypto/external/bsd/heimdal/lib/libkadm5srv/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkafs/Makefile: up to 1.3
crypto/external/bsd/heimdal/lib/libkafs/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkdc/Makefile: up to 1.3
crypto/external/bsd/heimdal/lib/libkdc/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkrb5/Makefile: up to 1.11
crypto/external/bsd/heimdal/lib/libkrb5/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libroken/Makefile: up to 1.2
crypto/external/bsd/heimdal/lib/libroken/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libsl/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libsl/slc/Makefile: up to 1.4
crypto/external/bsd/heimdal/lib/libwind/shlib_version: up to 1.2
crypto/external/bsd/heimdal/libexec/Makefile.inc: up to 1.5
crypto/external/bsd/heimdal/sbin/Makefile.inc: up to 1.4
crypto/external/bsd/heimdal/sbin/kadmin/Makefile: up to 1.3
crypto/external/bsd/heimdal/sbin/kdigest/Makefile: up to 1.3
crypto/external/bsd/heimdal/sbin/ktutil/Makefile: up to 1.3
distrib/sets/lists/base/ad.mips64eb: patch
distrib/sets/lists/base/ad.mips64el: patch
distrib/sets/lists/base/md.amd64: patch
distrib/sets/lists/base/md.sparc64: patch
distrib/sets/lists/base/mi: patch
distrib/sets/lists/base/shl.mi: patch
distrib/sets/lists/comp/ad.mips64eb: patch
distrib/sets/lists/comp/ad.mips64el patch
distrib/sets/lists/comp/md.amd64: patch
distrib/sets/lists/comp/md.sparc64: patch
distrib/sets/lists/comp/mi: patch
distrib/sets/lists/comp/shl.mi: patch
distrib/sets/lists/man/mi: patch
external/bsd/bind/Makefile.inc: 1.25 via patch
external/gpl2/xcvs/bin/xcvs/Makefile: 1.5
libexec/telnetd/Makefile: 1.50
share/mk/bsd.prog.mk: 1.301
usr.bin/passwd/Makefile: 1.45 via patch
usr.bin/telnet/Makefile: 1.51
usr.sbin/racoon/Makefile: 1.28
Update Heimdal to 7.1.
 1.49.2.1 30-Aug-2017  snj Pull up following revision(s) (requested by mrg in ticket #1493):
crypto/external/bsd/heimdal/Makefile.inc: up to 1.3
crypto/external/bsd/heimdal/Makefile.rules.inc: up to 1.8
crypto/external/bsd/heimdal/bin/Makefile: up to 1.2
crypto/external/bsd/heimdal/bin/Makefile.inc: up to 1.3
crypto/external/bsd/heimdal/bin/kcc/Makefile: up to 1.3
crypto/external/bsd/heimdal/bin/krb5-config/Makefile: up to 1.3
crypto/external/bsd/heimdal/bin/kvno/Makefile: up to 1.1
crypto/external/bsd/heimdal/bin/kvno/kvno.1: up to 1.1
crypto/external/bsd/heimdal/dist/LICENSE: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/NEWS: up to 1.2
crypto/external/bsd/heimdal/dist/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/README.fast: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/admin/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/admin/add.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/change.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/get.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/ktutil-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/admin/ktutil.1: up to 1.2
crypto/external/bsd/heimdal/dist/admin/ktutil.8 delete
crypto/external/bsd/heimdal/dist/admin/ktutil.c: up to 1.2
crypto/external/bsd/heimdal/dist/admin/list.c: up to 1.2
crypto/external/bsd/heimdal/dist/appveyor.yml: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/autogen.sh: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/base/Makefile.am delete
crypto/external/bsd/heimdal/dist/base/NTMakefile delete
crypto/external/bsd/heimdal/dist/base/array.c delete
crypto/external/bsd/heimdal/dist/base/baselocl.h delete
crypto/external/bsd/heimdal/dist/base/bool.c delete
crypto/external/bsd/heimdal/dist/base/dict.c delete
crypto/external/bsd/heimdal/dist/base/heimbase.c delete
crypto/external/bsd/heimdal/dist/base/heimbase.h delete
crypto/external/bsd/heimdal/dist/base/heimbasepriv.h delete
crypto/external/bsd/heimdal/dist/base/heimqueue.h delete
crypto/external/bsd/heimdal/dist/base/json.c delete
crypto/external/bsd/heimdal/dist/base/null.c delete
crypto/external/bsd/heimdal/dist/base/number.c delete
crypto/external/bsd/heimdal/dist/base/roken_rename.h delete
crypto/external/bsd/heimdal/dist/base/string.c delete
crypto/external/bsd/heimdal/dist/base/test_base.c delete
crypto/external/bsd/heimdal/dist/base/version-script.map delete
crypto/external/bsd/heimdal/dist/cf/Makefile.am.common: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/check-compile-et.m4: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/check-getpwnam_r-posix.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/check-man.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/check-x.m4 delete
crypto/external/bsd/heimdal/dist/cf/check-xau.m4 delete
crypto/external/bsd/heimdal/dist/cf/crypto.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/db.m4: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/dispatch.m4: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/dlopen.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/find-func-no-libs2.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/install-catman.sh: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/krb-ipv6.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/krb-prog-perl.m4: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/cf/make-proto.pl: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/maybe-valgrind.sh: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/misc.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/proto-compat.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/pthreads.m4: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/cf/retsigtype.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/roken-frag.m4: up to 1.2
crypto/external/bsd/heimdal/dist/cf/roken-h-process.pl: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/cf/sunos.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/test-package.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/valgrind-suppressions: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/version-script.m4: up to 1.2
crypto/external/bsd/heimdal/dist/cf/wflags.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/cf/with-all.m4: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/configure.ac: up to 1.2
crypto/external/bsd/heimdal/dist/doc/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/doc/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/ack.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/base.din: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/base.hhp: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/doc/copyright.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/doxytmpl.dxy: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/heimdal.hhp: up to 1.2
crypto/external/bsd/heimdal/dist/doc/heimdal.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/hx509.hhp: up to 1.2
crypto/external/bsd/heimdal/dist/doc/hx509.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/intro.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/kerberos4.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/migration.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/oid.txt delete
crypto/external/bsd/heimdal/dist/doc/setup.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/vars.tin: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/doc/whatis.texi: up to 1.2
crypto/external/bsd/heimdal/dist/doc/win2k.texi: up to 1.2
crypto/external/bsd/heimdal/dist/etc/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/include/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/include/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/include/bits.c: up to 1.2
crypto/external/bsd/heimdal/dist/include/config.h.w32: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/include/crypto-headers.h: up to 1.2
crypto/external/bsd/heimdal/dist/include/gssapi/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/include/hcrypto/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/include/heim_threads.h: up to 1.2
crypto/external/bsd/heimdal/dist/include/kadm5/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/include/krb5-types.cross: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kadmin/add-random-users.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/add_enctype.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/ank.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/check.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/cpw.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/del_enctype.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/dump.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/ext.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/get.c: up to 1.4
crypto/external/bsd/heimdal/dist/kadmin/init.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadm_conn.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadmin-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/kadmin/kadmin.1: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadmin.8 delete
crypto/external/bsd/heimdal/dist/kadmin/kadmin.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadmin_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/kadmind.8: up to 1.5
crypto/external/bsd/heimdal/dist/kadmin/kadmind.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/load.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/mod.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/rpc.c: up to 1.3
crypto/external/bsd/heimdal/dist/kadmin/server.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/stash.c: up to 1.2
crypto/external/bsd/heimdal/dist/kadmin/util.c: up to 1.4
crypto/external/bsd/heimdal/dist/kcm/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kcm/acquire.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/cache.c: up to 1.3
crypto/external/bsd/heimdal/dist/kcm/client.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/config.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/connect.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/events.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/kcm.8: up to 1.5
crypto/external/bsd/heimdal/dist/kcm/kcm_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/log.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/main.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/protocol.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/renew.c: up to 1.2
crypto/external/bsd/heimdal/dist/kcm/sessions.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kdc/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kdc/announce.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/config.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/connect.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/default_config.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/digest-service.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/digest.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/fast.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/headers.h: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/hprop.8: up to 1.5
crypto/external/bsd/heimdal/dist/kdc/hprop.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/hprop.h: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/hpropd.8: up to 1.4
crypto/external/bsd/heimdal/dist/kdc/hpropd.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kdc-replay.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kdc-tester.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kdc.8: up to 1.5
crypto/external/bsd/heimdal/dist/kdc/kdc.h: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kdc_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kerberos5.c: up to 1.7
crypto/external/bsd/heimdal/dist/kdc/krb5tgs.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kstash.8: up to 1.4
crypto/external/bsd/heimdal/dist/kdc/kstash.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/kx509.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/log.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/main.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/misc.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/mit_dump.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/pkinit-ec.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/pkinit.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/process.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/set_dbinfo.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/string2key.8: up to 1.4
crypto/external/bsd/heimdal/dist/kdc/string2key.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/windc.c: up to 1.2
crypto/external/bsd/heimdal/dist/kdc/windc_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/kpasswd/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kpasswd/kpasswd-generator.c: up to 1.2
crypto/external/bsd/heimdal/dist/kpasswd/kpasswd.1: up to 1.2
crypto/external/bsd/heimdal/dist/kpasswd/kpasswd.c: up to 1.2
crypto/external/bsd/heimdal/dist/kpasswd/kpasswd_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kpasswd/kpasswdd.8: up to 1.4
crypto/external/bsd/heimdal/dist/kpasswd/kpasswdd.c: up to 1.4
crypto/external/bsd/heimdal/dist/krb5.conf: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kuser/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/kuser/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/kuser/copy_cred_cache.1: up to 1.4
crypto/external/bsd/heimdal/dist/kuser/copy_cred_cache.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/generate-requests.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/heimtools-commands.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/kuser/heimtools-version.rc: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/kuser/heimtools.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kcc-commands.in delete
crypto/external/bsd/heimdal/dist/kuser/kcc-version.rc delete
crypto/external/bsd/heimdal/dist/kuser/kcc.c delete
crypto/external/bsd/heimdal/dist/kuser/kcpytkt.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kdecode_ticket.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kdeltkt.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kdestroy.1: up to 1.5
crypto/external/bsd/heimdal/dist/kuser/kdestroy.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kdigest.8: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kdigest.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kgetcred.1: up to 1.4
crypto/external/bsd/heimdal/dist/kuser/kgetcred.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kimpersonate.8: up to 1.5
crypto/external/bsd/heimdal/dist/kuser/kimpersonate.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kinit.1: up to 1.4
crypto/external/bsd/heimdal/dist/kuser/kinit.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/klist.1: up to 1.4
crypto/external/bsd/heimdal/dist/kuser/klist.c: up to 1.4
crypto/external/bsd/heimdal/dist/kuser/kswitch.1: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kswitch.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kuser_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kverify.c: up to 1.2
crypto/external/bsd/heimdal/dist/kuser/kvno.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/45/NTMakefile delete
crypto/external/bsd/heimdal/dist/lib/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/asn1/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/asn1/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1-common.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1-template.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1_gen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1_print.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/asn1parse.y: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-common.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-der.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-gen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/check-template.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_cmp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_copy.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_format.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_free.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_get.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_length.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/der_put.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/digest.asn1: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/asn1/extra.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/fuzzer.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen.c: up to 1.5
crypto/external/bsd/heimdal/dist/lib/asn1/gen_decode.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_encode.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_free.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_length.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_locl.h: up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/gen_seq.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/gen_template.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/krb5.asn1: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/asn1/lex.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/lex.l: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/libasn1-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/asn1/main.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/asn1/pkinit.asn1: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/asn1/pku2u.asn1: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/asn1/rfc2459.asn1: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/asn1/roken_rename.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/symbol.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/symbol.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/template.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/asn1/test.asn1: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/asn1/test.opt: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/asn1/timegm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/Makefile.am: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/base/NTMakefile: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/base/array.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/baselocl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/bool.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/bsearch.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/data.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/db.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/dict.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/dll.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/heimbase.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/heimbase.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/heimbasepriv.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/heimqueue.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/json.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/null.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/number.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/roken_rename.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/string.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/test_base.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/base/version-script.map: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/com_err/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/com_err/com_err.3: up to 1.4
crypto/external/bsd/heimdal/dist/lib/com_err/com_err.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/com_err/com_err.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/com_err/com_right.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/com_err/compile_et.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/com_err/error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/com_err/lex.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/com_err/parse.y: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/gssapi/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/gen-oid.pl: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/gss-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/gss_acquire_cred.3: up to 1.4
crypto/external/bsd/heimdal/dist/lib/gssapi/gssapi.3: up to 1.5
crypto/external/bsd/heimdal/dist/lib/gssapi/gssapi/gssapi.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/gssapi/gssapi_krb5.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/gssapi/gssapi_oid.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/gssapi_mech.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/gsstool.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/8003.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/accept_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/acquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/add_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/aeap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/arcfour.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/authorize_localname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/canonicalize_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/cfx.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/compare_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/compat.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/context_time.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/copy_ccache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/creds.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/decapsulate.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/display_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/duplicate_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/encapsulate.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/export_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/export_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/external.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/get_mic.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/gsskrb5_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/import_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/import_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/init_sec_context.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_cred_by_mech.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_cred_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_mechs_for_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_names_for_mech.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/inquire_sec_context_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/pname_to_uid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/prf.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/process_context_token.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/sequence.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/set_cred_option.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/set_sec_context_option.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/store_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/test_acquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/test_cfx.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/test_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/test_kcred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/unwrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/verify_mic.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/wrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/libgssapi-exports.def: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/compat.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/cred.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/doxygen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_accept_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_acquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_acquire_cred_ext.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_acquire_cred_with_password.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_add_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_add_cred_with_password.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_add_oid_set_member.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_aeap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_authorize_localname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_buffer_set.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_canonicalize_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_compare_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_context_time.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_decapsulate_token.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_delete_name_attribute.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_delete_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_destroy_cred.c: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_display_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_display_name_ext.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_display_status.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_duplicate_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_encapsulate_token.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_export_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_export_name_composite.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_export_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_get_mic.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_get_name_attribute.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_import_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_import_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_indicate_mechs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_init_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_cred_by_mech.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_cred_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_mechs_for_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_inquire_sec_context_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_krb5.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_mech_switch.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_mo.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_names.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_oid_equal.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_pname_to_uid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_process_context_token.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_release_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_set_cred_option.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_set_name_attribute.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_store_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_test_oid_set_member.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_unwrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_verify_mic.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_wrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_wrap_size_limit.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gssapi.asn1: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/mech.5: up to 1.5
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/mech_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/accept_sec_context.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/acquire_cred.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/add_cred.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/canonicalize_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/compare_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/display_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/duplicate_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/export_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/init_sec_context.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/inquire_cred.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/inquire_cred_by_mech.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/netlogon/inquire_mechs_for_name.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/accept_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/acquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/add_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/canonicalize_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/compare_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/context_time.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/creds.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/crypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/display_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/duplicate_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/export_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/external.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/import_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/init_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/inquire_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/inquire_cred_by_mech.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/inquire_mechs_for_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/inquire_sec_context_by_oid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/iter_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/kdc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/process_context_token.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/oid.txt: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/accept_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/compat.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/context_stubs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/cred_stubs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/external.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/init_sec_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/spnego_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_acquire_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_add_store_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_context.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_kcred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/test_ntlm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/gssapi/version-script.map: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/aes.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/bn.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/bn.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/camellia-ntt.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/camellia.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/des.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/des.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/destest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dh-ltm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dh-tfm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dh.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dh.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dllmain.c delete
crypto/external/bsd/heimdal/dist/lib/hcrypto/dsa.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/dsa.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/ec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/ec.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/ecdsa.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/engine.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/engine.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-cc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-cc.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-crypt.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-hcrypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-openssl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-openssl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-pkcs11.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-pkcs11.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-w32.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-wincng.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-wincng.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/example_evp_cipher.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/hash.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/hmac.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libhcrypto-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_fast_mp_invmod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_fast_mp_montgomery_reduce.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_fast_s_mp_mul_digs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_fast_s_mp_mul_high_digs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_fast_s_mp_sqr.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_2expt.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_abs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_add.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_add_d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_addmod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_and.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_clamp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_clear.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_clear_multi.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_cmp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_cmp_d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_cmp_mag.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_cnt_lsb.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_copy.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_count_bits.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_div.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_div_2.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_div_2d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_div_3.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_div_d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_dr_is_modulus.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_dr_reduce.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_dr_setup.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_exch.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_expt_d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_exptmod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_exptmod_fast.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_exteuclid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_find_prime.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_fread.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_fwrite.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_gcd.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_get_int.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_grow.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_init.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_init_copy.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_init_multi.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_init_set.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_init_set_int.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_init_size.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_invmod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_invmod_slow.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_is_square.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_isprime.c delete
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_jacobi.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_karatsuba_mul.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_karatsuba_sqr.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_lcm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_lshd.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mod_2d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mod_d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_montgomery_calc_normalization.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_montgomery_reduce.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_montgomery_setup.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mul.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mul_2.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mul_2d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mul_d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_mulmod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_n_root.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_neg.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_or.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_prime_fermat.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_prime_is_divisible.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_prime_is_prime.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_prime_miller_rabin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_prime_next_prime.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_prime_rabin_miller_trials.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_prime_random_ex.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_radix_size.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_radix_smap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_read_radix.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_read_signed_bin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_read_unsigned_bin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce_2k.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce_2k_l.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce_2k_setup.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce_2k_setup_l.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce_is_2k.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce_is_2k_l.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_reduce_setup.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_rshd.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_set.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_set_int.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_shrink.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_signed_bin_size.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_sqr.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_sqrmod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_sqrt.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_sub.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_sub_d.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_submod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_to_signed_bin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_to_signed_bin_n.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_to_unsigned_bin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_to_unsigned_bin_n.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_toom_mul.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_toom_sqr.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_toradix.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_toradix_n.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_unsigned_bin_size.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_xor.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_zero.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_mp_zero_multi.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_prime_tab.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_reverse.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_s_mp_add.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_s_mp_exptmod.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_s_mp_mul_digs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_s_mp_mul_high_digs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_s_mp_sqr.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bn_s_mp_sub.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/bncore.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/demo/demo.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/demo/timing.c: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/2kprime.c: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/drprime.c: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/mersenne.c: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/mont.c: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/pprime.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/timer.asm: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/tune.c: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/gen.pl: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/logs/README: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/logs/index.html: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/makefile.cygwin_dll: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/mtest/logtab.h: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/mtest/mpi-config.h: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/mtest/mpi-types.h: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/mtest/mpi.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/mtest/mpi.h: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/mtest/mtest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/pics/makefile: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/pretty.build: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/tommath.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/tommath_class.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/tommath_superclass.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md2.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/hcrypto/md2.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md4.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md4.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md5.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md5.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/md5crypt_test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/mdtest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/passwd_dlg.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/pkcs12.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/pkcs5.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-egd.c delete
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-fortuna.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-timer.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-unix.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand-w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rand.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/randi.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rc2.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rc2test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rc4.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rctest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rijndael-alg-fst.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rnd_keys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa-gmp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa-ltm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa-tfm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/rsa.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/sha.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/sha.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/sha256.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/sha512.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_bn.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_bulk.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_cipher.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_crypto.in: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_dh.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_engine_dso.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_hmac.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_pkcs12.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_pkcs5.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_rsa.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/ui.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/undef.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/validate.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hcrypto/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/hdb/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/db.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/db3.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/dbinfo.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/ext.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-keytab.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-ldap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mdb.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mitdb.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-sqlite.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb.asn1: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/hdb.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hdb/hdb.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/hdb.schema: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/hdb_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hdb/hdb_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/keys.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hdb/keytab.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/libhdb-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hdb/mkey.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/print.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/test_dbinfo.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/test_hdbkeys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/test_hdbplugin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/test_mkey.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hdb/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/heimdal/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/heimdal/dllmain.c delete
crypto/external/bsd/heimdal/dist/lib/hx509/ChangeLog: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ca.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/cert.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hx509/char_map.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/cms.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/collector.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/crypto-ec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/crypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/data/mkcert.sh: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/openssl.cnf: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r1TestCA.cert.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r1TestCA.key.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r1TestCA.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestClient.cert.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestClient.key.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestClient.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestServer.cert.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestServer.key.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp160r2TestServer.pem delete
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r1TestCA.cert.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r1TestCA.key.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r1TestCA.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestClient.cert.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestClient.key.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestClient.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestServer.cert.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestServer.key.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/data/secp256r2TestServer.pem: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/hx509/doxygen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/env.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/file.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/hx509.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/hx509_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/hx_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/hxtool-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/hxtool.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/keyset.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_dir.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_file.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_keychain.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_mem.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_null.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_p11.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ks_p12.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/libhx509-exports.def: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/lock.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/print.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/ref/pkcs11.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/revoke.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hx509/sel-lex.l: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/sel.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/sel.h: up to 1.4
crypto/external/bsd/heimdal/dist/lib/hx509/softp11.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/test_ca.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_cert.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_chain.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_cms.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_expr.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/test_name.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/test_nist.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_nist2.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_nist_pkcs12.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/hx509/test_soft_pkcs11.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/hx509/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ipc/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ipc/client.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/heim-ipc.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/server.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/tc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/ts-http.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ipc/ts.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/kadm5/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/acl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ad.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/kadm5/admin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/chpass_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/chpass_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/common_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/context_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/create_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/create_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/default_keys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/delete_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/destroy_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/destroy_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ent_setup.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/free.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/get_princs_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/get_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/init_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/init_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop-commands.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop-log.8: up to 1.6
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop-log.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop.8: up to 1.5
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_master.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_slave.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/kadm5_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/kadm5/kadm5_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/keys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/libkadm5srv-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/log.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/marshall.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/modify_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/password_quality.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/private.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/randkey_c.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/randkey_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/rename_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/send_recv.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/set_keys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/setkey3_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/test_pw_quality.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kadm5/version-script-client.map: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/kadm5/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/kafs/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/kafs/afskrb5.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/afssys.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/kafs.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/kafs.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/kafs_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kafs/rxkad_kdf.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/kdfs/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/kdfs/k5dfspag.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/krb5/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/krb5/acache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/acl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/addr_families.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/aes-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/an2ln_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/aname_to_localname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/appdefault.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/asn1_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/auth_context.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/build_auth.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/cache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/changepw.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/codec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/config_file.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/config_reg.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/constants.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/context.c: up to 1.6
crypto/external/bsd/heimdal/dist/lib/krb5/convert_creds.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/copy_host_realm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/creds.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-aes-sha1.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-aes-sha2.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-aes.c delete
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-algs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-arcfour.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des-common.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des3.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-evp.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-null.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-pk.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-stubs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/crypto.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/data.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/db_plugin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/db_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/dcache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/deprecated.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/derived-key-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/digest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/dll.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/doxygen.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/eai_to_heim_errno.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/enomem.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/error_string.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/expand_hostname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/expand_path.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/fast.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/fcache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/generate_subkey.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_addrs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_default_principal.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_default_realm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_for_creds.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_host_realm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/get_in_tkt.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/heim_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/krb5/init_creds.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/init_creds_pw.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/kcm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/kerberos.8: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keyblock.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab_any.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab_file.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab_keyfile.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/keytab_memory.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5-plugin.7: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5.conf.5: up to 1.6
crypto/external/bsd/heimdal/dist/lib/krb5/krb5.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_auth_context.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_c_make_checksum.3: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_check_transited.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_create_checksum.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_creds.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_digest.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_encrypt.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_err.et: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_get_creds.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_get_init_creds.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_init_context.3: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_locl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_mk_req.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_parse_name.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_principal.3: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_set_default_realm.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_timeofday.3: up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/krbhst.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/kuserok.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/kuserok_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/libkrb5-exports.def.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/krb5/locate_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/log.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mcache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/misc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mit_glue.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mk_error.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mk_priv.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mk_rep.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mk_req_ext.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/mk_safe.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/n-fold-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/n-fold.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/net_read.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/net_write.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pac.c: up to 1.3
crypto/external/bsd/heimdal/dist/lib/krb5/padata.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pcache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pkinit-ec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pkinit.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/plugin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/principal.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/pseudo-random-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_cred.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_priv.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_rep.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_req.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/rd_safe.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/recvauth.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/replay.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-aes-sha1.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-aes-sha2.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-aes.c delete
crypto/external/bsd/heimdal/dist/lib/krb5/salt-arcfour.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-des.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt-des3.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/salt.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/scache.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/send_to_kdc.c: up to 1.7
crypto/external/bsd/heimdal/dist/lib/krb5/send_to_kdc_plugin.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/sendauth.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/set_default_realm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/sp800-108-kdf.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store-int.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store-int.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store_emem.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store_fd.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store_mem.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/store_sock.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/string-to-key-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_acl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_alname.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_ap-req.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_canon.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_cc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_config.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_crypto.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_crypto_wrapping.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_expand_toks.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_fx.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_gic.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_keytab.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_kuserok.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_pac.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_pknistkdf.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/test_plugin.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_rfc3961.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_set_kvno0.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_store.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_time.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/test_x500.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/ticket.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/transited.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/verify_init.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/verify_krb5_conf.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/verify_user.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/krb5/version-script.map: up to 1.4
crypto/external/bsd/heimdal/dist/lib/krb5/warn.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/ntlm/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/ntlm/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/ntlm/apop.c: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/digest.c: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/heim-auth.h: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/heimntlm.h: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/ntlm.c: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/ntlm_err.et: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/ntlm/test_commonauth.c: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/ntlm/test_ntlm.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/otp/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/otp/otp_md.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/otp/otptest.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/ChangeLog: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/roken/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/roken/base64-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/base64.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/base64.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/bswap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/cloexec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/concat.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/ct.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/daemon.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/detach.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/dirent-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/dirent.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/dlfcn.hin: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/roken/dlfcn_w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/dumpdata.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/ecalloc.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/err.hin: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/fnmatch.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/get_window_size.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/roken/getaddrinfo_hostspec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getarg.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getarg.c: up to 1.5
crypto/external/bsd/heimdal/dist/lib/roken/getcap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getifaddrs-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getifaddrs.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getifaddrs_w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/getxxyyy.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/glob.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/hex-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/hex.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/issuid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/memset_s.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/mkdir.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/ndbm_wrap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/parse_bytes-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/parse_time-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/parse_time.3: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/parse_units.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/qsort.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/rand.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/realloc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/rename.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/resolve-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/resolve.c: up to 1.5
crypto/external/bsd/heimdal/dist/lib/roken/rkpty.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/roken-common.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/roken.awk: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/roken/roken.h.in: up to 1.4
crypto/external/bsd/heimdal/dist/lib/roken/roken_gethostby.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/rtbl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/rtbl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/search.hin: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/roken/sendmsg.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/simple_exec.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/simple_exec_w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/sleep.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/snprintf-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/snprintf.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/socket.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/socket_wrapper.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/sockstartup_w32.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/stdint.hin: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/lib/roken/strftime.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/strsep_copy.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/strtoll.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/strtoull.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/syslogc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/test-detach.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/test-mem.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/test-mini_inetd.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/tsearch-test.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/tsearch.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/unvis.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/roken/win32_alloc.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/roken/write_pid.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/sl/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/sl/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/sl/sl.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/sl/sl.h: up to 1.2
crypto/external/bsd/heimdal/dist/lib/sl/slc-gram.y: up to 1.2
crypto/external/bsd/heimdal/dist/lib/vers/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/lib/vers/print_version.c: up to 1.4
crypto/external/bsd/heimdal/dist/lib/wind/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/wind/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/wind/bidi.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/combining.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/errorlist.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/gen-bidi.py: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/wind/gen-combining.py: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/wind/gen-errorlist.py: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/wind/gen-normalize.py: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/lib/wind/ldap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/libwind-exports.def: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/lib/wind/map.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/normalize.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/stringprep.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/test-bidi.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/test-ldap.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/test-normalize.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/test-prohibited.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/test-utf8.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/utf8.c: up to 1.2
crypto/external/bsd/heimdal/dist/lib/wind/version-script.map: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/packages/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/packages/mac/Resources/English.lproj/Welcome.rtf: up to 1.2
crypto/external/bsd/heimdal/dist/packages/mac/mac.sh: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/packages/windows/NTMakefile: up to 1.2
crypto/external/bsd/heimdal/dist/packages/windows/assembly/Heimdal.Kerberos.manifest.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/packages/windows/assembly/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/packages/windows/assembly/policy.Heimdal.Kerberos.in: up to 1.2
crypto/external/bsd/heimdal/dist/packages/windows/installer/NTMakefile: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-assemblies.wxs: up to 1.2
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-command.wxs: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-gss.wxs: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-installer.wxs: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/packages/windows/installer/heimdal-policy.wxs: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/packages/windows/installer/images/Heimdal_banner.bmp: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/images/Heimdal_banner.png: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/images/Heimdal_dialog.bmp: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/images/Heimdal_dialog.png: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/packages/windows/installer/lang/en-us.wxl: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/packages/windows/sdk/NTMakefile: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/po/heimdal_krb5/heimdal_krb5.pot: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/po/heimdal_krb5/sv_SE.po: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/bin/Makefile.am: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/bin/intr.c: up to 1.2
crypto/external/bsd/heimdal/dist/tests/bin/setup-env.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/can/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/can/check-can.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/can/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/can/mit-pkinit-20070607.xf: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/can/test_can.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/db/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/db/add-modify-delete.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/db/check-aliases.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/db/check-dbinfo.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/db/have-db.in: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/db/krb5-mit.conf.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/db/krb5.conf.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/db/loaddump-db.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/gss/check-basic.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/check-context.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/check-gssmask.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/check-ntlm.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/gss/check-spnego.in: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/gss/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/java/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/java/check-kinit.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/java/jaas.conf: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/java/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/Makefile.am: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/an2ln-db.txt: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-authz.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-canon.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-cc.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-delegation.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-des.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-digest.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/check-fast.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-hdb-mitdb.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-iprop.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-kadmin.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/check-kdc.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/check-kinit.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-kpasswdd.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-pkinit.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/check-referral.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/check-tester.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/check-uu.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/hdb-mitdb: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/hdb-mitdb.kadm5: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/hdb-mitdb.mkey: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/heimdal.acl: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/k5login/foo: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/kdc-tester1.json: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/kdc-tester2.json: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/kdc-tester3.json: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/kdc-tester4.json.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-authz.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-authz2.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-canon.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-canon2.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-hdb-mitdb.conf.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tests/kdc/krb5-pkinit.conf.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/krb5.conf.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/krb5.conf.keys.in: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/kdc/leaks-kill.sh: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/kdc/wait-kdc.sh: up to 1.2
crypto/external/bsd/heimdal/dist/tests/ldap/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/ldap/check-ldap.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/ldap/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/ldap/slapd-init.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/ldap/slapd.conf: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/tests/plugin/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tests/plugin/check-pac.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/plugin/krb5.conf.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tests/plugin/windc.c: up to 1.2
crypto/external/bsd/heimdal/dist/tools/Makefile.am: up to 1.1.1.4
crypto/external/bsd/heimdal/dist/tools/heimdal-gssapi.pc.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tools/heimdal-kadm-client.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/heimdal-kadm-server.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/heimdal-krb5.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/kadm-client.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/kadm-server.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/kafs.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/krb5-config.1: up to 1.2
crypto/external/bsd/heimdal/dist/tools/krb5-config.in: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/tools/krb5-gssapi.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/tools/krb5.pc.in: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/windows/NTMakefile.config: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/windows/NTMakefile.version: up to 1.1.1.2
crypto/external/bsd/heimdal/dist/windows/NTMakefile.w32: up to 1.1.1.3
crypto/external/bsd/heimdal/dist/windows/README delete
crypto/external/bsd/heimdal/dist/windows/README.md: up to 1.1.1.1
crypto/external/bsd/heimdal/dist/windows/maint.el delete
crypto/external/bsd/heimdal/dist/windows/version.rc: up to 1.1.1.2
crypto/external/bsd/heimdal/heimdal2netbsd: up to 1.8
crypto/external/bsd/heimdal/include/config.h: up to 1.8 via patch
crypto/external/bsd/heimdal/include/der-private.h: up to 1.2
crypto/external/bsd/heimdal/include/der-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/gsskrb5-private.h: up to 1.3
crypto/external/bsd/heimdal/include/hdb-private.h: up to 1.2
crypto/external/bsd/heimdal/include/hdb-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/heimntlm-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/hx509-private.h: up to 1.3
crypto/external/bsd/heimdal/include/hx509-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/kadm5-private.h: up to 1.2
crypto/external/bsd/heimdal/include/kadm5-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/kcm-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/kdc-private.h: up to 1.3
crypto/external/bsd/heimdal/include/kdc-protos.h: up to 1.2
crypto/external/bsd/heimdal/include/krb5-private.h: up to 1.3
crypto/external/bsd/heimdal/include/krb5-protos.h: up to 1.4
crypto/external/bsd/heimdal/include/krb5-types.h: up to 1.7
crypto/external/bsd/heimdal/include/ntlm-private.h: up to 1.3
crypto/external/bsd/heimdal/include/roken.h: up to 1.7
crypto/external/bsd/heimdal/include/spnego-private.h: up to 1.2
crypto/external/bsd/heimdal/include/version.h: up to 1.3
crypto/external/bsd/heimdal/lib/libasn1/Makefile: up to 1.5
crypto/external/bsd/heimdal/lib/libasn1/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libcom_err/compile_et/Makefile: up to 1.4
crypto/external/bsd/heimdal/lib/libcom_err/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libgssapi/Makefile: up to 1.4
crypto/external/bsd/heimdal/lib/libgssapi/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libhdb/Makefile: up to 1.4
crypto/external/bsd/heimdal/lib/libhdb/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libheimbase/Makefile: up to 1.2
crypto/external/bsd/heimdal/lib/libheimbase/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libheimntlm/Makefile: up to 1.2
crypto/external/bsd/heimdal/lib/libheimntlm/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libhx509/Makefile: up to 1.5
crypto/external/bsd/heimdal/lib/libhx509/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkadm5clnt/Makefile: up to 1.3
crypto/external/bsd/heimdal/lib/libkadm5clnt/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkadm5srv/Makefile: up to 1.4
crypto/external/bsd/heimdal/lib/libkadm5srv/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkafs/Makefile: up to 1.3
crypto/external/bsd/heimdal/lib/libkafs/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkdc/Makefile: up to 1.3
crypto/external/bsd/heimdal/lib/libkdc/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libkrb5/Makefile: up to 1.11
crypto/external/bsd/heimdal/lib/libkrb5/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libroken/Makefile: up to 1.2
crypto/external/bsd/heimdal/lib/libroken/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libsl/shlib_version: up to 1.2
crypto/external/bsd/heimdal/lib/libsl/slc/Makefile: up to 1.4
crypto/external/bsd/heimdal/lib/libwind/shlib_version: up to 1.2
crypto/external/bsd/heimdal/libexec/Makefile.inc: up to 1.5
crypto/external/bsd/heimdal/sbin/Makefile.inc: up to 1.4
crypto/external/bsd/heimdal/sbin/kadmin/Makefile: up to 1.3
crypto/external/bsd/heimdal/sbin/kdigest/Makefile: up to 1.3
crypto/external/bsd/heimdal/sbin/ktutil/Makefile: up to 1.3
distrib/sets/lists/base/ad.mips64eb: patch
distrib/sets/lists/base/ad.mips64el: patch
distrib/sets/lists/base/md.amd64: patch
distrib/sets/lists/base/md.sparc64: patch
distrib/sets/lists/base/mi: patch
distrib/sets/lists/base/shl.mi: patch
distrib/sets/lists/comp/ad.mips64eb: patch
distrib/sets/lists/comp/ad.mips64el patch
distrib/sets/lists/comp/md.amd64: patch
distrib/sets/lists/comp/md.sparc64: patch
distrib/sets/lists/comp/mi: patch
distrib/sets/lists/comp/shl.mi: patch
distrib/sets/lists/man/mi: patch
external/bsd/bind/Makefile.inc: 1.25 via patch
external/gpl2/xcvs/bin/xcvs/Makefile: 1.5
libexec/telnetd/Makefile: 1.50
share/mk/bsd.prog.mk: 1.301
usr.bin/passwd/Makefile: 1.45 via patch
usr.bin/telnet/Makefile: 1.51
usr.sbin/racoon/Makefile: 1.28
Update Heimdal to 7.1.
 1.12 06-Feb-2005  perry de-__P, ANSIfy function declarations, remove obsolete "register" declarations.
 1.11 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.10 14-Jul-2003  itojun remove unneeded #ifdefs. improves readability.
(confirmed that exact same *.o is produced)
 1.9 20-Aug-2001  wiz Add some (const char *) casts per bin/13667 by Brian Ginsbach.
 1.8 19-Jul-2001  itojun bound-check all "*nfrontp++" code. from openbsd/heimdal.
bark if file descriptor goes above FD_SETSIZE. from openbsd.

XXX needs more checking.
XXX what is tab stop size for this code? need more consistency...
XXX we should really remove #ifdef CRAY, UNICOS5 and such.
we just cannot read it through.
 1.7 22-Jun-2000  thorpej Bring the telnet situation back into better shape. Specifically,
pull in just about all of the differences from the crypto-us telnet
suite (which includes Kerberos 4 and connection encryption support).
Also bring in the Kerberos 5 support from the Heimdal telnet, and
frob a little so that it can work with the non-Heimdal telnet suite.

There is still some work left to do, specifically:
- Add Heimdal's ticket forwarding support to the Berkeley Kerberos 4
module.
- Add connection encryption support to the Heimdal Kerberos 5
module. Hints on this can be taken from the MIT Kerberos 5
module which still exists in crypto-us.

However, even with the shortcomings listed above, this is a
better situation than using the stock Heimdal telnet suite,
which does not understand the IPSec policy stuff, and is also
based on much older code which contains bugs that we have already
fixed in the NetBSD sources.
 1.6 01-Feb-2000  assar branches: 1.6.4;
(net_write): rename to telnet_net_write
 1.5 16-Oct-1997  mikel kill old-style getenv() declaration
 1.4 08-Oct-1997  mrg WARNS?=1. RCS ids.
 1.3 28-Feb-1996  thorpej RCS id cosmetics.
 1.2 24-Feb-1996  jtk update to telnetd from 95.10.23 version. Includes Borman's scrub_env()
to keep stuff out of the environment on the way to exec (we already have
one in the state machine that keeps them from arriving over the wire, so
this should be redundant, but it'll make any further updates easier to
have it present).

also, RCS Id police.
 1.1 25-Feb-1994  cgd branches: 1.1.1;
new telnetd from ftp.cray.com. Encryption support ripped out, pending
figuring out what to do about it...
 1.1.1.1 24-Sep-1994  mycroft Import original 4.4-Lite version.
 1.6.4.2 29-Jul-2001  jhawk Pull up revision 1.8 (requested by itojun):
Security-related fixups for telnet
Bound-check all "*nfrontp++" code. From OpenBSD and Heimdal.
Complain if file descriptor goes above FD_SETSIZE. From OpenBSD.
 1.6.4.1 22-Jun-2000  thorpej Update from trunk:
Bring the telnet situation back into better shape. Specifically,
pull in just about all of the differences from the crypto-us telnet
suite (which includes Kerberos 4 and connection encryption support).
Also bring in the Kerberos 5 support from the Heimdal telnet, and
frob a little so that it can work with the non-Heimdal telnet suite.

There is still some work left to do, specifically:
- Add Heimdal's ticket forwarding support to the Berkeley Kerberos 4
module.
- Add connection encryption support to the Heimdal Kerberos 5
module. Hints on this can be taken from the MIT Kerberos 5
module which still exists in crypto-us.

However, even with the shortcomings listed above, this is a
better situation than using the stock Heimdal telnet suite,
which does not understand the IPSec policy stuff, and is also
based on much older code which contains bugs that we have already
fixed in the NetBSD sources.
 1.16 21-Feb-2007  hubertf Move ctype.h from headers to files which really need it
From: Slava Semushin <slava.semushin@gmail.com>
 1.15 17-Nov-2003  wiz Various typo fixes from Jonathon Gray via jmc@openbsd.
 1.14 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.13 14-Jul-2003  itojun remove unneeded #ifdefs. improves readability.
(confirmed that exact same *.o is produced)
 1.12 18-Sep-2002  mycroft select() -> poll()
 1.11 26-May-2002  wiz __STDC__ is always defined on NetBSD.
 1.10 24-Aug-2001  wiz Remove lots of #ifdef's for dead Cray hardware and obsolete UNICOS releases;
also some Cray-specific fixes. No change for NetBSD.
From Brian Ginsbach of Cray Inc. in bin/13614 and private mail.
 1.9 18-Jun-2001  wiz Symmetric has one s and two m's.
 1.8 19-Nov-2000  christos Buffer overflow and environment passing fixes [originally inspired from
FreeBSD]. We really didn't need the environment fixes, but for the sake
of keeping the code as close as possible...
 1.7 01-Apr-1998  kleink Need <time.h> for various definitions, so just include it in this one place.
 1.6 28-Feb-1996  thorpej RCS id cosmetics.
 1.5 24-Feb-1996  jtk update to telnetd from 95.10.23 version. Includes Borman's scrub_env()
to keep stuff out of the environment on the way to exec (we already have
one in the state machine that keeps them from arriving over the wire, so
this should be redundant, but it'll make any further updates easier to
have it present).

also, RCS Id police.
 1.4 25-Feb-1994  cgd new telnetd from ftp.cray.com. Encryption support ripped out, pending
figuring out what to do about it...
 1.3 30-Aug-1993  mycroft Add new uname() cookies like getty.
(I had thought telnetd spawned a getty. Sigh.)
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 24-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.23 23-Apr-2020  joerg Don't play #define games with extern, just have a separate list to avoid commons
 1.22 10-Jan-2012  joerg Use __dead
 1.21 09-Jan-2012  christos PR/45805: Borodin Oleg: telnet/telnetd with -DAUTHENTICATION -DENCRYPTION
(rfc2941)
- separate MKCRYPTO from USE_KERBEROS
- WARNS=4
 1.20 21-Jun-2005  lha branches: 1.20.42;
Remove static local variable so its easier to correctly use strlcpy.
 1.19 06-Feb-2005  perry branches: 1.19.2;
de-__P, ANSIfy function declarations, remove obsolete "register" declarations.
 1.18 07-Aug-2003  agc branches: 1.18.2; 1.18.4;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.17 14-Jul-2003  itojun remove unneeded #ifdefs. improves readability.
(confirmed that exact same *.o is produced)
 1.16 24-Aug-2001  wiz Remove lots of #ifdef's for dead Cray hardware and obsolete UNICOS releases;
also some Cray-specific fixes. No change for NetBSD.
From Brian Ginsbach of Cray Inc. in bin/13614 and private mail.
 1.15 20-Aug-2001  wiz Add extern before terminaltype. (Definition is in global.c via
`#define extern' and `#include <ext.h>'.)
Last part of bin/13667 by Brian Ginsbach.
 1.14 20-Aug-2001  wiz Move #endif so that inclusion of libtelnet/auth.h and
libtelnet/encrypt.h do not depend upon DEFAULT_IM being undefined.
From bin/13667 by Brian Ginsbach.
 1.13 19-Jul-2001  itojun bound-check all "*nfrontp++" code. from openbsd/heimdal.
bark if file descriptor goes above FD_SETSIZE. from openbsd.

XXX needs more checking.
XXX what is tab stop size for this code? need more consistency...
XXX we should really remove #ifdef CRAY, UNICOS5 and such.
we just cannot read it through.
 1.12 04-Feb-2001  christos fix redundant declarations.
 1.11 22-Jun-2000  thorpej Bring the telnet situation back into better shape. Specifically,
pull in just about all of the differences from the crypto-us telnet
suite (which includes Kerberos 4 and connection encryption support).
Also bring in the Kerberos 5 support from the Heimdal telnet, and
frob a little so that it can work with the non-Heimdal telnet suite.

There is still some work left to do, specifically:
- Add Heimdal's ticket forwarding support to the Berkeley Kerberos 4
module.
- Add connection encryption support to the Heimdal Kerberos 5
module. Hints on this can be taken from the MIT Kerberos 5
module which still exists in crypto-us.

However, even with the shortcomings listed above, this is a
better situation than using the stock Heimdal telnet suite,
which does not understand the IPSec policy stuff, and is also
based on much older code which contains bugs that we have already
fixed in the NetBSD sources.
 1.10 13-Jan-2000  ad branches: 1.10.4;
Make 'if' capability from gettytab work. *shudder*.
 1.9 12-Feb-1999  dean Fix for PR 5821
- s/SecurID/SECURELOGIN/g and define SECURELOGIN in Makefile
- update man page to reflect S/Key and Kerboros authentication used
not SecurID
 1.8 16-Oct-1997  mikel startslave() prototype is independent of AUTHENTICATION
 1.7 08-Oct-1997  mrg WARNS?=1. RCS ids.
 1.6 28-Feb-1996  thorpej RCS id cosmetics.
 1.5 24-Feb-1996  jtk update to telnetd from 95.10.23 version. Includes Borman's scrub_env()
to keep stuff out of the environment on the way to exec (we already have
one in the state machine that keeps them from arriving over the wire, so
this should be redundant, but it'll make any further updates easier to
have it present).

also, RCS Id police.
 1.4 25-Feb-1994  cgd new telnetd from ftp.cray.com. Encryption support ripped out, pending
figuring out what to do about it...
 1.3 30-Aug-1993  mycroft Add new uname() cookies like getty.
(I had thought telnetd spawned a getty. Sigh.)
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 24-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.10.4.2 29-Jul-2001  jhawk Pull up revision 1.13 (requested by itojun):
Security-related fixups for telnet
Bound-check all "*nfrontp++" code. From OpenBSD and Heimdal.
Complain if file descriptor goes above FD_SETSIZE. From OpenBSD.
 1.10.4.1 22-Jun-2000  thorpej Update from trunk:
Bring the telnet situation back into better shape. Specifically,
pull in just about all of the differences from the crypto-us telnet
suite (which includes Kerberos 4 and connection encryption support).
Also bring in the Kerberos 5 support from the Heimdal telnet, and
frob a little so that it can work with the non-Heimdal telnet suite.

There is still some work left to do, specifically:
- Add Heimdal's ticket forwarding support to the Berkeley Kerberos 4
module.
- Add connection encryption support to the Heimdal Kerberos 5
module. Hints on this can be taken from the MIT Kerberos 5
module which still exists in crypto-us.

However, even with the shortcomings listed above, this is a
better situation than using the stock Heimdal telnet suite,
which does not understand the IPSec policy stuff, and is also
based on much older code which contains bugs that we have already
fixed in the NetBSD sources.
 1.18.4.1 01-Jul-2005  tron Apply patch (requested by lha in ticket #2041):
Remove static local variable so its easier to correctly use strlcpy.
 1.18.2.1 01-Jul-2005  tron Apply patch (requested by lha in ticket #2041):
Remove static local variable so its easier to correctly use strlcpy.
 1.19.2.1 27-Jun-2005  tron Pull up revision 1.20 (requested by lha in ticket #502):
Remove static local variable so its easier to correctly use strlcpy.
 1.20.42.1 17-Apr-2012  yamt sync with head
 1.9 23-Apr-2020  joerg Don't play #define games with extern, just have a separate list to avoid commons
 1.8 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.7 08-Oct-1997  mrg WARNS?=1. RCS ids.
 1.6 28-Feb-1996  thorpej RCS id cosmetics.
 1.5 24-Feb-1996  jtk RCS Id Police
 1.4 24-Feb-1996  jtk update to telnetd from 95.10.23 version. Includes Borman's scrub_env()
to keep stuff out of the environment on the way to exec (we already have
one in the state machine that keeps them from arriving over the wire, so
this should be redundant, but it'll make any further updates easier to
have it present).

also, RCS Id police.
 1.3 25-Feb-1994  cgd new telnetd from ftp.cray.com. Encryption support ripped out, pending
figuring out what to do about it...
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 24-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.6 14-Jul-2003  itojun remove unneeded #ifdefs. improves readability.
(confirmed that exact same *.o is produced)
 1.5 28-Feb-1996  thorpej RCS id cosmetics.
 1.4 24-Feb-1996  jtk update to telnetd from 95.10.23 version. Includes Borman's scrub_env()
to keep stuff out of the environment on the way to exec (we already have
one in the state machine that keeps them from arriving over the wire, so
this should be redundant, but it'll make any further updates easier to
have it present).

also, RCS Id police.
 1.3 25-Feb-1994  cgd new telnetd from ftp.cray.com. Encryption support ripped out, pending
figuring out what to do about it...
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 24-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.16 01-Nov-2022  andvar s/varaible/variable/ and s/varible/variable/ in comments.
 1.15 24-Nov-2006  christos fix spelling of accommodate; from Zapher.
 1.14 06-Feb-2005  perry de-__P, ANSIfy function declarations, remove obsolete "register" declarations.
 1.13 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.12 15-Jul-2003  itojun use snprintf
 1.11 14-Jul-2003  itojun remove unneeded #ifdefs. improves readability.
(confirmed that exact same *.o is produced)
 1.10 16-Sep-2001  wiz Spell 'occurred' with two 'r's.
 1.9 04-Feb-2001  christos fix redundant declarations.
 1.8 10-Aug-1998  perry bzero->memset, bcopy->memcpy, bcmp->memcmp
 1.7 16-Oct-1997  mikel kill some excess whitespace
 1.6 08-Oct-1997  mrg WARNS?=1. RCS ids.
 1.5 28-Feb-1996  thorpej RCS id cosmetics.
 1.4 24-Feb-1996  jtk RCS Id Police
 1.3 25-Feb-1994  cgd new telnetd from ftp.cray.com. Encryption support ripped out, pending
figuring out what to do about it...
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 24-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.35 29-Oct-2024  kre PR bin/58787 telnetd - handle auto authentication better

Apparently from FreeBSD via RVP -- but FreeBSD deleted telnetd
more than 2 years ago, so I assume instead from
https://github.com/cschuber/freebsd-telnet/tree/main/contrib/telnet
 1.34 10-Feb-2024  andvar branches: 1.34.2;
fix various typos in comments and log messages.
 1.33 22-Sep-2023  shm Fix off by one in telrcv()

In case of "\r" in the data buffer, the code was unconditionally looking ahead
to next character, even if "\r" was last character in the buffer. That
condition leads to read outside of the data (one byte after the array)

Thanks christos@ for the review
 1.32 09-Aug-2021  andvar branches: 1.32.2;
s/fist/first/
 1.31 03-Feb-2019  mrg branches: 1.31.2;
- add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
this case, and thus can't be marked __dead easily
 1.30 12-Dec-2016  maya branches: 1.30.14;
acknowleg -> acknowledg, proceedure -> procedure.
only comments were changed.

from miod
 1.29 09-Jan-2012  christos branches: 1.29.22;
PR/45805: Borodin Oleg: telnet/telnetd with -DAUTHENTICATION -DENCRYPTION
(rfc2941)
- separate MKCRYPTO from USE_KERBEROS
- WARNS=4
 1.28 23-Dec-2011  christos there is a macro for that, use it.
 1.27 21-Feb-2007  hubertf branches: 1.27.34;
Move ctype.h from headers to files which really need it
From: Slava Semushin <slava.semushin@gmail.com>
 1.26 21-Jun-2005  lha Remove static local variable so its easier to correctly use strlcpy.
 1.25 06-Feb-2005  perry branches: 1.25.2;
de-__P, ANSIfy function declarations, remove obsolete "register" declarations.
 1.24 07-Aug-2003  agc branches: 1.24.2; 1.24.4;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.23 14-Jul-2003  itojun remove unneeded #ifdefs. improves readability.
(confirmed that exact same *.o is produced)
 1.22 11-Feb-2002  wiz achive is not a good word.
 1.21 24-Aug-2001  wiz Remove lots of #ifdef's for dead Cray hardware and obsolete UNICOS releases;
also some Cray-specific fixes. No change for NetBSD.
From Brian Ginsbach of Cray Inc. in bin/13614 and private mail.
 1.20 20-Aug-2001  wiz Typo fixes and syslog string improvements, from bin/13667 by Brian Ginsbach.
 1.19 20-Aug-2001  wiz Add some (const char *) casts per bin/13667 by Brian Ginsbach.
 1.18 27-Jul-2001  wiz Fix compilation without -DLINEMODE, per bin/13571 from Onno van der Linden.
 1.17 19-Jul-2001  itojun vsnprintf() can return value longer than the actual string. from assar
 1.16 19-Jul-2001  itojun try netflush() if buffer is too low.
 1.15 19-Jul-2001  itojun bound-check all "*nfrontp++" code. from openbsd/heimdal.
bark if file descriptor goes above FD_SETSIZE. from openbsd.

XXX needs more checking.
XXX what is tab stop size for this code? need more consistency...
XXX we should really remove #ifdef CRAY, UNICOS5 and such.
we just cannot read it through.
 1.14 04-Feb-2001  christos fix redundant declarations.
 1.13 10-Oct-2000  is Format string cleanups by sommerfeld.
 1.12 22-Jun-2000  thorpej Bring the telnet situation back into better shape. Specifically,
pull in just about all of the differences from the crypto-us telnet
suite (which includes Kerberos 4 and connection encryption support).
Also bring in the Kerberos 5 support from the Heimdal telnet, and
frob a little so that it can work with the non-Heimdal telnet suite.

There is still some work left to do, specifically:
- Add Heimdal's ticket forwarding support to the Berkeley Kerberos 4
module.
- Add connection encryption support to the Heimdal Kerberos 5
module. Hints on this can be taken from the MIT Kerberos 5
module which still exists in crypto-us.

However, even with the shortcomings listed above, this is a
better situation than using the stock Heimdal telnet suite,
which does not understand the IPSec policy stuff, and is also
based on much older code which contains bugs that we have already
fixed in the NetBSD sources.
 1.11 08-Oct-1997  mrg branches: 1.11.4; 1.11.12;
WARNS?=1. RCS ids.
 1.10 07-Sep-1996  explorer Block ENV and BASH_ENV from client. From David Holland <dholland@hcs.harvard.edu>
 1.9 28-Feb-1996  thorpej RCS id cosmetics.
 1.8 24-Feb-1996  jtk update to telnetd from 95.10.23 version. Includes Borman's scrub_env()
to keep stuff out of the environment on the way to exec (we already have
one in the state machine that keeps them from arriving over the wire, so
this should be redundant, but it'll make any further updates easier to
have it present).

also, RCS Id police.
 1.7 19-Oct-1995  ghudson Cleanup, from Mark Eichin.
 1.6 18-Oct-1995  ghudson Filter potentially dangerous environment variables passed from
telnet client.
 1.5 25-Feb-1994  cgd branches: 1.5.4;
new telnetd from ftp.cray.com. Encryption support ripped out, pending
figuring out what to do about it...
 1.4 02-Aug-1993  mycroft Nuke remaining patchkit headers.
 1.3 01-Aug-1993  mycroft Add RCS identifiers.
 1.2 21-Mar-1993  cgd after 0.2.2 "stable" patches applied
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 24-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.5.4.2 19-Oct-1995  ghudson Update from trunk.
 1.5.4.1 18-Oct-1995  ghudson Update from trunk.
 1.11.12.3 29-Jul-2001  jhawk Pull up revision 1.17 via patch (requested by itojun):
Security-related fixups for telnet
Bound-check all "*nfrontp++" code. From OpenBSD and Heimdal.
Complain if file descriptor goes above FD_SETSIZE. From OpenBSD.
 1.11.12.2 17-Oct-2000  tv Pullup libexec string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.
 1.11.12.1 22-Jun-2000  thorpej Update from trunk:
Bring the telnet situation back into better shape. Specifically,
pull in just about all of the differences from the crypto-us telnet
suite (which includes Kerberos 4 and connection encryption support).
Also bring in the Kerberos 5 support from the Heimdal telnet, and
frob a little so that it can work with the non-Heimdal telnet suite.

There is still some work left to do, specifically:
- Add Heimdal's ticket forwarding support to the Berkeley Kerberos 4
module.
- Add connection encryption support to the Heimdal Kerberos 5
module. Hints on this can be taken from the MIT Kerberos 5
module which still exists in crypto-us.

However, even with the shortcomings listed above, this is a
better situation than using the stock Heimdal telnet suite,
which does not understand the IPSec policy stuff, and is also
based on much older code which contains bugs that we have already
fixed in the NetBSD sources.
 1.11.4.1 10-Oct-2000  he Pull up revision 1.13 (requested by is):
Format string cleanup.
 1.24.4.1 01-Jul-2005  tron Apply patch (requested by lha in ticket #2041):
Remove static local variable so its easier to correctly use strlcpy.
 1.24.2.1 01-Jul-2005  tron Apply patch (requested by lha in ticket #2041):
Remove static local variable so its easier to correctly use strlcpy.
 1.25.2.1 27-Jun-2005  tron Pull up revision 1.26 (requested by lha in ticket #502):
Remove static local variable so its easier to correctly use strlcpy.
 1.27.34.1 17-Apr-2012  yamt sync with head
 1.29.22.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.30.14.1 10-Jun-2019  christos Sync with HEAD
 1.31.2.1 18-Nov-2024  martin Pull up following revision(s) (requested by riastradh in ticket #1927):

lib/libtelnet/encrypt.h: revision 1.10
libexec/telnetd/telnetd.c: revision 1.59
libexec/telnetd/sys_term.c: revision 1.50
lib/libtelnet/encrypt.c: revision 1.20
lib/libtelnet/enc_des.c: revision 1.18
lib/libtelnet/enc-proto.h: revision 1.11
libexec/telnetd/state.c: revision 1.33
libexec/telnetd/state.c: revision 1.35
libexec/telnetd/telnetd.c: revision 1.60

Fix memory leak - free resources allocated by getaddrinfo

Fix off by one in telrcv()

In case of "\r" in the data buffer, the code was unconditionally looking ahead
to next character, even if "\r" was last character in the buffer. That
condition leads to read outside of the data (one byte after the array)
Thanks christos@ for the review
PR bin/58787 libtelnet - avoid using a global variable


From RVP -- make 'encrypt_debug_mode' be a static (file scope)
variable instead of extern, and convert the (had been recently
anyway) unused function encrypt_debug() into an accensor function
for it.

This is the minor (almost irrelevant) change from PR bin/58787
PR bin/58787 telnetd - handle auto authentication better
Apparently from FreeBSD via RVP -- but FreeBSD deleted telnetd
more than 2 years ago, so I assume instead from

https://github.com/cschuber/freebsd-telnet/tree/main/contrib/telnet
 1.32.2.1 18-Nov-2024  martin Pull up following revision(s) (requested by riastradh in ticket #1013):

lib/libtelnet/encrypt.h: revision 1.10
libexec/telnetd/telnetd.c: revision 1.59
libexec/telnetd/sys_term.c: revision 1.50
lib/libtelnet/encrypt.c: revision 1.20
lib/libtelnet/enc_des.c: revision 1.18
lib/libtelnet/enc-proto.h: revision 1.11
libexec/telnetd/state.c: revision 1.33
libexec/telnetd/state.c: revision 1.35
libexec/telnetd/telnetd.c: revision 1.60

Fix memory leak - free resources allocated by getaddrinfo

Fix off by one in telrcv()

In case of "\r" in the data buffer, the code was unconditionally looking ahead
to next character, even if "\r" was last character in the buffer. That
condition leads to read outside of the data (one byte after the array)
Thanks christos@ for the review
PR bin/58787 libtelnet - avoid using a global variable


From RVP -- make 'encrypt_debug_mode' be a static (file scope)
variable instead of extern, and convert the (had been recently
anyway) unused function encrypt_debug() into an accensor function
for it.

This is the minor (almost irrelevant) change from PR bin/58787
PR bin/58787 telnetd - handle auto authentication better
Apparently from FreeBSD via RVP -- but FreeBSD deleted telnetd
more than 2 years ago, so I assume instead from

https://github.com/cschuber/freebsd-telnet/tree/main/contrib/telnet
 1.34.2.1 02-Aug-2025  perseant Sync with HEAD
 1.51 27-Jun-2025  andvar Grammar and spelling fixes, mainly in comments. A few in documentation,
logging, test description, and SCSI ASC/ASCQ assignment descriptions.
 1.50 29-Oct-2024  kre PR bin/58787 telnetd - handle auto authentication better

Apparently from FreeBSD via RVP -- but FreeBSD deleted telnetd
more than 2 years ago, so I assume instead from
https://github.com/cschuber/freebsd-telnet/tree/main/contrib/telnet
 1.49 15-Aug-2019  kamil branches: 1.49.8; 1.49.10;
telnetd: Stop defining the same variables concurrently in bss and data

auth_level and require_secure_login were defined in two places:

- global.c that picked it from headers and removed 'extern'
- telnetd.c that initialized it to 0

line was defined twice: in global.c and sys_term.c with a non-zero value.
Remove the definition and initialization from sys_term.c and initialize
the variable early in main().

Detected during the build of telned with Address Sanitizer (MKSANITIZER).

Reviewed by <mrg>
 1.48 13-Dec-2018  maya branches: 1.48.2;
Remove unused macros.
 1.47 28-Jun-2013  christos branches: 1.47.26; 1.47.28;
fix wrong variable check, remove casts
http://m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html
 1.46 04-Nov-2012  christos Only include the headers we use and remove useless variable.
 1.45 09-Jan-2012  christos branches: 1.45.6;
PR/45805: Borodin Oleg: telnet/telnetd with -DAUTHENTICATION -DENCRYPTION
(rfc2941)
- separate MKCRYPTO from USE_KERBEROS
- WARNS=4
 1.44 17-Jan-2007  hubertf branches: 1.44.34;
Remove duplicated #includes and some trailing whitespace while here.
From Slava Semushin <slava.semushin@gmail.com>
 1.43 05-May-2005  lukem use _PATH_DEV instead of "/dev/"
 1.42 06-Feb-2005  perry de-__P, ANSIfy function declarations, remove obsolete "register" declarations.
 1.41 14-Nov-2004  christos Pass -a [srrvis'd struct sockaddr] to login, so that login can record the
address where we have logged in from.
 1.40 19-Sep-2003  itojun realloc pedannt
 1.39 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.38 14-Jul-2003  itojun more cleanups
 1.37 14-Jul-2003  itojun remove unused function
XXX what's the difference between #ifdef UTMPX and #ifdef SUPPORT_UTMPX
 1.36 14-Jul-2003  itojun remove unneeded #ifdefs. improves readability.
(confirmed that exact same *.o is produced)
 1.35 13-Jul-2003  itojun use bounded string op (there still are remains)
 1.34 22-Aug-2002  itojun use strlcpy. minor style fixes
 1.33 20-Aug-2002  christos add some more ifdefs, so that we don't define variables we don't use.
 1.32 20-Aug-2002  christos PR/17999: FUKAUMI Naoki: Support wtmpx entries.
 1.31 02-Sep-2001  wiz Fix #ifdef indentation after recent removal of #ifdef NEWINIT-code.
Patch by Brian Ginsbach.
 1.30 30-Aug-2001  wiz Remove code #ifdef'd on NEWINIT (never used on NetBSD).
Sync with Cray, patch by Brian Ginsbach in private mail.
 1.29 29-Aug-2001  wiz Cray-only patch (sync with cray). Patch by Brian Ginsbach in private mail.
 1.28 24-Aug-2001  wiz Remove lots of #ifdef's for dead Cray hardware and obsolete UNICOS releases;
also some Cray-specific fixes. No change for NetBSD.
From Brian Ginsbach of Cray Inc. in bin/13614 and private mail.
 1.27 20-Aug-2001  wiz Rename variable to avoid shadowing.
 1.26 20-Aug-2001  wiz Improve whitespace a bit, per bin/13667 by Brian Ginsbach.
 1.25 20-Aug-2001  wiz Typo fixes and syslog string improvements, from bin/13667 by Brian Ginsbach.
 1.24 20-Aug-2001  wiz Fix type of last execl argument, inspired by bin/13667.
 1.23 19-Jul-2001  itojun bound-check all "*nfrontp++" code. from openbsd/heimdal.
bark if file descriptor goes above FD_SETSIZE. from openbsd.

XXX needs more checking.
XXX what is tab stop size for this code? need more consistency...
XXX we should really remove #ifdef CRAY, UNICOS5 and such.
we just cannot read it through.
 1.22 04-Feb-2001  christos fix redundant declarations.
 1.21 10-Jan-2001  lukem use LOG_ERR for fatal errors, LOG_WARNING for other errors
minor knf
deprecate LOG_ODELAY; it's the default
 1.20 09-Dec-2000  assar (scrub_env): change to only accept a listed set of variables,
including only non-filename contents for TERMCAP
 1.19 19-Nov-2000  christos Buffer overflow and environment passing fixes [originally inspired from
FreeBSD]. We really didn't need the environment fixes, but for the sake
of keeping the code as close as possible...
 1.18 31-Dec-1999  tron branches: 1.18.4;
Abort if memory for execv(2) argument array cannot be allocated instead
of passing an array with incomplete contents to login(1).
Fix provided by Jun-ichiro itojun Hagino in PR bin/9082.
 1.17 17-Sep-1999  aidan Kerberos5 ticket forwarding works.
 1.16 12-Aug-1999  aidan Added kerberos5_cleanup() to cleanup if KRB5 defined. This is to destroy
a forwarded ccache on cleanup.
 1.15 12-Feb-1999  dean branches: 1.15.2;
Fix for PR 5821
- s/SecurID/SECURELOGIN/g and define SECURELOGIN in Makefile
- update man page to reflect S/Key and Kerboros authentication used
not SecurID
 1.14 29-Aug-1998  tsarna Execute ttyaction on termination of rlogind/telnetd sessions.
Also, say a little bit about ttyaction in the getty and login manpages.
 1.13 05-Aug-1998  perry Fix for pr 5904 from Zdenek Salvet; we now use openpty() to get a pty.
 1.12 01-Apr-1998  kleink No need to include <sys/tty.h>.
 1.11 08-Oct-1997  mrg WARNS?=1. RCS ids.
 1.10 25-Aug-1997  kleink Lseek(2) usage cleanup: the use of L_SET/L_INCR/L_XTND is deprecated,
use SEEK_SET/SEEK_CUR/SEEK_END instead.
 1.9 20-Mar-1996  tls apply Thorsten's patch to add gettytab support to telnetd.
 1.8 28-Feb-1996  thorpej RCS id cosmetics.
 1.7 24-Feb-1996  jtk restore lost local change (be careful with 'long' vs. 'int'
distinctions)
 1.6 24-Feb-1996  jtk update to telnetd from 95.10.23 version. Includes Borman's scrub_env()
to keep stuff out of the environment on the way to exec (we already have
one in the state machine that keeps them from arriving over the wire, so
this should be redundant, but it'll make any further updates easier to
have it present).

also, RCS Id police.
 1.5 08-Feb-1996  mycroft Make sure that the user name cannot ever be interpreted as an option to
login(8). Note: This does *not* fix any security holes.
 1.4 23-Dec-1994  cgd be a bit more careful with types, casts, and and function declarations.
 1.3 25-Feb-1994  cgd new telnetd from ftp.cray.com. Encryption support ripped out, pending
figuring out what to do about it...
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 24-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.15.2.1 08-Jan-2000  he Pull up revision 1.18 (requested by itojun):
Abort if memory for execv(2) argument array cannot be allocated
instead of passing an array with incomplete contents to login(1).
Fixes PR#9082.
 1.18.4.3 29-Jul-2001  jhawk Pull up revision 1.23 via patch (requested by itojun):
Security-related fixups for telnet
Bound-check all "*nfrontp++" code. From OpenBSD and Heimdal.
Complain if file descriptor goes above FD_SETSIZE. From OpenBSD.
 1.18.4.2 15-Dec-2000  he Pull down (revert) revision 1.19 (requested by tv):
1.19 would require a header file update, and is not really
required.
 1.18.4.1 14-Dec-2000  he Pull up revisions 1.19-1.20 (requested by assar):
Fix buffer overflow and environment passing problems, and only
accept a limites set of environment variables and non-filename
TERMCAP variables.
 1.44.34.3 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.44.34.2 16-Jan-2013  yamt sync with (a bit old) head
 1.44.34.1 17-Apr-2012  yamt sync with head
 1.45.6.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.45.6.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.47.28.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.47.28.1 10-Jun-2019  christos Sync with HEAD
 1.47.26.1 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.48.2.2 18-Nov-2024  martin Pull up following revision(s) (requested by riastradh in ticket #1927):

lib/libtelnet/encrypt.h: revision 1.10
libexec/telnetd/telnetd.c: revision 1.59
libexec/telnetd/sys_term.c: revision 1.50
lib/libtelnet/encrypt.c: revision 1.20
lib/libtelnet/enc_des.c: revision 1.18
lib/libtelnet/enc-proto.h: revision 1.11
libexec/telnetd/state.c: revision 1.33
libexec/telnetd/state.c: revision 1.35
libexec/telnetd/telnetd.c: revision 1.60

Fix memory leak - free resources allocated by getaddrinfo

Fix off by one in telrcv()

In case of "\r" in the data buffer, the code was unconditionally looking ahead
to next character, even if "\r" was last character in the buffer. That
condition leads to read outside of the data (one byte after the array)
Thanks christos@ for the review
PR bin/58787 libtelnet - avoid using a global variable


From RVP -- make 'encrypt_debug_mode' be a static (file scope)
variable instead of extern, and convert the (had been recently
anyway) unused function encrypt_debug() into an accensor function
for it.

This is the minor (almost irrelevant) change from PR bin/58787
PR bin/58787 telnetd - handle auto authentication better
Apparently from FreeBSD via RVP -- but FreeBSD deleted telnetd
more than 2 years ago, so I assume instead from

https://github.com/cschuber/freebsd-telnet/tree/main/contrib/telnet
 1.48.2.1 16-Aug-2019  martin Pull up following revision(s) (requested by kamil in ticket #61):

libexec/telnetd/telnetd.c: revision 1.56
libexec/telnetd/sys_term.c: revision 1.49

telnetd: Stop defining the same variables concurrently in bss and data
auth_level and require_secure_login were defined in two places:

- global.c that picked it from headers and removed 'extern'
- telnetd.c that initialized it to 0

line was defined twice: in global.c and sys_term.c with a non-zero value.

Remove the definition and initialization from sys_term.c and initialize
the variable early in main().

Detected during the build of telned with Address Sanitizer (MKSANITIZER).
Reviewed by <mrg>
 1.49.10.1 02-Aug-2025  perseant Sync with HEAD
 1.49.8.1 18-Nov-2024  martin Pull up following revision(s) (requested by riastradh in ticket #1013):

lib/libtelnet/encrypt.h: revision 1.10
libexec/telnetd/telnetd.c: revision 1.59
libexec/telnetd/sys_term.c: revision 1.50
lib/libtelnet/encrypt.c: revision 1.20
lib/libtelnet/enc_des.c: revision 1.18
lib/libtelnet/enc-proto.h: revision 1.11
libexec/telnetd/state.c: revision 1.33
libexec/telnetd/state.c: revision 1.35
libexec/telnetd/telnetd.c: revision 1.60

Fix memory leak - free resources allocated by getaddrinfo

Fix off by one in telrcv()

In case of "\r" in the data buffer, the code was unconditionally looking ahead
to next character, even if "\r" was last character in the buffer. That
condition leads to read outside of the data (one byte after the array)
Thanks christos@ for the review
PR bin/58787 libtelnet - avoid using a global variable


From RVP -- make 'encrypt_debug_mode' be a static (file scope)
variable instead of extern, and convert the (had been recently
anyway) unused function encrypt_debug() into an accensor function
for it.

This is the minor (almost irrelevant) change from PR bin/58787
PR bin/58787 telnetd - handle auto authentication better
Apparently from FreeBSD via RVP -- but FreeBSD deleted telnetd
more than 2 years ago, so I assume instead from

https://github.com/cschuber/freebsd-telnet/tree/main/contrib/telnet
 1.32 15-Dec-2018  maya Remove mention of SPX.
 1.31 08-Apr-2009  joerg branches: 1.31.44; 1.31.46;
Improve markup.
 1.30 17-Jul-2004  wiz branches: 1.30.34;
Code is not using gethostbyaddr any longer, but getnameinfo.
Fix references. Addresses part of PR 26337 by Peter Postma.
 1.29 07-Sep-2003  wiz Consistently use 'RFC 1234' instead of 'RFC1234' or 'RFC-1234'.
From jmc@openbsd.
 1.28 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.27 16-Jul-2003  wiz Bump date for -r removal.
 1.26 14-Jul-2003  itojun remove unneeded #ifdefs. improves readability.
(confirmed that exact same *.o is produced)
 1.25 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.24 29-Sep-2002  wiz Begin new sentences on new lines.
Patch from Robert Elz (kre at munnari oz au).
 1.23 15-Jan-2002  wiz Whitespace and punctuation nits, comment out an option that does not concern NetBSD.
 1.22 02-Sep-2001  wiz Describe -S option, and remove mention of /etc/inittab in FILES section.
Patch by Brian Ginsbach.
 1.21 25-Aug-2001  wiz Remove description of an option that only applies to UNICOS < 7.0.
 1.20 02-Jul-1999  itojun dual-stack telnetd.
 1.19 06-Apr-1999  cgd change:
.Sh "SEE ALSO"
to:
.Sh SEE ALSO
The doc macros check for the latter (actually just for 'SEE' as the first
argument to .Sh) to set the section header SEE ALSO flag, which modifies
some behaviour (e.g. references done with .Rs/.Re).
 1.18 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.17 17-Mar-1999  mrg add missing .Bl.
 1.16 28-Feb-1999  msaitoh sort SEE ALSO section by "sort |sort -n"
 1.15 12-Feb-1999  dean Fix for PR 5821
- s/SecurID/SECURELOGIN/g and define SECURELOGIN in Makefile
- update man page to reflect S/Key and Kerboros authentication used
not SecurID
 1.14 17-Nov-1998  msaitoh delete .Sh ENVIRONMENT.
delete extra period.
 1.13 29-Aug-1998  tsarna Execute ttyaction on termination of rlogind/telnetd sessions.
Also, say a little bit about ttyaction in the getty and login manpages.
 1.12 28-Apr-1998  fair Change occurrences of "UNIX" to .Ux or .At as appropriate.
 1.11 06-Feb-1998  perry macroize BSD, NetBSD, FreeBSD and misc cleanup
 1.10 20-Oct-1997  enami Fix .Nm usage.
 1.9 20-Oct-1997  enami .Nm telnetd. -> .Nm telnetd .
 1.8 20-Mar-1996  tls apply Thorsten's patch to add gettytab support to telnetd.
 1.7 28-Feb-1996  thorpej Move the RCS id to the proper place in the file.
 1.6 24-Feb-1996  jtk RCS Id Police
 1.5 05-Jan-1996  tls fix small documentation bug -- we have no bftp(1).
 1.4 05-Jun-1994  cgd update to match 4.4-Lite
 1.3 25-Feb-1994  cgd new telnetd from ftp.cray.com. Encryption support ripped out, pending
figuring out what to do about it...
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 24-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.30.34.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.31.46.1 10-Jun-2019  christos Sync with HEAD
 1.31.44.1 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.60 29-Oct-2024  kre PR bin/58787 telnetd - handle auto authentication better

Apparently from FreeBSD via RVP -- but FreeBSD deleted telnetd
more than 2 years ago, so I assume instead from
https://github.com/cschuber/freebsd-telnet/tree/main/contrib/telnet
 1.59 21-Sep-2023  shm branches: 1.59.2;
Fix memory leak - free resources allocated by getaddrinfo
 1.58 26-Aug-2022  dholland branches: 1.58.2;
telnetd: fix the crash that's been talked about the past couple days.

(Move initialization of the slc table earlier so it doesn't get
accessed before that happens.)

Calling the crash a DoS or security problem is a bit overwrought; it's
just a bug.
 1.57 08-Dec-2021  andvar s/desireable/desirable/ in comments.
 1.56 15-Aug-2019  kamil telnetd: Stop defining the same variables concurrently in bss and data

auth_level and require_secure_login were defined in two places:

- global.c that picked it from headers and removed 'extern'
- telnetd.c that initialized it to 0

line was defined twice: in global.c and sys_term.c with a non-zero value.
Remove the definition and initialization from sys_term.c and initialize
the variable early in main().

Detected during the build of telned with Address Sanitizer (MKSANITIZER).

Reviewed by <mrg>
 1.55 27-Feb-2014  joerg branches: 1.55.18; 1.55.26; 1.55.28;
Global variable is never a null pointer.
 1.54 10-Jan-2012  joerg branches: 1.54.6;
Use __dead
 1.53 09-Jan-2012  christos PR/45805: Borodin Oleg: telnet/telnetd with -DAUTHENTICATION -DENCRYPTION
(rfc2941)
- separate MKCRYPTO from USE_KERBEROS
- WARNS=4
 1.52 24-Apr-2011  elric branches: 1.52.4;
#include <com_err.h> -> #include <krb5/com_err.h>.
 1.51 20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
 1.50 09-May-2006  mrg branches: 1.50.20;
change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
 1.49 02-Feb-2006  he Make the debug variable static, to accomodate static linking with libssh.a.
 1.48 21-Jun-2005  lha Remove static local variable so its easier to correctly use strlcpy.
 1.47 01-Jun-2005  lukem Ensure IF is initialized before trying to use it.
Found with -Wuninitialized.
 1.46 06-Feb-2005  perry branches: 1.46.2;
de-__P, ANSIfy function declarations, remove obsolete "register" declarations.
 1.45 30-Nov-2004  christos PR/28473: Jed Davis: telnetd loses data and corrupts crypto state due to
typo in use of poll(). There was an && instead of an & (hi charles)
 1.44 14-Nov-2004  christos Pass -a [srrvis'd struct sockaddr] to login, so that login can record the
address where we have logged in from.
 1.43 07-Aug-2003  agc branches: 1.43.2; 1.43.4;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.42 22-Jul-2003  matt Since telnetd has ignored the USER environment variable for logging in for
quite a bit of time, make telnetd ignore it completely now. This results
in the :if=: entry in the default gettytab entry to honored instead of
being ignored. The -h option to telnetd will continue to suppress the
inclusion of :if=:
 1.41 15-Jul-2003  itojun use bounded string op. bump shlib major for libtelnet due to API change.
 1.40 14-Jul-2003  itojun SIGINFO is defined
 1.39 14-Jul-2003  itojun remove unneeded #ifdefs. improves readability.
(confirmed that exact same *.o is produced)
 1.38 13-Jul-2003  itojun use bounded string op (there still are remains)
 1.37 17-May-2003  itojun use strlcpy
 1.36 09-May-2003  christos PR/21233: Onno van der Linden: -U option does not work as advertised.
 1.35 20-Sep-2002  mycroft Remove dead code.
 1.34 18-Sep-2002  mycroft select() -> poll()
 1.33 20-Aug-2002  christos add some more ifdefs, so that we don't define variables we don't use.
 1.32 31-Jan-2002  itojun implement -u <len>. PR 13676
 1.31 02-Sep-2001  wiz -edebug should only be mentioned in the help #ifdef ENCRYPTION, not #ifdef
AUTHENTICATION. Noted (with patch) by Brian Ginsbach.
 1.30 30-Aug-2001  wiz Remove code #ifdef'd on NEWINIT (never used on NetBSD).
Sync with Cray, patch by Brian Ginsbach in private mail.
 1.29 24-Aug-2001  wiz Remove lots of #ifdef's for dead Cray hardware and obsolete UNICOS releases;
also some Cray-specific fixes. No change for NetBSD.
From Brian Ginsbach of Cray Inc. in bin/13614 and private mail.
 1.28 20-Aug-2001  wiz Fix typo, and duplicate ';'. From bin/13667 by Brian Ginsbach.
 1.27 20-Aug-2001  wiz Add some (const char *) casts per bin/13667 by Brian Ginsbach.
 1.26 19-Jul-2001  itojun bound-check all "*nfrontp++" code. from openbsd/heimdal.
bark if file descriptor goes above FD_SETSIZE. from openbsd.

XXX needs more checking.
XXX what is tab stop size for this code? need more consistency...
XXX we should really remove #ifdef CRAY, UNICOS5 and such.
we just cannot read it through.
 1.25 04-Feb-2001  christos fix redundant declarations.
 1.24 10-Jan-2001  lukem use LOG_ERR for fatal errors, LOG_WARNING for other errors
minor knf
deprecate LOG_ODELAY; it's the default
 1.23 19-Nov-2000  christos Buffer overflow and environment passing fixes [originally inspired from
FreeBSD]. We really didn't need the environment fixes, but for the sake
of keeping the code as close as possible...
 1.22 18-Aug-2000  itojun make error case handling in -daemon case meet with other portion of the code.
(use fprintf-then-exit, not errx - costmetic)
 1.21 22-Jun-2000  thorpej Bring the telnet situation back into better shape. Specifically,
pull in just about all of the differences from the crypto-us telnet
suite (which includes Kerberos 4 and connection encryption support).
Also bring in the Kerberos 5 support from the Heimdal telnet, and
frob a little so that it can work with the non-Heimdal telnet suite.

There is still some work left to do, specifically:
- Add Heimdal's ticket forwarding support to the Berkeley Kerberos 4
module.
- Add connection encryption support to the Heimdal Kerberos 5
module. Hints on this can be taken from the MIT Kerberos 5
module which still exists in crypto-us.

However, even with the shortcomings listed above, this is a
better situation than using the stock Heimdal telnet suite,
which does not understand the IPSec policy stuff, and is also
based on much older code which contains bugs that we have already
fixed in the NetBSD sources.
 1.20 13-Jan-2000  ad branches: 1.20.4;
Make 'if' capability from gettytab work. *shudder*.
 1.19 16-Dec-1999  itojun do not touch __ss_len directly, they are not supposed to be touched.
 1.18 11-Jul-1999  thorpej branches: 1.18.4;
Nuke some whitespace.
 1.17 11-Jul-1999  thorpej Put the RCS ID in the correct place.
 1.16 02-Jul-1999  itojun dual-stack telnetd.
 1.15 12-Feb-1999  dean Fix for PR 5821
- s/SecurID/SECURELOGIN/g and define SECURELOGIN in Makefile
- update man page to reflect S/Key and Kerboros authentication used
not SecurID
 1.14 09-Jul-1998  msaitoh Declare ints, too, don't default them.
 1.13 06-Jul-1998  mrg - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
 1.12 20-Oct-1997  enami No need to declare optind and optarg.
 1.11 16-Oct-1997  mikel don't include <sys/cdefs.h> twice, kill old-style getpty() declaration
 1.10 14-Oct-1997  lukem use <termcap.h>
 1.9 08-Oct-1997  mrg WARNS?=1. RCS ids.
 1.8 08-Oct-1997  enami Put a whitespace after the keyword `switch'.
 1.7 08-Oct-1997  enami Compare a return value of getopt() against -1 instead of EOF.
 1.6 20-Mar-1996  tls apply Thorsten's patch to add gettytab support to telnetd.
 1.5 28-Feb-1996  thorpej RCS id cosmetics.
 1.4 24-Feb-1996  jtk update to telnetd from 95.10.23 version. Includes Borman's scrub_env()
to keep stuff out of the environment on the way to exec (we already have
one in the state machine that keeps them from arriving over the wire, so
this should be redundant, but it'll make any further updates easier to
have it present).

also, RCS Id police.
 1.3 25-Feb-1994  cgd new telnetd from ftp.cray.com. Encryption support ripped out, pending
figuring out what to do about it...
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 24-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.18.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.20.4.2 29-Jul-2001  jhawk Pull up revision 1.26 (requested by itojun):
Security-related fixups for telnet
Bound-check all "*nfrontp++" code. From OpenBSD and Heimdal.
Complain if file descriptor goes above FD_SETSIZE. From OpenBSD.
 1.20.4.1 22-Jun-2000  thorpej Update from trunk:
Bring the telnet situation back into better shape. Specifically,
pull in just about all of the differences from the crypto-us telnet
suite (which includes Kerberos 4 and connection encryption support).
Also bring in the Kerberos 5 support from the Heimdal telnet, and
frob a little so that it can work with the non-Heimdal telnet suite.

There is still some work left to do, specifically:
- Add Heimdal's ticket forwarding support to the Berkeley Kerberos 4
module.
- Add connection encryption support to the Heimdal Kerberos 5
module. Hints on this can be taken from the MIT Kerberos 5
module which still exists in crypto-us.

However, even with the shortcomings listed above, this is a
better situation than using the stock Heimdal telnet suite,
which does not understand the IPSec policy stuff, and is also
based on much older code which contains bugs that we have already
fixed in the NetBSD sources.
 1.43.4.1 01-Jul-2005  tron Apply patch (requested by lha in ticket #2041):
Remove static local variable so its easier to correctly use strlcpy.
 1.43.2.1 01-Jul-2005  tron Apply patch (requested by lha in ticket #2041):
Remove static local variable so its easier to correctly use strlcpy.
 1.46.2.2 27-Jun-2005  tron Pull up revision 1.48 (requested by lha in ticket #502):
Remove static local variable so its easier to correctly use strlcpy.
 1.46.2.1 13-Jun-2005  tron Pull up revision 1.47 (requested by lukem in ticket #400):
Ensure IF is initialized before trying to use it.
Found with -Wuninitialized.
 1.50.20.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.52.4.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.52.4.1 17-Apr-2012  yamt sync with head
 1.54.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.55.28.3 18-Nov-2024  martin Pull up following revision(s) (requested by riastradh in ticket #1927):

lib/libtelnet/encrypt.h: revision 1.10
libexec/telnetd/telnetd.c: revision 1.59
libexec/telnetd/sys_term.c: revision 1.50
lib/libtelnet/encrypt.c: revision 1.20
lib/libtelnet/enc_des.c: revision 1.18
lib/libtelnet/enc-proto.h: revision 1.11
libexec/telnetd/state.c: revision 1.33
libexec/telnetd/state.c: revision 1.35
libexec/telnetd/telnetd.c: revision 1.60

Fix memory leak - free resources allocated by getaddrinfo

Fix off by one in telrcv()

In case of "\r" in the data buffer, the code was unconditionally looking ahead
to next character, even if "\r" was last character in the buffer. That
condition leads to read outside of the data (one byte after the array)
Thanks christos@ for the review
PR bin/58787 libtelnet - avoid using a global variable


From RVP -- make 'encrypt_debug_mode' be a static (file scope)
variable instead of extern, and convert the (had been recently
anyway) unused function encrypt_debug() into an accensor function
for it.

This is the minor (almost irrelevant) change from PR bin/58787
PR bin/58787 telnetd - handle auto authentication better
Apparently from FreeBSD via RVP -- but FreeBSD deleted telnetd
more than 2 years ago, so I assume instead from

https://github.com/cschuber/freebsd-telnet/tree/main/contrib/telnet
 1.55.28.2 29-Aug-2022  martin Pull up following revision(s) (requested by dholland in ticket #1508):

libexec/telnetd/telnetd.c: revision 1.58 (via patch)

telnetd: fix the crash that's been talked about the past couple days.

(Move initialization of the slc table earlier so it doesn't get
accessed before that happens.)

Calling the crash a DoS or security problem is a bit overwrought; it's
just a bug.
 1.55.28.1 16-Aug-2019  martin Pull up following revision(s) (requested by kamil in ticket #61):

libexec/telnetd/telnetd.c: revision 1.56
libexec/telnetd/sys_term.c: revision 1.49

telnetd: Stop defining the same variables concurrently in bss and data
auth_level and require_secure_login were defined in two places:

- global.c that picked it from headers and removed 'extern'
- telnetd.c that initialized it to 0

line was defined twice: in global.c and sys_term.c with a non-zero value.

Remove the definition and initialization from sys_term.c and initialize
the variable early in main().

Detected during the build of telned with Address Sanitizer (MKSANITIZER).
Reviewed by <mrg>
 1.55.26.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.55.18.1 29-Aug-2022  martin Pull up following revision(s) (requested by dholland in ticket #1757):

libexec/telnetd/telnetd.c: revision 1.58 (via patch)

telnetd: fix the crash that's been talked about the past couple days.

(Move initialization of the slc table earlier so it doesn't get
accessed before that happens.)

Calling the crash a DoS or security problem is a bit overwrought; it's
just a bug.
 1.58.2.1 18-Nov-2024  martin Pull up following revision(s) (requested by riastradh in ticket #1013):

lib/libtelnet/encrypt.h: revision 1.10
libexec/telnetd/telnetd.c: revision 1.59
libexec/telnetd/sys_term.c: revision 1.50
lib/libtelnet/encrypt.c: revision 1.20
lib/libtelnet/enc_des.c: revision 1.18
lib/libtelnet/enc-proto.h: revision 1.11
libexec/telnetd/state.c: revision 1.33
libexec/telnetd/state.c: revision 1.35
libexec/telnetd/telnetd.c: revision 1.60

Fix memory leak - free resources allocated by getaddrinfo

Fix off by one in telrcv()

In case of "\r" in the data buffer, the code was unconditionally looking ahead
to next character, even if "\r" was last character in the buffer. That
condition leads to read outside of the data (one byte after the array)
Thanks christos@ for the review
PR bin/58787 libtelnet - avoid using a global variable


From RVP -- make 'encrypt_debug_mode' be a static (file scope)
variable instead of extern, and convert the (had been recently
anyway) unused function encrypt_debug() into an accensor function
for it.

This is the minor (almost irrelevant) change from PR bin/58787
PR bin/58787 telnetd - handle auto authentication better
Apparently from FreeBSD via RVP -- but FreeBSD deleted telnetd
more than 2 years ago, so I assume instead from

https://github.com/cschuber/freebsd-telnet/tree/main/contrib/telnet
 1.59.2.1 02-Aug-2025  perseant Sync with HEAD
 1.8 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.7 19-Jul-2001  itojun bound-check all "*nfrontp++" code. from openbsd/heimdal.
bark if file descriptor goes above FD_SETSIZE. from openbsd.

XXX needs more checking.
XXX what is tab stop size for this code? need more consistency...
XXX we should really remove #ifdef CRAY, UNICOS5 and such.
we just cannot read it through.
 1.6 21-Jan-2000  mycroft branches: 1.6.4;
Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get
the correct definition from errno.h.
 1.5 28-Feb-1996  thorpej branches: 1.5.6;
RCS id cosmetics.
 1.4 24-Feb-1996  jtk update to telnetd from 95.10.23 version. Includes Borman's scrub_env()
to keep stuff out of the environment on the way to exec (we already have
one in the state machine that keeps them from arriving over the wire, so
this should be redundant, but it'll make any further updates easier to
have it present).

also, RCS Id police.
 1.3 25-Feb-1994  cgd new telnetd from ftp.cray.com. Encryption support ripped out, pending
figuring out what to do about it...
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 24-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.5.6.1 23-Jan-2000  he Pull up revision 1.6 (requested by mycroft):
Always do the errno indirection hack, so that non-threaded
libraries get the right errno value when linked with -lpthread.
This means "always include <errno.h> and never declare errno
yourself".
 1.6.4.1 29-Jul-2001  jhawk Pull up revision 1.7 (requested by itojun):
Security-related fixups for telnet
Bound-check all "*nfrontp++" code. From OpenBSD and Heimdal.
Complain if file descriptor goes above FD_SETSIZE. From OpenBSD.
 1.14 06-Feb-2005  perry de-__P, ANSIfy function declarations, remove obsolete "register" declarations.
 1.13 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.12 14-Jul-2003  itojun remove unneeded #ifdefs. improves readability.
(confirmed that exact same *.o is produced)
 1.11 24-Aug-2001  wiz Remove lots of #ifdef's for dead Cray hardware and obsolete UNICOS releases;
also some Cray-specific fixes. No change for NetBSD.
From Brian Ginsbach of Cray Inc. in bin/13614 and private mail.
 1.10 01-Aug-2001  wiz Add missing braces, per bin/13612 by Brian Ginsbach.
 1.9 22-Jul-2001  wiz seperate -> separate
 1.8 19-Jul-2001  itojun bound-check all "*nfrontp++" code. from openbsd/heimdal.
bark if file descriptor goes above FD_SETSIZE. from openbsd.

XXX needs more checking.
XXX what is tab stop size for this code? need more consistency...
XXX we should really remove #ifdef CRAY, UNICOS5 and such.
we just cannot read it through.
 1.7 22-Jun-2000  thorpej Bring the telnet situation back into better shape. Specifically,
pull in just about all of the differences from the crypto-us telnet
suite (which includes Kerberos 4 and connection encryption support).
Also bring in the Kerberos 5 support from the Heimdal telnet, and
frob a little so that it can work with the non-Heimdal telnet suite.

There is still some work left to do, specifically:
- Add Heimdal's ticket forwarding support to the Berkeley Kerberos 4
module.
- Add connection encryption support to the Heimdal Kerberos 5
module. Hints on this can be taken from the MIT Kerberos 5
module which still exists in crypto-us.

However, even with the shortcomings listed above, this is a
better situation than using the stock Heimdal telnet suite,
which does not understand the IPSec policy stuff, and is also
based on much older code which contains bugs that we have already
fixed in the NetBSD sources.
 1.6 08-Oct-1997  mrg branches: 1.6.12;
WARNS?=1. RCS ids.
 1.5 28-Feb-1996  thorpej RCS id cosmetics.
 1.4 24-Feb-1996  jtk update to telnetd from 95.10.23 version. Includes Borman's scrub_env()
to keep stuff out of the environment on the way to exec (we already have
one in the state machine that keeps them from arriving over the wire, so
this should be redundant, but it'll make any further updates easier to
have it present).

also, RCS Id police.
 1.3 25-Feb-1994  cgd new telnetd from ftp.cray.com. Encryption support ripped out, pending
figuring out what to do about it...
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 24-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.12.3 16-Aug-2001  tv Pullup [wiz]:

libexec/telnetd/termstat.c 1.9-1.10

Add missing parentheses; fixes PR bin/13612.
 1.6.12.2 29-Jul-2001  jhawk Pull up revision 1.8 (requested by itojun):
Security-related fixups for telnet
Bound-check all "*nfrontp++" code. From OpenBSD and Heimdal.
Complain if file descriptor goes above FD_SETSIZE. From OpenBSD.
 1.6.12.1 22-Jun-2000  thorpej Update from trunk:
Bring the telnet situation back into better shape. Specifically,
pull in just about all of the differences from the crypto-us telnet
suite (which includes Kerberos 4 and connection encryption support).
Also bring in the Kerberos 5 support from the Heimdal telnet, and
frob a little so that it can work with the non-Heimdal telnet suite.

There is still some work left to do, specifically:
- Add Heimdal's ticket forwarding support to the Berkeley Kerberos 4
module.
- Add connection encryption support to the Heimdal Kerberos 5
module. Hints on this can be taken from the MIT Kerberos 5
module which still exists in crypto-us.

However, even with the shortcomings listed above, this is a
better situation than using the stock Heimdal telnet suite,
which does not understand the IPSec policy stuff, and is also
based on much older code which contains bugs that we have already
fixed in the NetBSD sources.
 1.34 26-Aug-2022  hgutch Fix CVE-2020-10188
 1.33 04-Feb-2019  mrg branches: 1.33.2;
- bump buffer sizes to avoid potential truncation issues
 1.32 09-Jan-2012  christos branches: 1.32.32; 1.32.40;
PR/45805: Borodin Oleg: telnet/telnetd with -DAUTHENTICATION -DENCRYPTION
(rfc2941)
- separate MKCRYPTO from USE_KERBEROS
- WARNS=4
 1.31 21-Feb-2007  hubertf branches: 1.31.34;
Move ctype.h from headers to files which really need it
From: Slava Semushin <slava.semushin@gmail.com>
 1.30 07-Oct-2006  elad Don't print uninitialized errno, from David A. Holland on #NetBSD-code
 1.29 11-May-2006  mrg use a u_char[] when it is expected.
 1.28 17-Mar-2005  christos Handle printing ptyfs pty names
 1.27 06-Feb-2005  agc branches: 1.27.2;
Make this compile after the de-__Ping round.
 1.26 06-Feb-2005  perry de-__P, ANSIfy function declarations, remove obsolete "register" declarations.
 1.25 05-Nov-2004  dsl Add (unsigned char) cast to ctype functions
 1.24 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.23 14-Jul-2003  itojun remove unneeded #ifdefs. improves readability.
(confirmed that exact same *.o is produced)
 1.22 09-May-2003  christos PR/21515: Onno van der Linden: Fix typo preventing %v from working.
 1.21 20-Sep-2002  mycroft Use the argument to stilloob() for the poll...
 1.20 18-Sep-2002  mycroft select() -> poll()
 1.19 12-Aug-2002  abs If the peer closes the connection in ttloop()
syslog(LOG_ERR, "ttloop: peer died: %m");
is a little console spammingly excessive. Switch to LOG_INFO.
 1.18 19-Jul-2001  itojun branches: 1.18.2;
bound-check all "*nfrontp++" code. from openbsd/heimdal.
bark if file descriptor goes above FD_SETSIZE. from openbsd.

XXX needs more checking.
XXX what is tab stop size for this code? need more consistency...
XXX we should really remove #ifdef CRAY, UNICOS5 and such.
we just cannot read it through.
 1.17 04-Feb-2001  christos fix redundant declarations.
 1.16 10-Jan-2001  lukem use LOG_ERR for fatal errors, LOG_WARNING for other errors
minor knf
deprecate LOG_ODELAY; it's the default
 1.15 10-Oct-2000  is Format string cleanups by sommerfeld.
 1.14 22-Jun-2000  thorpej Bring the telnet situation back into better shape. Specifically,
pull in just about all of the differences from the crypto-us telnet
suite (which includes Kerberos 4 and connection encryption support).
Also bring in the Kerberos 5 support from the Heimdal telnet, and
frob a little so that it can work with the non-Heimdal telnet suite.

There is still some work left to do, specifically:
- Add Heimdal's ticket forwarding support to the Berkeley Kerberos 4
module.
- Add connection encryption support to the Heimdal Kerberos 5
module. Hints on this can be taken from the MIT Kerberos 5
module which still exists in crypto-us.

However, even with the shortcomings listed above, this is a
better situation than using the stock Heimdal telnet suite,
which does not understand the IPSec policy stuff, and is also
based on much older code which contains bugs that we have already
fixed in the NetBSD sources.
 1.13 13-Jan-2000  ad branches: 1.13.4;
Make 'if' capability from gettytab work. *shudder*.
 1.12 16-Oct-1997  mikel branches: 1.12.4;
kill old-style declaration of strchr()
add back variable needed for -DAUTHENTICATION
 1.11 08-Oct-1997  mrg WARNS?=1. RCS ids.
 1.10 27-Sep-1996  thorpej Don't truncate long host names.
From SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp>, PR #2676.
 1.9 28-Feb-1996  thorpej RCS id cosmetics.
 1.8 24-Feb-1996  jtk update to telnetd from 95.10.23 version. Includes Borman's scrub_env()
to keep stuff out of the environment on the way to exec (we already have
one in the state machine that keeps them from arriving over the wire, so
this should be redundant, but it'll make any further updates easier to
have it present).

also, RCS Id police.
 1.7 05-Jun-1994  cgd version number update
 1.6 25-Feb-1994  cgd add uname % format stuff back in
 1.5 25-Feb-1994  cgd new telnetd from ftp.cray.com. Encryption support ripped out, pending
figuring out what to do about it...
 1.4 30-Aug-1993  mycroft Excuse me while I be braindead for a minute.
 1.3 30-Aug-1993  mycroft Add new uname() cookies like getty.
(I had thought telnetd spawned a getty. Sigh.)
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 24-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.12.4.1 10-Oct-2000  he Pull up revision 1.15 (requested by is):
Format string cleanup.
 1.13.4.3 29-Jul-2001  jhawk Pull up revision 1.18 via patch (requested by itojun):
Security-related fixups for telnet
Bound-check all "*nfrontp++" code. From OpenBSD and Heimdal.
Complain if file descriptor goes above FD_SETSIZE. From OpenBSD.
 1.13.4.2 17-Oct-2000  tv Pullup libexec string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.
 1.13.4.1 22-Jun-2000  thorpej Update from trunk:
Bring the telnet situation back into better shape. Specifically,
pull in just about all of the differences from the crypto-us telnet
suite (which includes Kerberos 4 and connection encryption support).
Also bring in the Kerberos 5 support from the Heimdal telnet, and
frob a little so that it can work with the non-Heimdal telnet suite.

There is still some work left to do, specifically:
- Add Heimdal's ticket forwarding support to the Berkeley Kerberos 4
module.
- Add connection encryption support to the Heimdal Kerberos 5
module. Hints on this can be taken from the MIT Kerberos 5
module which still exists in crypto-us.

However, even with the shortcomings listed above, this is a
better situation than using the stock Heimdal telnet suite,
which does not understand the IPSec policy stuff, and is also
based on much older code which contains bugs that we have already
fixed in the NetBSD sources.
 1.18.2.1 22-Oct-2003  jmc Pullup rev 1.19 (requested by abs in ticket #1534)

If the peer closes the connection in ttloop()
syslog(LOG_ERR, "ttloop: peer died: %m");
is a little console spammingly excessive. Switch to LOG_INFO.
 1.27.2.1 19-Mar-2005  tron Pull up revision 1.28 (requested by christos in ticket #25):
Handle printing ptyfs pty names
 1.31.34.1 17-Apr-2012  yamt sync with head
 1.32.40.1 10-Jun-2019  christos Sync with HEAD
 1.32.32.1 28-Aug-2022  martin Pull up following revision(s) (requested by hgutch in ticket #1756):

libexec/telnetd/utility.c: revision 1.34

Fix CVE-2020-10188
 1.33.2.1 28-Aug-2022  martin Pull up following revision(s) (requested by hgutch in ticket #1502):

libexec/telnetd/utility.c: revision 1.34

Fix CVE-2020-10188
 1.14 13-Oct-2011  plunky max WARNS is 4
 1.13 08-Jan-2010  christos Patrick Welche <prlw1@cam.ac.uk>
- add -p pathsep option
- make wrap to zero work, but produce a warning
While here:
- fix gcc warnings, in particular variable clobbered warnings
(compiling with fewer warnings does not really fix the problem)
 1.12 16-Mar-2009  lukem Default to WARNS=4
Exceptions that need a lower level are:
getty ld.elf_so lfs_cleanerd makewhatis telnetd tftpd
hpropd ipropd-master ipropd-slave kadmind kpasswdd
 1.11 18-Sep-2002  lukem branches: 1.11.40;
use bsd.own.mk instead of the (obvious typo of) bsd.obj.mk
 1.10 19-Aug-2002  lukem Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path
 1.9 19-Nov-2001  itojun __ss_{len,family} hack is no longer necessary
 1.8 12-Jul-1999  itojun IPv6 support.
 1.7 22-Oct-1997  lukem use CPPFLAGS instead of CFLAGS
 1.6 08-Oct-1997  mrg branches: 1.6.2;
merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.5 07-Oct-1997  mrg oops, forgot to add WARNS here.
 1.4 07-Oct-1997  mrg WARNS?=1. merge lite-2.
 1.3 22-Dec-1994  cgd specify man pages the new way.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.2.1 08-Nov-1997  lukem sync with trunk (approved by thorpej)
 1.11.40.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.31 09-Jan-2019  uwe Spell "occurrence" correctly.
 1.30 05-May-2015  wiz branches: 1.30.14; 1.30.16;
Bump date for previous.
 1.29 05-May-2015  buhrow Add a -b flag so that clients that return their acknowledgements to the
broadcast address can inter-operate with the tftpd server.
Discussed in bin/49868
 1.28 29-Apr-2010  wiz Wording.
 1.27 29-Apr-2010  hubertf Rename -w to -c by popular demand
(allow file 'c'reation - 'w'riting was always available, with some twist;
plus there's already such a feature elsewhere, so let's try to not
diverge needlessly)
 1.26 29-Apr-2010  wiz Sort options in SYNOPSIS; improve wording.
 1.25 28-Apr-2010  hubertf tftpd(8): Add -w so files can be uploaded without requiring them
to be created before the upload. See the section on security
considerations before enabling. [hubertf 20100429]

Addresses PR bin/43164.
 1.24 08-Jan-2010  wiz Sync usage with man page.
 1.23 08-Jan-2010  wiz Sort options in SYNOPSIS.
New sentence, new line.
Use only mdoc markup.
Make HTML-ready.
 1.22 08-Jan-2010  christos Patrick Welche <prlw1@cam.ac.uk>
- add -p pathsep option
- make wrap to zero work, but produce a warning
While here:
- fix gcc warnings, in particular variable clobbered warnings
(compiling with fewer warnings does not really fix the problem)
 1.21 07-Aug-2003  agc branches: 1.21.38;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.20 04-Jul-2003  wiz Bump date for last but one.
 1.19 04-Jul-2003  wiz s/&/and/
 1.18 11-Jun-2003  briggs Support negotiation and use of TFTP Option Extension (rfc 2347) for the
'blksize' option (rfc 2348) and the 'timeout' and 'tsize' options (rfc 2349).

Contributed by Wasabi Systems, Inc.
 1.17 14-May-2003  wiz setup -> set up.
 1.16 15-Jan-2002  wiz Drop an unnecessary .Pp.
 1.15 09-Oct-2001  christos Enable verbose debugging messages via tftpd.
 1.14 19-Jun-2001  wiz `accessible' only has one `a'.
 1.13 18-Oct-2000  dogcow defs had 'short block' for blocksize; changed defs to be unsigned.
added note to tftpd.8 that this bug hits multiple tftp clients.
 1.12 12-Jul-1999  itojun branches: 1.12.8;
add line break.
 1.11 12-Jul-1999  itojun IPv6 support.
 1.10 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.9 13-Jan-1999  fair Revise text about filenames as suggested by Geoff Wing in PR#6366.
Add reference in SEE ALSO to RFC 1350
 1.8 29-Jul-1998  lukem * implement -u user and -g group - to specify the username and/or
group to run as.
if -u isn't given, user defaults to "nobody".
if -g isn't given, group defaults to the primary group of user.
doesn't try and change uid or gid if they're already set ok.
should solve PR 4218.
* deprecate register
* deprecate trailing \n in syslog messages
 1.7 08-Jun-1998  lukem Implement a new manual page category ``SECURITY CONSIDERATIONS''
(suggested by mycroft)
 1.6 06-Feb-1998  perry macroize BSD, NetBSD, FreeBSD and misc cleanup
 1.5 20-Oct-1997  enami - Fix .Nm usage.
- Remove unnecessary white space at the beginning or end of line
 1.4 07-Oct-1997  mrg WARNS?=1. merge lite-2.
 1.3 10-Jan-1994  mycroft Add -s flag, per Roland McGrath, with changes and a manual page addition by me.
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.12.8.2 09-Apr-2004  jmc Pullup rev 1.14-1.18 (requested by jmc in ticket #98)

Finish pullup to trunk version w. fixes for 'blksize' option and
timeout/tsize options.
 1.12.8.1 26-Feb-2001  he Pull up revision 1.13 (requested by he):
Use unsigned variables for block number, thus allowing transfer
of up to 32M files instead of 16M.
 1.21.38.1 02-Nov-2011  riz Pull up following revision(s) (requested by bouyer in ticket #1677):
libexec/tftpd/tftpd.c: revision 1.32
libexec/tftpd/tftpd.8: revision 1.22
libexec/tftpd/tftpd.c: revision 1.33
libexec/tftpd/tftpd.8: revision 1.23
libexec/tftpd/tftpd.c: revision 1.34
libexec/tftpd/tftpd.8: revision 1.24
fix shadowed variable
Patrick Welche <prlw1%cam.ac.uk@localhost>
- add -p pathsep option
- make wrap to zero work, but produce a warning
While here:
- fix gcc warnings, in particular variable clobbered warnings
(compiling with fewer warnings does not really fix the problem)
Sort options in SYNOPSIS.
New sentence, new line.
Use only mdoc markup.
Make HTML-ready.
Sync usage with man page.
 1.30.16.1 10-Jun-2019  christos Sync with HEAD
 1.30.14.1 18-Jan-2019  pgoyette Synch with HEAD
 1.46 26-Oct-2025  andvar s/creat /create/ in few more comments and error log messages.
 1.45 20-Jul-2016  shm CID 976523: add FALLTHROUGH
 1.44 05-May-2015  buhrow branches: 1.44.2;


Add a -b flag so that clients that return their acknowledgements to the
broadcast address can inter-operate with the tftpd server.
Discussed in bin/49868
 1.43 04-Oct-2013  jnemeth - complete renaming of -w to -c from 1.38
- update usage string to match
- this fixes PR/48234 by Jeff Woodall
 1.42 04-Jul-2013  christos Simplify error handling and make it actually return a useable error code.
(Maxime Villard)
 1.41 03-Jul-2013  christos Check snprintf for -1 (Maxime Villard)
 1.40 28-Jun-2013  christos Prevent buffer overflows; reported by Maxime Villard
 1.39 29-Aug-2011  joerg branches: 1.39.2; 1.39.8;
Use __dead
 1.38 29-Apr-2010  hubertf Rename -w to -c by popular demand
(allow file 'c'reation - 'w'riting was always available, with some twist;
plus there's already such a feature elsewhere, so let's try to not
diverge needlessly)
 1.37 28-Apr-2010  hubertf tftpd(8): Add -w so files can be uploaded without requiring them
to be created before the upload. See the section on security
considerations before enabling. [hubertf 20100429]

Addresses PR bin/43164.
 1.36 09-Jan-2010  mbalmer fix build
 1.35 09-Jan-2010  christos newer versions of NetBSD turn on -Wsign-compare
 1.34 08-Jan-2010  wiz Sync usage with man page.
 1.33 08-Jan-2010  christos Patrick Welche <prlw1@cam.ac.uk>
- add -p pathsep option
- make wrap to zero work, but produce a warning
While here:
- fix gcc warnings, in particular variable clobbered warnings
(compiling with fewer warnings does not really fix the problem)
 1.32 16-Mar-2009  lukem fix shadowed variable
 1.31 21-Jul-2008  lukem branches: 1.31.4; 1.31.6;
Remove the \n and tabs from the __COPYRIGHT() strings.
 1.30 09-May-2006  mrg branches: 1.30.20;
change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
 1.29 05-Nov-2004  dsl Add (unsigned char) cast to ctype functions
 1.28 05-May-2004  kleink Make sure we tzset() before chroot(); after passing that point
it may no longer be accessible for syslog() to format messages.
 1.27 06-Jan-2004  briggs branches: 1.27.2;
Remove duplicated headers. Pointed out by Peter Postma in PR bin/24002.
 1.26 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.25 11-Jun-2003  briggs Support negotiation and use of TFTP Option Extension (rfc 2347) for the
'blksize' option (rfc 2348) and the 'timeout' and 'tsize' options (rfc 2349).

Contributed by Wasabi Systems, Inc.
 1.24 09-Oct-2001  christos Enable verbose debugging messages via tftpd.
 1.23 19-Feb-2001  cgd convert to use getprogname()
 1.22 09-Jan-2001  lukem convert to ansi knf
replace (sole use of) sprintf() with snprintf()
only syslog debug messages if logging
 1.21 21-Nov-2000  itojun make sure we do not overrun packet buffer when we set error message string.
 1.20 21-Nov-2000  itojun handle getnameinfo error properly
 1.19 18-Oct-2000  dogcow defs had 'short block' for blocksize; changed defs to be unsigned.
added note to tftpd.8 that this bug hits multiple tftp clients.
 1.18 12-Jul-1999  itojun branches: 1.18.8;
IPv6 support.
 1.17 23-Jun-1999  carrel If opening files for writing, be sure to truncate.
 1.16 07-Feb-1999  aidan branches: 1.16.2;
Fix for bin/4637, mostly as discussed on current-users.
Allow relative file writes,
For relative file accesses, no longer continues searching dirlist once we find
_any_ file, even one for which we don't have access,
If no dirlist was given on the command line, apply same permissions check as
with 'absolute' requests before allowing access.
 1.15 20-Sep-1998  explorer Remember the interface the request comes in on, so we will reply to the
same address. This fixes tftp'ing to lo0 aliases.
 1.14 29-Jul-1998  lukem * implement -u user and -g group - to specify the username and/or
group to run as.
if -u isn't given, user defaults to "nobody".
if -g isn't given, group defaults to the primary group of user.
doesn't try and change uid or gid if they're already set ok.
should solve PR 4218.
* deprecate register
* deprecate trailing \n in syslog messages
 1.13 26-Jul-1998  mycroft const poisoning.
 1.12 03-Jul-1998  mrg clean up a bit of cruft.
 1.11 06-Nov-1997  lukem fix so syslog works after chroot, by adding LOG_NDELAY to openlog.
from Andreas Wrede <andreas@planix.com>, [bin/4429]
 1.10 19-Oct-1997  mycroft branches: 1.10.2;
Use S_IS*(), not S_IF*.
 1.9 07-Oct-1997  mrg WARNS?=1. merge lite-2.
 1.8 22-Apr-1997  mrg get rid of supplementary groups.
 1.7 04-Jun-1995  jtc The tftpd daemon must be invoked as root in order for the chroot()
call to succeed, and must give up those privledges as soon as the new
root has been aquired. Use setgid() & setuid() to explicitly set the
user and group IDs to non- priveleged values.

This change now requires tftpd to be executed by root. I haven't
studied the security implications of making it setuid root, so
inetd.conf needs to be changed to start it as root.
 1.6 03-Jun-1995  mycroft Fill in sin_len.
 1.5 01-Mar-1994  cgd From Christos Zoulas <christos@deshaw.com>:
As promised. the problem was that tftpd would core dump if given no arguments.
I fixed it to use getopt. I also changed 0 to fd, because I had added some
debugging code that allowed me to start it from the command line.
 1.4 10-Jan-1994  mycroft Add -s flag, per Roland McGrath, with changes and a manual page addition by me.
 1.3 01-Aug-1993  mycroft Add RCS identifiers.
 1.2 18-Apr-1993  mycroft Cleanup for GCC 2.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.10.2.1 06-Nov-1997  mellon Pull rev 1.11 up from trunk (lukem)
 1.16.2.1 23-Jun-1999  perry pullup 1.16->1.17 (carrel)
 1.18.8.4 09-Apr-2004  jmc Pullup rev 1.22,1.24(patch),1.25 (requested by jmc in ticket #98)

Finish pullup to trunk version w. fixes for 'blksize' option and
timeout/tsize options.
 1.18.8.3 26-Feb-2001  he Pull up revision 1.19 (requested by he):
Use unsigned variables for block number, thus allowing transfer
of up to 32M files instead of 16M.
 1.18.8.2 03-Feb-2001  he Pull up revision 1.21 (requested by itojun):
Make sure not to overrun packet buffer with error message string.
 1.18.8.1 03-Feb-2001  he Pull up revision 1.20 (requested by itojun):
Handle getnameinfo error properly.
 1.27.2.1 10-May-2004  tron Pull up revision 1.28 (requested by kleink in ticket #272):
Make sure we tzset() before chroot(); after passing that point
it may no longer be accessible for syslog() to format messages.
 1.30.20.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.31.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.31.4.1 02-Nov-2011  riz Pull up following revision(s) (requested by bouyer in ticket #1677):
libexec/tftpd/tftpd.c: revision 1.32
libexec/tftpd/tftpd.8: revision 1.22
libexec/tftpd/tftpd.c: revision 1.33
libexec/tftpd/tftpd.8: revision 1.23
libexec/tftpd/tftpd.c: revision 1.34
libexec/tftpd/tftpd.8: revision 1.24
fix shadowed variable
Patrick Welche <prlw1%cam.ac.uk@localhost>
- add -p pathsep option
- make wrap to zero work, but produce a warning
While here:
- fix gcc warnings, in particular variable clobbered warnings
(compiling with fewer warnings does not really fix the problem)
Sort options in SYNOPSIS.
New sentence, new line.
Use only mdoc markup.
Make HTML-ready.
Sync usage with man page.
 1.39.8.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.39.2.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.44.2.1 26-Jul-2016  pgoyette Sync with HEAD
 1.4 17-Sep-2011  christos log to both syslog and stderr.
 1.3 16-Dec-2002  wiz Add man page for utmp_update(8), reviewed by Christos.
 1.2 18-Sep-2002  lukem minor makefile delint
 1.1 28-Jul-2002  christos Add utmp_update
 1.3 18-Apr-2020  sevan document history
 1.2 30-Apr-2008  martin branches: 1.2.62;
Convert TNF licenses to new 2 clause variant
 1.1 16-Dec-2002  wiz branches: 1.1.30;
Add man page for utmp_update(8), reviewed by Christos.
 1.1.30.1 18-May-2008  yamt sync with head.
 1.2.62.1 21-Apr-2020  martin Sync with HEAD
 1.14 29-Sep-2023  christos Check for non-printable characters in ut_host.
reported by https://twitter.com/adamsimuntis
 1.13 26-Apr-2015  mlelstv branches: 1.13.8; 1.13.18; 1.13.26;
Use verrx with a va_list.
 1.12 26-Apr-2015  mlelstv size output buffer for strunvis to include the trailing NUL character.
 1.11 17-Sep-2011  christos add printflike
 1.10 17-Sep-2011  christos log to both syslog and stderr.
 1.9 13-Apr-2009  christos provide more info on decoding errors.
 1.8 28-Apr-2008  martin branches: 1.8.8;
Remove clause 3 and 4 from TNF licenses
 1.7 07-Nov-2004  christos branches: 1.7.24;
Use non-blocking I/O when opening the tty. Otherwise we can get stuck...
 1.6 26-Feb-2003  christos The following changes make ftpd able to remove its own entries. Ftpd
calls pututxline() with ruid = 0, euid = current-ftp-user. This ends
up calling update_utmp:
- if the real uid is root, don't do password or tty ownership checks
- if we cannot open the tty line, assume that it is a daemon that does
not use ttys and allow it to change a live entry to a dead one if
indeed it is the same process that created the entry.
 1.5 18-Dec-2002  christos Make this work finally, by prepending _PATH_DEV to the tty name.
 1.4 16-Aug-2002  itojun defend against malicious line in ut_line, which could cause unwanted
writes to anything under /dev. revoke setuid/gid privs earlier.
From: xs@kittenz.org
 1.3 09-Aug-2002  soren Remove extraneous \n's in {err,warn}{,x}.
 1.2 05-Aug-2002  jmcneill Include string.h so this application compiles.
 1.1 28-Jul-2002  christos Add utmp_update
 1.7.24.1 18-May-2008  yamt sync with head.
 1.8.8.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.13.26.1 17-Feb-2024  martin Pull up following revision(s) (requested by shm in ticket #595):

libexec/utmp_update/utmp_update.c: revision 1.14

Check for non-printable characters in ut_host.
 1.13.18.1 17-Feb-2024  martin Pull up following revision(s) (requested by shm in ticket #1797):

libexec/utmp_update/utmp_update.c: revision 1.14

Check for non-printable characters in ut_host.
 1.13.8.1 17-Feb-2024  martin Pull up following revision(s) (requested by shm in ticket #1936):

libexec/utmp_update/utmp_update.c: revision 1.14

Check for non-printable characters in ut_host.

RSS XML Feed