1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-25 22:56:14 +00:00
Commit Graph

203345 Commits

Author SHA1 Message Date
millert
e1869fb34c Use sysexits.h exit values to distinguish between tempfail and permfail.
Unix MTAs use the exit value of the MDA (here mail.local) to determine
whether or not a failure to deliver mail should be considered to be
a temporary or permanent failure.  OK semarie@ beck@
2020-02-09 14:59:20 +00:00
schwarze
f77316cbf6 mention /etc/examples/bgpd.conf; tweak and OK jmc@, OK benno@ 2020-02-09 14:21:26 +00:00
visa
b3424cb6ba Zero struct knote on allocation. This makes the code less prone
to errors.

OK deraadt@, cheloha@, anton@
2020-02-09 14:09:08 +00:00
florian
bc6981631b Do not define variables in def.h since this will lead to duplicate definitions
in every source file that includes def.h
Found by gcc10 in portable in gentoo and fedora.
Patch from Ulrich Mueller (ulm AT gentoo.org) via Han Boetes, thanks!
Ok tb
2020-02-09 10:13:13 +00:00
florian
2cf74b7f63 Implement "strip" option for fastcgi to be able to have multiple chroots
under /var/www for FastCGI servers.
From Nazar Zhuk (nazar AT zhuk DOT online), thanks!
Ok benno
2020-02-09 09:44:04 +00:00
jsg
0eac9b0390 A getlogin() function which used utmp(5) appeared in v7.
This was replaced by a getlogin() system call which Ingo discovered we
incorrectly list as being 4.2BSD when it was introduced in 4.3BSD Reno.

ok schwarze@
2020-02-09 02:32:43 +00:00
jsg
987aa43969 drop historical section number as was done in ps 2020-02-09 00:21:01 +00:00
jsg
6ae84a2d16 environ(5) was in v7
ok schwarze@
2020-02-09 00:11:23 +00:00
patrick
d79a363e63 On the Lenovo X395 acpivout(4) does not attach since there is
no _BQC method.  But we need it to attach, since it provides
the events for the brightness keys.  Thus, make acpivout(4)
attach enough to register the event handler, but return early
so that it doesn't register itself as ws_[gs]et_param.

ok kettenis@
2020-02-08 19:08:17 +00:00
schwarze
084b5e9b10 minor formatting tweak: remove incorrect .Ar and garbage collect .Tn 2020-02-08 17:25:25 +00:00
schwarze
8674f99aba Make HISTORY more concise: historical section numbers are irrelevant.
Fluff noticed by jsg@.
2020-02-08 16:41:25 +00:00
visa
a816bf094c Replace ttkqflush() with klist_invalidate() to handle knote list
invalidation in one place.

Store struct tty pointer in kn_hook directly to simplify the code.

OK mpi@
2020-02-08 14:52:07 +00:00
jasper
67abe4638c remove erroneous line in comment for vm_get_info()
from mlarkin
2020-02-08 11:58:39 +00:00
jsg
dd2e81b7e8 correct history ac was in v5 2020-02-08 01:43:22 +00:00
jsg
f4bb029c09 sa was in v5
tweaks from and ok schwarze@
2020-02-08 01:38:48 +00:00
jsg
4c251a5a2d ncheck was in v6
tweaks from and ok schwarze@
2020-02-08 01:25:10 +00:00
jsg
01c04610de correct Research Unix edition "appeared in" use in HISTORY
Starting from "Combined Table of Contents" in Doug McIlroy's
"A Research UNIX Reader" a table of which edition manuals appeared in.
Checked against manuals from bitsavers/TUHS and source from TUHS where
available.

Ingo points out there are cases where something is included but not
documented until a later release.
bcd(6)		v6	v7
printf(3)	v2	v4
abort(3)	v5	v6
system(3)	v6	v7
fmod(3)		v5	v6

ok schwarze@
2020-02-08 01:09:57 +00:00
florian
7e09cc37bf sync; go for it deraadt@ 2020-02-07 15:26:15 +00:00
florian
3a92740d5d Do not define variables in extern.h since this will lead to duplicate
definitions in every source file that includes extern.h.
From Michael Forney (mforney AT mforney DOT org), thanks!
OK jca
2020-02-07 14:34:15 +00:00
cheloha
11969f5613 fd(4): timeout_add(9) -> timeout_add_msec(9), tsleep(9) -> tsleep_nsec(9)
With input from miod@.

