Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Static Public Member Functions | List of all members
core\upgrade\util Class Reference

Core upgrade utility class. More...

Static Public Member Functions

static can_use_tls12 (array $curlinfo, $uname)
 Tests if the system is capable of using TLS 1.2 for requests. More...
 
static validate_php_curl_tls (array $curlinfo, $zts)
 Validates PHP/cURL extension for use with SSL/TLS. More...
 

Detailed Description

Core upgrade utility class.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ can_use_tls12()

static core\upgrade\util::can_use_tls12 ( array  $curlinfo,
  $uname 
)
static

Tests if the system is capable of using TLS 1.2 for requests.

Parameters
array$curlinfoarray of cURL information as returned by curl_version()
string$unameserver uname
Return values
bool

◆ validate_php_curl_tls()

static core\upgrade\util::validate_php_curl_tls ( array  $curlinfo,
  $zts 
)
static

Validates PHP/cURL extension for use with SSL/TLS.

Parameters
array$curlinfoarray of cURL information as returned by curl_version()
int$zts0 or 1 as defined by PHP_ZTS
Return values
bool

The documentation for this class was generated from the following file: