mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 19:54:57 +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) {
|
||||
$this->setExtension('id-ce-subjectAltName',
|
||||
array_map(create_function('$domain',
|
||||
'return array("dNSName" => $domain);'), $subject->domains));
|
||||
array_map(array('File_X509', '_dnsName'), $subject->domains));
|
||||
}
|
||||
|
||||
if ($this->caFlag) {
|
||||
@ -3499,6 +3498,18 @@ class File_X509 {
|
||||
$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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user