Back to index

lightning-sunbird  0.9+nobinonly
Functions
bsession.c File Reference
#include "builtins.h"

Go to the source code of this file.

Functions

static NSSCKMDFindObjects * builtins_mdSession_FindObjectsInit (NSSCKMDSession *mdSession, NSSCKFWSession *fwSession, NSSCKMDToken *mdToken, NSSCKFWToken *fwToken, NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount, CK_RV *pError)
NSS_IMPLEMENT NSSCKMDSession * nss_builtins_CreateSession (NSSCKFWSession *fwSession, CK_RV *pError)

Function Documentation

static NSSCKMDFindObjects* builtins_mdSession_FindObjectsInit ( NSSCKMDSession *  mdSession,
NSSCKFWSession *  fwSession,
NSSCKMDToken *  mdToken,
NSSCKFWToken *  fwToken,
NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance,
CK_ATTRIBUTE_PTR  pTemplate,
CK_ULONG  ulAttributeCount,
CK_RV pError 
) [static]

Definition at line 52 of file bsession.c.

{
  return nss_builtins_FindObjectsInit(fwSession, pTemplate, ulAttributeCount, pError);
}

Here is the call graph for this function:

Here is the caller graph for this function:

NSS_IMPLEMENT NSSCKMDSession* nss_builtins_CreateSession ( NSSCKFWSession *  fwSession,
CK_RV pError 
)

Definition at line 69 of file bsession.c.

{
  NSSArena *arena;
  NSSCKMDSession *rv;

  arena = NSSCKFWSession_GetArena(fwSession, pError);
  if( (NSSArena *)NULL == arena ) {
    return (NSSCKMDSession *)NULL;
  }

  rv = nss_ZNEW(arena, NSSCKMDSession);
  if( (NSSCKMDSession *)NULL == rv ) {
    *pError = CKR_HOST_MEMORY;
    return (NSSCKMDSession *)NULL;
  }

  /* 
   * rv was zeroed when allocated, so we only 
   * need to set the non-zero members.
   */

  rv->etc = (void *)fwSession;
  /* rv->Close */
  /* rv->GetDeviceError */
  /* rv->Login */
  /* rv->Logout */
  /* rv->InitPIN */
  /* rv->SetPIN */
  /* rv->GetOperationStateLen */
  /* rv->GetOperationState */
  /* rv->SetOperationState */
  /* rv->CreateObject */
  /* rv->CopyObject */
  rv->FindObjectsInit = builtins_mdSession_FindObjectsInit;
  /* rv->SeedRandom */
  /* rv->GetRandom */
  /* rv->null */

  return rv;
}

Here is the call graph for this function: