diff options
author | Phil Davis <phil.davis@inf.org> | 2015-06-15 14:19:11 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-06-15 14:19:11 +0545 |
commit | 6c07db487164262f9191ad02805523bd153e0ba6 (patch) | |
tree | 0c266356179ac730233a16c0e3767a0c22514c4d /etc/inc/certs.inc | |
parent | 67d9685607eef7c679fda929ad4855be1b2f9dec (diff) | |
download | pfsense-6c07db487164262f9191ad02805523bd153e0ba6.zip pfsense-6c07db487164262f9191ad02805523bd153e0ba6.tar.gz |
Code spacing
and other random stuff I noticed.
I think this finishes messing with code style. The codebase should match
the developer style guide closely enough that 99.9% of changes will not
feel the need to also massage the formatting.
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; |