forked from Imagelibrary/rtems
Add missing initializers.
This commit is contained in:
@@ -181,46 +181,46 @@ static void set_allowed_addrs(int, struct wordlist *, struct wordlist *);
|
||||
*/
|
||||
option_t auth_options[] = {
|
||||
{ "require-pap", o_bool, &lcp_wantoptions[0].neg_upap,
|
||||
"Require PAP authentication from peer", 1, &auth_required },
|
||||
"Require PAP authentication from peer", 1, &auth_required, 0, 0 },
|
||||
{ "+pap", o_bool, &lcp_wantoptions[0].neg_upap,
|
||||
"Require PAP authentication from peer", 1, &auth_required },
|
||||
"Require PAP authentication from peer", 1, &auth_required, 0, 0 },
|
||||
{ "refuse-pap", o_bool, &refuse_pap,
|
||||
"Don't agree to auth to peer with PAP", 1 },
|
||||
"Don't agree to auth to peer with PAP", 1, NULL, 0, 0 },
|
||||
{ "-pap", o_bool, &refuse_pap,
|
||||
"Don't allow PAP authentication with peer", 1 },
|
||||
"Don't allow PAP authentication with peer", 1, NULL, 0, 0 },
|
||||
{ "require-chap", o_bool, &lcp_wantoptions[0].neg_chap,
|
||||
"Require CHAP authentication from peer", 1, &auth_required },
|
||||
"Require CHAP authentication from peer", 1, &auth_required, 0, 0 },
|
||||
{ "+chap", o_bool, &lcp_wantoptions[0].neg_chap,
|
||||
"Require CHAP authentication from peer", 1, &auth_required },
|
||||
"Require CHAP authentication from peer", 1, &auth_required, 0, 0 },
|
||||
{ "refuse-chap", o_bool, &refuse_chap,
|
||||
"Don't agree to auth to peer with CHAP", 1 },
|
||||
"Don't agree to auth to peer with CHAP", 1, NULL, 0, 0 },
|
||||
{ "-chap", o_bool, &refuse_chap,
|
||||
"Don't allow CHAP authentication with peer", 1 },
|
||||
"Don't allow CHAP authentication with peer", 1, NULL, 0, 0 },
|
||||
{ "name", o_string, our_name,
|
||||
"Set local name for authentication",
|
||||
OPT_PRIV|OPT_STATIC, NULL, MAXNAMELEN },
|
||||
OPT_PRIV|OPT_STATIC, NULL, MAXNAMELEN, 0 },
|
||||
{ "user", o_string, user,
|
||||
"Set name for auth with peer", OPT_STATIC, NULL, MAXNAMELEN },
|
||||
"Set name for auth with peer", OPT_STATIC, NULL, MAXNAMELEN, 0 },
|
||||
{ "usehostname", o_bool, &usehostname,
|
||||
"Must use hostname for authentication", 1 },
|
||||
"Must use hostname for authentication", 1, NULL, 0, 0 },
|
||||
{ "remotename", o_string, remote_name,
|
||||
"Set remote name for authentication", OPT_STATIC,
|
||||
&explicit_remote, MAXNAMELEN },
|
||||
&explicit_remote, MAXNAMELEN, 0 },
|
||||
{ "auth", o_bool, &auth_required,
|
||||
"Require authentication from peer", 1 },
|
||||
"Require authentication from peer", 1, NULL, 0, 0 },
|
||||
{ "noauth", o_bool, &auth_required,
|
||||
"Don't require peer to authenticate", OPT_PRIV, &allow_any_ip },
|
||||
"Don't require peer to authenticate", OPT_PRIV, &allow_any_ip, 0, 0 },
|
||||
{ "login", o_bool, &uselogin,
|
||||
"Use system password database for PAP", 1 },
|
||||
"Use system password database for PAP", 1, NULL, 0, 0 },
|
||||
{ "papcrypt", o_bool, &cryptpap,
|
||||
"PAP passwords are encrypted", 1 },
|
||||
"PAP passwords are encrypted", 1, NULL, 0, 0 },
|
||||
/* Removed for RTEMS PORT
|
||||
{ "+ua", o_special, setupapfile,
|
||||
"Get PAP user and password from file" },
|
||||
*/
|
||||
{ "password", o_string, passwd,
|
||||
"Password for authenticating us to the peer", OPT_STATIC,
|
||||
NULL, MAXSECRETLEN },
|
||||
NULL, MAXSECRETLEN, 0 },
|
||||
/* Removed for RTEMS_PORT
|
||||
{ "privgroup", o_special, privgroup,
|
||||
"Allow group members to use privileged options", OPT_PRIV },
|
||||
@@ -228,7 +228,7 @@ option_t auth_options[] = {
|
||||
"Set IP address(es) which can be used without authentication",
|
||||
OPT_PRIV },
|
||||
*/
|
||||
{ NULL }
|
||||
{ NULL, 0, NULL, NULL, 0, NULL, 0, 0 }
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user