CVS: cvs.openbsd.org: src

2022-01-05 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/01/05 23:19:41

Modified files:
sys/dev/pci: pcidevs.h pcidevs_data.h 

Log message:
regen



CVS: cvs.openbsd.org: src

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

Modified files:
sys/dev/pci: pcidevs 

Log message:
ati 0x15e7 confirmed to be barcelo, 2022 ryzen 5000 apus
uses the same green sardine firmware as cezanne



CVS: cvs.openbsd.org: src

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

Modified files:
regress/lib/libcrypto/ct: Makefile cttest.c 
Added files:
regress/lib/libcrypto/ct: ctlog.conf letsencrypt-r3.crt 

Log message:
Add test coverage for SCT validation.

Of note, the public APIs for this mean that the only way you can add a
CTLOG is by reading a configuration file from disk - there is no
programmatic way to do this.



CVS: cvs.openbsd.org: src

2022-01-05 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2022/01/05 20:30:15

Modified files:
regress/lib/libc/sys: Makefile 
Removed files:
regress/lib/libc/sys: t_syscall.c 

Log message:
t_syscall was a test for the gcc 1.x off_t syscall padding,
which was an implementation detail and has been deleted, so
delete the test



CVS: cvs.openbsd.org: src

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

Modified files:
sys/dev/pci/drm/amd/amdgpu: amdgpu_discovery.c 
sys/dev/pci/drm/amd/include: discovery.h 

Log message:
drm/amdgpu: add support for IP discovery gc_info table v2

>From Alex Deucher
b8553330a07749e488d143b5704adf1042fd7c0a in linux 5.10.y/5.10.90
5e713c6afa34c0fd6f113bf7bb1c2847172d7b20 in mainline linux



CVS: cvs.openbsd.org: src

2022-01-05 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/01/05 18:37:46

Modified files:
sys/dev/pci/drm/amd/amdgpu: vcn_v1_0.c 

Log message:
drm/amdgpu: When the VCN(1.0) block is suspended, powergating is explicitly 
enabled

>From chen gong
28863ffe21ff711d5109e3c208676258bdec3a1f in linux 5.10.y/5.10.90
b7865173cf6ae59942e2c69326a06e1c1df5ecf6 in mainline linux



CVS: cvs.openbsd.org: src

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

Modified files:
sys/dev/pci/drm/amd/amdgpu: amdgpu_gem.c 

Log message:
unstub amdgpu_gem_force_release()



CVS: cvs.openbsd.org: src

2022-01-05 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2022/01/05 14:54:37

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

Log message:
add a comment so I don't make this mistake again



CVS: cvs.openbsd.org: src

2022-01-05 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2022/01/05 14:50:00

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

Log message:
fix cut-and-pasto in error message



CVS: cvs.openbsd.org: src

2022-01-05 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2022/01/05 14:45:27

Removed files:
usr.sbin/pkg_add: fw_update.1 

Log message:
no longer needed



CVS: cvs.openbsd.org: src

2022-01-05 Thread Todd C . Miller
CVSROOT:/cvs
Module name:src
Changes by: mill...@cvs.openbsd.org 2022/01/05 13:57:27

Modified files:
bin/csh: csh.c 
include: stdio.h 
lib/libc/stdio : funopen.3 funopen.c 

Log message:
funopen(): change seekfn argument to use off_t, not fpos_t
On BSD, fpos_t is typedef'd to off_t but some systems use a struct.
This means fpos_t is not a portable function argument or return value.
Both FreeBSD and the Linux libbsd funopen() have switched to off_t
for this--we should too.  From Joe Nelson.  OK deraadt@



CVS: cvs.openbsd.org: src

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

Modified files:
lib/libcrypto/dsa: dsa.h dsa_lib.c 

Log message:
Prepare to provide DSA_bits()

Used by Qt5 and Qt6 and slightly reduces the patching in there.

ok inoguchi jsing



CVS: cvs.openbsd.org: src

2022-01-05 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/05 13:48:44

Modified files:
lib/libcrypto/bio: bio.h bio_lib.c 

Log message:
Prepare to provide BIO_set_retry_reason()

Needed by freerdp.

ok inoguchi jsing



CVS: cvs.openbsd.org: src

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

Modified files:
lib/libcrypto/rsa: rsa.h rsa_lib.c 

Log message:
Prepare to provide a number of RSA accessors

This adds RSA_get0_{n,e,d,p,q,dmp1,dmq1,iqmp,pss_params}() which will
be exposed in the upcoming bump.

ok inoguchi jsing



CVS: cvs.openbsd.org: src

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

Modified files:
lib/libcrypto/ecdsa: ecdsa.h ecs_asn1.c 

Log message:
Prepare to provide ECDSA_SIG_get0_{r,s}()

