Lines Matching defs:attr
1002 pk11_attribute_next(const pk11_object_t *obj, CK_ATTRIBUTE *attr) {
1005 next = attr + 1;
1013 CK_ATTRIBUTE *attr;
1015 for(attr = pk11_attribute_first(obj);
1016 attr != NULL;
1017 attr = pk11_attribute_next(obj, attr))
1018 if (attr->type == type)
1019 return (attr);
1126 CK_ATTRIBUTE *attr;
1129 obj->repr = isc_mem_get(mctx, (cnt + 1) * sizeof(*attr));
1134 memset(obj->repr, 0, (cnt + 1) * sizeof(*attr));
1135 memmove(obj->repr, old, cnt * sizeof(*attr));
1136 attr = obj->repr + cnt;
1137 attr->ulValueLen = (CK_ULONG) len;
1138 attr->pValue = isc_mem_get(mctx, len);
1139 if (attr->pValue == NULL) {
1140 memset(obj->repr, 0, (cnt + 1) * sizeof(*attr));
1141 isc_mem_put(mctx, obj->repr, (cnt + 1) * sizeof(*attr));
1145 memset(attr->pValue, 0, len);
1147 memset(old, 0, cnt * sizeof(*attr));
1148 isc_mem_put(mctx, old, cnt * sizeof(*attr));
1151 return (attr);
1160 CK_ATTRIBUTE *attr;
1207 attr = pk11_attribute_bytype(obj, CKA_LABEL);
1208 if (attr != NULL)
1210 attr = push_attribute(obj, mctx, l);
1211 if (attr == NULL)
1213 attr->type = CKA_LABEL;
1214 memmove(attr->pValue, v, l);
1260 attr = pk11_attribute_bytype(obj, CKA_ID);
1261 if (attr != NULL)
1263 attr = push_attribute(obj, mctx, l);
1264 if (attr == NULL)
1266 attr->type = CKA_ID;
1267 memmove(attr->pValue, v, l);