CVS: cvs.openbsd.org: src

2023-05-27 Thread ASOU Masato
CVSROOT:/cvs
Module name:src
Changes by: a...@cvs.openbsd.org2023/05/27 23:28:50

Modified files:
usr.sbin/vmd   : vioblk.c vioqcow2.c vioraw.c 

Log message:
Used number of bytes instead of number of 512 byte sectors.

ok dv@



CVS: cvs.openbsd.org: src

2023-05-27 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/05/27 23:25:24

Modified files:
lib/libcrypto/x509: x509_local.h x509_vfy.c x509_vfy.h 
x509_vpm.c 

Log message:
Merge X509_VERIFY_PARAM_ID into X509_VERIFY_PARAM

Back in the day when essentially every struct was open to all applications,
X509_VERIFY_PARAM_ID provided a modicum of opacity. This indirection is now
no longer needed with X509_VERIFY_PARAM being opaque itself, so stop using
X509_VERIFY_PARAM_ID and merge it into X509_VERIFY_PARAM. This is a first
small step towards cleaning up the X509_VERIFY_PARAM mess.

ok jsing



CVS: cvs.openbsd.org: src

2023-05-27 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2023/05/27 13:35:55

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

Log message:
Implement battery charge control.

ok patrick@, tobhe@



CVS: cvs.openbsd.org: src

2023-05-27 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2023/05/27 12:39:03

Modified files:
lib/libcrypto/sha: sha256.c 

Log message:
Implement SHA256_{Update,Transform,Final}() directly in sha256.c.

m32_common.h is a typical OpenSSL macro horror show - copy the update,
transform and final functions from md32_common.h, manually expanding the
macros for SHA256. This will allow for further clean up to occur.

No change in generated assembly.

ok beck@ tb@



CVS: cvs.openbsd.org: src

2023-05-27 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2023/05/27 12:33:34

Modified files:
lib/libcrypto  : md32_common.h 

Log message:
Add HASH_NO_UPDATE and HASH_NO_TRANSFORM to md32_common.h

This makes it possible to still use minimal parts of md32_common.h, while
disabling the update and transform functions.

ok beck@ tb@



CVS: cvs.openbsd.org: src

2023-05-27 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2023/05/27 09:50:56

Modified files:
regress/lib/libcrypto/bn: bn_convert.c 

Log message:
Add coverage for calling BN_{dec,hex}2bn() with NULL inputs.



CVS: cvs.openbsd.org: src

2023-05-27 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/05/27 07:54:46

Modified files:
lib/libcrypto  : opensslv.h 

Log message:
Bump LibreSSL version



CVS: cvs.openbsd.org: www

2023-05-27 Thread Brent Cook
CVSROOT:/cvs
Module name:www
Changes by: bc...@cvs.openbsd.org   2023/05/27 07:28:59

Modified files:
libressl   : index.html 

Log message:
Highlight LibreSSL 3.7.3



CVS: cvs.openbsd.org: www

2023-05-27 Thread Brent Cook
CVSROOT:/cvs
Module name:www
Changes by: bc...@cvs.openbsd.org   2023/05/27 06:58:45

Modified files:
libressl   : index.html releases.html 

Log message:
LibreSSL 3.8.0, 3.7.3, 3.6.3



CVS: cvs.openbsd.org: src

2023-05-27 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/05/27 04:08:45

Modified files:
usr.sbin/pkg_add/OpenBSD/Dependencies: SolverBase.pm 

Log message:
the solver needs some love for later



CVS: cvs.openbsd.org: src

2023-05-27 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/05/27 04:08:25

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

Log message:
remove the extra local variable (blessing a ref to self DOES work)
accordingly zap the extra blocks that are no longer needed making
this look less funky



CVS: cvs.openbsd.org: src

2023-05-27 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/05/27 04:07:33

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

Log message:
comment/cosmetic



CVS: cvs.openbsd.org: src

2023-05-27 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/05/27 04:07:12

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

Log message:
more comment



CVS: cvs.openbsd.org: src

2023-05-27 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/05/27 04:06:55

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

Log message:
yeah, yeah, those names are horrible



CVS: cvs.openbsd.org: src

2023-05-27 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/05/27 04:06:38

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

Log message:
finish making this a singleton class (which I don't always like
and is definitely worthy of a comment)



CVS: cvs.openbsd.org: src

2023-05-27 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/05/27 04:05:50

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

Log message:
more descriptive comment



CVS: cvs.openbsd.org: src

2023-05-27 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/05/27 04:04:17

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

Log message:
indicate that not having hashes already is just legacy needed
until all old packages are gone



CVS: cvs.openbsd.org: src

2023-05-27 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/05/27 04:03:43

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

Log message:
point people towards relevant comments



CVS: cvs.openbsd.org: src

2023-05-27 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/05/27 04:03:21

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

Log message:
a few comments
explicitly return undef from check,
which will prevent casual me from 'fixing' it later



CVS: cvs.openbsd.org: src

2023-05-27 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/05/27 04:02:38

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

Log message:
prepare for 5.36: pass $code as @code so that we don't have
to decide a default right away (I should apply this
everywhere I go to read a plist actually)



CVS: cvs.openbsd.org: src

2023-05-27 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/05/27 04:01:51

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

Log message:
comments



CVS: cvs.openbsd.org: src

2023-05-27 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/05/27 04:01:38

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

Log message:
document base method



CVS: cvs.openbsd.org: src

2023-05-27 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/05/27 04:01:21

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

Log message:
try/catch to be revisited



CVS: cvs.openbsd.org: src

2023-05-27 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/05/27 04:01:08

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

Log message:
comments/cosmetics



CVS: cvs.openbsd.org: src

2023-05-27 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/05/27 04:00:48

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

Log message:
restore documentation: explain what ArcCheck does



CVS: cvs.openbsd.org: src

2023-05-27 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/05/27 04:00:23

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

Log message:
cosmetic/comments improvement



CVS: cvs.openbsd.org: src

2023-05-27 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/05/27 03:59:51

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

Log message:
- make the handling of interactive more regular by
delegating the choice of the class to a separate method
- zap/improve meaningless comments
- mark ntogo as a focus for improvements



CVS: cvs.openbsd.org: src

2023-05-27 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/05/27 03:58:27

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

Log message:
prepare for 5.36, document methods in base class



CVS: cvs.openbsd.org: src

2023-05-27 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2023/05/27 03:18:17

Modified files:
lib/libcrypto  : crypto_internal.h 
lib/libcrypto/sha: sha512.c 

Log message:
Clean up alignment handling for SHA-512.

This recommits r1.37 of sha512.c, however uses uint8_t * instead of void *
for the crypto_load_* functions and primarily uses const uint8_t * to track
input, only casting to const SHA_LONG64 * once we know that it is suitably
aligned. This prevents the compiler from implying alignment based on type.

Tested by tb@ and deraadt@ on platforms with gcc and strict alignment.

ok tb@