ok inoguchi jsing



CVS: cvs.openbsd.org: src

2022-01-05 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/05 13:36:29

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

Log message:
Prepare to provide DH_get_length()

Will be needed by openssl(1) dhparam.

ok inoguchi jsing



CVS: cvs.openbsd.org: src

2022-01-05 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/05 13:33:49

Modified files:
lib/libcrypto/dsa: dsa.h dsa_lib.c 

Log message:
Prepare to provide DSA_get0_{p,q,g,{priv,pub}_key}()

ok inoguchi jsing



CVS: cvs.openbsd.org: src

2022-01-05 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/05 13:30:16

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

Log message:
Prepare to provide DH_get0_{p,q,g,{priv,pub}_key}()

These are accessors that allow getting one specific DH member. They are
less error prone than the current getters DH_get0_{pqg,key}(). They
are used by many ports and will also be used in base for this reason.

Who can remember whether the pub_key or the priv_key goes first in
DH_get0_key()?

ok inoguchi jsing



CVS: cvs.openbsd.org: src

2022-01-05 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/05 13:22:26

Modified files:
lib/libcrypto/bio: bio.h bio_lib.c 

Log message:
Prepare to provide BIO_set_next().

This will be needed in libssl and freerdp after the next bump.

ok inoguchi jsing



CVS: cvs.openbsd.org: src

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

Modified files:
lib/libcrypto/x509: x509_vfy.h x509_lu.c 

Log message:
Prepare to provide X509_{set,get}_verify() and X509_STORE_get_verify_cb()
as well as the X509_STORE_CTX_verify_cb and X509_STORE_CTX_verify_fn types

This will fix the X509_STORE_set_verify_func macro which is currently
broken, as pointed out by schwarze.

ok inoguchi jsing



CVS: cvs.openbsd.org: src

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

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

Log message:
Use "bus-range" property to initialize the bus number configuration of
the bridge when present on FDT platforms.  Needed on platforms like the
Apple M1 to make sure the PCI bus numbers match the IOMMU setup required
by the device tree.

ok patrick@



CVS: cvs.openbsd.org: src

2022-01-05 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2022/01/05 11:34:23

Modified files:
etc: newsyslog.conf 

Log message:
increase lifetime of wtmp, since it is annoyingly short
discussed with millert



CVS: cvs.openbsd.org: src

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

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

Log message:
Unindent a few lines of code and avoid shadowed variables.



CVS: cvs.openbsd.org: src

2022-01-05 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/05 10:55:33

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

Log message:
Rename {c,p}_{min,max} into {child,parent}_{min,max}



CVS: cvs.openbsd.org: src

2022-01-05 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2022/01/05 10:53:44

Modified files:
sys/uvm: uvm_mmap.c 

Log message:
Remove kbind(2)'s restriction that a target buffer not cross page
boundaries: hppa has 8-byte PLT entries that sometimes do that.

ok kettenis@



CVS: cvs.openbsd.org: src

2022-01-05 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/05 10:53:42

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

Log message:
Two minor KNF tweaks



CVS: cvs.openbsd.org: src

2022-01-05 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/05 10:52:28

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

Log message:
Use child_aor and parent_aor instead of aorc and aorp

suggested by jsing



CVS: cvs.openbsd.org: src

2022-01-05 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/05 10:51:30

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

Log message:
Rename fp and fc into parent_af and child_af for readability.

suggested by jsing



CVS: cvs.openbsd.org: src

2022-01-05 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/05 10:49:39

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

Log message:
Globally rename all IPAddressFamily *f into af since this is slightly
more readable.

Repeated complaints by jsing



CVS: cvs.openbsd.org: www

2022-01-05 Thread T . J . Townsend
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2022/01/05 10:49:12

Modified files:
faq: faq16.html faq4.html faq6.html 

Log message:
fw_update(1) -> (8)



CVS: cvs.openbsd.org: src

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

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

Log message:
Add a helper function to turn unchecked (but sound) use of
sk_find + sk_value into something easier to follow and swallow.

ok inoguchi jsing



CVS: cvs.openbsd.org: src

2022-01-05 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/05 10:44:30

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

Log message:
Hoist IPAddressFamily_cmp() to the other IPAddressFamily functions.

ok inoguchi jsing



CVS: cvs.openbsd.org: src

2022-01-05 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/05 10:43:04

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

Log message:
Call x a cert for readability.



CVS: cvs.openbsd.org: src

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

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

Log message:
Now that i is free, rename j to i for use as loop variable in
various loops in addr_validate_path_internal().



CVS: cvs.openbsd.org: src

2022-01-05 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/01/05 10:39:25

Modified files:
share/man/man4 : ipw.4 acx.4 athn.4 bwfm.4 bwi.4 iwi.4 iwm.4 
 iwn.4 iwx.4 malo.4 otus.4 pgt.4 uath.4 upgt.4 
 uvideo.4 wpi.4 
