ASN1: if an int val would be '' make it be "\0"

This commit is contained in:
terrafrost 2013-03-26 19:50:24 -05:00
parent 725a2e0b39
commit 147c3ebea4

View File

@ -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: