CVS: cvs.openbsd.org: src

2022-01-11 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/12 00:55:25

Modified files:
regress/lib/libcrypto/asn1: Makefile asn1basic.c 

Log message:
Rework Makefile to use regress framework and link asn1basic statically.
It will need this for testing {d2i,i2d}_ASN1_BOOLEAN which will be
moved to internal-only in the upcoming bump.



CVS: cvs.openbsd.org: src

2022-01-11 Thread Darren Tucker
CVSROOT:/cvs
Module name:src
Changes by: dtuc...@cvs.openbsd.org 2022/01/12 00:18:37

Modified files:
regress/usr.bin/ssh: agent-restrict.sh 

Log message:
Use egrep when searching for an anchored string.



CVS: cvs.openbsd.org: src

2022-01-11 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2022/01/11 21:53:57

Modified files:
usr.bin/mandoc : tree.c 

Log message:
More accurately represent cells containing horizontal lines in -T tree
output.  In particular, do not represent "_" as "-", and distinguish "_"
from "\_" and "=" from "\=".
Output tweak following a related question from
Ted Bullock .



CVS: cvs.openbsd.org: src

2022-01-11 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2022/01/11 21:43:21

Modified files:
usr.bin/mandoc : tbl_html.c 

Log message:
According to the tbl(7) manual, if a data cell contains only the
two character sequence "\_" or "\=", a single or double horizontal
line is supposed to be drawn inside the cell, not joining its
neighbours.

I am not aware of any way to do that with HTML and/or CSS.
Still, it seems closer to the intent of the document author to draw
a horizontal line with , even though that line will join the
neighbour cells, rather than printing a literal '_' or '=' character.

Formatting tweak inspired by a related question from
Ted Bullock .



CVS: cvs.openbsd.org: src

2022-01-11 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2022/01/11 21:14:20

Modified files:
share/man/man7 : tbl.7 

Log message:
In one of the examples, the tbl(7) source code displayed
contains a backslash that needs to be escaped, and the
missing escaping resulted in very misleading formatting.

Documentation bug found due to a question from
Ted Bullock .



CVS: cvs.openbsd.org: www

2022-01-11 Thread T . J . Townsend
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2022/01/11 20:47:58

Modified files:
.  : ftp.html ftplist httpslist 
build  : mirrors.dat 
openbgpd   : ftp.html 
openntpd   : portable.html 
openssh: ftp.html portable.html 
rpki-client: portable.html 

