ASN1: let strings in as well

This commit is contained in:
terrafrost 2014-05-05 17:38:33 -05:00
parent 7a9ea673ca
commit 1b9c599476

View File

@ -950,7 +950,7 @@ class File_ASN1
case FILE_ASN1_TYPE_INTEGER:
case FILE_ASN1_TYPE_ENUMERATED:
if (!isset($mapping['mapping'])) {
if (is_int($source)) {
if (is_numeric($source)) {
$source = new Math_BigInteger($source);
}
$value = $source->toBytes(true);