mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 03:42:40 +00: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)
|
||||
{
|
||||
if (!is_string($extnId)) { // eg. if it's a File_ASN1_Element object
|
||||
return true;
|
||||
}
|
||||
|
||||
switch ($extnId) {
|
||||
case 'id-ce-keyUsage':
|
||||
return $this->KeyUsage;
|
||||
|
Loading…
Reference in New Issue
Block a user