mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-02 17:52:59 +01:00
Make it so extension OIDs can be File_ASN1_Elements
This commit is contained in:
parent
d130d2274d
commit
27f6012d62
@ -1625,6 +1625,10 @@ class File_X509 {
|
|||||||
*/
|
*/
|
||||||
function _getMapping($extnId)
|
function _getMapping($extnId)
|
||||||
{
|
{
|
||||||
|
if (!is_string($extnId)) { // eg. if it's a File_ASN1_Element object
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
switch ($extnId) {
|
switch ($extnId) {
|
||||||
case 'id-ce-keyUsage':
|
case 'id-ce-keyUsage':
|
||||||
return $this->KeyUsage;
|
return $this->KeyUsage;
|
||||||
|
Loading…
Reference in New Issue
Block a user