X509: make it so you can use File_ASN1_Element for custom X.509 extensions

This commit is contained in:
terrafrost 2015-03-01 11:57:36 -06:00
parent c8fe3c3b30
commit 7e2dd90140

View File

@ -1612,6 +1612,10 @@ class File_X509
if (is_array($extensions)) {
$size = count($extensions);
for ($i = 0; $i < $size; $i++) {
if (is_object($extensions[$i]) && strtolower(get_class($extensions[$i])) == 'file_asn1_element') {
continue;
}
$id = $extensions[$i]['extnId'];
$value = &$extensions[$i]['extnValue'];