CVS: cvs.openbsd.org: src

2023-10-09 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2023/10/09 21:57:45

Modified files:
usr.bin/ssh: ssh2.h 

Log message:
Reserve a range of "local extension" message numbers that OpenSSH promises
not to use (comment change only)



CVS: cvs.openbsd.org: src

2023-10-09 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2023/10/09 16:05:27

Modified files:
sys/arch/arm64/stand/efiboot: efiacpi.c 

Log message:
Recognize GICv4 in the MADT and configure it as arm,gic-v3.

ok kettenis@



CVS: cvs.openbsd.org: src

2023-10-09 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2023/10/09 15:49:34

Modified files:
sys/dev/ic : bwfm.c 

Log message:
Handle an arbitrary number of D11 cores and only disable them instead of
doing a full reset.  Based on a diff from Hector Martin for Asahi Linux.

ok patrick@, tobhe@



CVS: cvs.openbsd.org: src

2023-10-09 Thread Todd C . Miller
CVSROOT:/cvs
Module name:src
Changes by: mill...@cvs.openbsd.org 2023/10/09 14:55:33

Modified files:
usr.sbin/smtpd : smtp_session.c 

Log message:
Add Message-Id as needed for messages received on the submission port.

Since listener->port is in network byte order we need to compare
against htons(587).  The fix for this got dropped in the rewrite
in revision 1.335.



CVS: cvs.openbsd.org: src

2023-10-09 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2023/10/09 13:32:51

Modified files:
lib/libc/gen   : uname.3 

Log message:
Mention that the strings are OS-specific.
In part based on input from deraadt@, OK millert@.



CVS: cvs.openbsd.org: src

2023-10-09 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2023/10/09 13:28:42

Modified files:
usr.bin/uname  : uname.1 

Log message:
Document the OpenBSD-specific output format.
Feedback and OK millert, "more reasonable" deraadt@.



CVS: cvs.openbsd.org: src

2023-10-09 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/10/09 10:59:55

Modified files:
lib/libcrypto/man: X509_ALGOR_dup.3 

Log message:
Use the usual text for X509_ALGOR_free()



CVS: cvs.openbsd.org: src

2023-10-09 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/10/09 10:06:01

Modified files:
lib/libcrypto/man: ASN1_TYPE_get.3 

Log message:
Clarify that 'undefined type' means V_ASN1_UNDEF



CVS: cvs.openbsd.org: src

2023-10-09 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/10/09 10:03:57

Modified files:
lib/libcrypto/man: X509_ALGOR_dup.3 

Log message:
Clarify documentation of X509_ALGOR_{set0,set_md}()

The X509_ALGOR_set0() and X509_ALGOR_set_md() documentation comes from
upstream, which means it is as sloppy as the code and as vague as your
average upstream manpage. Be precise on what X509_ALGOR_set0() does on
different inputs and document return values and failure modes.

X509_ALGOR_set_md() is a void function that calls X509_ALGOR_set0() in a
way that can fail, leaving alg in a corrupted state. Document when that
can occur and how to avoid or detect that, but do not go too far, because
EVP_MD_meth_new(), one potential source of failures, is a whole another
can of worms.

joint work with schwarze



CVS: cvs.openbsd.org: www

2023-10-09 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:www
Changes by: schwa...@cvs.openbsd.org2023/10/09 09:48:28

Modified files:
.  : groups.html 
build  : groups.dat 

Log message:
Remove the line "P Echigo" as suggested by WATANABE Takeo.
The reason is that the designated city of Niigata is actually
located in the the prefecture of Niigata (Niigata-ken), whereas
the historical province of Echigo is not an administrative unit.



CVS: cvs.openbsd.org: src

2023-10-09 Thread Tobias Heider
CVSROOT:/cvs
Module name:src
Changes by: to...@cvs.openbsd.org   2023/10/09 09:32:14

Modified files:
sbin/ipsecctl  : ipsecctl.c ipsecctl.h pfkey.c 

Log message:
Add pledge("stdio") before parsing pfkey messages. This applies to
ipsecctl -m and ipsecctl -s. Refactor ipsecctl_show_*() to setup all
sysctls first before dropping privileges and finally parsing and
printing IPsec SAs and flows.

feedback and ok mbuhl@
ok deraadt@



CVS: cvs.openbsd.org: src

2023-10-09 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2023/10/09 08:25:00

Modified files:
sys/dev/fdt: if_dwqe_fdt.c 
sys/dev/ic : dwqe.c dwqevar.h 

Log message:
allow dwqe.c to build on architectures that do not have machine/fdt.h

Move struct if_device to a new fdt-specific softc struct, along with
the gmac_id field which is only used by if_dwqe_fdt.c at present.
This avoids the need to include any fdt header files in dwqe.c.

ok kettenis@



CVS: cvs.openbsd.org: src

2023-10-09 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/10/09 01:12:22

Modified files:
usr.sbin/pkg_add/OpenBSD: PkgDelete.pm 

Log message:
placeholder for later feature



CVS: cvs.openbsd.org: src

2023-10-09 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2023/10/09 01:11:20

Modified files:
usr.sbin/bgpd  : session.c 

Log message:
Fix return value confusion of sa_cmp() by renaming the function sa_equal().

The code in get_alternate_addr() checked for sa_cmp() == 0 but actually
sa_cmp() returned 1 for equal addrs. So rename the function to sa_equal()
to make it clear that a true return value means equality.

Found by Asa Yeamans (enigma2e at rivin net)
OK tb@



CVS: cvs.openbsd.org: src

2023-10-09 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/10/09 01:03:49

Modified files:
usr.sbin/pkg_add/OpenBSD: AddCreateDelete.pm 

Log message:
simplify: all 3 mock-ups are strings that get eval'd, so do this properly.