1
0
mirror of https://github.com/danog/phpseclib.git synced 2025-01-22 04:51:19 +01:00

Merge branch 'master' of https://github.com/phpseclib/phpseclib into pmexts

This commit is contained in:
Patrick Monnerat 2012-11-08 12:51:07 +01:00
commit ac8d0172eb

View File

@ -2920,8 +2920,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) {
@ -3749,6 +3748,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.
*