mirror of
https://github.com/danog/phpseclib.git
synced 2025-01-22 04:51:19 +01:00
ASN1: _decode_ber should now accept a FILE_ASN1_Element object as source.
This commit is contained in:
parent
340ee0cd2d
commit
2d34c291f0
@ -260,6 +260,10 @@ class File_ASN1 {
|
|||||||
{
|
{
|
||||||
$decoded = array();
|
$decoded = array();
|
||||||
|
|
||||||
|
if (is_object($encoded) && strtolower(get_class($encoded)) == 'file_asn1_element') {
|
||||||
|
$encoded = $encoded->element;
|
||||||
|
}
|
||||||
|
|
||||||
if ($start == 0) {
|
if ($start == 0) {
|
||||||
$this->encoded = $encoded;
|
$this->encoded = $encoded;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user