PKCS8: throw an exception when no ASN1 maps can be used

This commit is contained in:
terrafrost 2020-03-30 00:19:45 -05:00
parent 5d5ed4a449
commit fc87edce6e

View File

@ -513,7 +513,7 @@ abstract class PKCS8 extends PKCS
return $public;
}
return false;
throw new \RuntimeException('Unable to parse using either OneAsymmetricKey or PublicKeyInfo ASN1 maps');
}
/**