Back to index

lightning-sunbird  0.9+nobinonly
Functions
object.c File Reference
#include "ckdbm.h"

Go to the source code of this file.

Functions

static void nss_dbm_mdObject_Finalize (NSSCKMDObject *mdObject, NSSCKFWObject *fwObject, NSSCKMDSession *mdSession, NSSCKFWSession *fwSession, NSSCKMDToken *mdToken, NSSCKFWToken *fwToken, NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance)
static CK_RV nss_dbm_mdObject_Destroy (NSSCKMDObject *mdObject, NSSCKFWObject *fwObject, NSSCKMDSession *mdSession, NSSCKFWSession *fwSession, NSSCKMDToken *mdToken, NSSCKFWToken *fwToken, NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance)
static CK_ULONG nss_dbm_mdObject_GetAttributeCount (NSSCKMDObject *mdObject, NSSCKFWObject *fwObject, NSSCKMDSession *mdSession, NSSCKFWSession *fwSession, NSSCKMDToken *mdToken, NSSCKFWToken *fwToken, NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance, CK_RV *pError)
static CK_RV nss_dbm_mdObject_GetAttributeTypes (NSSCKMDObject *mdObject, NSSCKFWObject *fwObject, NSSCKMDSession *mdSession, NSSCKFWSession *fwSession, NSSCKMDToken *mdToken, NSSCKFWToken *fwToken, NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance, CK_ATTRIBUTE_TYPE_PTR typeArray, CK_ULONG ulCount)
static CK_ULONG nss_dbm_mdObject_GetAttributeSize (NSSCKMDObject *mdObject, NSSCKFWObject *fwObject, NSSCKMDSession *mdSession, NSSCKFWSession *fwSession, NSSCKMDToken *mdToken, NSSCKFWToken *fwToken, NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance, CK_ATTRIBUTE_TYPE attribute, CK_RV *pError)
static NSSItem * nss_dbm_mdObject_GetAttribute (NSSCKMDObject *mdObject, NSSCKFWObject *fwObject, NSSCKMDSession *mdSession, NSSCKFWSession *fwSession, NSSCKMDToken *mdToken, NSSCKFWToken *fwToken, NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance, CK_ATTRIBUTE_TYPE attribute, CK_RV *pError)
static CK_RV nss_dbm_mdObject_SetAttribute (NSSCKMDObject *mdObject, NSSCKFWObject *fwObject, NSSCKMDSession *mdSession, NSSCKFWSession *fwSession, NSSCKMDToken *mdToken, NSSCKFWToken *fwToken, NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance, CK_ATTRIBUTE_TYPE attribute, NSSItem *value)
NSS_IMPLEMENT NSSCKMDObject * nss_dbm_mdObject_factory (nss_dbm_object_t *object, CK_RV *pError)

Function Documentation

static CK_RV nss_dbm_mdObject_Destroy ( NSSCKMDObject *  mdObject,
NSSCKFWObject *  fwObject,
NSSCKMDSession *  mdSession,
NSSCKFWSession *  fwSession,
NSSCKMDToken *  mdToken,
NSSCKFWToken *  fwToken,
NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance 
) [static]

Definition at line 61 of file object.c.

{
  nss_dbm_object_t *object = (nss_dbm_object_t *)mdObject->etc;
  return nss_dbm_db_delete_object(object->handle);
}

Here is the call graph for this function:

Here is the caller graph for this function:

NSS_IMPLEMENT NSSCKMDObject* nss_dbm_mdObject_factory ( nss_dbm_object_t *  object,
CK_RV pError 
)

Definition at line 182 of file object.c.

{
  NSSCKMDObject *rv;

  rv = nss_ZNEW(object->arena, NSSCKMDObject);
  if( (NSSCKMDObject *)NULL == rv ) {
    *pError = CKR_HOST_MEMORY;
    return (NSSCKMDObject *)NULL;
  }

  rv->etc = (void *)object;
  rv->Finalize = nss_dbm_mdObject_Finalize;
  rv->Destroy = nss_dbm_mdObject_Destroy;
  /*  IsTokenObject can be deferred */
  rv->GetAttributeCount = nss_dbm_mdObject_GetAttributeCount;
  rv->GetAttributeTypes = nss_dbm_mdObject_GetAttributeTypes;
  rv->GetAttributeSize = nss_dbm_mdObject_GetAttributeSize;
  rv->GetAttribute = nss_dbm_mdObject_GetAttribute;
  rv->SetAttribute = nss_dbm_mdObject_SetAttribute;
  /*  GetObjectSize can be deferred */

  return rv;
}
static void nss_dbm_mdObject_Finalize ( NSSCKMDObject *  mdObject,
NSSCKFWObject *  fwObject,
NSSCKMDSession *  mdSession,
NSSCKFWSession *  fwSession,
NSSCKMDToken *  mdToken,
NSSCKFWToken *  fwToken,
NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance 
) [static]

