Lines Matching defs:name_and_cert_ctx
464 struct name_and_cert_ctx {
474 struct name_and_cert_ctx *name_and_cert_ctx);
477 struct name_and_cert_ctx *name_and_cert_ctx);
485 struct name_and_cert_ctx *name_and_cert_ctx = NULL;
504 name_and_cert_ctx = talloc_zero(sbus_req, struct name_and_cert_ctx);
505 if (name_and_cert_ctx == NULL) {
510 name_and_cert_ctx->sbus_req = sbus_req;
513 name_and_cert_ctx->name = talloc_strdup(name_and_cert_ctx, name);
514 if (name_and_cert_ctx->name == NULL) {
521 ret = sss_cert_pem_to_derb64(name_and_cert_ctx, pem_cert,
522 &(name_and_cert_ctx->derb64));
540 name_and_cert_ctx->list_ctx = ifp_list_ctx_new(sbus_req, ctx,
541 name_and_cert_ctx->derb64,
543 if (name_and_cert_ctx->list_ctx == NULL) {
548 if (name_and_cert_ctx->name != NULL) {
553 name_and_cert_ctx->name);
559 name_and_cert_ctx);
561 ret = ifp_users_find_by_name_and_cert_step(name_and_cert_ctx);
573 struct name_and_cert_ctx *name_and_cert_ctx = NULL;
578 name_and_cert_ctx = tevent_req_callback_data(req, struct name_and_cert_ctx);
579 sbus_req = name_and_cert_ctx->sbus_req;
581 ret = cache_req_user_by_name_recv(name_and_cert_ctx, req, &result);
594 name_and_cert_ctx->user_opath = ifp_users_build_path_from_msg(
595 name_and_cert_ctx,
598 if (name_and_cert_ctx->user_opath == NULL) {
604 if (name_and_cert_ctx->list_ctx != NULL) {
605 ret = ifp_users_find_by_name_and_cert_step(name_and_cert_ctx);
613 ifp_users_find_by_name_and_cert_reply(name_and_cert_ctx);
624 struct name_and_cert_ctx *name_and_cert_ctx)
627 struct ifp_list_ctx *list_ctx = name_and_cert_ctx->list_ctx;
642 name_and_cert_ctx);
650 struct name_and_cert_ctx *name_and_cert_ctx;
656 name_and_cert_ctx = tevent_req_callback_data(req, struct name_and_cert_ctx);
657 list_ctx = name_and_cert_ctx->list_ctx;
660 ret = cache_req_user_by_cert_recv(name_and_cert_ctx, req, &result);
682 return ifp_users_find_by_name_and_cert_reply(name_and_cert_ctx);
685 ret = ifp_users_find_by_name_and_cert_step(name_and_cert_ctx);
696 struct name_and_cert_ctx *name_and_cert_ctx)
698 struct sbus_request *sbus_req = name_and_cert_ctx->sbus_req;
699 struct ifp_list_ctx *list_ctx = name_and_cert_ctx->list_ctx;
708 if (name_and_cert_ctx->user_opath == NULL) {
729 if (name_and_cert_ctx->derb64 == NULL) {
731 name_and_cert_ctx->user_opath);
744 if (strcmp(name_and_cert_ctx->user_opath, list_ctx->paths[c]) == 0) {
746 name_and_cert_ctx->user_opath);
757 /* name_and_cert_ctx is already freed because sbus_req (the parent) is