mirror of
https://github.com/openwrt/packages.git
synced 2026-12-04 22:05:48 +04:00
strongswan: add cache_crls option to swanctl init
Add the boolean globals option 'cache_crls', which sets 'charon.cache_crls' in the generated strongswan.conf. Default is off. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
1 parent
c8698f5792
commit
69f5968f04
1 file changed
+12
@@ -1205,6 +1205,17 @@ config_charon_common_aggressive() {
|
||||
swan_xappend1 "i_dont_care_about_security_and_use_aggressive_mode_psk = yes"
|
||||
}
|
||||
|
||||
config_charon_common_cache_crls() {
|
||||
local conf="$1"
|
||||
|
||||
local cache_crls
|
||||
|
||||
config_get_bool cache_crls "$conf" cache_crls 0
|
||||
[ $cache_crls -eq 1 ] && cache_crls=yes || cache_crls=no
|
||||
|
||||
swan_xappend1 "cache_crls = $cache_crls"
|
||||
}
|
||||
|
||||
config_charon_common() {
|
||||
local conf="$1"
|
||||
|
||||
@@ -1213,6 +1224,7 @@ config_charon_common() {
|
||||
config_charon_common_ignore_routing_tables "$conf"
|
||||
config_charon_common_install_routes "$conf"
|
||||
config_charon_common_aggressive "$conf"
|
||||
config_charon_common_cache_crls "$conf"
|
||||
}
|
||||
|
||||
config_strongswan_generate() {
|
||||
|
||||
Reference in new issue
Block a user