YaST2 Developers Documentation: Configuration of ipsec



functions
files
intro

Configuration of ipsec

modules/IPsec.ycp
IPsec settings, input and output functions
Representation of the configuration of ipsec. Input and output routines.

Imports

  • IPsecConfig
  • Mode
  • Netmask
  • NetworkDevices
  • Popup
  • Progress
  • Report
  • Require
  • Service
  • SuSEFirewall
  • Summary

Global Variables

Global Functions

Local Variables

Info:

Prototypes

global modified -> boolean

Data was modified?

global proposal_valid -> boolean

global write_only -> boolean

Write only, used during autoinstallation. Don't run services and SuSEconfig, it's all done at one place.

Info:

Abort function return boolean return true if abort

global Abort () -> boolean

Abort function

Return value:
blah blah lahjk

Info:

Data was modified?

Return value:
true if modified

local settings -> map<string, string>

map of strings +-> "nat_traversal" = "yes" +-> "rp_filter" = "%unchanged" ...

local connections -> map<string, map<string, string> >

map of maps of strings connections +-> "roadwarrior" | +-> "left" = "10.10.0.1" | +-> "right" = "%any" | \-> "auto" = "start" | \-> "conn2" +-> "left" = "10.10.0.1" \-> "right" = "10.10.5.5"

Info:

Read all ipsec settings

Return value:
true on success

Info:

Write all ipsec settings

Return value:
true on success

Info:

Get all ipsec settings from the first parameter (For use by autoinstallation.)

Parameters:
settings The YCP structure to be imported.
Return value:
True on success

Info:

Dump the ipsec settings to a single map (For use by autoinstallation.)

Return value:
Dumped settings (later acceptable by Import ())

Info:

Parameters:
conn a connection map
key key name in connection map
name localized name for summary

Info:

add hyperlink or headline 3

Parameters:
href set to true if hyperlink should be created, false for headline
link link destination
text link text

Info:

Textual summary for standalone Module

Return value:
summary of the current configuration

Info:

Textual summary for auto installation and proposal

Return value:
summary of the current configuration

Info:

Create an overview table with all configured connections

Return value:
table items

Info:

Return packages needed to be installed and removed during Autoinstallation to insure module has all needed software installed.

Return value:
with 2 lists.

Info:

empty any information about editing an existing connection

Info:

prepare a new connection for editing

Info:

Check whether the currently selection Connection can be edited. Currently only x509 connections may be edited

Return value:
nil if ok, message why it is not possible otherwise

Info:

put current connection into key/value items suitable for a table

Return value:
`item(`id("key"), "key", "value")

Info:

commit changes made to the current connection

Info:

get list of network devices where the specified connection is menioned in FREESWAN_UP

Info:

get list of network devices where the current connection is mentioned in FREESWAN_UP

Info:

set FREESWAN_UP parameter in network devices. devices that mention the current connection but are not passed to this function will have the current connection removed.

Parameters:
devices list of devices where FREESWAN_UP should be present

YaST2 Developers Documentation