function cert_unrevoke($cert, &$crl) { global $config; if (!is_crl_internal($crl)) { return false; } foreach ($crl['cert'] as $id => $rcert) { if ($rcert['refid'] == $cert['refid'] || $rcert['descr'] == $cert['descr']) { unset($crl['cert'][$id]); if (count($crl['cert']) == 0) { // Protect against accidentally switching the type to imported, for older CRLs if (!isset($crl['method'])) { $crl['method'] = "internal"; } crl_update($crl); } else { crl_update($crl); } return true; } } return false; }
" alt="<?php echo gettext("add crl"); ?> " width="17" height="17" border="0" /> </a> <?php } ?> </td> </tr> <?php if (is_array($ca_crl_map[$ca['refid']])) { foreach ($ca_crl_map[$ca['refid']] as $crl) { $tmpcrl = lookup_crl($crl); $internal = is_crl_internal($tmpcrl); $inuse = crl_in_use($tmpcrl['refid']); ?> <tr> <td class="listlr"><?php echo $tmpcrl['descr']; ?> </td> <td class="listr"><?php echo $internal ? "YES" : "NO"; ?> </td> <td class="listr"><?php echo $internal ? count($tmpcrl['cert']) : "Unknown (imported)"; ?> </td>