Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelAttributeUtil.c325 CK_ATTRIBUTE_INFO_PTR extra_attr; in kernel_cleanup_extra_attr() local
328 extra_attr = object_p->extra_attrlistp; in kernel_cleanup_extra_attr()
329 while (extra_attr) { in kernel_cleanup_extra_attr()
330 tmp = extra_attr->next; in kernel_cleanup_extra_attr()
331 if (extra_attr->attr.pValue) in kernel_cleanup_extra_attr()
338 free(extra_attr->attr.pValue); in kernel_cleanup_extra_attr()
341 free(extra_attr); in kernel_cleanup_extra_attr()
342 extra_attr = tmp; in kernel_cleanup_extra_attr()
455 CK_ATTRIBUTE_INFO_PTR extra_attr; in get_extra_attr_from_object() local
458 extra_attr = object_p->extra_attrlistp; in get_extra_attr_from_object()
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftAttributeUtil.c415 CK_ATTRIBUTE_INFO_PTR extra_attr; in soft_cleanup_extra_attr() local
418 extra_attr = object_p->extra_attrlistp; in soft_cleanup_extra_attr()
419 while (extra_attr) { in soft_cleanup_extra_attr()
420 tmp = extra_attr->next; in soft_cleanup_extra_attr()
421 if (extra_attr->attr.pValue != NULL) { in soft_cleanup_extra_attr()
428 freezero(extra_attr->attr.pValue, in soft_cleanup_extra_attr()
429 extra_attr->attr.ulValueLen); in soft_cleanup_extra_attr()
433 free(extra_attr); in soft_cleanup_extra_attr()
434 extra_attr = tmp; in soft_cleanup_extra_attr()
588 CK_ATTRIBUTE_INFO_PTR extra_attr; in get_extra_attr_from_object() local
[all …]
H A DsoftKeystore.c353 CK_ATTRIBUTE_INFO_PTR extra_attr; in soft_keystore_pack_obj() local
378 extra_attr = obj->extra_attrlistp; in soft_keystore_pack_obj()
380 while (extra_attr) { in soft_keystore_pack_obj()
382 len_attrs += ROUNDUP(extra_attr->attr.ulValueLen, 8); in soft_keystore_pack_obj()
383 extra_attr = extra_attr->next; in soft_keystore_pack_obj()
395 extra_attr = obj->extra_attrlistp; in soft_keystore_pack_obj()
397 attr_hdr.type = SWAP64((uint64_t)extra_attr->attr.type); in soft_keystore_pack_obj()
399 SWAP64((uint64_t)extra_attr->attr.ulValueLen); in soft_keystore_pack_obj()
402 (void) memcpy(buf1, extra_attr->attr.pValue, in soft_keystore_pack_obj()
403 extra_attr->attr.ulValueLen); in soft_keystore_pack_obj()
[all …]