mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-13 00:46:31 +00:00
ASN1: process input NULL fields.
This commit is contained in:
parent
50962f9cd3
commit
b05cff1320
@ -668,6 +668,8 @@ class File_ASN1 {
|
|||||||
}
|
}
|
||||||
case FILE_ASN1_TYPE_OCTET_STRING:
|
case FILE_ASN1_TYPE_OCTET_STRING:
|
||||||
return base64_encode($decoded['content']);
|
return base64_encode($decoded['content']);
|
||||||
|
case FILE_ASN1_TYPE_NULL:
|
||||||
|
return '';
|
||||||
case FILE_ASN1_TYPE_BOOLEAN:
|
case FILE_ASN1_TYPE_BOOLEAN:
|
||||||
return $decoded['content'];
|
return $decoded['content'];
|
||||||
case FILE_ASN1_TYPE_NUMERIC_STRING:
|
case FILE_ASN1_TYPE_NUMERIC_STRING:
|
||||||
|
Loading…
Reference in New Issue
Block a user