|
Lines 1231-1242
process_server_config_line(ServerOptions *options, char *line,
Link Here
|
| 1231 |
case sRequiredAuthentications1: |
1231 |
case sRequiredAuthentications1: |
| 1232 |
charptr = &options->required_auth1; |
1232 |
charptr = &options->required_auth1; |
| 1233 |
arg = strdelim(&cp); |
1233 |
arg = strdelim(&cp); |
| 1234 |
if (auth1_check_required(arg) != 0) |
|
|
| 1235 |
fatal("%.200s line %d: Invalid required authentication " |
| 1236 |
"list", filename, linenum); |
| 1237 |
if (!arg || *arg == '\0') |
1234 |
if (!arg || *arg == '\0') |
| 1238 |
fatal("%.200s line %d: Missing argument.", |
1235 |
fatal("%.200s line %d: Missing argument.", |
| 1239 |
filename, linenum); |
1236 |
filename, linenum); |
|
|
1237 |
if (auth1_check_required(arg) != 0) |
| 1238 |
fatal("%.200s line %d: Invalid required authentication " |
| 1239 |
"list", filename, linenum); |
| 1240 |
if (*charptr == NULL) |
1240 |
if (*charptr == NULL) |
| 1241 |
*charptr = xstrdup(arg); |
1241 |
*charptr = xstrdup(arg); |
| 1242 |
break; |
1242 |
break; |
|
Lines 1244-1255
process_server_config_line(ServerOptions *options, char *line,
Link Here
|
| 1244 |
case sRequiredAuthentications2: |
1244 |
case sRequiredAuthentications2: |
| 1245 |
charptr = &options->required_auth2; |
1245 |
charptr = &options->required_auth2; |
| 1246 |
arg = strdelim(&cp); |
1246 |
arg = strdelim(&cp); |
| 1247 |
if (auth2_check_required(arg) != 0) |
|
|
| 1248 |
fatal("%.200s line %d: Invalid required authentication " |
| 1249 |
"list", filename, linenum); |
| 1250 |
if (!arg || *arg == '\0') |
1247 |
if (!arg || *arg == '\0') |
| 1251 |
fatal("%.200s line %d: Missing argument.", |
1248 |
fatal("%.200s line %d: Missing argument.", |
| 1252 |
filename, linenum); |
1249 |
filename, linenum); |
|
|
1250 |
if (auth2_check_required(arg) != 0) |
| 1251 |
fatal("%.200s line %d: Invalid required authentication " |
| 1252 |
"list", filename, linenum); |
| 1253 |
if (*charptr == NULL) |
1253 |
if (*charptr == NULL) |
| 1254 |
*charptr = xstrdup(arg); |
1254 |
*charptr = xstrdup(arg); |
| 1255 |
break; |
1255 |
break; |