mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-05 10:39:23 +00:00
381f6624cf
Some checks are pending
Build all core packages / Build all core packages for selected target (push) Waiting to run
This is a minor upgrade that mainly fixes some compilation errors and remove old unused code. The Makefile has been reorganized. Now all package make parameters are passed as configure arguments instead of environment variables. The compilation dependencies remain the same as ppp v2.5.1 and the package size changes are negligible. Change log: https://github.com/ppp-project/ppp/blob/v2.5.2/README#L70 Upstreamed patches: 101-pppd-crypto-fix-build-without-openssl.patch [1] 102-pppd-make-pid-directory-before-create-the-pid-file.patch [2] 103-pppd-crypto-fix-gcc-14-build.patch [3] [1]5f6eabdb66
[2]734bc0438e
[3]ac269dbf7c
Signed-off-by: Shiji Yang <yangshiji66@qq.com> Link: https://github.com/openwrt/openwrt/pull/17477 Signed-off-by: Nick Hainke <vincent@systemli.org>
73 lines
2.0 KiB
Diff
73 lines
2.0 KiB
Diff
--- a/pppd/plugins/radius/config.c
|
|
+++ b/pppd/plugins/radius/config.c
|
|
@@ -379,31 +379,37 @@ static int test_config(char *filename)
|
|
}
|
|
#endif
|
|
|
|
+#if 0
|
|
if (rc_conf_int("login_tries") <= 0)
|
|
{
|
|
error("%s: login_tries <= 0 is illegal", filename);
|
|
return (-1);
|
|
}
|
|
+#endif
|
|
if (rc_conf_str("seqfile") == NULL)
|
|
{
|
|
error("%s: seqfile not specified", filename);
|
|
return (-1);
|
|
}
|
|
+#if 0
|
|
if (rc_conf_int("login_timeout") <= 0)
|
|
{
|
|
error("%s: login_timeout <= 0 is illegal", filename);
|
|
return (-1);
|
|
}
|
|
+#endif
|
|
if (rc_conf_str("mapfile") == NULL)
|
|
{
|
|
error("%s: mapfile not specified", filename);
|
|
return (-1);
|
|
}
|
|
+#if 0
|
|
if (rc_conf_str("nologin") == NULL)
|
|
{
|
|
error("%s: nologin not specified", filename);
|
|
return (-1);
|
|
}
|
|
+#endif
|
|
|
|
return 0;
|
|
}
|
|
--- a/pppd/plugins/radius/options.h
|
|
+++ b/pppd/plugins/radius/options.h
|
|
@@ -29,24 +29,21 @@ typedef struct _option {
|
|
static SERVER acctserver = {0};
|
|
static SERVER authserver = {0};
|
|
|
|
-int default_tries = 4;
|
|
-int default_timeout = 60;
|
|
-
|
|
static OPTION config_options[] = {
|
|
/* internally used options */
|
|
{"config_file", OT_STR, ST_UNDEF, NULL},
|
|
/* General options */
|
|
{"auth_order", OT_AUO, ST_UNDEF, NULL},
|
|
-{"login_tries", OT_INT, ST_UNDEF, &default_tries},
|
|
-{"login_timeout", OT_INT, ST_UNDEF, &default_timeout},
|
|
-{"nologin", OT_STR, ST_UNDEF, "/etc/nologin"},
|
|
-{"issue", OT_STR, ST_UNDEF, "/etc/radiusclient/issue"},
|
|
+{"login_tries", OT_INT, ST_UNDEF, NULL},
|
|
+{"login_timeout", OT_INT, ST_UNDEF, NULL},
|
|
+{"nologin", OT_STR, ST_UNDEF, NULL},
|
|
+{"issue", OT_STR, ST_UNDEF, NULL},
|
|
/* RADIUS specific options */
|
|
{"authserver", OT_SRV, ST_UNDEF, &authserver},
|
|
{"acctserver", OT_SRV, ST_UNDEF, &acctserver},
|
|
{"servers", OT_STR, ST_UNDEF, NULL},
|
|
{"dictionary", OT_STR, ST_UNDEF, NULL},
|
|
-{"login_radius", OT_STR, ST_UNDEF, "/usr/sbin/login.radius"},
|
|
+{"login_radius", OT_STR, ST_UNDEF, NULL},
|
|
{"seqfile", OT_STR, ST_UNDEF, NULL},
|
|
{"mapfile", OT_STR, ST_UNDEF, NULL},
|
|
{"default_realm", OT_STR, ST_UNDEF, NULL},
|