Lines Matching refs:opt

57 			      krb5_get_init_creds_opt **opt)
61 *opt = NULL;
77 *opt = o;
89 krb5_get_init_creds_opt *opt)
91 if (opt == NULL || opt->opt_private == NULL)
93 if (opt->opt_private->refcount < 1) /* abort ? */
95 if (--opt->opt_private->refcount == 0) {
96 _krb5_get_init_creds_opt_free_pkinit(opt);
97 free(opt->opt_private);
99 memset(opt, 0, sizeof(*opt));
100 free(opt);
147 * set all the values in `opt' to the appropriate values for
157 krb5_get_init_creds_opt *opt)
165 krb5_get_init_creds_opt_set_forwardable(opt, b);
169 krb5_get_init_creds_opt_set_proxiable (opt, b);
175 krb5_get_init_creds_opt_set_tkt_life(opt, t);
181 krb5_get_init_creds_opt_set_renew_life(opt, t);
185 krb5_get_init_creds_opt_set_addressless (context, opt, b);
189 krb5_get_init_creds_opt_set_anonymous (opt, b);
191 krb5_get_init_creds_opt_set_etype_list(opt, enctype,
194 krb5_get_init_creds_opt_set_salt(krb5_get_init_creds_opt *opt,
197 krb5_get_init_creds_opt_set_preauth_list(krb5_get_init_creds_opt *opt,
205 krb5_get_init_creds_opt_set_tkt_life(krb5_get_init_creds_opt *opt,
208 opt->flags |= KRB5_GET_INIT_CREDS_OPT_TKT_LIFE;
209 opt->tkt_life = tkt_life;
213 krb5_get_init_creds_opt_set_renew_life(krb5_get_init_creds_opt *opt,
216 opt->flags |= KRB5_GET_INIT_CREDS_OPT_RENEW_LIFE;
217 opt->renew_life = renew_life;
221 krb5_get_init_creds_opt_set_forwardable(krb5_get_init_creds_opt *opt,
224 opt->flags |= KRB5_GET_INIT_CREDS_OPT_FORWARDABLE;
225 opt->forwardable = forwardable;
229 krb5_get_init_creds_opt_set_proxiable(krb5_get_init_creds_opt *opt,
232 opt->flags |= KRB5_GET_INIT_CREDS_OPT_PROXIABLE;
233 opt->proxiable = proxiable;
237 krb5_get_init_creds_opt_set_etype_list(krb5_get_init_creds_opt *opt,
241 opt->flags |= KRB5_GET_INIT_CREDS_OPT_ETYPE_LIST;
242 opt->etype_list = etype_list;
243 opt->etype_list_length = etype_list_length;
247 krb5_get_init_creds_opt_set_address_list(krb5_get_init_creds_opt *opt,
250 opt->flags |= KRB5_GET_INIT_CREDS_OPT_ADDRESS_LIST;
251 opt->address_list = addresses;
255 krb5_get_init_creds_opt_set_preauth_list(krb5_get_init_creds_opt *opt,
259 opt->flags |= KRB5_GET_INIT_CREDS_OPT_PREAUTH_LIST;
260 opt->preauth_list_length = preauth_list_length;
261 opt->preauth_list = preauth_list;
265 krb5_get_init_creds_opt_set_salt(krb5_get_init_creds_opt *opt,
268 opt->flags |= KRB5_GET_INIT_CREDS_OPT_SALT;
269 opt->salt = salt;
273 krb5_get_init_creds_opt_set_anonymous(krb5_get_init_creds_opt *opt,
276 opt->flags |= KRB5_GET_INIT_CREDS_OPT_ANONYMOUS;
277 opt->anonymous = anonymous;
282 krb5_get_init_creds_opt *opt,
285 if (opt->opt_private == NULL) {
287 N_("%s on non extendable opt", ""), type);
295 krb5_get_init_creds_opt *opt,
300 ret = require_ext_opt(context, opt, "init_creds_opt_set_pa_password");
303 opt->opt_private->password = password;
304 opt->opt_private->key_proc = key_proc;
310 krb5_get_init_creds_opt *opt,
314 ret = require_ext_opt(context, opt, "init_creds_opt_set_pac_req");
317 opt->opt_private->req_pac = req_pac ?
325 krb5_get_init_creds_opt *opt,
329 ret = require_ext_opt(context, opt, "init_creds_opt_set_pac_req");
333 opt->opt_private->addressless = KRB5_INIT_CREDS_TRISTATE_TRUE;
335 opt->opt_private->addressless = KRB5_INIT_CREDS_TRISTATE_FALSE;
341 krb5_get_init_creds_opt *opt,
345 ret = require_ext_opt(context, opt, "init_creds_opt_set_canonicalize");
349 opt->opt_private->flags |= KRB5_INIT_CREDS_CANONICALIZE;
351 opt->opt_private->flags &= ~KRB5_INIT_CREDS_CANONICALIZE;
357 krb5_get_init_creds_opt *opt,
361 ret = require_ext_opt(context, opt, "init_creds_opt_set_win2k");
365 opt->opt_private->flags |= KRB5_INIT_CREDS_NO_C_CANON_CHECK;
366 opt->opt_private->flags |= KRB5_INIT_CREDS_NO_C_NO_EKU_CHECK;
368 opt->opt_private->flags &= ~KRB5_INIT_CREDS_NO_C_CANON_CHECK;
369 opt->opt_private->flags &= ~KRB5_INIT_CREDS_NO_C_NO_EKU_CHECK;
377 krb5_get_init_creds_opt *opt,
382 ret = require_ext_opt(context, opt, "init_creds_opt_set_win2k");
386 opt->opt_private->lr.func = func;
387 opt->opt_private->lr.ctx = ctx;
406 krb5_get_init_creds_opt_init(krb5_get_init_creds_opt *opt)
409 memset (opt, 0, sizeof(*opt));
421 krb5_get_init_creds_opt *opt,