CVS: cvs.openbsd.org: src

2022-01-07 Thread Darren Tucker
CVSROOT:/cvs
Module name:src
Changes by: dtuc...@cvs.openbsd.org 2022/01/08 00:55:26

Modified files:
regress/usr.bin/ssh: hostbased.sh 

Log message:
Remove errant "set -x" left over from debugging.



CVS: cvs.openbsd.org: www

2022-01-07 Thread Damien Miller
CVSROOT:/cvs
Module name:www
Changes by: d...@cvs.openbsd.org2022/01/08 00:43:58

Modified files:
openssh: agent-restrict.html 

Log message:
don't mention missing markus



CVS: cvs.openbsd.org: src

2022-01-07 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2022/01/08 00:37:32

Modified files:
usr.bin/ssh: sftp-client.c 

Log message:
use status error message to communicate ~user expansion failures;
provides better experience for scp in sftp mode, where ~user paths
are more likely to be used; spotted jsg, feedback jsg & deraadt
ok jsg & markus



CVS: cvs.openbsd.org: src

2022-01-07 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2022/01/08 00:36:11

Modified files:
usr.bin/ssh: scp.c 

Log message:
fix some corner-case bugs in scp sftp-mode handling of ~-prefixed
paths; spotted by jsg; feedback jsg & deraadt, ok jsg & markus



CVS: cvs.openbsd.org: src

2022-01-07 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2022/01/08 00:34:57

Modified files:
usr.bin/ssh: sftp-client.c 

Log message:
more idiomatic error messages; spotted by jsg & deraadt
ok jsg & markus



CVS: cvs.openbsd.org: src

2022-01-07 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2022/01/08 00:33:54

Modified files:
usr.bin/ssh: sftp-server.c 

Log message:
add a variant of send_status() that allows overriding the default,
generic error message. feedback/ok markus & jsg



CVS: cvs.openbsd.org: src

2022-01-07 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2022/01/08 00:32:45

Modified files:
usr.bin/ssh: misc.c 

Log message:
refactor tilde_expand_filename() and make it handle ~user paths with no
trailing slash; feedback/ok markus and jsg



CVS: cvs.openbsd.org: src

2022-01-07 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/08 00:25:52

Modified files:
lib/libcrypto/x509: x509_cpols.c 

Log message:
x509_cpols.c will need to include x509_lcl.h soon



CVS: cvs.openbsd.org: src

2022-01-07 Thread Darren Tucker
CVSROOT:/cvs
Module name:src
Changes by: dtuc...@cvs.openbsd.org 2022/01/08 00:01:13

Modified files:
regress/usr.bin/ssh: hostbased.sh 

Log message:
Enable all supported hostkey algorithms (but no others).  Allows hostbased
test to pass when built without OpenSSL.



Re: CVS: cvs.openbsd.org: src

2022-01-07 Thread Philip Guenther
On Fri, Jan 7, 2022 at 10:50 PM Philip Guenther 
wrote:

