Back to index

lightning-sunbird  0.9+nobinonly
Functions
nssckfw.h File Reference
#include "nssbaset.h"
#include "nssckt.h"
#include "nssckfwt.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

NSS_EXTERN NSSCKMDInstance * NSSCKFWInstance_GetMDInstance (NSSCKFWInstance *fwInstance)
NSS_EXTERN NSSArena * NSSCKFWInstance_GetArena (NSSCKFWInstance *fwInstance, CK_RV *pError)
NSS_EXTERN CK_BBOOL NSSCKFWInstance_MayCreatePthreads (NSSCKFWInstance *fwInstance)
NSS_EXTERN NSSCKFWMutex * NSSCKFWInstance_CreateMutex (NSSCKFWInstance *fwInstance, NSSArena *arena, CK_RV *pError)
NSS_EXTERN NSSUTF8NSSCKFWInstance_GetConfigurationData (NSSCKFWInstance *fwInstance)
NSS_EXTERN CK_C_INITIALIZE_ARGS_PTR NSSCKFWInstance_GetInitArgs (NSSCKFWInstance *fwInstance)
NSS_EXTERN NSSCKMDSlot * NSSCKFWSlot_GetMDSlot (NSSCKFWSlot *fwSlot)
NSS_EXTERN NSSCKFWInstance * NSSCKFWSlot_GetFWInstance (NSSCKFWSlot *fwSlot)
NSS_EXTERN NSSCKMDInstance * NSSCKFWSlot_GetMDInstance (NSSCKFWSlot *fwSlot)
NSS_EXTERN NSSCKMDToken * NSSCKFWToken_GetMDToken (NSSCKFWToken *fwToken)
NSS_EXTERN NSSArena * NSSCKFWToken_GetArena (NSSCKFWToken *fwToken, CK_RV *pError)
NSS_EXTERN NSSCKFWSlot * NSSCKFWToken_GetFWSlot (NSSCKFWToken *fwToken)
NSS_EXTERN NSSCKMDSlot * NSSCKFWToken_GetMDSlot (NSSCKFWToken *fwToken)
NSS_EXTERN CK_STATE NSSCKFWSession_GetSessionState (NSSCKFWToken *fwToken)
NSS_EXTERN NSSCKMDMechanism * NSSCKFWMechanism_GetMDMechanism (NSSCKFWMechanism *fwMechanism)
NSS_EXTERN NSSItem * NSSCKFWMechanism_GetParameter (NSSCKFWMechanism *fwMechanism)
NSS_EXTERN NSSCKMDSession * NSSCKFWSession_GetMDSession (NSSCKFWSession *fwSession)
NSS_EXTERN NSSArena * NSSCKFWSession_GetArena (NSSCKFWSession *fwSession, CK_RV *pError)
NSS_EXTERN CK_RV NSSCKFWSession_CallNotification (NSSCKFWSession *fwSession, CK_NOTIFICATION event)
NSS_EXTERN CK_BBOOL NSSCKFWSession_IsRWSession (NSSCKFWSession *fwSession)
NSS_EXTERN CK_BBOOL NSSCKFWSession_IsSO (NSSCKFWSession *fwSession)
NSS_EXTERN NSSCKMDObject * NSSCKFWObject_GetMDObject (NSSCKFWObject *fwObject)
NSS_EXTERN NSSArena * NSSCKFWObject_GetArena (NSSCKFWObject *fwObject, CK_RV *pError)
NSS_EXTERN CK_BBOOL NSSCKFWObject_IsTokenObject (NSSCKFWObject *fwObject)
NSS_EXTERN CK_ULONG NSSCKFWObject_GetAttributeCount (NSSCKFWObject *fwObject, CK_RV *pError)
NSS_EXTERN CK_RV NSSCKFWObject_GetAttributeTypes (NSSCKFWObject *fwObject, CK_ATTRIBUTE_TYPE_PTR typeArray, CK_ULONG ulCount)
NSS_EXTERN CK_ULONG NSSCKFWObject_GetAttributeSize (NSSCKFWObject *fwObject, CK_ATTRIBUTE_TYPE attribute, CK_RV *pError)
NSS_EXTERN NSSItem * NSSCKFWObject_GetAttribute (NSSCKFWObject *fwObject, CK_ATTRIBUTE_TYPE attribute, NSSItem *itemOpt, NSSArena *arenaOpt, CK_RV *pError)
NSS_EXTERN CK_ULONG NSSCKFWObject_GetObjectSize (NSSCKFWObject *fwObject, CK_RV *pError)
NSS_EXTERN NSSCKMDFindObjects * NSSCKFWFindObjects_GetMDFindObjects (NSSCKFWFindObjects *)
NSS_EXTERN CK_RV NSSCKFWMutex_Destroy (NSSCKFWMutex *mutex)
NSS_EXTERN CK_RV NSSCKFWMutex_Lock (NSSCKFWMutex *mutex)
NSS_EXTERN CK_RV NSSCKFWMutex_Unlock (NSSCKFWMutex *mutex)

