Lines Matching refs:optind
3236 if (argc - optind < 1) { in main()
3250 "================", argv[optind]); in main()
3253 if (strcmp(argv[optind], "to_tnds") == 0) { in main()
3254 if (argc - optind < 2) { in main()
3258 cmd_to_tnds(&ctx, argv[optind + 1], argv[optind + 2], in main()
3259 argc > optind + 3 ? argv[optind + 3] : NULL, in main()
3261 } else if (strcmp(argv[optind], "to_tnds2") == 0) { in main()
3262 if (argc - optind < 2) { in main()
3266 cmd_to_tnds(&ctx, argv[optind + 1], argv[optind + 2], in main()
3267 argc > optind + 3 ? argv[optind + 3] : NULL, in main()
3269 } else if (strcmp(argv[optind], "from_tnds") == 0) { in main()
3270 if (argc - optind < 2) { in main()
3274 cmd_from_tnds(&ctx, argv[optind + 1], argv[optind + 2]); in main()
3275 } else if (strcmp(argv[optind], "sub_rem") == 0) { in main()
3276 if (argc - optind < 2) { in main()
3280 ret = cmd_sub_rem(&ctx, argv[optind + 1], in main()
3281 argc > optind + 2 ? argv[optind + 2] : NULL, in main()
3282 argc > optind + 3 ? argv[optind + 3] : NULL); in main()
3283 } else if (strcmp(argv[optind], "pol_upd") == 0) { in main()
3285 argc > optind + 1 ? argv[optind + 1] : NULL, in main()
3286 argc > optind + 2 ? argv[optind + 2] : NULL, in main()
3287 argc > optind + 3 ? argv[optind + 3] : NULL); in main()
3288 } else if (strcmp(argv[optind], "prov") == 0) { in main()
3289 if (argc - optind < 2) { in main()
3293 ctx.ca_fname = argv[optind + 2]; in main()
3295 cmd_prov(&ctx, argv[optind + 1]); in main()
3296 } else if (strcmp(argv[optind], "sim_prov") == 0) { in main()
3297 if (argc - optind < 2) { in main()
3301 ctx.ca_fname = argv[optind + 2]; in main()
3302 cmd_sim_prov(&ctx, argv[optind + 1]); in main()
3303 } else if (strcmp(argv[optind], "dl_osu_ca") == 0) { in main()
3304 if (argc - optind < 2) { in main()
3308 cmd_dl_osu_ca(&ctx, argv[optind + 1], argv[optind + 2]); in main()
3309 } else if (strcmp(argv[optind], "dl_polupd_ca") == 0) { in main()
3310 if (argc - optind < 2) { in main()
3314 cmd_dl_polupd_ca(&ctx, argv[optind + 1], argv[optind + 2]); in main()
3315 } else if (strcmp(argv[optind], "dl_aaa_ca") == 0) { in main()
3316 if (argc - optind < 2) { in main()
3320 cmd_dl_aaa_ca(&ctx, argv[optind + 1], argv[optind + 2]); in main()
3321 } else if (strcmp(argv[optind], "osu_select") == 0) { in main()
3322 if (argc - optind < 2) { in main()
3326 ctx.ca_fname = argc > optind + 2 ? argv[optind + 2] : NULL; in main()
3327 cmd_osu_select(&ctx, argv[optind + 1], 2, 1, NULL); in main()
3328 } else if (strcmp(argv[optind], "signup") == 0) { in main()
3329 ctx.ca_fname = argc > optind + 1 ? argv[optind + 1] : NULL; in main()
3331 } else if (strcmp(argv[optind], "set_pps") == 0) { in main()
3332 if (argc - optind < 2) { in main()
3336 cmd_set_pps(&ctx, argv[optind + 1]); in main()
3337 } else if (strcmp(argv[optind], "get_fqdn") == 0) { in main()
3338 if (argc - optind < 1) { in main()
3342 ret = cmd_get_fqdn(&ctx, argv[optind + 1]); in main()
3343 } else if (strcmp(argv[optind], "oma_dm_prov") == 0) { in main()
3344 if (argc - optind < 2) { in main()
3348 ctx.ca_fname = argv[optind + 2]; in main()
3349 cmd_oma_dm_prov(&ctx, argv[optind + 1]); in main()
3350 } else if (strcmp(argv[optind], "oma_dm_sim_prov") == 0) { in main()
3351 if (argc - optind < 2) { in main()
3355 ctx.ca_fname = argv[optind + 2]; in main()
3356 if (cmd_oma_dm_sim_prov(&ctx, argv[optind + 1]) < 0) { in main()
3360 } else if (strcmp(argv[optind], "oma_dm_add") == 0) { in main()
3361 if (argc - optind < 2) { in main()
3365 cmd_oma_dm_add(&ctx, argv[optind + 1], argv[optind + 2]); in main()
3366 } else if (strcmp(argv[optind], "oma_dm_replace") == 0) { in main()
3367 if (argc - optind < 2) { in main()
3371 cmd_oma_dm_replace(&ctx, argv[optind + 1], argv[optind + 2]); in main()
3372 } else if (strcmp(argv[optind], "est_csr") == 0) { in main()
3373 if (argc - optind < 2) { in main()
3378 est_build_csr(&ctx, argv[optind + 1]); in main()
3379 } else if (strcmp(argv[optind], "browser") == 0) { in main()
3382 if (argc - optind < 2) { in main()
3388 argv[optind + 1]); in main()
3389 ret = hs20_web_browser(argv[optind + 1]); in main()
3391 } else if (strcmp(argv[optind], "parse_cert") == 0) { in main()
3392 if (argc - optind < 2) { in main()
3398 http_parse_x509_certificate(ctx.http, argv[optind + 1]); in main()
3401 wpa_printf(MSG_INFO, "Unknown command '%s'", argv[optind]); in main()