76. IPsec

IPsec settings, input and output functions

76.1. Summary of Module Globals

List of Global Functions

  • Abort - Abort function

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

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

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

  • MainSummary - Textual summary for standalone Module

  • Modified - Prototypes

  • Modified - Data was modified?

  • Overview - Create an overview table with all configured connections

  • Read - Read all ipsec settings

  • Summary - Textual summary for auto installation and proposal

  • Write - Write all ipsec settings

  • commitChangedConnection - commit changes made to the current connection

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

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

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

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

  • newConnection - prepare a new connection for editing

  • setNetworkDevicesUP - 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.

  • setNoConnection - empty any information about editing an existing connection

List of Global Variables

  • modified - Data was modified?

  • proposal_valid -

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

76.2. Global Functions

76.2.1. Abort

Abort function

Return value

  • boolean - blah blah lahjk

76.2.2. AutoPackages

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

Return value

  • map - with 2 lists.

76.2.3. Export

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

Return value

  • map - Dumped settings (later acceptable by Import ())

76.2.4. Import

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

Function parameters

  • map importsettings

Return value

  • boolean - True on success

76.2.5. MainSummary

Textual summary for standalone Module

Return value

  • string - summary of the current configuration

76.2.6. Modified

Prototypes

Return value

  • boolean

76.2.7. Modified

Data was modified?

Return value

  • boolean - true if modified

76.2.8. Overview

Create an overview table with all configured connections

Return value

  • list - table items

76.2.9. Read

Read all ipsec settings

Return value

  • boolean - true on success

76.2.10. Summary

Textual summary for auto installation and proposal

Return value

  • list - summary of the current configuration

76.2.11. Write

Write all ipsec settings

Return value

  • boolean - true on success

76.2.12. commitChangedConnection

commit changes made to the current connection

Return value

  • void

76.2.13. getCurrentConnectionItems

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

Return value

  • list - `item(`id("key"), "key", "value")

76.2.14. getNetworkDevicesUP

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

Return value

  • list<string>

76.2.15. getNetworkDevicesUP_conn

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

Function parameters

  • string conn

Return value

  • list<string>

76.2.16. mayEditCurrentConnection

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

Return value

  • string - nil if ok, message why it is not possible otherwise

76.2.17. newConnection

prepare a new connection for editing

Return value

  • void

76.2.18. setNetworkDevicesUP

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.

Function parameters

  • list devices

Return value

  • boolean

76.2.19. setNoConnection

empty any information about editing an existing connection

Return value

  • void

76.3. Global Variables

76.3.1. modified

Data was modified?

76.3.2. proposal_valid

76.3.3. write_only

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

76.4. Module Requirements

76.4.1. Module Imports

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

76.4.2. Module Includes