Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
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.
 
static validate_php_curl_tls (array $curlinfo, $zts)
 Validates PHP/cURL extension for use with SSL/TLS.
 

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: