WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/09/2019 04:44:58 PM (15 months ago)
Author:
SergeyBiryukov
Message:

Upgrade/Install: Update sodium_compat to v1.12.1.

This includes a speedup for signature verification on most platforms and bugfixes for 32-bit platforms.

Props paragoninitiativeenterprises, lukaswaudentio.
Merges [46858] to the 5.3 branch.
Fixes #48371.

Location:
branches/5.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.3

  • branches/5.3/src/wp-includes/sodium_compat/autoload.php

    r44953 r46859  
    4444    require_once dirname(__FILE__) . '/lib/namespaced.php';
    4545    require_once dirname(__FILE__) . '/lib/sodium_compat.php';
     46} else {
     47    require_once dirname(__FILE__) . '/src/PHP52/SplFixedArray.php';
    4648}
    4749if (PHP_VERSION_ID < 70200 || !extension_loaded('sodium')) {
    48     require_once dirname(__FILE__) . '/lib/php72compat.php';
     50    if (PHP_VERSION_ID >= 50300 && !defined('SODIUM_CRYPTO_SCALARMULT_BYTES')) {
     51        require_once dirname(__FILE__) . '/lib/php72compat_const.php';
     52    }
     53    if (PHP_VERSION_ID >= 70000) {
     54        assert(class_exists('ParagonIE_Sodium_Compat'), 'Possible filesystem/autoloader bug?');
     55    } else {
     56        assert(class_exists('ParagonIE_Sodium_Compat'));
     57    }
     58    require_once (dirname(__FILE__) . '/lib/php72compat.php');
    4959}
Note: See TracChangeset for help on using the changeset viewer.