Lines Matching refs:selection
68 int selection; member
96 static int template_has(const void *keydata, int selection) in template_has() argument
108 static int template_match(const void *keydata1, const void *keydata2, int selection) in template_match() argument
116 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in template_match()
119 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in template_match()
122 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in template_match()
126 && (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in template_match()
146 static int template_export(void *key, int selection, OSSL_CALLBACK *param_cb, in template_export() argument
157 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0) in template_export()
164 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in template_export()
165 int include_private = ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0); in template_export()
215 static int template_import(void *key, int selection, const OSSL_PARAM params[]) in template_import() argument
224 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0) in template_import()
227 include_private = selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY ? 1 : 0; in template_import()
243 static const OSSL_PARAM *template_imexport_types(int selection) in template_imexport_types() argument
246 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) in template_imexport_types()
333 static void *template_gen_init(void *provctx, int selection, in template_gen_init() argument
347 gctx->selection = selection; in template_gen_init()
394 static void *template_dup(const void *vsrckey, int selection) in template_dup() argument