Lines Matching refs:opt

59 			      krb5_get_init_creds_opt **opt)  in krb5_get_init_creds_opt_alloc()  argument
63 *opt = NULL; in krb5_get_init_creds_opt_alloc()
74 *opt = o; in krb5_get_init_creds_opt_alloc()
86 krb5_get_init_creds_opt *opt) in krb5_get_init_creds_opt_free() argument
88 if (opt == NULL || opt->opt_private == NULL) in krb5_get_init_creds_opt_free()
90 if (opt->opt_private->refcount < 1) /* abort ? */ in krb5_get_init_creds_opt_free()
92 if (--opt->opt_private->refcount == 0) { in krb5_get_init_creds_opt_free()
93 _krb5_get_init_creds_opt_free_pkinit(opt); in krb5_get_init_creds_opt_free()
94 free(opt->opt_private); in krb5_get_init_creds_opt_free()
96 memset(opt, 0, sizeof(*opt)); in krb5_get_init_creds_opt_free()
97 free(opt); in krb5_get_init_creds_opt_free()
154 krb5_get_init_creds_opt *opt) in krb5_get_init_creds_opt_set_default_flags() argument
162 krb5_get_init_creds_opt_set_forwardable(opt, b); in krb5_get_init_creds_opt_set_default_flags()
166 krb5_get_init_creds_opt_set_proxiable (opt, b); in krb5_get_init_creds_opt_set_default_flags()
172 krb5_get_init_creds_opt_set_tkt_life(opt, t); in krb5_get_init_creds_opt_set_default_flags()
178 krb5_get_init_creds_opt_set_renew_life(opt, t); in krb5_get_init_creds_opt_set_default_flags()
182 krb5_get_init_creds_opt_set_addressless (context, opt, b); in krb5_get_init_creds_opt_set_default_flags()
186 krb5_get_init_creds_opt_set_anonymous (opt, b); in krb5_get_init_creds_opt_set_default_flags()
188 krb5_get_init_creds_opt_set_etype_list(opt, enctype, in krb5_get_init_creds_opt_set_default_flags()
191 krb5_get_init_creds_opt_set_salt(krb5_get_init_creds_opt *opt, in krb5_get_init_creds_opt_set_default_flags()
194 krb5_get_init_creds_opt_set_preauth_list(krb5_get_init_creds_opt *opt, in krb5_get_init_creds_opt_set_default_flags()
201 krb5_get_init_creds_opt_set_change_password_prompt(krb5_get_init_creds_opt *opt, in krb5_get_init_creds_opt_set_change_password_prompt() argument
204 opt->flags |= KRB5_GET_INIT_CREDS_OPT_CHANGE_PASSWORD_PROMPT; in krb5_get_init_creds_opt_set_change_password_prompt()
205 opt->change_password_prompt = change_password_prompt; in krb5_get_init_creds_opt_set_change_password_prompt()
209 krb5_get_init_creds_opt_set_tkt_life(krb5_get_init_creds_opt *opt, in krb5_get_init_creds_opt_set_tkt_life() argument
212 opt->flags |= KRB5_GET_INIT_CREDS_OPT_TKT_LIFE; in krb5_get_init_creds_opt_set_tkt_life()
213 opt->tkt_life = tkt_life; in krb5_get_init_creds_opt_set_tkt_life()
217 krb5_get_init_creds_opt_set_renew_life(krb5_get_init_creds_opt *opt, in krb5_get_init_creds_opt_set_renew_life() argument
220 opt->flags |= KRB5_GET_INIT_CREDS_OPT_RENEW_LIFE; in krb5_get_init_creds_opt_set_renew_life()
221 opt->renew_life = renew_life; in krb5_get_init_creds_opt_set_renew_life()
225 krb5_get_init_creds_opt_set_forwardable(krb5_get_init_creds_opt *opt, in krb5_get_init_creds_opt_set_forwardable() argument
228 opt->flags |= KRB5_GET_INIT_CREDS_OPT_FORWARDABLE; in krb5_get_init_creds_opt_set_forwardable()
229 opt->forwardable = forwardable; in krb5_get_init_creds_opt_set_forwardable()
233 krb5_get_init_creds_opt_set_proxiable(krb5_get_init_creds_opt *opt, in krb5_get_init_creds_opt_set_proxiable() argument
236 opt->flags |= KRB5_GET_INIT_CREDS_OPT_PROXIABLE; in krb5_get_init_creds_opt_set_proxiable()
237 opt->proxiable = proxiable; in krb5_get_init_creds_opt_set_proxiable()
241 krb5_get_init_creds_opt_set_etype_list(krb5_get_init_creds_opt *opt, in krb5_get_init_creds_opt_set_etype_list() argument
245 opt->flags |= KRB5_GET_INIT_CREDS_OPT_ETYPE_LIST; in krb5_get_init_creds_opt_set_etype_list()
246 opt->etype_list = etype_list; in krb5_get_init_creds_opt_set_etype_list()
247 opt->etype_list_length = etype_list_length; in krb5_get_init_creds_opt_set_etype_list()
251 krb5_get_init_creds_opt_set_address_list(krb5_get_init_creds_opt *opt, in krb5_get_init_creds_opt_set_address_list() argument
254 opt->flags |= KRB5_GET_INIT_CREDS_OPT_ADDRESS_LIST; in krb5_get_init_creds_opt_set_address_list()
255 opt->address_list = addresses; in krb5_get_init_creds_opt_set_address_list()
259 krb5_get_init_creds_opt_set_preauth_list(krb5_get_init_creds_opt *opt, in krb5_get_init_creds_opt_set_preauth_list() argument
263 opt->flags |= KRB5_GET_INIT_CREDS_OPT_PREAUTH_LIST; in krb5_get_init_creds_opt_set_preauth_list()
264 opt->preauth_list_length = preauth_list_length; in krb5_get_init_creds_opt_set_preauth_list()
265 opt->preauth_list = preauth_list; in krb5_get_init_creds_opt_set_preauth_list()
269 krb5_get_init_creds_opt_set_salt(krb5_get_init_creds_opt *opt, in krb5_get_init_creds_opt_set_salt() argument
272 opt->flags |= KRB5_GET_INIT_CREDS_OPT_SALT; in krb5_get_init_creds_opt_set_salt()
273 opt->salt = salt; in krb5_get_init_creds_opt_set_salt()
277 krb5_get_init_creds_opt_set_anonymous(krb5_get_init_creds_opt *opt, in krb5_get_init_creds_opt_set_anonymous() argument
280 opt->flags |= KRB5_GET_INIT_CREDS_OPT_ANONYMOUS; in krb5_get_init_creds_opt_set_anonymous()
281 opt->anonymous = anonymous; in krb5_get_init_creds_opt_set_anonymous()
286 krb5_get_init_creds_opt *opt, in require_ext_opt() argument
289 if (opt->opt_private == NULL) { in require_ext_opt()
299 krb5_get_init_creds_opt *opt, in krb5_get_init_creds_opt_set_pa_password() argument
304 ret = require_ext_opt(context, opt, "init_creds_opt_set_pa_password"); in krb5_get_init_creds_opt_set_pa_password()
307 opt->opt_private->password = password; in krb5_get_init_creds_opt_set_pa_password()
308 opt->opt_private->key_proc = key_proc; in krb5_get_init_creds_opt_set_pa_password()
314 krb5_get_init_creds_opt *opt, in krb5_get_init_creds_opt_set_pac_request() argument
318 ret = require_ext_opt(context, opt, "init_creds_opt_set_pac_req"); in krb5_get_init_creds_opt_set_pac_request()
321 opt->opt_private->req_pac = req_pac ? in krb5_get_init_creds_opt_set_pac_request()
329 krb5_get_init_creds_opt *opt, in krb5_get_init_creds_opt_set_addressless() argument
333 ret = require_ext_opt(context, opt, "init_creds_opt_set_pac_req"); in krb5_get_init_creds_opt_set_addressless()
337 opt->opt_private->addressless = KRB5_INIT_CREDS_TRISTATE_TRUE; in krb5_get_init_creds_opt_set_addressless()
339 opt->opt_private->addressless = KRB5_INIT_CREDS_TRISTATE_FALSE; in krb5_get_init_creds_opt_set_addressless()
345 krb5_get_init_creds_opt *opt, in krb5_get_init_creds_opt_set_canonicalize() argument
349 ret = require_ext_opt(context, opt, "init_creds_opt_set_canonicalize"); in krb5_get_init_creds_opt_set_canonicalize()
353 opt->opt_private->flags |= KRB5_INIT_CREDS_CANONICALIZE; in krb5_get_init_creds_opt_set_canonicalize()
355 opt->opt_private->flags &= ~KRB5_INIT_CREDS_CANONICALIZE; in krb5_get_init_creds_opt_set_canonicalize()
361 krb5_get_init_creds_opt *opt, in krb5_get_init_creds_opt_set_win2k() argument
365 ret = require_ext_opt(context, opt, "init_creds_opt_set_win2k"); in krb5_get_init_creds_opt_set_win2k()
369 opt->opt_private->flags |= KRB5_INIT_CREDS_NO_C_CANON_CHECK; in krb5_get_init_creds_opt_set_win2k()
370 opt->opt_private->flags |= KRB5_INIT_CREDS_NO_C_NO_EKU_CHECK; in krb5_get_init_creds_opt_set_win2k()
371 opt->opt_private->flags |= KRB5_INIT_CREDS_PKINIT_NO_KRBTGT_OTHERNAME_CHECK; in krb5_get_init_creds_opt_set_win2k()
373 opt->opt_private->flags &= ~KRB5_INIT_CREDS_NO_C_CANON_CHECK; in krb5_get_init_creds_opt_set_win2k()
374 opt->opt_private->flags &= ~KRB5_INIT_CREDS_NO_C_NO_EKU_CHECK; in krb5_get_init_creds_opt_set_win2k()
375 opt->opt_private->flags &= ~KRB5_INIT_CREDS_PKINIT_NO_KRBTGT_OTHERNAME_CHECK; in krb5_get_init_creds_opt_set_win2k()
383 krb5_get_init_creds_opt *opt, in krb5_get_init_creds_opt_set_process_last_req() argument
388 ret = require_ext_opt(context, opt, "init_creds_opt_set_process_last_req"); in krb5_get_init_creds_opt_set_process_last_req()
392 opt->opt_private->lr.func = func; in krb5_get_init_creds_opt_set_process_last_req()
393 opt->opt_private->lr.ctx = ctx; in krb5_get_init_creds_opt_set_process_last_req()
412 krb5_get_init_creds_opt_init(krb5_get_init_creds_opt *opt) in krb5_get_init_creds_opt_init() argument
415 memset (opt, 0, sizeof(*opt)); in krb5_get_init_creds_opt_init()
427 krb5_get_init_creds_opt *opt, in krb5_get_init_creds_opt_get_error() argument