share/man/man7 : packages.7 
usr.bin/signify: signify.1 
usr.sbin/pkg_add: package.5 
usr.sbin/vmd   : vmd.8 

Log message:
adjust Xr for fw_update to section 8;
ok afresh sthen deraadt



CVS: cvs.openbsd.org: src

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

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

Log message:
In addr_validate_path_internal() rename i to depth because that's
what it is.



CVS: cvs.openbsd.org: src

2022-01-05 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/05 10:36:32

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

Log message:
Turn the validation_err() macro into a function

validation_err() is an ugly macro with side effects and a goto in it.
At the cost of a few lines of code we can turn this into a function
where the side effects are explicit and ret is now explicitly set in
the main body of addr_validate_path_internal().

We get to a point where it is halfway possible to reason about the
convoluted control flow in this function.

ok inoguchi jsing



CVS: cvs.openbsd.org: src

2022-01-05 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/05 10:27:41

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

Log message:
Move variable declarations in X509v3_addr_canonize() to the top of
the function and unindent some code.

ok inoguchi jsing



CVS: cvs.openbsd.org: src

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

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

Log message:
Revise for tls13_key_share rename.



CVS: cvs.openbsd.org: src

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

Modified files:
lib/libssl : Makefile s3_lib.c ssl_locl.h ssl_tlsext.c 
 tls13_client.c tls13_internal.h tls13_server.c 
 tls_internal.h 
Added files:
lib/libssl : tls_key_share.c 
Removed files:
lib/libssl : tls13_key_share.c 

Log message:
Rename tls13_key_share to tls_key_share.

In preparation to use the key share code in both the TLSv1.3 and legacy
stacks, rename tls13_key_share to tls_key_share, moving it into the shared
handshake struct. Further changes will then allow the legacy stack to make
use of the same code for ephemeral key exchange.

ok inoguchi@ tb@



CVS: cvs.openbsd.org: src

2022-01-05 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2022/01/05 10:06:20

Modified files:
sys/dev/pci: if_iwm.c if_iwx.c 

Log message:
Remove unused function arguments in iwm/iwx interrupt handlers.

pointed out by + ok millert@



CVS: cvs.openbsd.org: src

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

Modified files:
usr.sbin/snmpd : usm.c 

Log message:
Switch snmpd(8) to using EVP_Digest{Init,Final}_ex() and drop a no
longer needed EVP_MD_CTX_reset().

ok martijn



CVS: cvs.openbsd.org: src

2022-01-05 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2022/01/05 09:46:55

Modified files:
distrib/sets/lists/man: mi 

Log message:
sync



CVS: cvs.openbsd.org: src

2022-01-05 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2022/01/05 09:46:11

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

Log message:
Compensate for i386 pcitag_t union
ok jsg kettenis



CVS: cvs.openbsd.org: src

2022-01-05 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/01/05 09:41:42

Modified files:
usr.sbin/snmpd : usm.c 

Log message:
Add error checking for EVP_Digest* to snmpd(8).

ok martijn



CVS: cvs.openbsd.org: src

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

Modified files:
usr.bin/snmp   : usm.c 

Log message:
Add error checking for EVP_Digest*() to snmp(1).

ok martijn



CVS: cvs.openbsd.org: src

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

Modified files:
usr.sbin   : Makefile 
distrib/miniroot: install.sub 
usr.sbin/pkg_add: Makefile 

Log message:
Use new shell-based fw_update(8)
with afresh1



CVS: cvs.openbsd.org: src

2022-01-05 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2022/01/05 09:33:43

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

Log message:
In iwx(4), fix wrong pointer assignment in iwx_bar_frame_release().

This bug caused the driver to read block ack request information sent
by firmware from the wrong offset. The driver flushes buffered frames
and moves its Rx block ack window based on this information. Possible
consequences of this bug are packet loss or even stalled traffic if
the Rx BA window gets out of sync between driver and firmware. Though
this effect might get cancelled out when the driver re-syncs the BA
window in its regular Rx code path.

Spotted by Christian Ehrhardt.



CVS: cvs.openbsd.org: src

2022-01-05 Thread Andrew Fresh
CVSROOT:/cvs
Module name:src
Changes by: afre...@cvs.openbsd.org 2022/01/05 09:32:46

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

Log message:
Commit the correct version of fw_update

Sigh.



CVS: cvs.openbsd.org: src

2022-01-05 Thread Andrew Fresh
CVSROOT:/cvs
Module name:src
Changes by: afre...@cvs.openbsd.org 2022/01/05 09:28:19

Added files:
usr.sbin/fw_update: fw_update.8 fw_update.sh 

