1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-11-27 12:44:38 +01:00

ASN1: don't return false after exception is thrown

This commit is contained in:
terrafrost 2016-11-28 22:40:55 -06:00
parent 370fbec300
commit 4dc3b7ed43

View File

@ -1061,7 +1061,6 @@ class ASN1
}
if ($oid === false) {
throw new \RuntimeException('Invalid OID');
return false;
}
$value = '';
$parts = explode('.', $oid);
@ -1114,7 +1113,6 @@ class ASN1
}
if ($filters === false) {
throw new \RuntimeException('No filters defined for ' . implode('/', $loc));
return false;
}
return self::_encode_der($source, $filters + $mapping, null, $special);
case self::TYPE_NULL:
@ -1138,7 +1136,6 @@ class ASN1
break;
default:
throw new \RuntimeException('Mapping provides no type definition for ' . implode('/', self::$location));
return false;
}
if (isset($idx)) {