mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-11 00:29:36 +01: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