mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-17 02:35:10 +00:00
ASN1: fail when encountering unsupported tags
This commit is contained in:
parent
10cee4514c
commit
e02c8452d4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user