Function Documentation

NSS_EXTERN NSSCKMDFindObjects* NSSCKFWFindObjects_GetMDFindObjects ( NSSCKFWFindObjects *  )

Definition at line 396 of file find.c.

{
#ifdef DEBUG
  if( CKR_OK != nssCKFWFindObjects_verifyPointer(fwFindObjects) ) {
    return (NSSCKMDFindObjects *)NULL;
  }
#endif /* DEBUG */

  return nssCKFWFindObjects_GetMDFindObjects(fwFindObjects);
}

Here is the call graph for this function:

NSS_EXTERN NSSCKFWMutex* NSSCKFWInstance_CreateMutex ( NSSCKFWInstance *  fwInstance,
NSSArena *  arena,
CK_RV pError 
)

Definition at line 1310 of file instance.c.

{
#ifdef DEBUG
  if( (CK_RV *)NULL == pError ) {
    return (NSSCKFWMutex *)NULL;
  }

  *pError = nssCKFWInstance_verifyPointer(fwInstance);
  if( CKR_OK != *pError ) {
    return (NSSCKFWMutex *)NULL;
  }
#endif /* DEBUG */

  return nssCKFWInstance_CreateMutex(fwInstance, arena, pError);
}

Here is the call graph for this function:

Here is the caller graph for this function:

NSS_EXTERN NSSArena* NSSCKFWInstance_GetArena ( NSSCKFWInstance *  fwInstance,
CK_RV pError 
)

Definition at line 1266 of file instance.c.

{
#ifdef DEBUG
  if( (CK_RV *)NULL == pError ) {
    return (NSSArena *)NULL;
  }

  *pError = nssCKFWInstance_verifyPointer(fwInstance);
  if( CKR_OK != *pError ) {
    return (NSSArena *)NULL;
  }
#endif /* DEBUG */

  return nssCKFWInstance_GetArena(fwInstance, pError);
}

Here is the call graph for this function:

Here is the caller graph for this function:

NSS_EXTERN NSSUTF8* NSSCKFWInstance_GetConfigurationData ( NSSCKFWInstance *  fwInstance)

Definition at line 1336 of file instance.c.

{
#ifdef DEBUG
  if( CKR_OK != nssCKFWInstance_verifyPointer(fwInstance) ) {
    return (NSSUTF8 *)NULL;
  }
#endif /* DEBUG */

  return nssCKFWInstance_GetConfigurationData(fwInstance);
}

Here is the call graph for this function:

Definition at line 1355 of file instance.c.

{
#ifdef DEBUG
  if( CKR_OK != nssCKFWInstance_verifyPointer(fwInstance) ) {
    return (CK_C_INITIALIZE_ARGS_PTR)NULL;
  }
#endif /* DEBUG */

  return nssCKFWInstance_GetInitArgs(fwInstance);
}

Here is the call graph for this function:

NSS_EXTERN NSSCKMDInstance* NSSCKFWInstance_GetMDInstance ( NSSCKFWInstance *  fwInstance)

Definition at line 1247 of file instance.c.

{
#ifdef DEBUG
  if( CKR_OK != nssCKFWInstance_verifyPointer(fwInstance) ) {
    return (NSSCKMDInstance *)NULL;
  }
#endif /* DEBUG */

  return nssCKFWInstance_GetMDInstance(fwInstance);
}

Here is the call graph for this function:

NSS_EXTERN CK_BBOOL NSSCKFWInstance_MayCreatePthreads ( NSSCKFWInstance *  fwInstance)

Definition at line 1291 of file instance.c.

{
#ifdef DEBUG
  if( CKR_OK != nssCKFWInstance_verifyPointer(fwInstance) ) {
    return CK_FALSE;
  }
#endif /* DEBUG */

  return nssCKFWInstance_MayCreatePthreads(fwInstance);
}

Here is the call graph for this function:

