Tests: phpseclib 3.0 updates
This commit is contained in:
parent
0192fcc4aa
commit
baba459ca1
|
@ -1150,7 +1150,7 @@ abstract class ASN1
|
|||
$len = strlen($content);
|
||||
// see https://github.com/openjdk/jdk/blob/2deb318c9f047ec5a4b160d66a4b52f93688ec42/src/java.base/share/classes/sun/security/util/ObjectIdentifier.java#L55
|
||||
if ($len > 4096) {
|
||||
//user_error('Object Identifier size is limited to 4096 bytes');
|
||||
//throw new \RuntimeException("Object identifier size is limited to 4096 bytes ($len bytes present)");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -456,7 +456,6 @@ class ASN1Test extends PhpseclibTestCase
|
|||
$cert = file_get_contents(dirname(__FILE__) . '/ASN1/mal-cert-02.der');
|
||||
|
||||
$asn1 = new ASN1();
|
||||
//$this->setExpectedException('PHPUnit_Framework_Error_Notice');
|
||||
$decoded = $asn1->decodeBER($cert);
|
||||
$this->assertFalse($decoded[0]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue