diff options
Diffstat (limited to 'etc/inc/certs.inc')
-rw-r--r-- | etc/inc/certs.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/certs.inc b/etc/inc/certs.inc index 75f9fd9..9c99952 100644 --- a/etc/inc/certs.inc +++ b/etc/inc/certs.inc @@ -153,7 +153,7 @@ function ca_chain(& $cert) { return ""; } -function ca_import(& $ca, $str, $key="", $serial=0) { +function ca_import(& $ca, $str, $key = "", $serial = 0) { global $config; $ca['crt'] = base64_encode($str); @@ -306,7 +306,7 @@ function cert_import(& $cert, $crt_str, $key_str) { return true; } -function cert_create(& $cert, $caref, $keylen, $lifetime, $dn, $type="user", $digest_alg = "sha256") { +function cert_create(& $cert, $caref, $keylen, $lifetime, $dn, $type = "user", $digest_alg = "sha256") { $cert['type'] = $type; @@ -692,7 +692,7 @@ function cert_in_use($certref) { is_captiveportal_cert($certref)); } -function crl_create(& $crl, $caref, $name, $serial=0, $lifetime=9999) { +function crl_create(& $crl, $caref, $name, $serial = 0, $lifetime = 9999) { global $config; $ca =& lookup_ca($caref); if (!$ca) { @@ -732,7 +732,7 @@ function crl_update(& $crl) { return $crl_res; } -function cert_revoke($cert, & $crl, $reason=OCSP_REVOKED_STATUS_UNSPECIFIED) { +function cert_revoke($cert, & $crl, $reason = OCSP_REVOKED_STATUS_UNSPECIFIED) { global $config; if (is_cert_revoked($cert, $crl['refid'])) { return true; |