Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strongswan: swanctl: Add support for send_certreq #25473

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions net/strongswan/files/swanctl.init
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ config_remote() {
local local_key
local ca_cert
local rekeytime
local send_certreq
local remote_ca_certs
local pools
local eap_id
Expand All @@ -483,6 +484,7 @@ config_remote() {
config_get rekeytime "$conf" rekeytime
config_get overtime "$conf" overtime
config_get send_cert "$conf" send_cert
config_get_bool send_certreq "$conf" send_certreq 1
config_get eap_id "$conf" eap_id "%any"

config_list_foreach "$conf" local_sourceip append_var local_sourceip ","
Expand Down Expand Up @@ -583,6 +585,7 @@ config_remote() {
esac

[ -n "$send_cert" ] && swanctl_xappend2 "send_cert = $send_cert"
[ $send_certreq -eq 1 ] && swanctl_xappend2 "send_certreq = yes" || swanctl_xappend2 "send_certreq = no"

[ $mobike -eq 1 ] && swanctl_xappend2 "mobike = yes" || swanctl_xappend2 "mobike = no"

Expand Down
Loading