mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-12 09:09:39 +01:00
PKCS8: throw an exception when no ASN1 maps can be used
This commit is contained in:
parent
5d5ed4a449
commit
fc87edce6e
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user