mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-14 10:53:09 +00:00
Merge branch 'master' of https://github.com/phpseclib/phpseclib
This commit is contained in:
commit
1ff798da47
@ -2805,8 +2805,7 @@ class File_X509 {
|
|||||||
|
|
||||||
if (isset($subject->domains) && count($subject->domains) > 1) {
|
if (isset($subject->domains) && count($subject->domains) > 1) {
|
||||||
$this->setExtension('id-ce-subjectAltName',
|
$this->setExtension('id-ce-subjectAltName',
|
||||||
array_map(create_function('$domain',
|
array_map(array('File_X509', '_dnsName'), $subject->domains));
|
||||||
'return array("dNSName" => $domain);'), $subject->domains));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->caFlag) {
|
if ($this->caFlag) {
|
||||||
@ -3499,6 +3498,18 @@ class File_X509 {
|
|||||||
$this->setDNProp('id-at-commonName', $this->domains[0]);
|
$this->setDNProp('id-at-commonName', $this->domains[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Helper function to build domain array
|
||||||
|
*
|
||||||
|
* @access private
|
||||||
|
* @param String $domain
|
||||||
|
* @return Array
|
||||||
|
*/
|
||||||
|
function _dnsName($domain)
|
||||||
|
{
|
||||||
|
return array('dNSName' => $domain);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the index of a revoked certificate.
|
* Get the index of a revoked certificate.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user