mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-29 04:23:34 +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 = new Math_BigInteger($value);
|
||||||
$value = $value->toBytes(true);
|
$value = $value->toBytes(true);
|
||||||
|
if (!strlen($value)) {
|
||||||
|
$value = chr(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case FILE_ASN1_TYPE_UTC_TIME:
|
case FILE_ASN1_TYPE_UTC_TIME:
|
||||||
|
Loading…
Reference in New Issue
Block a user