No complaints on tech@ after a month.
2020-02-07 13:35:08 +00:00
krw
5ceeb3acd4 Nuke softc field 'sc_adapter" and just point sc_link's at shiney new
'adw_switch' like all the cool kids do.
2020-02-07 13:31:47 +00:00
bluhm
a3b4c2abd8 Extend the ipsecctl(8) parser to set the udpencap flag and port
number of an SA.  This will be useful to test IPsec with NAT-T.
OK sthen@ tobhe@
2020-02-07 13:01:34 +00:00
florian
affa390540 Unhook usr.sbin/bind from the build and hook up new dig source
directory (usr.bin/dig).
2020-02-07 10:19:50 +00:00
florian
5185a7002a Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen
2020-02-07 09:58:52 +00:00
deraadt
fb4bfcc275 It appears we have come full-circle, where source code starts to use
clang / "super new gcc" ism's, in particular ones which are totally
pointless as far as language goes.
Delete them.
2020-02-07 06:24:08 +00:00
deraadt
33c99743b2 sync 2020-02-07 06:23:11 +00:00
djm
be1d78020a sync the description of the $SSH_SK_PROVIDER environment variable with
that of the SecurityKeyProvider ssh/sshd_config(5) directive, as the
latter was more descriptive.
2020-02-07 03:57:31 +00:00
dtucker
e645c36a51 Add ssh -Q key-sig for all key and signature types. Teach ssh -Q to accept
ssh_config(5) and sshd_config(5) algorithm keywords as an alias for the
corresponding query.  Man page help jmc@, ok djm@.
2020-02-07 03:54:44 +00:00
djm
2f4a28af36 fix two PIN entry bugs on FIDO keygen: 1) it would allow more than the
intended number of prompts (3) and 2) it would SEGV too many incorrect
PINs were entered; based on patch by Gabriel Kihlman
2020-02-07 03:27:54 +00:00
millert
8bc1a32387 Remove backward compatibility for obsolete -H flag.
The -H flag was deprecated in 1998.  OK jung@
2020-02-07 02:27:37 +00:00
djm
32a20e26b2 update to upstream libfido2 780ad3c25 (20120123)
install manual pages

crank major

feedback & ok jmc@ and naddy@
2020-02-07 00:57:49 +00:00
djm
70bdf4921a When using HostkeyAlgorithms to merely append or remove algorithms
from the default set (i.e. HostkeyAlgorithms=+/-...), retain the
default behaviour of preferring those algorithms that have existing
keys in known_hosts; ok markus
2020-02-06 22:48:23 +00:00
djm
60da72246f expand HostkeyAlgorithms prior to config dump, matching other
algorithm lists; ok markus@
2020-02-06 22:46:31 +00:00
naddy
b89bcff9d3 Add Include to the list of permitted keywords after a Match keyword.
ok markus@
2020-02-06 22:34:58 +00:00
naddy
5f47a66000 Replace "security key" with "authenticator" in program messages.
This replaces "security key" in error/usage/verbose messages and
distinguishes between "authenticator" and "authenticator-hosted key".

ok djm@
2020-02-06 22:30:54 +00:00
krw
4674773e69 Try to reduce the lying, hyperbolic or obsolete commentary on
the relationships between various scsi structs.
2020-02-06 21:06:15 +00:00
schwarze
b3eeebc7ea Make sure that -l always causes -w to be ignored, as documented
in the man(1) manual page.  This bugfix is needed to prevent
the command "man -lw" from dereferencing a NULL pointer.
2020-02-06 19:41:34 +00:00
krw
cd3edfc434 Remove pointless intermediate scsi_adapter field of softc by pointing
sc_link.adapter at trm_switch directly.
2020-02-06 19:17:54 +00:00
krw
7a8c3d6478 Delete unused scsi_adapter fields of softc's. 2020-02-06 18:18:51 +00:00
jsing
b7ca6301b7 Re-enable the TLSv1.3 client since the known issues have been addressed.
ok tb@
2020-02-06 17:35:22 +00:00
krw
2be833798b Eliminate use of 'migration aids' #define scsipi_<blah> and just use
the real names.
2020-02-06 17:24:18 +00:00
jsing
da308e2677 Add a workaround to make SSL_set_session() work with TLSv1.3.
While we do not currently do session resumption, just return the
TLS_client_method() or TLS_server_method() when asked for a method that
does TLSv1.3.

ok tb@ (who also arrived at the same diff)
2020-02-06 16:05:58 +00:00
krw
51407a81e7 Soooooo much eye-searing trailing whitespace. 2020-02-06 15:56:36 +00:00
krw
6f5906fa3f So much eye-searing trailing whitespace. 2020-02-06 15:34:29 +00:00
krw
cb3167a9d7 Whitespace tweak. 2020-02-06 15:08:19 +00:00
jsing
9b437883a5 Add support for handling hello retry requests in the TLSv1.3 client.
In the case of a hello retry request, we need to replace the client hello
with a synthetic handshake message, switch key share to that selected by
the server, build and send a new client hello, then process the resulting
server hello.

ok tb@
2020-02-06 13:19:18 +00:00
jsing
e040406177 Correctly handle key share extensions in a hello retry request.
In a hello retry request the server will only send the selected group and
not actually provide a key exchange. In this case we need to store the
server selected group for further processing.

ok tb@
2020-02-06 13:14:17 +00:00
jsg
41a5d32e9c mention cbor fido llvm and llvm-c top level include directories 2020-02-06 05:40:02 +00:00
jsg
2ee00db36b Instead of opting in to futexes on archs with atomics opt out on archs
without atomics, a smaller list.

ok mpi@ visa@
2020-02-06 03:13:45 +00:00
krw
ca82ddf5a8 Ooops. Missed a file in nuke of scsi_minphys. mpath_minphys() needs to
check dev_minphys for NULL before calling it.
2020-02-05 21:50:41 +00:00