Definition at line 45 of file object.c.

{
  ;
}

Here is the caller graph for this function:

static NSSItem* nss_dbm_mdObject_GetAttribute ( NSSCKMDObject *  mdObject,
NSSCKFWObject *  fwObject,
NSSCKMDSession *  mdSession,
NSSCKFWSession *  fwSession,
NSSCKMDToken *  mdToken,
NSSCKFWToken *  fwToken,
NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance,
CK_ATTRIBUTE_TYPE  attribute,
CK_RV pError 
) [static]

Definition at line 140 of file object.c.

{
  nss_dbm_object_t *object = (nss_dbm_object_t *)mdObject->etc;
  nss_dbm_session_t *session = (nss_dbm_session_t *)mdSession->etc;
  return nss_dbm_db_get_object_attribute(object->handle, object->arena, attribute,
                                         pError, &session->deviceError);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static CK_ULONG nss_dbm_mdObject_GetAttributeCount ( NSSCKMDObject *  mdObject,
NSSCKFWObject *  fwObject,
NSSCKMDSession *  mdSession,
NSSCKFWSession *  fwSession,
NSSCKMDToken *  mdToken,
NSSCKFWToken *  fwToken,
NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance,
CK_RV pError 
) [static]

Definition at line 78 of file object.c.

{
  nss_dbm_object_t *object = (nss_dbm_object_t *)mdObject->etc;
  nss_dbm_session_t *session = (nss_dbm_session_t *)mdSession->etc;
  return nss_dbm_db_get_object_attribute_count(object->handle, pError, 
                                               &session->deviceError);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static CK_ULONG nss_dbm_mdObject_GetAttributeSize ( NSSCKMDObject *  mdObject,
NSSCKFWObject *  fwObject,
NSSCKMDSession *  mdSession,
NSSCKFWSession *  fwSession,
NSSCKMDToken *  mdToken,
NSSCKFWToken *  fwToken,
NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance,
CK_ATTRIBUTE_TYPE  attribute,
CK_RV pError 
) [static]

Definition at line 119 of file object.c.

{
  nss_dbm_object_t *object = (nss_dbm_object_t *)mdObject->etc;
  nss_dbm_session_t *session = (nss_dbm_session_t *)mdSession->etc;
  return nss_dbm_db_get_object_attribute_size(object->handle, attribute, pError, 
                                              &session->deviceError);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static CK_RV nss_dbm_mdObject_GetAttributeTypes ( NSSCKMDObject *  mdObject,
NSSCKFWObject *  fwObject,
NSSCKMDSession *  mdSession,
NSSCKFWSession *  fwSession,
NSSCKMDToken *  mdToken,
NSSCKFWToken *  fwToken,
NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance,
CK_ATTRIBUTE_TYPE_PTR  typeArray,
CK_ULONG  ulCount 
) [static]

Definition at line 98 of file object.c.

{
  nss_dbm_object_t *object = (nss_dbm_object_t *)mdObject->etc;
  nss_dbm_session_t *session = (nss_dbm_session_t *)mdSession->etc;
  return nss_dbm_db_get_object_attribute_types(object->handle, typeArray,
                                               ulCount, &session->deviceError);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static CK_RV nss_dbm_mdObject_SetAttribute ( NSSCKMDObject *  mdObject,
NSSCKFWObject *  fwObject,
NSSCKMDSession *  mdSession,
NSSCKFWSession *  fwSession,
NSSCKMDToken *  mdToken,
NSSCKFWToken *  fwToken,
NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance,
CK_ATTRIBUTE_TYPE  attribute,
NSSItem *  value 
) [static]

Definition at line 161 of file object.c.

{
  nss_dbm_object_t *object = (nss_dbm_object_t *)mdObject->etc;
  nss_dbm_session_t *session = (nss_dbm_session_t *)mdSession->etc;
  return nss_dbm_db_set_object_attribute(object->handle, attribute, value,
                                         &session->deviceError);
}

Here is the call graph for this function:

Here is the caller graph for this function: