Lines Matching defs:opt
2322 _krb5_get_init_creds_opt_free_pkinit(krb5_get_init_creds_opt *opt)
2327 if (opt->opt_private == NULL || opt->opt_private->pk_init_ctx == NULL)
2329 ctx = opt->opt_private->pk_init_ctx;
2360 free(opt->opt_private->pk_init_ctx);
2361 opt->opt_private->pk_init_ctx = NULL;
2367 krb5_get_init_creds_opt *opt,
2382 if (opt->opt_private == NULL) {
2384 N_("PKINIT: on non extendable opt", ""));
2388 opt->opt_private->pk_init_ctx =
2389 calloc(1, sizeof(*opt->opt_private->pk_init_ctx));
2390 if (opt->opt_private->pk_init_ctx == NULL) {
2395 opt->opt_private->pk_init_ctx->require_binding = 0;
2396 opt->opt_private->pk_init_ctx->require_eku = 1;
2397 opt->opt_private->pk_init_ctx->require_krbtgt_otherName = 1;
2398 opt->opt_private->pk_init_ctx->peer = NULL;
2421 opt->opt_private->pk_init_ctx->anonymous = 1;
2424 &opt->opt_private->pk_init_ctx->id,
2433 free(opt->opt_private->pk_init_ctx);
2434 opt->opt_private->pk_init_ctx = NULL;
2438 if (opt->opt_private->pk_init_ctx->id->certs) {
2441 opt->opt_private->pk_init_ctx,
2442 opt->opt_private->pk_init_ctx->id->certs);
2444 opt->opt_private->pk_init_ctx->id->cert = NULL;
2448 hx509_cert cert = opt->opt_private->pk_init_ctx->id->cert;
2450 opt->opt_private->pk_init_ctx->keyex = USE_DH;
2461 opt->opt_private->pk_init_ctx->keyex = USE_ECDH;
2467 opt->opt_private->pk_init_ctx->keyex = USE_RSA;
2469 if (opt->opt_private->pk_init_ctx->id->certs == NULL) {
2486 krb5_get_init_creds_opt *opt,
2490 if (opt->opt_private == NULL) {
2492 N_("PKINIT: on non extendable opt", ""));
2495 if (opt->opt_private->pk_init_ctx == NULL) {
2501 _krb5_pk_set_user_id(context, NULL, opt->opt_private->pk_init_ctx, certs);