Lines Matching refs:tmpl
2507 lookup_translation(struct translation_st *tmpl,
2530 if (item->optype != -1 && (tmpl->optype & item->optype) == 0)
2537 && tmpl->keytype1 != item->keytype1
2538 && tmpl->keytype2 != item->keytype2)
2546 if (tmpl->ctrl_num != 0) {
2547 if (tmpl->ctrl_num != item->ctrl_num)
2549 } else if (tmpl->ctrl_str != NULL) {
2566 && OPENSSL_strcasecmp(tmpl->ctrl_str, item->ctrl_str) == 0)
2567 ctrl_str = tmpl->ctrl_str;
2569 && OPENSSL_strcasecmp(tmpl->ctrl_hexstr,
2571 ctrl_hexstr = tmpl->ctrl_hexstr;
2576 tmpl->ctrl_str = ctrl_str;
2577 tmpl->ctrl_hexstr = ctrl_hexstr;
2578 } else if (tmpl->param_key != NULL) {
2596 && tmpl->action_type != item->action_type)
2598 && OPENSSL_strcasecmp(tmpl->param_key,
2612 lookup_evp_pkey_ctx_translation(struct translation_st *tmpl)
2614 return lookup_translation(tmpl, evp_pkey_ctx_translations,
2619 lookup_evp_pkey_translation(struct translation_st *tmpl)
2621 return lookup_translation(tmpl, evp_pkey_translations,
2631 struct translation_st tmpl = { 0, };
2639 tmpl.ctrl_num = cmd;
2640 tmpl.keytype1 = tmpl.keytype2 = keytype;
2641 tmpl.optype = optype;
2642 translation = lookup_evp_pkey_ctx_translation(&tmpl);
2699 struct translation_st tmpl = { 0, };
2707 tmpl.action_type = SET;
2708 tmpl.keytype1 = tmpl.keytype2 = keytype;
2709 tmpl.optype = optype;
2710 tmpl.ctrl_str = name;
2711 tmpl.ctrl_hexstr = name;
2712 translation = lookup_evp_pkey_ctx_translation(&tmpl);
2718 ctx.ishex = (tmpl.ctrl_hexstr != NULL);
2766 struct translation_st tmpl = { 0, };
2771 tmpl.action_type = action_type;
2772 tmpl.keytype1 = tmpl.keytype2 = keytype;
2773 tmpl.optype = optype;
2774 tmpl.param_key = params->key;
2775 translation = lookup_evp_pkey_ctx_translation(&tmpl);
2829 struct translation_st tmpl = { 0, };
2833 tmpl.action_type = action_type;
2834 tmpl.param_key = params->key;
2835 translation = lookup_evp_pkey_translation(&tmpl);