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)
{
if (!is_string($extnId)) { // eg. if it's a File_ASN1_Element object
return true;
}
switch ($extnId) {
case 'id-ce-keyUsage':
return $this->KeyUsage;