Commit 51f81375 authored by Ad Schellevis's avatar Ad Schellevis

remove unused functions cert.inc

parent 9e84a307
......@@ -528,10 +528,6 @@ function cert_get_serial($str_crt, $decode = true) {
return NULL;
}
function prv_get_modulus($str_crt, $decode = true){
return cert_get_modulus($str_crt, $decode, "prv");
}
function is_user_cert($certref) {
global $config;
if (!is_array($config['system']['user']))
......@@ -607,21 +603,6 @@ function cert_in_use($certref) {
is_captiveportal_cert($certref));
}
function crl_create(& $crl, $caref, $name, $serial=0, $lifetime=9999) {
global $config;
$ca =& lookup_ca($caref);
if (!$ca)
return false;
$crl['descr'] = $name;
$crl['caref'] = $caref;
$crl['serial'] = $serial;
$crl['lifetime'] = $lifetime;
$crl['cert'] = array();
$crl_res = crl_update($crl);
$config['crl'][] = $crl;
return $crl_res;
}
function crl_update(& $crl) {
global $config;
$ca =& lookup_ca($crl['caref']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment