Back to index

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

Go to the source code of this file.

Functions

static CK_ULONG builtins_mdInstance_GetNSlots (NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance, CK_RV *pError)
static CK_VERSION builtins_mdInstance_GetCryptokiVersion (NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance)
static NSSUTF8builtins_mdInstance_GetManufacturerID (NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance, CK_RV *pError)
static NSSUTF8builtins_mdInstance_GetLibraryDescription (NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance, CK_RV *pError)
static CK_VERSION builtins_mdInstance_GetLibraryVersion (NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance)
static CK_RV builtins_mdInstance_GetSlots (NSSCKMDInstance *mdInstance, NSSCKFWInstance *fwInstance, NSSCKMDSlot *slots[])

Variables

const NSSCKMDInstance nss_builtins_mdInstance

Function Documentation

static CK_VERSION builtins_mdInstance_GetCryptokiVersion ( NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance 
) [static]

Definition at line 67 of file binst.c.

static NSSUTF8* builtins_mdInstance_GetLibraryDescription ( NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance,
CK_RV pError 
) [static]

Definition at line 88 of file binst.c.

static CK_VERSION builtins_mdInstance_GetLibraryVersion ( NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance 
) [static]

Definition at line 99 of file binst.c.

{
  extern const char __nss_builtins_rcsid[];
  extern const char __nss_builtins_sccsid[];
  volatile char c; /* force a reference that won't get optimized away */

  c = __nss_builtins_rcsid[0] + __nss_builtins_sccsid[0];
  return nss_builtins_LibraryVersion;
}
static NSSUTF8* builtins_mdInstance_GetManufacturerID ( NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance,
CK_RV pError 
) [static]

Definition at line 77 of file binst.c.

static CK_ULONG builtins_mdInstance_GetNSlots ( NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance,
CK_RV pError 
) [static]

Definition at line 56 of file binst.c.

{
  return (CK_ULONG)1;
}
static CK_RV builtins_mdInstance_GetSlots ( NSSCKMDInstance *  mdInstance,
NSSCKFWInstance *  fwInstance,
NSSCKMDSlot *  slots[] 
) [static]

Definition at line 114 of file binst.c.

{
  slots[0] = (NSSCKMDSlot *)&nss_builtins_mdSlot;
  return CKR_OK;
}

Variable Documentation

const NSSCKMDInstance nss_builtins_mdInstance