mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-05 04:57:53 +00:00
ASN1: if an int val would be '' make it be "\0"
This commit is contained in:
parent
725a2e0b39
commit
147c3ebea4
@ -918,6 +918,9 @@ class File_ASN1 {
|
||||
}
|
||||
$value = new Math_BigInteger($value);
|
||||
$value = $value->toBytes(true);
|
||||
if (!strlen($value)) {
|
||||
$value = chr(0);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case FILE_ASN1_TYPE_UTC_TIME:
|
||||
|
Loading…
Reference in New Issue
Block a user