Lines Matching refs:cli_opts

51 struct cli_opts {
94 struct cli_opts *cli_opts;
100 static krb5_error_code set_lifetime_options(struct cli_opts *cli_opts,
106 if (cli_opts->rtime == NULL) {
113 kerr = krb5_string_to_deltat(cli_opts->rtime, &lifetime);
116 "krb5_string_to_deltat failed for [%s].\n", cli_opts->rtime);
121 cli_opts->rtime);
125 if (cli_opts->lifetime == NULL) {
131 kerr = krb5_string_to_deltat(cli_opts->lifetime, &lifetime);
135 cli_opts->lifetime);
140 cli_opts->lifetime);
147 static void set_canonicalize_option(struct cli_opts *cli_opts,
152 canonicalize = cli_opts->canonicalize ? 1 : 0;
154 cli_opts->canonicalize ? "true" : "false");
167 static void revert_changepw_options(struct cli_opts *cli_opts,
172 set_canonicalize_option(cli_opts, options);
179 kerr = set_lifetime_options(cli_opts, options);
1226 struct cli_opts *cli_opts,
1241 set_canonicalize_option(cli_opts, &options);
1591 revert_changepw_options(kr->cli_opts, kr->options);
2062 struct cli_opts *cli_opts,
2159 kerr = get_and_save_tgt_with_keytab(ctx, cli_opts, client_princ,
2268 if (kr->cli_opts->fast_principal) {
2270 kr->cli_opts->fast_principal);
2271 kerr = krb5_parse_name(kr->ctx, kr->cli_opts->fast_principal,
2303 kr->cli_opts,
2571 kerr = set_lifetime_options(kr->cli_opts, kr->options);
2578 set_canonicalize_option(kr->cli_opts, kr->options);
2602 kr->realm = kr->cli_opts->realm;
2619 ret = check_use_fast(kr->cli_opts->use_fast_str, &kr->fast_val);
2701 struct cli_opts cli_opts = { 0 };
2720 {CHILD_OPT_REALM, 0, POPT_ARG_STRING, &cli_opts.realm, 0,
2722 {CHILD_OPT_LIFETIME, 0, POPT_ARG_STRING, &cli_opts.lifetime, 0,
2724 {CHILD_OPT_RENEWABLE_LIFETIME, 0, POPT_ARG_STRING, &cli_opts.rtime, 0,
2726 {CHILD_OPT_USE_FAST, 0, POPT_ARG_STRING, &cli_opts.use_fast_str, 0,
2729 &cli_opts.fast_principal, 0,
2739 cli_opts.canonicalize = false;
2745 cli_opts.canonicalize = true;
2786 kr->cli_opts = &cli_opts;