Lines Matching defs:ckpAttributes
73 CK_ATTRIBUTE_PTR ckpAttributes = NULL_PTR;
82 jAttributeArrayToCKAttributeArray(env, jTemplate, &ckpAttributes, &ckAttributesLength);
85 rv = (*ckpFunctions->C_CreateObject)(ckSessionHandle, ckpAttributes, ckAttributesLength, &ckObjectHandle);
88 freeCKAttributeArray(ckpAttributes, ckAttributesLength);
114 CK_ATTRIBUTE_PTR ckpAttributes = NULL_PTR;
124 jAttributeArrayToCKAttributeArray(env, jTemplate, &ckpAttributes, &ckAttributesLength);
127 rv = (*ckpFunctions->C_CopyObject)(ckSessionHandle, ckObjectHandle, ckpAttributes, ckAttributesLength, &ckNewObjectHandle);
130 freeCKAttributeArray(ckpAttributes, ckAttributesLength);
215 CK_ATTRIBUTE_PTR ckpAttributes = NULL_PTR;
234 jAttributeArrayToCKAttributeArray(env, jTemplate, &ckpAttributes, &ckAttributesLength);
237 TRACE2("DEBUG: jAttributeArrayToCKAttributeArray finished with ckpAttribute = %d, Length = %d\n", ckpAttributes, ckAttributesLength);
241 if (ckpAttributes[i].pValue != NULL_PTR) {
242 free(ckpAttributes[i].pValue);
243 ckpAttributes[i].pValue = NULL_PTR;
247 rv = (*ckpFunctions->C_GetAttributeValue)(ckSessionHandle, ckObjectHandle, ckpAttributes, ckAttributesLength);
249 free(ckpAttributes);
257 ckBufferLength = sizeof(CK_BYTE) * ckpAttributes[i].ulValueLen;
258 ckpAttributes[i].pValue = (void *) malloc(ckBufferLength);
259 if (ckpAttributes[i].pValue == NULL) {
260 freeCKAttributeArray(ckpAttributes, i);
264 ckpAttributes[i].ulValueLen = ckBufferLength;
268 rv = (*ckpFunctions->C_GetAttributeValue)(ckSessionHandle, ckObjectHandle, ckpAttributes, ckAttributesLength);
273 jAttribute = ckAttributePtrToJAttribute(env, &(ckpAttributes[i]));
275 freeCKAttributeArray(ckpAttributes, ckAttributesLength);
280 freeCKAttributeArray(ckpAttributes, ckAttributesLength);
285 freeCKAttributeArray(ckpAttributes, ckAttributesLength);
306 CK_ATTRIBUTE_PTR ckpAttributes = NULL_PTR;
315 jAttributeArrayToCKAttributeArray(env, jTemplate, &ckpAttributes, &ckAttributesLength);
318 rv = (*ckpFunctions->C_SetAttributeValue)(ckSessionHandle, ckObjectHandle, ckpAttributes, ckAttributesLength);
320 freeCKAttributeArray(ckpAttributes, ckAttributesLength);
340 CK_ATTRIBUTE_PTR ckpAttributes = NULL_PTR;
353 jAttributeArrayToCKAttributeArray(env, jTemplate, &ckpAttributes, &ckAttributesLength);
356 rv = (*ckpFunctions->C_FindObjectsInit)(ckSessionHandle, ckpAttributes, ckAttributesLength);
358 freeCKAttributeArray(ckpAttributes, ckAttributesLength);