Lines Matching refs:opt

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