You are here

public static function ParagonIE_Sodium_Compat::library_version_minor in Automatic Updates 7

Same name and namespace in other branches
  1. 8 vendor/paragonie/sodium_compat/src/Compat.php \ParagonIE_Sodium_Compat::library_version_minor()

The equivalent to the libsodium minor version we aim to be compatible with (sans pwhash and memzero).

Return value

int

1 call to ParagonIE_Sodium_Compat::library_version_minor()
php72compat.php in vendor/paragonie/sodium_compat/lib/php72compat.php

File

vendor/paragonie/sodium_compat/src/Compat.php, line 3141

Class

ParagonIE_Sodium_Compat

Code

public static function library_version_minor() {
  if (self::useNewSodiumAPI() && defined('SODIUM_LIBRARY_MINOR_VERSION')) {
    return SODIUM_LIBRARY_MINOR_VERSION;
  }
  if (self::use_fallback('library_version_minor')) {

    /** @psalm-suppress UndefinedFunction */
    return (int) call_user_func('\\Sodium\\library_version_minor');
  }
  return self::LIBRARY_VERSION_MINOR;
}