1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-02 17:52:59 +01:00

ASN1: fail when encountering unsupported tags

This commit is contained in:
terrafrost 2021-04-03 15:54:27 -05:00
parent 10cee4514c
commit e02c8452d4

View File

@ -578,7 +578,9 @@ class File_ASN1
$current['content'] = class_exists('DateTime') ?
$this->_decodeDateTime(substr($content, $content_pos), $tag) :
$this->_decodeUnixTime(substr($content, $content_pos), $tag);
break;
default:
return false;
}
$start+= $length;