mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-15 17:57:12 +00:00
ASN1: add unit test for non-constructed context-specific change
This commit is contained in:
parent
c6ad2b69ba
commit
a2f4a2cbba
@ -268,4 +268,13 @@ class Unit_File_ASN1Test extends PhpseclibTestCase
|
|||||||
$decoded = $asn1->decodeBER(base64_decode($str));
|
$decoded = $asn1->decodeBER(base64_decode($str));
|
||||||
$this->assertCount(3, $decoded[0]['content']);
|
$this->assertCount(3, $decoded[0]['content']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group github477
|
||||||
|
*/
|
||||||
|
public function contextSpecificNonConstructed()
|
||||||
|
{
|
||||||
|
$decoded = $asn1->decodeBER(base64_decode('MBaAFJtUo7c00HsI5EPZ4bkICfkOY2Pv'));
|
||||||
|
$this->assertInternalType('string', $decoded[0]['content'][0]['content']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user