1
0
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:
terrafrost 2012-12-01 10:52:10 -06:00
parent d130d2274d
commit 27f6012d62

View File

@ -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;