diff --git a/doc/openfortivpn.1.in b/doc/openfortivpn.1.in index 1ba0fb21..2f08ac96 100644 --- a/doc/openfortivpn.1.in +++ b/doc/openfortivpn.1.in @@ -293,6 +293,10 @@ password = bar .br # otp\-prompt = Please .br +# This would disable FTM push notification support, and use OTP instead +.br +# no\-ftm\-push = 1 +.br # pinentry = pinentry program .br user\-cert = @SYSCONFDIR@/openfortivpn/user\-cert.pem diff --git a/src/config.c b/src/config.c index 3036f9d5..5a96d53c 100644 --- a/src/config.c +++ b/src/config.c @@ -275,6 +275,15 @@ int load_config(struct vpn_config *cfg, const char *filename) continue; } cfg->otp_delay = otp_delay; + } else if (strcmp(key, "no-ftm-push") == 0) { + int no_ftm_push = strtob(val); + + if (no_ftm_push < 0) { + log_warn("Bad no-ftm-push in config file: \"%s\".\n", + val); + continue; + } + cfg->no_ftm_push = no_ftm_push; } else if (strcmp(key, "pinentry") == 0) { free(cfg->pinentry); cfg->pinentry = strdup(val);