| Server IP : 127.0.1.1 / Your IP : 216.73.216.213 Web Server : Apache/2.4.52 (Ubuntu) System : Linux bahcrestlinepropertiesllc 5.15.0-113-generic #123-Ubuntu SMP Mon Jun 10 08:16:17 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/1648833/root/usr/share/augeas/lenses/dist/tests/ |
Upload File : |
(*
Some of the configuration snippets have been copied from the strongSwan
source tree.
*)
module Test_Strongswan =
(* conf/strongswan.conf *)
let default = "
# strongswan.conf - strongSwan configuration file
#
# Refer to the strongswan.conf(5) manpage for details
#
# Configuration changes should be made in the included files
charon {
load_modular = yes
plugins {
include strongswan.d/charon/*.conf
}
}
include strongswan.d/*.conf
"
test Strongswan.lns get default =
{ "#comment" = "strongswan.conf - strongSwan configuration file" }
{ "#comment" = "Refer to the strongswan.conf(5) manpage for details" }
{ "#comment" = "Configuration changes should be made in the included files" }
{ "charon"
{ "load_modular" = "yes" }
{ "plugins" { "include" = "strongswan.d/charon/*.conf" } }
}
{ "include" = "strongswan.d/*.conf" }
(* conf/strongswan.conf.5.head.in *)
let man_example = "
a = b
section-one {
somevalue = asdf
subsection {
othervalue = xxx
}
# yei, a comment
yetanother = zz
}
section-two {
x = 12
}
"
test Strongswan.lns get man_example =
{ "a" = "b" }
{ "section-one"
{ "somevalue" = "asdf" }
{ "subsection" { "othervalue" = "xxx" } }
{ "#comment" = "yei, a comment" }
{ "yetanother" = "zz" }
}
{ "section-two" { "x" = "12" } }
test Strongswan.lns get "foo { bar = baz\n } quux {}\t#quuux\n" =
{ "foo" { "bar" = "baz" } }
{ "quux" }
{ "#comment" = "quuux" }
let connection = "
connections {
foo {
pools = bar, baz
proposals = aes256gcm16-aes128gcm16-ecp512, aes256-sha256-sha1-ecp256-modp4096-modp2048, 3des-md5-modp768
}
children {
bar {
esp_proposals = aes128-sha256-sha1,3des-md5
}
}
}
"
test Strongswan.lns get connection =
{ "connections"
{ "foo"
{ "#list" = "pools"
{ "1" = "bar" }
{ "2" = "baz" }
}
{ "#proposals" = "proposals"
{ "1"
{ "1" = "aes256gcm16" }
{ "2" = "aes128gcm16" }
{ "3" = "ecp512" }
}
{ "2"
{ "1" = "aes256" }
{ "2" = "sha256" }
{ "3" = "sha1" }
{ "4" = "ecp256" }
{ "5" = "modp4096" }
{ "6" = "modp2048" }
}
{ "3"
{ "1" = "3des" }
{ "2" = "md5" }
{ "3" = "modp768" }
}
}
}
{ "children"
{ "bar"
{ "#proposals" = "esp_proposals"
{ "1"
{ "1" = "aes128" }
{ "2" = "sha256" }
{ "3" = "sha1" }
}
{ "2"
{ "1" = "3des" }
{ "2" = "md5" }
}
}
}
}
}