Home
last modified time | relevance | path

Searched refs:new_tmpl (Results 1 – 3 of 3) sorted by relevance

/titanic_41/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftSSL.c440 CK_ATTRIBUTE_PTR new_tmpl; in soft_ssl_master_key_derive() local
521 new_tmpl = malloc(sizeof (CK_ATTRIBUTE) * newattrcount); in soft_ssl_master_key_derive()
523 if (new_tmpl == NULL) in soft_ssl_master_key_derive()
528 new_tmpl = obj_tmpl; in soft_ssl_master_key_derive()
535 new_tmpl[0].type = CKA_CLASS; in soft_ssl_master_key_derive()
536 new_tmpl[0].pValue = &class; in soft_ssl_master_key_derive()
537 new_tmpl[0].ulValueLen = sizeof (class); in soft_ssl_master_key_derive()
538 new_tmpl[1].type = CKA_KEY_TYPE; in soft_ssl_master_key_derive()
539 new_tmpl[1].pValue = &keyType; in soft_ssl_master_key_derive()
540 new_tmpl[1].ulValueLen = sizeof (keyType); in soft_ssl_master_key_derive()
[all …]
/titanic_41/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dobject.c430 TEMPLATE * new_tmpl = NULL; in object_copy() local
442 new_tmpl = (TEMPLATE *)malloc(sizeof (TEMPLATE)); in object_copy()
444 if (! o || ! tmpl || ! new_tmpl) { in object_copy()
451 (void) memset(new_tmpl, 0x0, sizeof (TEMPLATE)); in object_copy()
459 rc = template_add_attributes(new_tmpl, pTemplate, ulCount); in object_copy()
484 rc = template_validate_attributes(new_tmpl, class, subclass, in object_copy()
489 rc = template_merge(tmpl, &new_tmpl); in object_copy()
506 if (new_tmpl) in object_copy()
507 (void) template_free(new_tmpl); in object_copy()
712 TEMPLATE * new_tmpl; in object_set_attribute_values() local
[all …]
H A Dtemplate.c701 template_unflatten(TEMPLATE ** new_tmpl, in template_unflatten() argument
716 if (! new_tmpl || ! buf) { in template_unflatten()
824 *new_tmpl = tmpl; in template_unflatten()