Lines Matching refs:arg
609 char *arg, *attrib, *cp = *condition; in match_cfg_line() local
620 if ((arg = strdelim(&cp)) == NULL || *arg == '\0') { in match_cfg_line()
624 len = strlen(arg); in match_cfg_line()
630 if (match_pattern_list(user, arg, len, 0) != 1) in match_cfg_line()
634 "line %d", user, arg, line); in match_cfg_line()
636 switch (match_cfg_line_group(arg, line, user)) { in match_cfg_line()
647 if (match_hostname(host, arg, len) != 1) in match_cfg_line()
651 "%.100s' at line %d", host, arg, line); in match_cfg_line()
653 switch (addr_match_list(address, arg)) { in match_cfg_line()
656 "%.100s' at line %d", address, arg, line); in match_cfg_line()
720 char *cp, **charptr, *arg, *p; in process_server_config_line() local
731 if ((arg = strdelim(&cp)) == NULL) in process_server_config_line()
734 if (*arg == '\0') in process_server_config_line()
735 arg = strdelim(&cp); in process_server_config_line()
736 if (!arg || !*arg || *arg == '#') in process_server_config_line()
740 opcode = parse_token(arg, filename, linenum, &flags); in process_server_config_line()
747 debug3("%s:%d setting %s %s", filename, linenum, arg, cp); in process_server_config_line()
751 "within a Match block", filename, linenum, arg); in process_server_config_line()
753 while (arg) in process_server_config_line()
754 arg = strdelim(&cp); in process_server_config_line()
778 arg = strdelim(&cp); in process_server_config_line()
779 if (!arg || *arg == '\0') in process_server_config_line()
782 options->ports[options->num_ports++] = a2port(arg); in process_server_config_line()
791 arg = strdelim(&cp); in process_server_config_line()
792 if (!arg || *arg == '\0') in process_server_config_line()
795 value = atoi(arg); in process_server_config_line()
803 arg = strdelim(&cp); in process_server_config_line()
804 if (!arg || *arg == '\0') in process_server_config_line()
807 if ((value = convtime(arg)) == -1) in process_server_config_line()
819 arg = strdelim(&cp); in process_server_config_line()
820 if (arg == NULL || *arg == '\0') in process_server_config_line()
824 if (strchr(arg, '[') == NULL && (p = strchr(arg, ':')) != NULL in process_server_config_line()
826 add_listen_addr(options, arg, 0); in process_server_config_line()
829 p = hpdelim(&arg); in process_server_config_line()
834 if (arg == NULL) in process_server_config_line()
836 else if ((port = a2port(arg)) <= 0) in process_server_config_line()
850 arg = strdelim(&cp); in process_server_config_line()
851 if (!arg || *arg == '\0') in process_server_config_line()
856 if (strcasecmp(arg, multistate_ptr[i].key) == 0) { in process_server_config_line()
863 filename, linenum, arg); in process_server_config_line()
875 arg = strdelim(&cp); in process_server_config_line()
876 if (!arg || *arg == '\0') in process_server_config_line()
880 *charptr = derelativise_path(arg); in process_server_config_line()
909 arg = strdelim(&cp); in process_server_config_line()
910 if (!arg || *arg == '\0') in process_server_config_line()
914 if (strcmp(arg, "yes") == 0) in process_server_config_line()
916 else if (strcmp(arg, "no") == 0) in process_server_config_line()
920 filename, linenum, arg); in process_server_config_line()
1049 arg = strdelim(&cp); in process_server_config_line()
1050 value = log_facility_number(arg); in process_server_config_line()
1053 filename, linenum, arg ? arg : "<NONE>"); in process_server_config_line()
1060 arg = strdelim(&cp); in process_server_config_line()
1061 value = log_level_number(arg); in process_server_config_line()
1064 filename, linenum, arg ? arg : "<NONE>"); in process_server_config_line()
1083 while ((arg = strdelim(&cp)) && *arg != '\0') { in process_server_config_line()
1088 xstrdup(arg); in process_server_config_line()
1093 while ((arg = strdelim(&cp)) && *arg != '\0') { in process_server_config_line()
1098 xstrdup(arg); in process_server_config_line()
1103 while ((arg = strdelim(&cp)) && *arg != '\0') { in process_server_config_line()
1108 xstrdup(arg); in process_server_config_line()
1113 while ((arg = strdelim(&cp)) && *arg != '\0') { in process_server_config_line()
1117 options->deny_groups[options->num_deny_groups++] = xstrdup(arg); in process_server_config_line()
1122 arg = strdelim(&cp); in process_server_config_line()
1123 if (!arg || *arg == '\0') in process_server_config_line()
1125 if (!ciphers_valid(arg)) in process_server_config_line()
1127 filename, linenum, arg ? arg : "<NONE>"); in process_server_config_line()
1129 options->ciphers = xstrdup(arg); in process_server_config_line()
1133 arg = strdelim(&cp); in process_server_config_line()
1134 if (!arg || *arg == '\0') in process_server_config_line()
1136 if (!mac_valid(arg)) in process_server_config_line()
1138 filename, linenum, arg ? arg : "<NONE>"); in process_server_config_line()
1140 options->macs = xstrdup(arg); in process_server_config_line()
1144 arg = strdelim(&cp); in process_server_config_line()
1145 if (!arg || *arg == '\0') in process_server_config_line()
1148 if (!kex_names_valid(arg)) in process_server_config_line()
1150 filename, linenum, arg ? arg : "<NONE>"); in process_server_config_line()
1152 options->kex_algorithms = xstrdup(arg); in process_server_config_line()
1157 arg = strdelim(&cp); in process_server_config_line()
1158 if (!arg || *arg == '\0') in process_server_config_line()
1160 value = proto_spec(arg); in process_server_config_line()
1163 filename, linenum, arg ? arg : "<NONE>"); in process_server_config_line()
1173 arg = strdelim(&cp); in process_server_config_line()
1174 if (!arg || *arg == '\0') in process_server_config_line()
1178 arg = strdelim(&cp); in process_server_config_line()
1182 if (strcmp(arg, options->subsystem_name[i]) == 0) in process_server_config_line()
1184 filename, linenum, arg); in process_server_config_line()
1185 options->subsystem_name[options->num_subsystems] = xstrdup(arg); in process_server_config_line()
1186 arg = strdelim(&cp); in process_server_config_line()
1187 if (!arg || *arg == '\0') in process_server_config_line()
1190 options->subsystem_command[options->num_subsystems] = xstrdup(arg); in process_server_config_line()
1193 p = xstrdup(arg); in process_server_config_line()
1195 while ((arg = strdelim(&cp)) != NULL && *arg != '\0') { in process_server_config_line()
1196 len += 1 + strlen(arg); in process_server_config_line()
1199 strlcat(p, arg, len); in process_server_config_line()
1206 arg = strdelim(&cp); in process_server_config_line()
1207 if (!arg || *arg == '\0') in process_server_config_line()
1210 if ((n = sscanf(arg, "%d:%d:%d", in process_server_config_line()
1247 while ((arg = strdelim(&cp)) && *arg != '\0') { in process_server_config_line()
1255 tilde_expand_filename(arg, getuid()); in process_server_config_line()
1262 arg = strdelim(&cp); in process_server_config_line()
1263 if (!arg || *arg == '\0') in process_server_config_line()
1267 *charptr = tilde_expand_filename(arg, getuid()); in process_server_config_line()
1283 while ((arg = strdelim(&cp)) && *arg != '\0') { in process_server_config_line()
1284 if (strchr(arg, '=') != NULL) in process_server_config_line()
1293 xstrdup(arg); in process_server_config_line()
1299 arg = strdelim(&cp); in process_server_config_line()
1300 if (!arg || *arg == '\0') in process_server_config_line()
1305 if (strcmp(tunmode_desc[i].text, arg) == 0) { in process_server_config_line()
1311 "no argument: %s", filename, linenum, arg); in process_server_config_line()
1328 arg = strdelim(&cp); in process_server_config_line()
1329 if (!arg || *arg == '\0') in process_server_config_line()
1333 if (strcmp(arg, "any") == 0) { in process_server_config_line()
1342 for (; arg != NULL && *arg != '\0'; arg = strdelim(&cp)) { in process_server_config_line()
1343 p = hpdelim(&arg); in process_server_config_line()
1348 if (arg == NULL || (port = a2port(arg)) <= 0) in process_server_config_line()
1369 arg = strdelim(&cp); in process_server_config_line()
1370 if (!arg || *arg == '\0') in process_server_config_line()
1374 *charptr = xstrdup(arg); in process_server_config_line()
1386 arg = strdelim(&cp); in process_server_config_line()
1387 if ((value = parse_ipqos(arg)) == -1) in process_server_config_line()
1389 filename, linenum, arg); in process_server_config_line()
1390 arg = strdelim(&cp); in process_server_config_line()
1391 if (arg == NULL) in process_server_config_line()
1393 else if ((value2 = parse_ipqos(arg)) == -1) in process_server_config_line()
1395 filename, linenum, arg); in process_server_config_line()
1404 filename, linenum, arg); in process_server_config_line()
1405 while (arg) in process_server_config_line()
1406 arg = strdelim(&cp); in process_server_config_line()
1411 filename, linenum, arg); in process_server_config_line()
1412 while (arg) in process_server_config_line()
1413 arg = strdelim(&cp); in process_server_config_line()
1418 filename, linenum, arg, opcode); in process_server_config_line()
1420 if ((arg = strdelim(&cp)) != NULL && *arg != '\0') in process_server_config_line()
1422 filename, linenum, arg); in process_server_config_line()