mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
*/*: whitespace sweep
This commit is contained in:
parent
0e97fd393e
commit
7bb9506630
2 changed files with 29 additions and 27 deletions
|
|
@ -181,7 +181,7 @@ eap {
|
|||
private_key_password =
|
||||
private_key_file = ${certdir}/cert_opn.pem
|
||||
certificate_file = ${certdir}/cert_opn.pem
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
private_key_password = whatever
|
||||
private_key_file = ${certdir}/server.pem
|
||||
|
|
|
|||
|
|
@ -1,30 +1,29 @@
|
|||
<?php
|
||||
/**
|
||||
* Copyright (C) 2017 Fabian Franz
|
||||
|
||||
/*
|
||||
* Copyright (C) 2017 Fabian Franz
|
||||
* All rights reserved.
|
||||
*
|
||||
* All rights reserved.
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
* AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
||||
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
* AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
||||
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace OPNsense\Tor\Api;
|
||||
|
|
@ -71,11 +70,9 @@ class GeneralController extends ApiMutableModelControllerBase
|
|||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* Hidden service authentication */
|
||||
|
||||
|
||||
public function searchhidservauthAction()
|
||||
{
|
||||
$this->sessionClose();
|
||||
|
|
@ -86,6 +83,7 @@ class GeneralController extends ApiMutableModelControllerBase
|
|||
array('enabled', 'onion_service', 'auth_cookie')
|
||||
);
|
||||
}
|
||||
|
||||
public function gethidservauthAction($uuid = null)
|
||||
{
|
||||
$mdl = $this->getModel();
|
||||
|
|
@ -101,6 +99,7 @@ class GeneralController extends ApiMutableModelControllerBase
|
|||
}
|
||||
return array();
|
||||
}
|
||||
|
||||
public function addhidservauthAction()
|
||||
{
|
||||
$result = array('result' => 'failed');
|
||||
|
|
@ -126,6 +125,7 @@ class GeneralController extends ApiMutableModelControllerBase
|
|||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function delhidservauthAction($uuid)
|
||||
{
|
||||
|
||||
|
|
@ -145,6 +145,7 @@ class GeneralController extends ApiMutableModelControllerBase
|
|||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function sethidservauthAction($uuid)
|
||||
{
|
||||
if ($this->request->isPost() && $this->request->hasPost('client_auth')) {
|
||||
|
|
@ -175,6 +176,7 @@ class GeneralController extends ApiMutableModelControllerBase
|
|||
}
|
||||
return array('result' => 'failed');
|
||||
}
|
||||
|
||||
public function toggle_handler($uuid, $element)
|
||||
{
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue