src: style sweep

This commit is contained in:
Franco Fichtner 2024-01-25 17:13:02 +01:00
parent e96c384212
commit c4c0c2b4af
2 changed files with 12 additions and 12 deletions

View file

@ -97,9 +97,9 @@ foreach ($configNodes as $key => $value) {
echo "exported $type to " . $output_pem_filename . "\n";
// Check if automatic OCSP updates are enabled.
if (isset($configObj->OPNsense->HAProxy->general->tuning->ocspUpdateEnabled) and ($configObj->OPNsense->HAProxy->general->tuning->ocspUpdateEnabled == '1')) {
$crtlist[] = $output_pem_filename . " ocsp-update on";
$crtlist[] = $output_pem_filename . " ocsp-update on";
} else {
$crtlist[] = $output_pem_filename;
$crtlist[] = $output_pem_filename;
}
} else {
// In contrast to certificates, CA/CRL content needs to be put in a single file.

View file

@ -35,13 +35,13 @@
* Nic DNS API
* @package OPNsense\AcmeClient
*/
class DnsNic extends Base implements LeValidationInterface
{
public function prepare()
{
$this->acme_env['NIC_Username'] = (string)$this->config->dns_nic_username;
$this->acme_env['NIC_Password'] = (string)$this->config->dns_nic_password;
$this->acme_env['NIC_ClientID'] = (string)$this->config->dns_nic_client;
$this->acme_env['NIC_ClientSecret'] = (string)$this->config->dns_nic_secret;
}
}
class DnsNic extends Base implements LeValidationInterface
{
public function prepare()
{
$this->acme_env['NIC_Username'] = (string)$this->config->dns_nic_username;
$this->acme_env['NIC_Password'] = (string)$this->config->dns_nic_password;
$this->acme_env['NIC_ClientID'] = (string)$this->config->dns_nic_client;
$this->acme_env['NIC_ClientSecret'] = (string)$this->config->dns_nic_secret;
}
}