Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe CaBundle

Fonctions membres publiques statiques

static getSystemCaRootBundlePath (LoggerInterface $logger=null)
 
static getBundledCaBundlePath ()
 
static validateCaFile ($filename, LoggerInterface $logger=null)
 
static isOpensslParseSafe ()
 
static reset ()
 

Fonctions membres privées statiques

static getEnvVariable ($name)
 
static caFileUsable ($certFile, LoggerInterface $logger=null)
 
static caDirUsable ($certDir, LoggerInterface $logger=null)
 
static isFile ($certFile, LoggerInterface $logger=null)
 
static isDir ($certDir, LoggerInterface $logger=null)
 
static isReadable ($certFileOrDir, LoggerInterface $logger=null)
 
static glob ($pattern, LoggerInterface $logger=null)
 

Attributs privés statiques

static $caPath
 
static $caFileValidity = array()
 
static $useOpensslParse
 

Description détaillée

Documentation des fonctions membres

◆ caDirUsable()

static caDirUsable (   $certDir,
LoggerInterface  $logger = null 
)
staticprivate
Paramètres
string | false$certDir
LoggerInterface | null$logger
Renvoie
bool

◆ caFileUsable()

static caFileUsable (   $certFile,
LoggerInterface  $logger = null 
)
staticprivate
Paramètres
string | false$certFile
LoggerInterface | null$logger
Renvoie
bool

◆ getBundledCaBundlePath()

static getBundledCaBundlePath ( )
static

Returns the path to the bundled CA file

In case you don't want to trust the user or the system, you can use this directly

Renvoie
string path to a CA bundle file

Références __DIR__.

Référencé par CurlTransport\request(), et StreamTransport\request().

◆ getEnvVariable()

static getEnvVariable (   $name)
staticprivate
Paramètres
string$name
Renvoie
string|false

Références $name, $value, et null.

◆ getSystemCaRootBundlePath()

static getSystemCaRootBundlePath ( LoggerInterface  $logger = null)
static

Returns the system CA bundle path, or a path to the bundled one

This method was adapted from Sslurp. https://github.com/EvanDotPro/Sslurp

(c) Evan Coury me@ev.nosp@m.anco.nosp@m.ury.c.nosp@m.om

For the full copyright and license information, please see below:

Copyright (c) 2013, Evan Coury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice,
  this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Paramètres
LoggerInterface$loggeroptional logger for information about which CA files were loaded
Renvoie
string path to a CA bundle file or directory

Références $location, et null.

Référencé par Curl\request(), Stream\request(), et Curl\setCAOptionAndValue().

◆ glob()

static glob (   $pattern,
LoggerInterface  $logger = null 
)
staticprivate
Paramètres
string$pattern
LoggerInterface | null$logger
Renvoie
bool

◆ isDir()

static isDir (   $certDir,
LoggerInterface  $logger = null 
)
staticprivate
Paramètres
string$certDir
LoggerInterface | null$logger
Renvoie
bool

◆ isFile()

static isFile (   $certFile,
LoggerInterface  $logger = null 
)
staticprivate
Paramètres
string$certFile
LoggerInterface | null$logger
Renvoie
bool

◆ isOpensslParseSafe()

static isOpensslParseSafe ( )
static

Test if it is safe to use the PHP function openssl_x509_parse().

This checks if OpenSSL extensions is vulnerable to remote code execution via the exploit documented as CVE-2013-6420.

Renvoie
bool

Références $info, $output, $prefix, $script, et null.

◆ isReadable()

static isReadable (   $certFileOrDir,
LoggerInterface  $logger = null 
)
staticprivate
Paramètres
string$certFileOrDir
LoggerInterface | null$logger
Renvoie
bool

◆ reset()

static reset ( )
static

Resets the static caches

Renvoie
void

Références null.

◆ validateCaFile()

static validateCaFile (   $filename,
LoggerInterface  $logger = null 
)
static

Validates a CA file using opensl_x509_parse only if it is safe to use

Paramètres
string$filename
LoggerInterface$loggeroptional logger for information about which CA files were loaded
Renvoie
bool

Références elseif, et null.

Documentation des champs

◆ $caFileValidity

$caFileValidity = array()
staticprivate

◆ $caPath

$caPath
staticprivate

◆ $useOpensslParse

$useOpensslParse
staticprivate

La documentation de cette classe a été générée à partir du fichier suivant :