1
0
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:
Patrick Monnerat 2012-10-24 11:42:13 +02:00
parent 340ee0cd2d
commit 2d34c291f0

View File

@ -260,6 +260,10 @@ class File_ASN1 {
{
$decoded = array();
if (is_object($encoded) && strtolower(get_class($encoded)) == 'file_asn1_element') {
$encoded = $encoded->element;
}
if ($start == 0) {
$this->encoded = $encoded;
}