> CVSROOT:/cvs
> Module name:src
> Changes by: guent...@cvs.openbsd.org2022/01/07 23:49:42
>
> Modified files:
> libexec/ld.so  : boot.c dir.c dl_dirname.c dl_printf.c
>  dl_uname.c dlfcn.c library.c library_mquery.c
>  library_subr.c loader.c malloc.c reallocarray.c
>  resolve.c sod.c strtol.c syscall.h tib.c
>  trace.c util.c util.h
> libexec/ld.so/aarch64: rtld_machine.c
> libexec/ld.so/alpha: rtld_machine.c
> libexec/ld.so/amd64: rtld_machine.c
> libexec/ld.so/arm: rtld_machine.c
> libexec/ld.so/hppa: rtld_machine.c
> libexec/ld.so/i386: rtld_machine.c
> libexec/ld.so/ldconfig: ld.h
> libexec/ld.so/m88k: rtld_machine.c
> libexec/ld.so/mips64: rtld_machine.c
> libexec/ld.so/powerpc: rtld_machine.c
> libexec/ld.so/powerpc64: rtld_machine.c
> libexec/ld.so/riscv64: rtld_machine.c
> libexec/ld.so/sh: rtld_machine.c
> libexec/ld.so/sparc64: rtld_machine.c
>
> Log message:
> Prep .c files for removing the #includes from */archdep.h
> * replace #include "archdep.h" with #includes of what is used, pulling in
> "syscall.h", "util.h", and "archdep.h" as needed
> * delete #include  from syscall.h
> * only pull in  to the three files that use _dl_fstat(),
> forward declare struct stat in syscall.h for the others
> * NBBY is for  macros; just use '8' in dl_printf.c
> *  is only needed on i386; conditionalize it
> * stop using __LDPGSZ: use _MAX_PAGE_SHIFT (already used by malloc.c)
> where necessary
> * delete other bogus #includes, order legit per style:  then
> <*/*>, then <*>, then "*"
>
> dir.c improvement from jsg@
>

...and ok jsg@ (thanks!)


> ok and testing assistance deraadt@
>
>


CVS: cvs.openbsd.org: src

2022-01-07 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2022/01/07 23:49:42

Modified files:
libexec/ld.so  : boot.c dir.c dl_dirname.c dl_printf.c 
 dl_uname.c dlfcn.c library.c library_mquery.c 
 library_subr.c loader.c malloc.c reallocarray.c 
 resolve.c sod.c strtol.c syscall.h tib.c 
 trace.c util.c util.h 
libexec/ld.so/aarch64: rtld_machine.c 
libexec/ld.so/alpha: rtld_machine.c 
libexec/ld.so/amd64: rtld_machine.c 
libexec/ld.so/arm: rtld_machine.c 
libexec/ld.so/hppa: rtld_machine.c 
libexec/ld.so/i386: rtld_machine.c 
libexec/ld.so/ldconfig: ld.h 
libexec/ld.so/m88k: rtld_machine.c 
libexec/ld.so/mips64: rtld_machine.c 
libexec/ld.so/powerpc: rtld_machine.c 
libexec/ld.so/powerpc64: rtld_machine.c 
libexec/ld.so/riscv64: rtld_machine.c 
libexec/ld.so/sh: rtld_machine.c 
libexec/ld.so/sparc64: rtld_machine.c 

Log message:
Prep .c files for removing the #includes from */archdep.h
* replace #include "archdep.h" with #includes of what is used, pulling in
"syscall.h", "util.h", and "archdep.h" as needed
* delete #include  from syscall.h
* only pull in  to the three files that use _dl_fstat(),
forward declare struct stat in syscall.h for the others
* NBBY is for  macros; just use '8' in dl_printf.c
*  is only needed on i386; conditionalize it
* stop using __LDPGSZ: use _MAX_PAGE_SHIFT (already used by malloc.c)
where necessary
* delete other bogus #includes, order legit per style:  then
<*/*>, then <*>, then "*"

dir.c improvement from jsg@
ok and testing assistance deraadt@



CVS: cvs.openbsd.org: src

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

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

Log message:
Indicate current default cipher



CVS: cvs.openbsd.org: src

2022-01-07 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2022/01/07 22:40:19

Modified files:
sys/arch/octeon/conf: BOOT 
sys/arch/powerpc64/conf: BOOT 

Log message:
Remove verbose PCI and USB device info from BOOT

BOOT kernels do not print kernel messages, and currently there is no
way to change this at runtime. Remove the verbose device information
to save some space.



CVS: cvs.openbsd.org: src

2022-01-07 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2022/01/07 22:34:54

Modified files:
sys/arch/octeon/include: pci_machdep.h 

Log message:
Adjust debug printfs after pcitag_t type change.



CVS: cvs.openbsd.org: src

2022-01-07 Thread Jonathan Matthew
CVSROOT:/cvs
Module name:src
Changes by: jmatt...@cvs.openbsd.org2022/01/07 17:20:10

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

Log message:
Apply mpsafe changes from dwge(4) to dwxe(4):

Rework the tx path to use the consumer and producer positions to work out
the number of slots available, and to put packets on the ring until fewer
than DWXE_NTXSEGS slots are left, making dwxe_start() and dwxe_txeof()
work independently.  While here, only write to DWXE_TX_CTL1 once
per call to dwxe_start() rather than once per packet.

Adjust the rx interrupt path to check the number of slots in use and
return slots once per interrupt.

Add interrupt and ifq barriers before taking the interface down.
With all of this done, we can mark dwxe(4) mpsafe.

tested on arm64 (a64 sopine) by mlarkin@ and armv7 (h2+) by me
ok dlg@



CVS: cvs.openbsd.org: src

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

Modified files:
regress/lib/libcrypto/x509/rfc3779: rfc3779.c 

Log message:
Add some workarounds to make build_addr_block_test_data const.



CVS: cvs.openbsd.org: src

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

Modified files:
lib/libcrypto/evp: evp.h evp_aead.c 

Log message:
Prepare to provide EVP_AEAD_CTX_{new,free}()

ok jsing



CVS: cvs.openbsd.org: src

2022-01-07 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2022/01/07 12:03:57

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

Log message:
Add code to initialize the PCIe host bridge hardware.  We currently rely on
U-Boot to initialize the hardware for us,  but it is better if we can cope
with this ourselves.

ok patrick@



CVS: cvs.openbsd.org: src

2022-01-07 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/07 10:17:02

Modified files:
regress/lib/libcrypto/x509/rfc3779: Makefile 

Log message:
Revert previous accidental commit



CVS: cvs.openbsd.org: src

2022-01-07 Thread Otto Moerbeek
CVSROOT:/cvs
Module name:src
Changes by: o...@cvs.openbsd.org2022/01/07 10:14:42

Modified files:
usr.sbin/ntpd  : constraint.c 

Log message:
If no date could be parsed, bail out early and fix an error return that
leaked; ok florian@



CVS: cvs.openbsd.org: src

2022-01-07 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2022/01/07 09:45:06

Modified files:
lib/libssl : s3_lib.c ssl_cert.c ssl_lib.c ssl_locl.h 
 ssl_srvr.c 

Log message:
Rename dh_tmp to dhe_params.

Support for non-ephemeral DH was removed a long time ago - as such, the
dh_tmp and dh_tmp_cb are used for DHE parameters. Rename them to reflect
reality.

ok inoguchi@ tb@



CVS: cvs.openbsd.org: src

2022-01-07 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2022/01/07 09:39:18

Modified files:
sys/net: if.c 

Log message:
SIOCSIFXFLAGS drops into the SIOCSIFFLAGS to perform auto-up of the
interface. If this operation fails (probably due to missing firmware),
we must undo changes to the SIOCSIFXFLAGS xflags.
ok stsp.



CVS: cvs.openbsd.org: src

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

Modified files:
lib/libssl : ssl_cert.c 

Log message:
Stop attempting to duplicate the public and private key of dh_tmp.

Support for non-ephemeral DH was removed a very long time ago - the only
way that dh_tmp is set is via DHparams_dup(), hence the public and private
keys are always going to be NULL.

ok inoguchi@ tb@



CVS: cvs.openbsd.org: src

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

Modified files:
lib/libssl : s3_lib.c ssl_locl.h ssl_srvr.c tls13_server.c 
 tls_internal.h tls_key_share.c 

Log message:
Convert legacy server to tls_key_share.

This requires a few more additions to the DHE key share code - we need to
be able to either set the DHE parameters or specify the number of key bits
for use with auto DHE parameters. Additionally, we need to be able to
serialise the DHE parameters to send to the client.

This removes the infamous 'tmp' struct from ssl3_state_internal_st.

ok inoguchi@ tb@



CVS: cvs.openbsd.org: src

2022-01-07 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2022/01/07 06:56:54

Modified files:
sys/arch/arm64/conf: kern.ldscript 
sys/arch/riscv64/conf: kern.ldscript 

Log message:
.glue_7 is used for arm code calling thumb code, and .glue_7t is used for
thumb code calling arm code, no need to put these input sections at the text
output section.

ok jsg@ kettenis@



CVS: cvs.openbsd.org: src

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

Modified files:
lib/libcrypto/asn1: tasn_dec.c tasn_fre.c tasn_new.c 

Log message:
A few more files need asn1_locl.h.



CVS: cvs.openbsd.org: src

2022-01-07 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/07 04:13:55

Modified files:
lib/libcrypto/asn1: a_object.c asn_moid.c tasn_enc.c 
lib/libcrypto/evp: evp_lib.c 
lib/libcrypto/objects: obj_dat.c obj_lib.c 
lib/libcrypto/rsa: rsa_sign.c 

Log message:
include asn1_locl.h where it will be needed for the bump.

discussed with jsing



CVS: cvs.openbsd.org: src

2022-01-07 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2022/01/07 03:48:59

Modified files:
sys/arch/octeon/stand/boot: Makefile 
sys/arch/powerpc64/stand/boot: Makefile 

Log message:
Add missing dependency.



CVS: cvs.openbsd.org: src

2022-01-07 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2022/01/07 03:20:11

Modified files:
regress/usr.sbin/snmpd: snmpd.sh 

Log message:
Somehow I always forget that the more global LC_ALL takes precedence over
the more specific LC_CTYPE. Things are weird that way.

The problem here was that "eval" and "LC_ALL=" were swapped, not the
priority of variables.

pointed out by naddy@
OK tb@



CVS: cvs.openbsd.org: src

2022-01-07 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/07 02:55:32

Modified files:
lib/libcrypto  : Makefile 
lib/libcrypto/pem: pvkfmt.c 
lib/libcrypto/rsa: rsa_chk.c rsa_crpt.c rsa_eay.c rsa_gen.c 
   rsa_lib.c rsa_meth.c rsa_pss.c 

Log message:
Prepare to make RSA and RSA_METHOD opaque by including rsa_locl.h
where it will be needed in the upcoming bump.

discussed with jsing



CVS: cvs.openbsd.org: src

2022-01-07 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/07 02:45:52

Modified files:
lib/libcrypto  : Makefile 
lib/libcrypto/ocsp: ocsp_asn.c ocsp_cl.c ocsp_ext.c ocsp_lib.c 
ocsp_prn.c ocsp_srv.c ocsp_vfy.c 
lib/libcrypto/x509: x509_ocsp.c 
Added files:
lib/libcrypto/ocsp: ocsp_local.h 

Log message:
Add an essentially empty ocsp_local.h and include it in the files
that will need it in the upcoming bump.

discussed with jsing



CVS: cvs.openbsd.org: src

2022-01-07 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/07 02:40:03

Modified files:
lib/libcrypto/gost: gostr341001.c gostr341001_pmeth.c 

Log message:
gost needs to look into ecs_locl.h



CVS: cvs.openbsd.org: src

2022-01-07 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/07 02:35:36

Modified files:
lib/libcrypto  : Makefile 
lib/libcrypto/dsa: dsa_ameth.c dsa_asn1.c dsa_key.c dsa_lib.c 
   dsa_meth.c dsa_ossl.c dsa_sign.c dsa_vrf.c 
lib/libcrypto/pem: pvkfmt.c 

Log message:
Prepare the move of DSA_SIG, DSA_METHOD and DSA to dsa_locl.h by
including the local header where it will be needed.

discussed with jsing



CVS: cvs.openbsd.org: src

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

Modified files:
lib/libcrypto  : Makefile 
lib/libcrypto/dh: dh_ameth.c dh_asn1.c dh_check.c dh_gen.c 
  dh_key.c dh_lib.c dh_pmeth.c 
lib/libcrypto/dsa: dsa_lib.c 
Added files:
lib/libcrypto/dh: dh_local.h 

Log message:
Add an essentially empty dh_local.h and include it in the files where
it will be needed in the upcoming bump.

discussed with jsing



CVS: cvs.openbsd.org: src

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

Modified files:
lib/libcrypto/dh: dh.h 

Log message:
zap trailing whitespace



CVS: cvs.openbsd.org: src

2022-01-07 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/01/07 02:08:15

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

Log message:
fix aac build after -Wno-uninitialized was removed



CVS: cvs.openbsd.org: src

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

Modified files:
regress/lib/libssl/dtls: Makefile dtlstest.c 

Log message:
Let dtlstest peek into bio_local.h



CVS: cvs.openbsd.org: src

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

Modified files:
lib/libcrypto  : Makefile 
lib/libcrypto/asn1: bio_asn1.c 
lib/libcrypto/bio: bf_buff.c bf_nbio.c bf_null.c bio_cb.c 
   bio_lib.c bio_meth.c bss_acpt.c bss_bio.c 
   bss_conn.c bss_dgram.c bss_fd.c bss_file.c 
   bss_log.c bss_mem.c bss_null.c bss_sock.c 
lib/libcrypto/err: err_prn.c 
lib/libcrypto/evp: bio_b64.c bio_enc.c bio_md.c 
Added files:
lib/libcrypto/bio: bio_local.h 

Log message:
Add a new, mostly empty, bio_local.h and include it in the files
that will need it in the upcoming bump.

discussed with jsing