mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 03:27:31 +00:00
Merge branch '1.0' into 2.0
This commit is contained in:
commit
6f0e3d22d6
@ -493,6 +493,10 @@ class ASN1
|
||||
*/
|
||||
function asn1map($decoded, $mapping, $special = array())
|
||||
{
|
||||
if (!is_array($decoded)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isset($mapping['explicit']) && is_array($decoded['content'])) {
|
||||
$decoded = $decoded['content'][0];
|
||||
}
|
||||
|
@ -797,4 +797,18 @@ ut3+b2Xvzq8yzmHMFtLIJ6Afu1jJpqD82BUAFcvi5vhnP8M7b974R18WCOpgNQvXDI+2/8ZINeU=
|
||||
$r = $x509->loadX509($r);
|
||||
$this->assertSame($r['tbsCertificate']['extensions'][5]['extnValue']['excludedSubtrees'][1]['base']['iPAddress'], array('0.0.0.0', '0.0.0.0'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @group github1456
|
||||
*/
|
||||
public function testRandomString()
|
||||
{
|
||||
$a = 'da7e705569d4196cd49cf3b3d92cd435ca34ccbe';
|
||||
$a = pack('H*', $a);
|
||||
|
||||
$x509 = new File_X509();
|
||||
$r = $x509->loadX509($a);
|
||||
|
||||
$this->assertFalse($r);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user