mirror of
https://github.com/danog/phpseclib.git
synced 2024-11-27 04:46:26 +01:00
ASN1: let strings in as well
This commit is contained in:
parent
7a9ea673ca
commit
1b9c599476
@ -950,7 +950,7 @@ class File_ASN1
|
|||||||
case FILE_ASN1_TYPE_INTEGER:
|
case FILE_ASN1_TYPE_INTEGER:
|
||||||
case FILE_ASN1_TYPE_ENUMERATED:
|
case FILE_ASN1_TYPE_ENUMERATED:
|
||||||
if (!isset($mapping['mapping'])) {
|
if (!isset($mapping['mapping'])) {
|
||||||
if (is_int($source)) {
|
if (is_numeric($source)) {
|
||||||
$source = new Math_BigInteger($source);
|
$source = new Math_BigInteger($source);
|
||||||
}
|
}
|
||||||
$value = $source->toBytes(true);
|
$value = $source->toBytes(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user