From 27f6012d623997b1fb2b37c4be98023326d44cfd Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sat, 1 Dec 2012 10:52:10 -0600 Subject: [PATCH] Make it so extension OIDs can be File_ASN1_Elements --- phpseclib/File/X509.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpseclib/File/X509.php b/phpseclib/File/X509.php index eca1ef24..82574ac9 100644 --- a/phpseclib/File/X509.php +++ b/phpseclib/File/X509.php @@ -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;