NSS_EXTERN NSSCKMDMechanism* NSSCKFWMechanism_GetMDMechanism ( NSSCKFWMechanism *  fwMechanism)
NSS_EXTERN NSSItem* NSSCKFWMechanism_GetParameter ( NSSCKFWMechanism *  fwMechanism)
NSS_EXTERN CK_RV NSSCKFWMutex_Destroy ( NSSCKFWMutex *  mutex)

Definition at line 261 of file mutex.c.

{
#ifdef DEBUG
  CK_RV rv = nssCKFWMutex_verifyPointer(mutex);
  if( CKR_OK != rv ) {
    return rv;
  }
#endif /* DEBUG */
  
  return nssCKFWMutex_Destroy(mutex);
}

Here is the call graph for this function:

Here is the caller graph for this function:

NSS_EXTERN CK_RV NSSCKFWMutex_Lock ( NSSCKFWMutex *  mutex)

Definition at line 281 of file mutex.c.

{
#ifdef DEBUG
  CK_RV rv = nssCKFWMutex_verifyPointer(mutex);
  if( CKR_OK != rv ) {
    return rv;
  }
#endif /* DEBUG */
  
  return nssCKFWMutex_Lock(mutex);
}

Here is the call graph for this function:

Here is the caller graph for this function:

NSS_EXTERN CK_RV NSSCKFWMutex_Unlock ( NSSCKFWMutex *  mutex)

Definition at line 301 of file mutex.c.

{
#ifdef DEBUG
  CK_RV rv = nssCKFWMutex_verifyPointer(mutex);
  if( CKR_OK != rv ) {
    return rv;
  }
#endif /* DEBUG */

  return nssCKFWMutex_Unlock(mutex);
}

Here is the call graph for this function:

Here is the caller graph for this function:

NSS_EXTERN NSSArena* NSSCKFWObject_GetArena ( NSSCKFWObject *  fwObject,
CK_RV pError 
)

Definition at line 881 of file object.c.

{
#ifdef DEBUG
  if( (CK_RV *)NULL == pError ) {
    return (NSSArena *)NULL;
  }

  *pError = nssCKFWObject_verifyPointer(fwObject);
  if( CKR_OK != *pError ) {
    return (NSSArena *)NULL;
  }
#endif /* DEBUG */

  return nssCKFWObject_GetArena(fwObject, pError);
}

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSCKFWObject_GetAttribute ( NSSCKFWObject *  fwObject,
CK_ATTRIBUTE_TYPE  attribute,
NSSItem *  itemOpt,
NSSArena *  arenaOpt,
CK_RV pError 
)

Definition at line 1004 of file object.c.

{
#ifdef DEBUG
  if( (CK_RV *)NULL == pError ) {
    return (NSSItem *)NULL;
  }

  *pError = nssCKFWObject_verifyPointer(fwObject);
  if( CKR_OK != *pError ) {
    return (NSSItem *)NULL;
  }
#endif /* DEBUG */

  return nssCKFWObject_GetAttribute(fwObject, attribute, itemOpt, arenaOpt, pError);
}

Here is the call graph for this function:

NSS_EXTERN CK_ULONG NSSCKFWObject_GetAttributeCount ( NSSCKFWObject *  fwObject,
CK_RV pError 
)

Definition at line 925 of file object.c.

{
#ifdef DEBUG
  if( (CK_RV *)NULL == pError ) {
    return (CK_ULONG)0;
  }

  *pError = nssCKFWObject_verifyPointer(fwObject);
  if( CKR_OK != *pError ) {
    return (CK_ULONG)0;
  }
#endif /* DEBUG */

  return nssCKFWObject_GetAttributeCount(fwObject, pError);
}

Here is the call graph for this function:

NSS_EXTERN CK_ULONG NSSCKFWObject_GetAttributeSize ( NSSCKFWObject *  fwObject,
CK_ATTRIBUTE_TYPE  attribute,
CK_RV pError 
)

Definition at line 978 of file object.c.

{
#ifdef DEBUG
  if( (CK_RV *)NULL == pError ) {
    return (CK_ULONG)0;
  }

  *pError = nssCKFWObject_verifyPointer(fwObject);
  if( CKR_OK != *pError ) {
    return (CK_ULONG)0;
  }
#endif /* DEBUG */

  return nssCKFWObject_GetAttributeSize(fwObject, attribute, pError);
}

Here is the call graph for this function:

