CK_ATTRIBUTE attr = { attribute, (CK_VOID_PTR)&bool, sizeof(bool) };
CK_ATTRIBUTE attr = { 0, NULL, 0 };
nssCKObject_IsAttributeTrue(  CK_OBJECT_HANDLE object,  CK_ATTRIBUTE_TYPE attribute,  nssSession *session,  NSSSlot *slot,  PRStatus *rvStatus){    CK_BBOOL bool;    CK_ATTRIBUTE attr = { attribute, (CK_VOID_PTR)&bool, sizeof(bool) };    CK_RV ckrv;    nssSession_EnterMonitor(session);    ckrv = CKAPI(slot)->C_GetAttributeValue(session->handle, object, &attr, 1);    nssSession_ExitMonitor(session);    if (ckrv != CKR_OK) {	*rvStatus = PR_FAILURE;	return PR_FALSE;    }    *rvStatus = PR_SUCCESS;    return (PRBool)(bool == CK_TRUE);}