Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dhwf_obj.c424 CK_ATTRIBUTE *hasreset_attr; in counter_set_default_attributes() local
428 hasreset_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE) + in counter_set_default_attributes()
433 if (! value_attr || ! hasreset_attr || ! resetoninit_attr) { in counter_set_default_attributes()
435 if (hasreset_attr) free(hasreset_attr); in counter_set_default_attributes()
444 hasreset_attr->type = CKA_HAS_RESET; in counter_set_default_attributes()
445 hasreset_attr->ulValueLen = sizeof (CK_BBOOL); in counter_set_default_attributes()
446 hasreset_attr->pValue = (CK_BYTE *)hasreset_attr + in counter_set_default_attributes()
448 *(CK_BBOOL *)hasreset_attr->pValue = FALSE; in counter_set_default_attributes()
458 (void) template_update_attribute(tmpl, hasreset_attr); in counter_set_default_attributes()