Configuration of SSHD |
modules/Sshd.ycp |
| SSHD settings, input and output functions | |
|
|
|
This module has an unstable interface. |
Imports
StructuresGlobal Functions
Local VariablesLocal Functions |
local
modified
->
boolean
Data was modified?
global
GetModified ()
->
boolean
Returns whether the configuration has been modified.
global
SetModified ()
->
void
Sets that the configuration has been modified.
local
Running ()
->
boolean
Describes whether the daemon is running
local
SETTINGS
->
map <string, list<string> >
map of SSHD settings
local
ReadSSHDSettings ()
->
boolean
Reads current sshd configuration
local
WriteSSHDSettings ()
->
boolean
Writes current sshd configuration
global
GetSSHDOption (string option_key)
->
list <string>
Returns the SSHD Option as a list of strings.
- Parameters:
-
option_key
- Return value:
-
with option_values
global
GetDefaultSSHDOption (string option_key)
->
list <string>
Returns default SSHD Option as a list of strings.
- Parameters:
-
option_key
- Return value:
-
with option_values
global
SetSSHDOption (string option_key, list <string> option_vals)
->
void
Sets values for an option.
- Parameters:
-
option_key option_vals
global
Export ()
->
map
Exports the current configuration.
Structure $[
"config" : (map <string, list<string> >) SETTINGS, "status" : (boolean) service_status, ]
- Return value:
-
of a current configuration
global
Import (map import_map)
->
boolean
Imports a configuration
- Parameters:
-
import_map
global
Abort ()
->
boolean
Returns a confirmation popup dialog whether user wants to really abort.
global
PollAbort ()
->
boolean
Checks whether an Abort button has been pressed. If so, calls function to confirm the abort call.
- Return value:
-
true if abort confirmed
global
Read ()
->
boolean
Read all SSHD settings
- Return value:
-
true on success
global
Write ()
->
boolean
Write all SSHD settings
- Return value:
-
true on success