Skip to content

Commit 912f1af

Browse files
Remove deprecated option --plugin
1 parent a011b5c commit 912f1af

File tree

3 files changed

+9
-20
lines changed

3 files changed

+9
-20
lines changed

CHANGELOG.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,20 @@ Releases
1414
This high level changelog is usually updated when a release is tagged.
1515
On the master branch there may be changes that are not (yet) described here.
1616

17+
### not released yet
18+
19+
* [~] remove deprecated option "plugin"
20+
1721
### 1.23.1
1822

1923
* [-] fix a few coverity warnings
2024

2125
### 1.23.0
2226

23-
* [-] Support older mac0S versions that lack vdprintf()
24-
* [-] Patch certificate login error for FortiOS 7.4.4
25-
* [-] Clear OTP after run
26-
* [+] Support SAML login authentication
27+
* [-] support older mac0S versions that lack vdprintf()
28+
* [-] patch certificate login error for FortiOS 7.4.4
29+
* [-] clear OTP after run
30+
* [+] support SAML login authentication
2731

2832
### 1.22.1
2933

src/main.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ int main(int argc, char *argv[])
322322
{"pppd-ifname", required_argument, NULL, 0},
323323
{"pppd-call", required_argument, NULL, 0},
324324
{"pppd-accept-remote", optional_argument, NULL, 0},
325-
{"plugin", required_argument, NULL, 0}, // deprecated
326325
#endif
327326
#if HAVE_USR_SBIN_PPP
328327
{"ppp-system", required_argument, NULL, 0},
@@ -348,7 +347,7 @@ int main(int argc, char *argv[])
348347

349348
switch (c) {
350349
case 0:
351-
/* If this option set a flag, do nothing else now. */
350+
/* If this option sets a flag, do nothing else now. */
352351
if (long_options[option_index].flag != 0)
353352
break;
354353
if (strcmp(long_options[option_index].name,
@@ -418,16 +417,6 @@ int main(int argc, char *argv[])
418417
}
419418
break;
420419
}
421-
// --plugin is deprecated, use --pppd-plugin
422-
if (cli_cfg.pppd_plugin == NULL &&
423-
strcmp(long_options[option_index].name,
424-
"plugin") == 0) {
425-
log_warn("Option --%s is deprecated, use --pppd-plugin\n",
426-
long_options[option_index].name);
427-
free(cli_cfg.pppd_plugin);
428-
cli_cfg.pppd_plugin = strdup(optarg);
429-
break;
430-
}
431420
#endif
432421
#if HAVE_USR_SBIN_PPP
433422
if (strcmp(long_options[option_index].name,

src/tunnel.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,6 @@ static int pppd_run(struct tunnel *tunnel)
345345
}
346346
}
347347
if (tunnel->config->pppd_plugin) {
348-
if (ofv_append_varr(&pppd_args, "plugin")) {
349-
free(pppd_args.data);
350-
return 1;
351-
}
352348
if (ofv_append_varr(&pppd_args, tunnel->config->pppd_plugin)) {
353349
free(pppd_args.data);
354350
return 1;

0 commit comments

Comments
 (0)