mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 03:42:40 +00: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 $public;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
throw new \RuntimeException('Unable to parse using either OneAsymmetricKey or PublicKeyInfo ASN1 maps');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user