Log message:
remove openbsd.hk mirror (per maintainer's request) until hardware/hosting
issues can be resolved



CVS: cvs.openbsd.org: src

2022-01-11 Thread Darren Tucker
CVSROOT:/cvs
Module name:src
Changes by: dtuc...@cvs.openbsd.org 2022/01/11 20:30:32

Modified files:
usr.bin/ssh: ssh-agent.c 

Log message:
Don't log NULL hostname in restricted agent code, printf("%s", NULL) is
not safe on all platforms.  with & ok djm



CVS: cvs.openbsd.org: src

2022-01-11 Thread Andrew Fresh
CVSROOT:/cvs
Module name:src
Changes by: afre...@cvs.openbsd.org 2022/01/11 19:21:15

Modified files:
usr.sbin/fw_update: fw_update.sh 

Log message:
Bug fixes and performance improvements

Plus improving usage to match the man page

fine deraadt@



CVS: cvs.openbsd.org: src

2022-01-11 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/01/11 18:19:24

Modified files:
sys/arch/arm64/dev: aplsmc.c 

Log message:
maxumum -> maximum



CVS: cvs.openbsd.org: src

2022-01-11 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2022/01/11 17:58:48

Modified files:
sys/arch/riscv64/conf: Makefile.riscv64 

Log message:
Remove -target riscv64-unknown-openbsd from CMACHFLAGS.

ok kettenis@ deraadt@



CVS: cvs.openbsd.org: src

2022-01-11 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/01/11 16:59:55

Modified files:
sys/sys: gmon.h namei.h stat.h sysctl.h unpcb.h 

Log message:
spelling



CVS: cvs.openbsd.org: src

2022-01-11 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/01/11 16:10:11

Modified files:
sys/scsi   : cd.c ch.c scsi_all.h scsi_changer.h scsi_disk.h 
 st.c 

Log message:
spelling



CVS: cvs.openbsd.org: src

2022-01-11 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2022/01/11 15:33:16

Modified files:
regress/usr.bin/ssh/unittests/sshsig: webauthn.html 

Log message:
remove hardcoded domain and use window.location.host, so this can
be run anywhere



CVS: cvs.openbsd.org: src

2022-01-11 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/01/11 14:41:15

Modified files:
sys/dev/pci: sdhc_pci.c 

Log message:
Jasper Lake eMMC needs the same 0V quirk as Apollo Lake and Gemini Lake

fixes accessing eMMC on Acer Swift 1 SF114-34
problem reported and fix tested by Sven Wolf



CVS: cvs.openbsd.org: src

2022-01-11 Thread Tobias Heider
CVSROOT:/cvs
Module name:src
Changes by: to...@cvs.openbsd.org   2022/01/11 13:34:22

Modified files:
sys/arch/amd64/amd64: vmm.c 

Log message:
Make sure 'out' is initialized to 0 before adding flags.

ok dv@ mlarkin@



CVS: cvs.openbsd.org: src

2022-01-11 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/11 12:27:35

Modified files:
regress/lib/libcrypto/evp: evp_pkey_check.c 

Log message:
forgot to zap some dead assignments



CVS: cvs.openbsd.org: src

2022-01-11 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/11 12:20:36

Modified files:
regress/lib/libcrypto/evp: Makefile 
Added files:
regress/lib/libcrypto/evp: evp_pkey_check.c 

Log message:
Add regress for EVP_PKEY_{,public_,param_}check()



CVS: cvs.openbsd.org: src

2022-01-11 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2022/01/11 12:08:08

Modified files:
regress/lib/libssl/asn1: asn1test.c 

Log message:
Revise for peer_cert.



CVS: cvs.openbsd.org: src

2022-01-11 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/11 12:06:23

Modified files:
usr.sbin/relayd: ca.c 

Log message:
Convert relayd for opaque RSA_METHOD

This is a mostly mechanical diff which will hopefully be superseded
soon by work in libtls.

ok jsing



CVS: cvs.openbsd.org: src

2022-01-11 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2022/01/11 12:03:15

Modified files:
lib/libssl : ssl_clnt.c ssl_locl.h ssl_sess.c ssl_srvr.c 
 tls13_client.c tls13_server.c 

Log message:
Remove peer_pkeys from SSL_SESSION.

peer_pkeys comes from some world where peers can send multiple certificates
- in fact, one of each known type. Since we do not live in such a world,
get rid of peer_pkeys and simply use peer_cert instead (in both TLSv1.2
and TLSv1.3, both clients and servers can only send a single leaf
(aka end-entity) certificate).

ok inoguchi@ tb@



CVS: cvs.openbsd.org: src

2022-01-11 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2022/01/11 11:43:00

Modified files:
lib/libssl : ssl_lib.c 

Log message:
Simplify SSL_get_peer_certificate()

ok inoguchi@ tb@



CVS: cvs.openbsd.org: src

2022-01-11 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2022/01/11 11:39:28

Modified files:
lib/libssl : ssl_asn1.c ssl_clnt.c ssl_lib.c ssl_locl.h 
 ssl_sess.c ssl_srvr.c tls13_client.c 
 tls13_server.c 

Log message:
Rename 'peer' to 'peer_cert' in SSL_SESSION.

The 'peer' member of SSL_SESSION is the leaf/end-entity certificate
provided by our peer. Rename it since 'peer' on its own is unhelpful.

ok inoguchi@ tb@



CVS: cvs.openbsd.org: src

2022-01-11 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2022/01/11 11:29:10

Modified files:
regress/lib/libssl/tlsext: tlsexttest.c 

Log message:
Revise for changes to tls_key_share_peer_public()



CVS: cvs.openbsd.org: src

2022-01-11 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2022/01/11 11:28:41

Modified files:
lib/libssl : ssl_clnt.c ssl_kex.c ssl_locl.h ssl_srvr.c 
 ssl_tlsext.c tls_internal.h tls_key_share.c 

Log message:
Plumb decode errors through key share parsing code.

Distinguish between decode errors and other errors, so that we can send
a SSL_AD_DECODE_ERROR alert when appropriate.

Fixes a tlsfuzzer failure, due to it expecting a decode error alert and
not receiving one.

Prompted by anton@

ok tb@



CVS: cvs.openbsd.org: src

2022-01-11 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2022/01/11 11:24:03

Modified files:
lib/libssl : ssl_tlsext.c 

Log message:
Use SSL_AD_INTERNAL_ERROR for non-decoding alerts when parsing keyshares.

ok tb@



CVS: cvs.openbsd.org: src

2022-01-11 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2022/01/11 11:22:17

Modified files:
lib/libssl : ssl_tlsext.c 

Log message:
Simplify tlsext_keyshare_server_parse()

SSL_AD_DECODE_ERROR is the default alert for a TLS extension parsing
failure - remove the various gotos and simply return 0 instead.

ok tb@



CVS: cvs.openbsd.org: src

2022-01-11 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2022/01/11 09:54:59

Modified files:
sys/arch/armv7/include: vmparam.h 

Log message:
Bump KVA space up to 512MB (and a bit).

ok phessler@, deraadt@, miod@



CVS: cvs.openbsd.org: src

2022-01-11 Thread Inoguchi Kinichiro
CVSROOT:/cvs
Module name:src
Changes by: inogu...@cvs.openbsd.org2022/01/11 09:06:49

Modified files:
usr.bin/openssl: smime.c 

Log message:
Wrap long lines



CVS: cvs.openbsd.org: src

2022-01-11 Thread Inoguchi Kinichiro
CVSROOT:/cvs
Module name:src
Changes by: inogu...@cvs.openbsd.org2022/01/11 08:45:00

Modified files:
usr.bin/openssl: smime.c 

Log message:
Check function return value



CVS: cvs.openbsd.org: src

2022-01-11 Thread Inoguchi Kinichiro
CVSROOT:/cvs
Module name:src
Changes by: inogu...@cvs.openbsd.org2022/01/11 08:05:58

Modified files:
usr.bin/openssl: smime.c 

Log message:
Suppress warning



CVS: cvs.openbsd.org: src

2022-01-11 Thread Inoguchi Kinichiro
CVSROOT:/cvs
Module name:src
Changes by: inogu...@cvs.openbsd.org2022/01/11 08:02:34

Modified files:
usr.bin/openssl: smime.c 

Log message:
Compare pointer variable with NULL



CVS: cvs.openbsd.org: src

2022-01-11 Thread Inoguchi Kinichiro
CVSROOT:/cvs
Module name:src
Changes by: inogu...@cvs.openbsd.org2022/01/11 07:35:14

Modified files:
usr.bin/openssl: smime.c 

Log message:
Remove space between '*' and pointer variable.



CVS: cvs.openbsd.org: src

2022-01-11 Thread Inoguchi Kinichiro
CVSROOT:/cvs
Module name:src
Changes by: inogu...@cvs.openbsd.org2022/01/11 07:23:05

Modified files:
usr.bin/openssl: smime.c 

Log message:
Convert openssl(1) smime option handling

Apply new option handling to openssl(1) smime and no functional changes.

input and ok jsing@



CVS: cvs.openbsd.org: src

2022-01-11 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2022/01/11 06:06:07

Modified files:
usr.sbin/rpki-client: extern.h main.c mft.c parser.c repo.c 

Log message:
Change the way the parser accesses files. It now builds the file path
based on information from the repository, a local path and the filename.
This simplifies some code both in the main process and the parser.
For this to work repositories are passed to the parser before any other
entity of this repository is passed. Struct entity is extended to include
the repoid and the path along the file(name).
Input and OK tb@ & job@



CVS: cvs.openbsd.org: src

2022-01-11 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/11 05:14:07

Modified files:
lib/libkeynote : signature.c 

Log message:
Garbage collect historical setting of dsa->write_params = 1.
This is always 1 with modern libs and write_params will soon go away.



CVS: cvs.openbsd.org: src

2022-01-11 Thread SASANO Takayoshi
CVSROOT:/cvs
Module name:src
Changes by: u...@cvs.openbsd.org2022/01/11 04:51:14

Modified files:
sys/dev/fdt: com_fdt.c 
sys/dev/ic : com.c comreg.h comvar.h ns16550reg.h 

Log message:
add Synopsys Degisnware UART (dw-apb-uart) support

To fix Allwinner H6's UART problem, need to add dw-apb-uart special code.
ok kettenis@



CVS: cvs.openbsd.org: src

2022-01-11 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2022/01/11 03:34:13

Modified files:
sys/dev/usb: if_umb.c 

Log message:
Remove KASSERT(0) and default switch case. No other sc_ncm_format
switch has a default case and umb_ncm_setup_format() ensures that
only 16 and 32bit formats are accepted. Fixes build error without
DIAGNOSTIC set.
Found by and OK robert@



CVS: cvs.openbsd.org: src

2022-01-11 Thread SASANO Takayoshi
CVSROOT:/cvs
Module name:src
Changes by: u...@cvs.openbsd.org2022/01/11 03:23:17

Modified files:
sys/dev/fdt: sxirsb.c 

Log message:
fix RSB_DMCR_DEVICE_MODE_DATA value to enter RSB mode correctly
ok kettenis@ patrick@



CVS: cvs.openbsd.org: src

2022-01-11 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/01/11 02:21:35

Modified files:
lib/libc/arch/amd64/string: strlen.S 
lib/libc/gmon  : mcount.c 
sys/lib/libkern: mcount.c 
sys/lib/libkern/arch/amd64: strlen.S 
sys/lib/libkern/arch/hppa: milli.S 
sys/lib/libkern/arch/m88k: bzero.S 

Log message:
spelling



CVS: cvs.openbsd.org: src

2022-01-11 Thread Alexandr Nedvedicky
CVSROOT:/cvs
Module name:src
Changes by: sas...@cvs.openbsd.org  2022/01/11 02:00:17

Modified files:
sys/net: pf_ioctl.c 

Log message:
move allocations in DIOCSADDRULE and DIOCHANGERULE outside of locks.
this diff lets pf_rule_copyin() to be called outside of PF_LOCK()/NET_LOCK().

OK bluhm@



CVS: cvs.openbsd.org: src

2022-01-11 Thread Vitaliy Makkoveev
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2022/01/11 01:10:03

Modified files:
sys/kern   : init_sysent.c syscalls.c 
sys/sys: syscall.h syscallargs.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2022-01-11 Thread Vitaliy Makkoveev
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2022/01/11 01:09:14

Modified files:
sys/kern   : syscalls.master 

Log message:
Unlock getpeername(2). For inet and unix sockets it follows the code
which was unlocked with accept(2) unlocking. For key management and
route domain sockets it just copies the read-only data.

ok bluhm@



CVS: cvs.openbsd.org: src

2022-01-11 Thread Vitaliy Makkoveev
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2022/01/11 01:03:25

Modified files:
regress/sys/kern/unixsockets: ungc.c 

Log message:
Produce alive in-flight sockets with positive "f_count == unp_msgcount"
equation. Such sockets should not be killed by unp_gc() otherwise system
will panic.

tested by anton@; ok bluhm@