NSS_EXTERN CK_RV NSSCKFWObject_GetAttributeTypes ( NSSCKFWObject *  fwObject,
CK_ATTRIBUTE_TYPE_PTR  typeArray,
CK_ULONG  ulCount 
)

Definition at line 950 of file object.c.

{
#ifdef DEBUG
  CK_RV error = CKR_OK;

  error = nssCKFWObject_verifyPointer(fwObject);
  if( CKR_OK != error ) {
    return error;
  }

  if( (CK_ATTRIBUTE_TYPE_PTR)NULL == typeArray ) {
    return CKR_ARGUMENTS_BAD;
  }
#endif /* DEBUG */

  return nssCKFWObject_GetAttributeTypes(fwObject, typeArray, ulCount);
}

Here is the call graph for this function:

NSS_EXTERN NSSCKMDObject* NSSCKFWObject_GetMDObject ( NSSCKFWObject *  fwObject)

Definition at line 862 of file object.c.

{
#ifdef DEBUG
  if( CKR_OK != nssCKFWObject_verifyPointer(fwObject) ) {
    return (NSSCKMDObject *)NULL;
  }
#endif /* DEBUG */

  return nssCKFWObject_GetMDObject(fwObject);
}

Here is the call graph for this function:

NSS_EXTERN CK_ULONG NSSCKFWObject_GetObjectSize ( NSSCKFWObject *  fwObject,
CK_RV pError 
)

Definition at line 1032 of file object.c.

{
#ifdef DEBUG
  if( (CK_RV *)NULL == pError ) {
    return (CK_ULONG)0;
  }

  *pError = nssCKFWObject_verifyPointer(fwObject);
  if( CKR_OK != *pError ) {
    return (CK_ULONG)0;
  }
#endif /* DEBUG */

  return nssCKFWObject_GetObjectSize(fwObject, pError);
}

Here is the call graph for this function:

NSS_EXTERN CK_BBOOL NSSCKFWObject_IsTokenObject ( NSSCKFWObject *  fwObject)

Definition at line 906 of file object.c.

{
#ifdef DEBUG
  if( CKR_OK != nssCKFWObject_verifyPointer(fwObject) ) {
    return CK_FALSE;
  }
#endif /* DEBUG */

  return nssCKFWObject_IsTokenObject(fwObject);
}

Here is the call graph for this function:

NSS_EXTERN CK_RV NSSCKFWSession_CallNotification ( NSSCKFWSession *  fwSession,
CK_NOTIFICATION  event 
)

Definition at line 1910 of file session.c.

{
#ifdef DEBUG
  CK_RV error = CKR_OK;

  error = nssCKFWSession_verifyPointer(fwSession);
  if( CKR_OK != error ) {
    return error;
  }
#endif /* DEBUG */

  return nssCKFWSession_CallNotification(fwSession, event);
}

Here is the call graph for this function:

NSS_EXTERN NSSArena* NSSCKFWSession_GetArena ( NSSCKFWSession *  fwSession,
CK_RV pError 
)

Definition at line 1884 of file session.c.

{
#ifdef DEBUG
  if( (CK_RV *)NULL == pError ) {
    return (NSSArena *)NULL;
  }

  *pError = nssCKFWSession_verifyPointer(fwSession);
  if( CKR_OK != *pError ) {
    return (NSSArena *)NULL;
  }
#endif /* DEBUG */

  return nssCKFWSession_GetArena(fwSession, pError);
}

Here is the call graph for this function:

NSS_EXTERN NSSCKMDSession* NSSCKFWSession_GetMDSession ( NSSCKFWSession *  fwSession)

Definition at line 1864 of file session.c.

{
#ifdef DEBUG
  if( CKR_OK != nssCKFWSession_verifyPointer(fwSession) ) {
    return (NSSCKMDSession *)NULL;
  }
#endif /* DEBUG */

  return nssCKFWSession_GetMDSession(fwSession);
}

Here is the call graph for this function:

NSS_EXTERN CK_STATE NSSCKFWSession_GetSessionState ( NSSCKFWToken *  fwToken)

Definition at line 1861 of file token.c.

{
#ifdef DEBUG
  if( CKR_OK != nssCKFWToken_verifyPointer(fwToken) ) {
    return CKS_RO_PUBLIC_SESSION;
  }
#endif /* DEBUG */

  return nssCKFWToken_GetSessionState(fwToken);
}

Here is the call graph for this function:

NSS_EXTERN CK_BBOOL NSSCKFWSession_IsRWSession ( NSSCKFWSession *  fwSession)