Log message:
Add the shell based fw_update and updated man page

This allows installing firmware from the installer without having
to wait to boot into a live system.

commit deraadt@



CVS: cvs.openbsd.org: src

2022-01-05 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2022/01/05 09:24:29

Added files:
usr.sbin/fw_update: patterns.c Makefile 

Log message:
We are moving back to a shell-script based fw_update, written in such a
way that the install script can also run it. This allows earlier retrieval
of downloaded firmwares, based upon patterns found in dmesg.
many iterations of this in snaps for about a month.



CVS: cvs.openbsd.org: src

2022-01-05 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2022/01/05 07:50:03

Modified files:
share/man/man1 : portgen.1 

Log message:
formatting nit, noticed by jmc@, thx!



CVS: cvs.openbsd.org: src

2022-01-05 Thread Inoguchi Kinichiro
CVSROOT:/cvs
Module name:src
Changes by: inogu...@cvs.openbsd.org2022/01/05 06:41:12

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

Log message:
Wrap long lines and add some braces



CVS: cvs.openbsd.org: src

2022-01-05 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2022/01/05 06:27:04

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

Log message:
Use LC_CTYPE instead of LC_ALL.
Makes regress pass when LC_CTYPE is set.

Found by and OK tb@



CVS: cvs.openbsd.org: src

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

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

Log message:
Check function return value



CVS: cvs.openbsd.org: src

2022-01-05 Thread Inoguchi Kinichiro
CVSROOT:/cvs
Module name:src
Changes by: inogu...@cvs.openbsd.org2022/01/05 04:38:19

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

Log message:
Checking pointer variable with NULL



CVS: cvs.openbsd.org: src

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

Modified files:
usr.sbin/rpki-client: parser.c 

Log message:
Switch proc_parser_root_cert() to not pass the entity but instead the
file, pkey and tal id. This is the last proc_parser function that needed
to be converted.
OK job@



CVS: cvs.openbsd.org: src

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

Modified files:
usr.sbin/dhcpd : sync.c 

Log message:
dhcpd: straightforward conversion to HMAC_CTX on the heap, similar
to what was done in spamd a while back.

ok florian



CVS: cvs.openbsd.org: src

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

Modified files:
usr.sbin/snmpd : usm.c 

Log message:
snmpd: Straightforward conversion to EVP_* on the heap.
It would be nice if someone added error checking for the EVP_Digest*
calls.

tested by & ok martijn



CVS: cvs.openbsd.org: src

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

Modified files:
usr.bin/snmp   : usm.c 

Log message:
Straightforward conversion to EVP_* on the heap.

ok martijn



CVS: cvs.openbsd.org: src

2022-01-05 Thread Inoguchi Kinichiro
CVSROOT:/cvs
Module name:src
Changes by: inogu...@cvs.openbsd.org2022/01/05 03:33:36

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

Log message:
Use calloc instead of malloc

suggested by tb@



CVS: cvs.openbsd.org: src

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

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

Log message:
Check NULL first and unindent the rest of the code

suggested by tb@



CVS: cvs.openbsd.org: src

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

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

Log message:
Convert openssl(1) cms option handling

Just applying new option handling and no functional changes.
Referred to verify.c and using 'verify_shared_options'.

ok and comments from jsing@ and tb@



CVS: cvs.openbsd.org: src

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

Modified files:
regress/lib/libssl: Makefile 
Added files:
regress/lib/libssl/api: Makefile apitest.c 

Log message:
Provide regress for SSL public APIs.

This will largely test curly and inconsistent APIs that are not covered by
other regress tests. Currently, this tests the wonder that is
SSL_get_peer_cert_chain().



CVS: cvs.openbsd.org: src

2022-01-05 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2022/01/05 02:57:18

src/regress/lib/libssl/api

Update of /cvs/src/regress/lib/libssl/api
In directory cvs.openbsd.org:/tmp/cvs-serv57166/api

Log Message:
Directory /cvs/src/regress/lib/libssl/api added to the repository



CVS: cvs.openbsd.org: src

2022-01-05 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2022/01/05 02:19:15

Modified files:
share/man/man1 : portgen.1 

Log message:
document -m



CVS: cvs.openbsd.org: src

2022-01-05 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2022/01/05 01:25:05

Modified files:
regress/usr.bin/ssh: hostkey-rotate.sh 

Log message:
select all RSA hostkey algorithms for UpdateHostkeys tests, not just
RSA-SHA1



CVS: cvs.openbsd.org: www

2022-01-05 Thread Pamela Mosiejczuk
CVSROOT:/cvs
Module name:www
Changes by: pam...@cvs.openbsd.org  2022/01/05 01:17:40

Modified files:
.  : plus.html 

Log message:
changes oct 28 - dec 26
input from kmos, tweaks and ok florian