Make WordPress Core


Ignore:
Timestamp:
07/18/2024 12:58:40 PM (6 months ago)
Author:
SergeyBiryukov
Message:

Upgrade/Install: Update sodium_compat to v1.21.1.

The latest version of sodium_compat includes support for AEGIS and preliminary support for PHP 8.4.

Additionally, the PHP 8.2+ SensitiveParameter attribute is now applied where appropriate to functions in the public API. This attribute is used to mark parameters that are sensitive and should be redacted from stack traces.

References:

Follow-up to [49741], [51002], [51591], [52988], [54150], [54310], [55699].

Props jrf, dd32, paragoninitiativeenterprises.
Fixes #61686.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/sodium_compat/autoload.php

    r54150 r58752  
    5555    require_once dirname(__FILE__) . '/lib/namespaced.php';
    5656    require_once dirname(__FILE__) . '/lib/sodium_compat.php';
     57    if (!defined('SODIUM_CRYPTO_AEAD_AEGIS128L_KEYBYTES')) {
     58        require_once dirname(__FILE__) . '/lib/php84compat_const.php';
     59    }
    5760} else {
    5861    require_once dirname(__FILE__) . '/src/PHP52/SplFixedArray.php';
     
    7275    require_once(dirname(__FILE__) . '/lib/php72compat.php');
    7376}
     77if (PHP_VERSION_ID < 80400 || !extension_loaded('sodium')) {
     78    require_once dirname(__FILE__) . '/lib/php84compat.php';
     79}
    7480require_once(dirname(__FILE__) . '/lib/stream-xchacha20.php');
    7581require_once(dirname(__FILE__) . '/lib/ristretto255.php');
Note: See TracChangeset for help on using the changeset viewer.