Definition at line 1934 of file session.c.

{
#ifdef DEBUG
  if( CKR_OK != nssCKFWSession_verifyPointer(fwSession) ) {
    return CK_FALSE;
  }
#endif /* DEBUG */

  return nssCKFWSession_IsRWSession(fwSession);
}

Here is the call graph for this function:

NSS_EXTERN CK_BBOOL NSSCKFWSession_IsSO ( NSSCKFWSession *  fwSession)

Definition at line 1954 of file session.c.

{
#ifdef DEBUG
  if( CKR_OK != nssCKFWSession_verifyPointer(fwSession) ) {
    return CK_FALSE;
  }
#endif /* DEBUG */

  return nssCKFWSession_IsSO(fwSession);
}

Here is the call graph for this function:

NSS_EXTERN NSSCKFWInstance* NSSCKFWSlot_GetFWInstance ( NSSCKFWSlot *  fwSlot)

Definition at line 728 of file slot.c.

{
#ifdef DEBUG
  if( CKR_OK != nssCKFWSlot_verifyPointer(fwSlot) ) {
    return (NSSCKFWInstance *)NULL;
  }
#endif /* DEBUG */

  return nssCKFWSlot_GetFWInstance(fwSlot);
}

Here is the call graph for this function:

NSS_EXTERN NSSCKMDInstance* NSSCKFWSlot_GetMDInstance ( NSSCKFWSlot *  fwSlot)

Definition at line 748 of file slot.c.

{
#ifdef DEBUG
  if( CKR_OK != nssCKFWSlot_verifyPointer(fwSlot) ) {
    return (NSSCKMDInstance *)NULL;
  }
#endif /* DEBUG */

  return nssCKFWSlot_GetMDInstance(fwSlot);
}

Here is the call graph for this function:

NSS_EXTERN NSSCKMDSlot* NSSCKFWSlot_GetMDSlot ( NSSCKFWSlot *  fwSlot)

Definition at line 708 of file slot.c.

{
#ifdef DEBUG
  if( CKR_OK != nssCKFWSlot_verifyPointer(fwSlot) ) {
    return (NSSCKMDSlot *)NULL;
  }
#endif /* DEBUG */

  return nssCKFWSlot_GetMDSlot(fwSlot);
}

Here is the call graph for this function:

NSS_EXTERN NSSArena* NSSCKFWToken_GetArena ( NSSCKFWToken *  fwToken,
CK_RV pError 
)

Definition at line 1795 of file token.c.

{
#ifdef DEBUG
  if( (CK_RV *)NULL == pError ) {
    return (NSSArena *)NULL;
  }

  if( CKR_OK != nssCKFWToken_verifyPointer(fwToken) ) {
    *pError = CKR_ARGUMENTS_BAD;
    return (NSSArena *)NULL;
  }
#endif /* DEBUG */

  return nssCKFWToken_GetArena(fwToken, pError);
}

Here is the call graph for this function:

NSS_EXTERN NSSCKFWSlot* NSSCKFWToken_GetFWSlot ( NSSCKFWToken *  fwToken)

Definition at line 1821 of file token.c.

{
#ifdef DEBUG
  if( CKR_OK != nssCKFWToken_verifyPointer(fwToken) ) {
    return (NSSCKFWSlot *)NULL;
  }
#endif /* DEBUG */

  return nssCKFWToken_GetFWSlot(fwToken);
}

Here is the call graph for this function:

NSS_EXTERN NSSCKMDSlot* NSSCKFWToken_GetMDSlot ( NSSCKFWToken *  fwToken)

Definition at line 1841 of file token.c.

{
#ifdef DEBUG
  if( CKR_OK != nssCKFWToken_verifyPointer(fwToken) ) {
    return (NSSCKMDSlot *)NULL;
  }
#endif /* DEBUG */

  return nssCKFWToken_GetMDSlot(fwToken);
}

Here is the call graph for this function:

NSS_EXTERN NSSCKMDToken* NSSCKFWToken_GetMDToken ( NSSCKFWToken *  fwToken)

Definition at line 1775 of file token.c.

{
#ifdef DEBUG
  if( CKR_OK != nssCKFWToken_verifyPointer(fwToken) ) {
    return (NSSCKMDToken *)NULL;
  }
#endif /* DEBUG */

  return nssCKFWToken_GetMDToken(fwToken);
}

Here is the call graph for this function: