Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsspki.h File Reference
#include "nssdevt.h"
#include "nsspkit.h"
#include "nsspki1.h"
#include "base.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

PR_BEGIN_EXTERN_C NSS_EXTERN
PRStatus 
NSSCertificate_Destroy (NSSCertificate *c)
NSS_EXTERN PRStatus NSSCertificate_DeleteStoredObject (NSSCertificate *c, NSSCallback *uhh)
NSS_EXTERN PRStatus NSSCertificate_Validate (NSSCertificate *c, NSSTime *timeOpt, NSSUsage *usage, NSSPolicies *policiesOpt)
NSS_EXTERN void ** NSSCertificate_ValidateCompletely (NSSCertificate *c, NSSTime *timeOpt, NSSUsage *usage, NSSPolicies *policiesOpt, void **rvOpt, PRUint32 rvLimit, NSSArena *arenaOpt)
NSS_EXTERN PRStatus NSSCertificate_ValidateAndDiscoverUsagesAndPolicies (NSSCertificate *c, NSSTime **notBeforeOutOpt, NSSTime **notAfterOutOpt, void *allowedUsages, void *disallowedUsages, void *allowedPolicies, void *disallowedPolicies, NSSArena *arenaOpt)
NSS_EXTERN NSSDERNSSCertificate_Encode (NSSCertificate *c, NSSDER *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSCertificate ** NSSCertificate_BuildChain (NSSCertificate *c, NSSTime *timeOpt, NSSUsage *usage, NSSPolicies *policiesOpt, NSSCertificate **rvOpt, PRUint32 rvLimit, NSSArena *arenaOpt, PRStatus *statusOpt, NSSTrustDomain *td, NSSCryptoContext *cc)
NSS_EXTERN NSSTrustDomain * NSSCertificate_GetTrustDomain (NSSCertificate *c)
NSS_EXTERN NSSToken * NSSCertificate_GetToken (NSSCertificate *c, PRStatus *statusOpt)
NSS_EXTERN NSSSlot * NSSCertificate_GetSlot (NSSCertificate *c, PRStatus *statusOpt)
NSS_EXTERN NSSModule * NSSCertificate_GetModule (NSSCertificate *c, PRStatus *statusOpt)
NSS_EXTERN NSSItem * NSSCertificate_Encrypt (NSSCertificate *c, NSSAlgorithmAndParameters *apOpt, NSSItem *data, NSSTime *timeOpt, NSSUsage *usage, NSSPolicies *policiesOpt, NSSCallback *uhh, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN PRStatus NSSCertificate_Verify (NSSCertificate *c, NSSAlgorithmAndParameters *apOpt, NSSItem *data, NSSItem *signature, NSSTime *timeOpt, NSSUsage *usage, NSSPolicies *policiesOpt, NSSCallback *uhh)
NSS_EXTERN NSSItem * NSSCertificate_VerifyRecover (NSSCertificate *c, NSSAlgorithmAndParameters *apOpt, NSSItem *signature, NSSTime *timeOpt, NSSUsage *usage, NSSPolicies *policiesOpt, NSSCallback *uhh, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSItem * NSSCertificate_WrapSymmetricKey (NSSCertificate *c, NSSAlgorithmAndParameters *apOpt, NSSSymmetricKey *keyToWrap, NSSTime *timeOpt, NSSUsage *usage, NSSPolicies *policiesOpt, NSSCallback *uhh, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSCryptoContext * NSSCertificate_CreateCryptoContext (NSSCertificate *c, NSSAlgorithmAndParameters *apOpt, NSSTime *timeOpt, NSSUsage *usage, NSSPolicies *policiesOpt, NSSCallback *uhh)
NSS_EXTERN NSSPublicKey * NSSCertificate_GetPublicKey (NSSCertificate *c)
NSS_EXTERN NSSPrivateKey * NSSCertificate_FindPrivateKey (NSSCertificate *c, NSSCallback *uhh)
NSS_EXTERN PRBool NSSCertificate_IsPrivateKeyAvailable (NSSCertificate *c, NSSCallback *uhh, PRStatus *statusOpt)
NSS_EXTERN PRBool NSSUserCertificate_IsStillPresent (NSSUserCertificate *uc, PRStatus *statusOpt)
NSS_EXTERN NSSItem * NSSUserCertificate_Decrypt (NSSUserCertificate *uc, NSSAlgorithmAndParameters *apOpt, NSSItem *data, NSSTime *timeOpt, NSSUsage *usage, NSSPolicies *policiesOpt, NSSCallback *uhh, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSItem * NSSUserCertificate_Sign (NSSUserCertificate *uc, NSSAlgorithmAndParameters *apOpt, NSSItem *data, NSSTime *timeOpt, NSSUsage *usage, NSSPolicies *policiesOpt, NSSCallback *uhh, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSItem * NSSUserCertificate_SignRecover (NSSUserCertificate *uc, NSSAlgorithmAndParameters *apOpt, NSSItem *data, NSSTime *timeOpt, NSSUsage *usage, NSSPolicies *policiesOpt, NSSCallback *uhh, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSSymmetricKey * NSSUserCertificate_UnwrapSymmetricKey (NSSUserCertificate *uc, NSSAlgorithmAndParameters *apOpt, NSSItem *wrappedKey, NSSTime *timeOpt, NSSUsage *usage, NSSPolicies *policiesOpt, NSSCallback *uhh, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSSymmetricKey * NSSUserCertificate_DeriveSymmetricKey (NSSUserCertificate *uc, NSSCertificate *c, NSSAlgorithmAndParameters *apOpt, NSSOID *target, PRUint32 keySizeOpt, NSSOperations operations, NSSCallback *uhh)
NSS_EXTERN PRStatus NSSPrivateKey_Destroy (NSSPrivateKey *vk)
 fgmr -- trust objects
NSS_EXTERN PRStatus NSSPrivateKey_DeleteStoredObject (NSSPrivateKey *vk, NSSCallback *uhh)
NSS_EXTERN PRUint32 NSSPrivateKey_GetSignatureLength (NSSPrivateKey *vk)
NSS_EXTERN PRUint32 NSSPrivateKey_GetPrivateModulusLength (NSSPrivateKey *vk)
NSS_EXTERN PRBool NSSPrivateKey_IsStillPresent (NSSPrivateKey *vk, PRStatus *statusOpt)
NSS_EXTERN NSSItem * NSSPrivateKey_Encode (NSSPrivateKey *vk, NSSAlgorithmAndParameters *ap, NSSItem *passwordOpt, NSSCallback *uhhOpt, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSTrustDomain * NSSPrivateKey_GetTrustDomain (NSSPrivateKey *vk, PRStatus *statusOpt)
NSS_EXTERN NSSToken * NSSPrivateKey_GetToken (NSSPrivateKey *vk)
NSS_EXTERN NSSSlot * NSSPrivateKey_GetSlot (NSSPrivateKey *vk)
NSS_EXTERN NSSModule * NSSPrivateKey_GetModule (NSSPrivateKey *vk)
NSS_EXTERN NSSItem * NSSPrivateKey_Decrypt (NSSPrivateKey *vk, NSSAlgorithmAndParameters *apOpt, NSSItem *encryptedData, NSSCallback *uhh, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSItem * NSSPrivateKey_Sign (NSSPrivateKey *vk, NSSAlgorithmAndParameters *apOpt, NSSItem *data, NSSCallback *uhh, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSItem * NSSPrivateKey_SignRecover (NSSPrivateKey *vk, NSSAlgorithmAndParameters *apOpt, NSSItem *data, NSSCallback *uhh, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSSymmetricKey * NSSPrivateKey_UnwrapSymmetricKey (NSSPrivateKey *vk, NSSAlgorithmAndParameters *apOpt, NSSItem *wrappedKey, NSSCallback *uhh)
NSS_EXTERN NSSSymmetricKey * NSSPrivateKey_DeriveSymmetricKey (NSSPrivateKey *vk, NSSPublicKey *bk, NSSAlgorithmAndParameters *apOpt, NSSOID *target, PRUint32 keySizeOpt, NSSOperations operations, NSSCallback *uhh)
NSS_EXTERN NSSPublicKey * NSSPrivateKey_FindPublicKey (NSSPrivateKey *vk)
NSS_EXTERN NSSCryptoContext * NSSPrivateKey_CreateCryptoContext (NSSPrivateKey *vk, NSSAlgorithmAndParameters *apOpt, NSSCallback *uhh)
NSS_EXTERN NSSCertificate ** NSSPrivateKey_FindCertificates (NSSPrivateKey *vk, NSSCertificate *rvOpt[], PRUint32 maximumOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSCertificate * NSSPrivateKey_FindBestCertificate (NSSPrivateKey *vk, NSSTime *timeOpt, NSSUsage *usageOpt, NSSPolicies *policiesOpt)
NSS_EXTERN PRStatus NSSPublicKey_Destroy (NSSPublicKey *bk)
NSS_EXTERN PRStatus NSSPublicKey_DeleteStoredObject (NSSPublicKey *bk, NSSCallback *uhh)
NSS_EXTERN NSSItem * NSSPublicKey_Encode (NSSPublicKey *bk, NSSAlgorithmAndParameters *ap, NSSCallback *uhhOpt, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSTrustDomain * NSSPublicKey_GetTrustDomain (NSSPublicKey *bk, PRStatus *statusOpt)
NSS_EXTERN NSSToken * NSSPublicKey_GetToken (NSSPublicKey *bk, PRStatus *statusOpt)
NSS_EXTERN NSSSlot * NSSPublicKey_GetSlot (NSSPublicKey *bk, PRStatus *statusOpt)
NSS_EXTERN NSSModule * NSSPublicKey_GetModule (NSSPublicKey *bk, PRStatus *statusOpt)
NSS_EXTERN NSSItem * NSSPublicKey_Encrypt (NSSPublicKey *bk, NSSAlgorithmAndParameters *apOpt, NSSItem *data, NSSCallback *uhh, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN PRStatus NSSPublicKey_Verify (NSSPublicKey *bk, NSSAlgorithmAndParameters *apOpt, NSSItem *data, NSSItem *signature, NSSCallback *uhh)
NSS_EXTERN NSSItem * NSSPublicKey_VerifyRecover (NSSPublicKey *bk, NSSAlgorithmAndParameters *apOpt, NSSItem *signature, NSSCallback *uhh, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSItem * NSSPublicKey_WrapSymmetricKey (NSSPublicKey *bk, NSSAlgorithmAndParameters *apOpt, NSSSymmetricKey *keyToWrap, NSSCallback *uhh, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSCryptoContext * NSSPublicKey_CreateCryptoContext (NSSPublicKey *bk, NSSAlgorithmAndParameters *apOpt, NSSCallback *uhh)
NSS_EXTERN NSSCertificate ** NSSPublicKey_FindCertificates (NSSPublicKey *bk, NSSCertificate *rvOpt[], PRUint32 maximumOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSCertificate * NSSPublicKey_FindBestCertificate (NSSPublicKey *bk, NSSTime *timeOpt, NSSUsage *usageOpt, NSSPolicies *policiesOpt)
NSS_EXTERN NSSPrivateKey * NSSPublicKey_FindPrivateKey (NSSPublicKey *bk, NSSCallback *uhh)
NSS_EXTERN PRStatus NSSSymmetricKey_Destroy (NSSSymmetricKey *mk)
NSS_EXTERN PRStatus NSSSymmetricKey_DeleteStoredObject (NSSSymmetricKey *mk, NSSCallback *uhh)
NSS_EXTERN PRUint32 NSSSymmetricKey_GetKeyLength (NSSSymmetricKey *mk)
NSS_EXTERN PRUint32 NSSSymmetricKey_GetKeyStrength (NSSSymmetricKey *mk)
NSS_EXTERN PRStatus NSSSymmetricKey_IsStillPresent (NSSSymmetricKey *mk)
NSS_EXTERN NSSTrustDomain * NSSSymmetricKey_GetTrustDomain (NSSSymmetricKey *mk, PRStatus *statusOpt)
NSS_EXTERN NSSToken * NSSSymmetricKey_GetToken (NSSSymmetricKey *mk, PRStatus *statusOpt)
NSS_EXTERN NSSSlot * NSSSymmetricKey_GetSlot (NSSSymmetricKey *mk, PRStatus *statusOpt)
NSS_EXTERN NSSModule * NSSSymmetricKey_GetModule (NSSSymmetricKey *mk, PRStatus *statusOpt)
NSS_EXTERN NSSItem * NSSSymmetricKey_Encrypt (NSSSymmetricKey *mk, NSSAlgorithmAndParameters *apOpt, NSSItem *data, NSSCallback *uhh, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSItem * NSSSymmetricKey_Decrypt (NSSSymmetricKey *mk, NSSAlgorithmAndParameters *apOpt, NSSItem *encryptedData, NSSCallback *uhh, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSItem * NSSSymmetricKey_Sign (NSSSymmetricKey *mk, NSSAlgorithmAndParameters *apOpt, NSSItem *data, NSSCallback *uhh, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSItem * NSSSymmetricKey_SignRecover (NSSSymmetricKey *mk, NSSAlgorithmAndParameters *apOpt, NSSItem *data, NSSCallback *uhh, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN PRStatus NSSSymmetricKey_Verify (NSSSymmetricKey *mk, NSSAlgorithmAndParameters *apOpt, NSSItem *data, NSSItem *signature, NSSCallback *uhh)
NSS_EXTERN NSSItem * NSSSymmetricKey_VerifyRecover (NSSSymmetricKey *mk, NSSAlgorithmAndParameters *apOpt, NSSItem *signature, NSSCallback *uhh, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSItem * NSSSymmetricKey_WrapSymmetricKey (NSSSymmetricKey *wrappingKey, NSSAlgorithmAndParameters *apOpt, NSSSymmetricKey *keyToWrap, NSSCallback *uhh, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSItem * NSSSymmetricKey_WrapPrivateKey (NSSSymmetricKey *wrappingKey, NSSAlgorithmAndParameters *apOpt, NSSPrivateKey *keyToWrap, NSSCallback *uhh, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSSymmetricKey * NSSSymmetricKey_UnwrapSymmetricKey (NSSSymmetricKey *wrappingKey, NSSAlgorithmAndParameters *apOpt, NSSItem *wrappedKey, NSSOID *target, PRUint32 keySizeOpt, NSSOperations operations, NSSCallback *uhh)
NSS_EXTERN NSSPrivateKey * NSSSymmetricKey_UnwrapPrivateKey (NSSSymmetricKey *wrappingKey, NSSAlgorithmAndParameters *apOpt, NSSItem *wrappedKey, NSSUTF8 *labelOpt, NSSItem *keyIDOpt, PRBool persistant, PRBool sensitive, NSSToken *destinationOpt, NSSCallback *uhh)
NSS_EXTERN NSSSymmetricKey * NSSSymmetricKey_DeriveSymmetricKey (NSSSymmetricKey *originalKey, NSSAlgorithmAndParameters *apOpt, NSSOID *target, PRUint32 keySizeOpt, NSSOperations operations, NSSCallback *uhh)
NSS_EXTERN NSSCryptoContext * NSSSymmetricKey_CreateCryptoContext (NSSSymmetricKey *mk, NSSAlgorithmAndParameters *apOpt, NSSCallback *uhh)
NSS_EXTERN NSSTrustDomain * NSSTrustDomain_Create (NSSUTF8 *moduleOpt, NSSUTF8 *uriOpt, NSSUTF8 *opaqueOpt, void *reserved)
NSS_EXTERN PRStatus NSSTrustDomain_Destroy (NSSTrustDomain *td)
NSS_EXTERN PRStatus NSSTrustDomain_SetDefaultCallback (NSSTrustDomain *td, NSSCallback *newCallback, NSSCallback **oldCallbackOpt)
NSS_EXTERN NSSCallback * NSSTrustDomain_GetDefaultCallback (NSSTrustDomain *td, PRStatus *statusOpt)
NSS_EXTERN PRStatus NSSTrustDomain_LoadModule (NSSTrustDomain *td, NSSUTF8 *moduleOpt, NSSUTF8 *uriOpt, NSSUTF8 *opaqueOpt, void *reserved)
NSS_EXTERN PRStatus NSSTrustDomain_DisableToken (NSSTrustDomain *td, NSSToken *token, NSSError why)
NSS_EXTERN PRStatus NSSTrustDomain_EnableToken (NSSTrustDomain *td, NSSToken *token)
NSS_EXTERN PRStatus NSSTrustDomain_IsTokenEnabled (NSSTrustDomain *td, NSSToken *token, NSSError *whyOpt)
NSS_EXTERN NSSSlot * NSSTrustDomain_FindSlotByName (NSSTrustDomain *td, NSSUTF8 *slotName)
NSS_EXTERN NSSToken * NSSTrustDomain_FindTokenByName (NSSTrustDomain *td, NSSUTF8 *tokenName)
NSS_EXTERN NSSToken * NSSTrustDomain_FindTokenBySlotName (NSSTrustDomain *td, NSSUTF8 *slotName)
NSS_EXTERN NSSToken * NSSTrustDomain_FindTokenForAlgorithm (NSSTrustDomain *td, NSSOID *algorithm)
NSS_EXTERN NSSToken * NSSTrustDomain_FindBestTokenForAlgorithms (NSSTrustDomain *td, NSSOID *algorithms[], PRUint32 nAlgorithmsOpt)
NSS_EXTERN PRStatus NSSTrustDomain_Login (NSSTrustDomain *td, NSSCallback *uhhOpt)
NSS_EXTERN PRStatus NSSTrustDomain_Logout (NSSTrustDomain *td)
NSS_EXTERN NSSCertificate * NSSTrustDomain_ImportCertificate (NSSTrustDomain *td, NSSCertificate *c)
NSS_EXTERN NSSCertificate * NSSTrustDomain_ImportPKIXCertificate (NSSTrustDomain *td, struct NSSPKIXCertificateStr *pc)
NSS_EXTERN NSSCertificate * NSSTrustDomain_ImportEncodedCertificate (NSSTrustDomain *td, NSSBER *ber)
NSS_EXTERN NSSCertificate ** NSSTrustDomain_ImportEncodedCertificateChain (NSSTrustDomain *td, NSSBER *ber, NSSCertificate *rvOpt[], PRUint32 maximumOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSPrivateKey * NSSTrustDomain_ImportEncodedPrivateKey (NSSTrustDomain *td, NSSBER *ber, NSSItem *passwordOpt, NSSCallback *uhhOpt, NSSToken *destination)
NSS_EXTERN NSSPublicKey * NSSTrustDomain_ImportEncodedPublicKey (NSSTrustDomain *td, NSSBER *ber)
NSS_EXTERN NSSCertificate * NSSTrustDomain_FindBestCertificateByNickname (NSSTrustDomain *td, NSSUTF8 *name, NSSTime *timeOpt, NSSUsage *usage, NSSPolicies *policiesOpt)
NSS_EXTERN NSSCertificate ** NSSTrustDomain_FindCertificatesByNickname (NSSTrustDomain *td, NSSUTF8 *name, NSSCertificate *rvOpt[], PRUint32 maximumOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSCertificate * NSSTrustDomain_FindCertificateByIssuerAndSerialNumber (NSSTrustDomain *td, NSSDER *issuer, NSSDER *serialNumber)
NSS_EXTERN NSSCertificate * NSSTrustDomain_FindBestCertificateBySubject (NSSTrustDomain *td, NSSDER *subject, NSSTime *timeOpt, NSSUsage *usage, NSSPolicies *policiesOpt)
NSS_EXTERN NSSCertificate ** NSSTrustDomain_FindCertificatesBySubject (NSSTrustDomain *td, NSSDER *subject, NSSCertificate *rvOpt[], PRUint32 maximumOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSCertificate * NSSTrustDomain_FindBestCertificateByNameComponents (NSSTrustDomain *td, NSSUTF8 *nameComponents, NSSTime *timeOpt, NSSUsage *usage, NSSPolicies *policiesOpt)
NSS_EXTERN NSSCertificate ** NSSTrustDomain_FindCertificatesByNameComponents (NSSTrustDomain *td, NSSUTF8 *nameComponents, NSSCertificate *rvOpt[], PRUint32 maximumOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSCertificate * NSSTrustDomain_FindCertificateByEncodedCertificate (NSSTrustDomain *td, NSSBER *encodedCertificate)
NSS_EXTERN NSSCertificate * NSSTrustDomain_FindCertificateByEmail (NSSTrustDomain *td, NSSASCII7 *email, NSSTime *timeOpt, NSSUsage *usage, NSSPolicies *policiesOpt)
NSS_EXTERN NSSCertificate ** NSSTrustDomain_FindCertificatesByEmail (NSSTrustDomain *td, NSSASCII7 *email, NSSCertificate *rvOpt[], PRUint32 maximumOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSCertificate * NSSTrustDomain_FindCertificateByOCSPHash (NSSTrustDomain *td, NSSItem *hash)
NSS_EXTERN PRStatusNSSTrustDomain_TraverseCertificates (NSSTrustDomain *td, PRStatus(*callback)(NSSCertificate *c, void *arg), void *arg)
NSS_EXTERN NSSCertificate * NSSTrustDomain_FindBestUserCertificate (NSSTrustDomain *td, NSSTime *timeOpt, NSSUsage *usage, NSSPolicies *policiesOpt)
NSS_EXTERN NSSCertificate ** NSSTrustDomain_FindUserCertificates (NSSTrustDomain *td, NSSTime *timeOpt, NSSUsage *usageOpt, NSSPolicies *policiesOpt, NSSCertificate **rvOpt, PRUint32 rvLimit, NSSArena *arenaOpt)
NSS_EXTERN NSSCertificate * NSSTrustDomain_FindBestUserCertificateForSSLClientAuth (NSSTrustDomain *td, NSSUTF8 *sslHostOpt, NSSDER *rootCAsOpt[], PRUint32 rootCAsMaxOpt, NSSAlgorithmAndParameters *apOpt, NSSPolicies *policiesOpt)
NSS_EXTERN NSSCertificate ** NSSTrustDomain_FindUserCertificatesForSSLClientAuth (NSSTrustDomain *td, NSSUTF8 *sslHostOpt, NSSDER *rootCAsOpt[], PRUint32 rootCAsMaxOpt, NSSAlgorithmAndParameters *apOpt, NSSPolicies *policiesOpt, NSSCertificate **rvOpt, PRUint32 rvLimit, NSSArena *arenaOpt)
NSS_EXTERN NSSCertificate * NSSTrustDomain_FindBestUserCertificateForEmailSigning (NSSTrustDomain *td, NSSASCII7 *signerOpt, NSSASCII7 *recipientOpt, NSSAlgorithmAndParameters *apOpt, NSSPolicies *policiesOpt)
NSS_EXTERN NSSCertificate ** NSSTrustDomain_FindUserCertificatesForEmailSigning (NSSTrustDomain *td, NSSASCII7 *signerOpt, NSSASCII7 *recipientOpt, NSSAlgorithmAndParameters *apOpt, NSSPolicies *policiesOpt, NSSCertificate **rvOpt, PRUint32 rvLimit, NSSArena *arenaOpt)
NSS_EXTERN PRStatus NSSTrustDomain_GenerateKeyPair (NSSTrustDomain *td, NSSAlgorithmAndParameters *ap, NSSPrivateKey **pvkOpt, NSSPublicKey **pbkOpt, PRBool privateKeyIsSensitive, NSSToken *destination, NSSCallback *uhhOpt)
NSS_EXTERN NSSSymmetricKey * NSSTrustDomain_GenerateSymmetricKey (NSSTrustDomain *td, NSSAlgorithmAndParameters *ap, PRUint32 keysize, NSSToken *destination, NSSCallback *uhhOpt)
NSS_EXTERN NSSSymmetricKey * NSSTrustDomain_GenerateSymmetricKeyFromPassword (NSSTrustDomain *td, NSSAlgorithmAndParameters *ap, NSSUTF8 *passwordOpt, NSSToken *destinationOpt, NSSCallback *uhhOpt)
NSS_EXTERN NSSSymmetricKey * NSSTrustDomain_FindSymmetricKeyByAlgorithmAndKeyID (NSSTrustDomain *td, NSSOID *algorithm, NSSItem *keyID, NSSCallback *uhhOpt)
NSS_EXTERN NSSCryptoContext * NSSTrustDomain_CreateCryptoContext (NSSTrustDomain *td, NSSCallback *uhhOpt)
NSS_EXTERN NSSCryptoContext * NSSTrustDomain_CreateCryptoContextForAlgorithm (NSSTrustDomain *td, NSSOID *algorithm)
NSS_EXTERN NSSCryptoContext * NSSTrustDomain_CreateCryptoContextForAlgorithmAndParameters (NSSTrustDomain *td, NSSAlgorithmAndParameters *ap)
NSS_EXTERN PRStatus NSSCryptoContext_Destroy (NSSCryptoContext *cc)
NSS_EXTERN PRStatus NSSCryptoContext_SetDefaultCallback (NSSCryptoContext *cc, NSSCallback *newCallback, NSSCallback **oldCallbackOpt)
NSS_EXTERN NSSCallback * NSSCryptoContext_GetDefaultCallback (NSSCryptoContext *cc, PRStatus *statusOpt)
NSS_EXTERN NSSTrustDomain * NSSCryptoContext_GetTrustDomain (NSSCryptoContext *cc)
NSS_EXTERN NSSCertificate * NSSCryptoContext_FindOrImportCertificate (NSSCryptoContext *cc, NSSCertificate *c)
NSS_EXTERN NSSCertificate * NSSCryptoContext_ImportPKIXCertificate (NSSCryptoContext *cc, struct NSSPKIXCertificateStr *pc)
NSS_EXTERN NSSCertificate * NSSCryptoContext_ImportEncodedCertificate (NSSCryptoContext *cc, NSSBER *ber)
NSS_EXTERN PRStatus NSSCryptoContext_ImportEncodedPKIXCertificateChain (NSSCryptoContext *cc, NSSBER *ber)
NSS_EXTERN NSSCertificate * NSSCryptoContext_FindBestCertificateByNickname (NSSCryptoContext *cc, NSSUTF8 *name, NSSTime *timeOpt, NSSUsage *usage, NSSPolicies *policiesOpt)
NSS_EXTERN NSSCertificate ** NSSCryptoContext_FindCertificatesByNickname (NSSCryptoContext *cc, NSSUTF8 *name, NSSCertificate *rvOpt[], PRUint32 maximumOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSCertificate * NSSCryptoContext_FindCertificateByIssuerAndSerialNumber (NSSCryptoContext *cc, NSSDER *issuer, NSSDER *serialNumber)
NSS_EXTERN NSSCertificate * NSSCryptoContext_FindBestCertificateBySubject (NSSCryptoContext *cc, NSSDER *subject, NSSTime *timeOpt, NSSUsage *usage, NSSPolicies *policiesOpt)
NSS_EXTERN NSSCertificate ** NSSCryptoContext_FindCertificatesBySubject (NSSCryptoContext *cc, NSSDER *subject, NSSCertificate *rvOpt[], PRUint32 maximumOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSCertificate * NSSCryptoContext_FindBestCertificateByNameComponents (NSSCryptoContext *cc, NSSUTF8 *nameComponents, NSSTime *timeOpt, NSSUsage *usage, NSSPolicies *policiesOpt)
NSS_EXTERN NSSCertificate ** NSSCryptoContext_FindCertificatesByNameComponents (NSSCryptoContext *cc, NSSUTF8 *nameComponents, NSSCertificate *rvOpt[], PRUint32 maximumOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSCertificate * NSSCryptoContext_FindCertificateByEncodedCertificate (NSSCryptoContext *cc, NSSBER *encodedCertificate)
NSS_EXTERN NSSCertificate * NSSCryptoContext_FindBestCertificateByEmail (NSSCryptoContext *cc, NSSASCII7 *email, NSSTime *timeOpt, NSSUsage *usage, NSSPolicies *policiesOpt)
NSS_EXTERN NSSCertificate ** NSSCryptoContext_FindCertificatesByEmail (NSSCryptoContext *cc, NSSASCII7 *email, NSSCertificate *rvOpt[], PRUint32 maximumOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSCertificate * NSSCryptoContext_FindCertificateByOCSPHash (NSSCryptoContext *cc, NSSItem *hash)
NSS_EXTERN NSSCertificate * NSSCryptoContext_FindBestUserCertificate (NSSCryptoContext *cc, NSSTime *timeOpt, NSSUsage *usage, NSSPolicies *policiesOpt)
NSS_EXTERN NSSCertificate ** NSSCryptoContext_FindUserCertificates (NSSCryptoContext *cc, NSSTime *timeOpt, NSSUsage *usageOpt, NSSPolicies *policiesOpt, NSSCertificate **rvOpt, PRUint32 rvLimit, NSSArena *arenaOpt)
NSS_EXTERN NSSCertificate * NSSCryptoContext_FindBestUserCertificateForSSLClientAuth (NSSCryptoContext *cc, NSSUTF8 *sslHostOpt, NSSDER *rootCAsOpt[], PRUint32 rootCAsMaxOpt, NSSAlgorithmAndParameters *apOpt, NSSPolicies *policiesOpt)
NSS_EXTERN NSSCertificate ** NSSCryptoContext_FindUserCertificatesForSSLClientAuth (NSSCryptoContext *cc, NSSUTF8 *sslHostOpt, NSSDER *rootCAsOpt[], PRUint32 rootCAsMaxOpt, NSSAlgorithmAndParameters *apOpt, NSSPolicies *policiesOpt, NSSCertificate **rvOpt, PRUint32 rvLimit, NSSArena *arenaOpt)
NSS_EXTERN NSSCertificate * NSSCryptoContext_FindBestUserCertificateForEmailSigning (NSSCryptoContext *cc, NSSASCII7 *signerOpt, NSSASCII7 *recipientOpt, NSSAlgorithmAndParameters *apOpt, NSSPolicies *policiesOpt)
NSS_EXTERN NSSCertificate * NSSCryptoContext_FindUserCertificatesForEmailSigning (NSSCryptoContext *cc, NSSASCII7 *signerOpt, NSSASCII7 *recipientOpt, NSSAlgorithmAndParameters *apOpt, NSSPolicies *policiesOpt, NSSCertificate **rvOpt, PRUint32 rvLimit, NSSArena *arenaOpt)
NSS_EXTERN PRStatus NSSCryptoContext_GenerateKeyPair (NSSCryptoContext *cc, NSSAlgorithmAndParameters *ap, NSSPrivateKey **pvkOpt, NSSPublicKey **pbkOpt, PRBool privateKeyIsSensitive, NSSToken *destination, NSSCallback *uhhOpt)
NSS_EXTERN NSSSymmetricKey * NSSCryptoContext_GenerateSymmetricKey (NSSCryptoContext *cc, NSSAlgorithmAndParameters *ap, PRUint32 keysize, NSSToken *destination, NSSCallback *uhhOpt)
NSS_EXTERN NSSSymmetricKey * NSSCryptoContext_GenerateSymmetricKeyFromPassword (NSSCryptoContext *cc, NSSAlgorithmAndParameters *ap, NSSUTF8 *passwordOpt, NSSToken *destinationOpt, NSSCallback *uhhOpt)
NSS_EXTERN NSSSymmetricKey * NSSCryptoContext_FindSymmetricKeyByAlgorithmAndKeyID (NSSCryptoContext *cc, NSSOID *algorithm, NSSItem *keyID, NSSCallback *uhhOpt)
NSS_EXTERN NSSItem * NSSCryptoContext_Decrypt (NSSCryptoContext *cc, NSSAlgorithmAndParameters *apOpt, NSSItem *encryptedData, NSSCallback *uhhOpt, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN PRStatus NSSCryptoContext_BeginDecrypt (NSSCryptoContext *cc, NSSAlgorithmAndParameters *apOpt, NSSCallback *uhhOpt)
NSS_EXTERN NSSItem * NSSCryptoContext_ContinueDecrypt (NSSCryptoContext *cc, NSSItem *data, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSItem * NSSCryptoContext_FinishDecrypt (NSSCryptoContext *cc, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSItem * NSSCryptoContext_Sign (NSSCryptoContext *cc, NSSAlgorithmAndParameters *apOpt, NSSItem *data, NSSCallback *uhhOpt, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN PRStatus NSSCryptoContext_BeginSign (NSSCryptoContext *cc, NSSAlgorithmAndParameters *apOpt, NSSCallback *uhhOpt)
NSS_EXTERN PRStatus NSSCryptoContext_ContinueSign (NSSCryptoContext *cc, NSSItem *data)
NSS_EXTERN NSSItem * NSSCryptoContext_FinishSign (NSSCryptoContext *cc, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSItem * NSSCryptoContext_SignRecover (NSSCryptoContext *cc, NSSAlgorithmAndParameters *apOpt, NSSItem *data, NSSCallback *uhhOpt, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN PRStatus NSSCryptoContext_BeginSignRecover (NSSCryptoContext *cc, NSSAlgorithmAndParameters *apOpt, NSSCallback *uhhOpt)
NSS_EXTERN NSSItem * NSSCryptoContext_ContinueSignRecover (NSSCryptoContext *cc, NSSItem *data, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSItem * NSSCryptoContext_FinishSignRecover (NSSCryptoContext *cc, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSSymmetricKey * NSSCryptoContext_UnwrapSymmetricKey (NSSCryptoContext *cc, NSSAlgorithmAndParameters *apOpt, NSSItem *wrappedKey, NSSCallback *uhhOpt)
NSS_EXTERN NSSSymmetricKey * NSSCryptoContext_DeriveSymmetricKey (NSSCryptoContext *cc, NSSPublicKey *bk, NSSAlgorithmAndParameters *apOpt, NSSOID *target, PRUint32 keySizeOpt, NSSOperations operations, NSSCallback *uhhOpt)
NSS_EXTERN NSSItem * NSSCryptoContext_Encrypt (NSSCryptoContext *cc, NSSAlgorithmAndParameters *apOpt, NSSItem *data, NSSCallback *uhhOpt, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN PRStatus NSSCryptoContext_BeginEncrypt (NSSCryptoContext *cc, NSSAlgorithmAndParameters *apOpt, NSSCallback *uhhOpt)
NSS_EXTERN NSSItem * NSSCryptoContext_ContinueEncrypt (NSSCryptoContext *cc, NSSItem *data, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSItem * NSSCryptoContext_FinishEncrypt (NSSCryptoContext *cc, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN PRStatus NSSCryptoContext_Verify (NSSCryptoContext *cc, NSSAlgorithmAndParameters *apOpt, NSSItem *data, NSSItem *signature, NSSCallback *uhhOpt)
NSS_EXTERN PRStatus NSSCryptoContext_BeginVerify (NSSCryptoContext *cc, NSSAlgorithmAndParameters *apOpt, NSSItem *signature, NSSCallback *uhhOpt)
NSS_EXTERN PRStatus NSSCryptoContext_ContinueVerify (NSSCryptoContext *cc, NSSItem *data)
NSS_EXTERN PRStatus NSSCryptoContext_FinishVerify (NSSCryptoContext *cc)
NSS_EXTERN NSSItem * NSSCryptoContext_VerifyRecover (NSSCryptoContext *cc, NSSAlgorithmAndParameters *apOpt, NSSItem *signature, NSSCallback *uhhOpt, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN PRStatus NSSCryptoContext_BeginVerifyRecover (NSSCryptoContext *cc, NSSAlgorithmAndParameters *apOpt, NSSCallback *uhhOpt)
NSS_EXTERN NSSItem * NSSCryptoContext_ContinueVerifyRecover (NSSCryptoContext *cc, NSSItem *data, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSItem * NSSCryptoContext_FinishVerifyRecover (NSSCryptoContext *cc, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSItem * NSSCryptoContext_WrapSymmetricKey (NSSCryptoContext *cc, NSSAlgorithmAndParameters *apOpt, NSSSymmetricKey *keyToWrap, NSSCallback *uhhOpt, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSItem * NSSCryptoContext_Digest (NSSCryptoContext *cc, NSSAlgorithmAndParameters *apOpt, NSSItem *data, NSSCallback *uhhOpt, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN PRStatus NSSCryptoContext_BeginDigest (NSSCryptoContext *cc, NSSAlgorithmAndParameters *apOpt, NSSCallback *uhhOpt)
NSS_EXTERN PRStatus NSSCryptoContext_ContinueDigest (NSSCryptoContext *cc, NSSAlgorithmAndParameters *apOpt, NSSItem *item)
NSS_EXTERN NSSItem * NSSCryptoContext_FinishDigest (NSSCryptoContext *cc, NSSItem *rvOpt, NSSArena *arenaOpt)
NSS_EXTERN NSSCryptoContext * NSSCryptoContext_Clone (NSSCryptoContext *cc)

Variables

const NSSError NSS_ERROR_CERTIFICATE_ISSUER_NOT_FOUND

Function Documentation

NSS_EXTERN NSSCertificate** NSSCertificate_BuildChain ( NSSCertificate *  c,
NSSTime *  timeOpt,
NSSUsage *  usage,
NSSPolicies *  policiesOpt,
NSSCertificate **  rvOpt,
PRUint32  rvLimit,
NSSArena *  arenaOpt,
PRStatus statusOpt,
NSSTrustDomain *  td,
NSSCryptoContext *  cc 
)

Definition at line 547 of file certificate.c.

{
    return nssCertificate_BuildChain(c, timeOpt, usage, policiesOpt,
                                     rvOpt, rvLimit, arenaOpt, statusOpt,
                                 td, cc);
}

Here is the call graph for this function:

Here is the caller graph for this function:

NSS_EXTERN NSSCryptoContext* NSSCertificate_CreateCryptoContext ( NSSCertificate *  c,
NSSAlgorithmAndParameters *  apOpt,
NSSTime *  timeOpt,
NSSUsage *  usage,
NSSPolicies *  policiesOpt,
NSSCallback *  uhh 
)

Definition at line 684 of file certificate.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSCertificate_DeleteStoredObject ( NSSCertificate *  c,
NSSCallback *  uhh 
)

Definition at line 252 of file certificate.c.

{
    return nssPKIObject_DeleteStoredObject(&c->object, uhh, PR_TRUE);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 179 of file certificate.c.

Here is the call graph for this function:

Here is the caller graph for this function:

NSS_EXTERN NSSDER* NSSCertificate_Encode ( NSSCertificate *  c,
NSSDER rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 305 of file certificate.c.

{
    /* Item, DER, BER are all typedefs now... */
    return nssItem_Duplicate((NSSItem *)&c->encoding, arenaOpt, rvOpt);
}

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSCertificate_Encrypt ( NSSCertificate *  c,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  data,
NSSTime *  timeOpt,
NSSUsage *  usage,
NSSPolicies *  policiesOpt,
NSSCallback *  uhh,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 617 of file certificate.c.

Here is the call graph for this function:

NSS_EXTERN NSSPrivateKey* NSSCertificate_FindPrivateKey ( NSSCertificate *  c,
NSSCallback *  uhh 
)

Definition at line 735 of file certificate.c.

Here is the call graph for this function:

NSS_EXTERN NSSModule* NSSCertificate_GetModule ( NSSCertificate *  c,
PRStatus statusOpt 
)

Definition at line 608 of file certificate.c.

{
    return (NSSModule *)NULL;
}
NSS_EXTERN NSSPublicKey* NSSCertificate_GetPublicKey ( NSSCertificate *  c)

Definition at line 698 of file certificate.c.

{
#if 0
    CK_ATTRIBUTE pubktemplate[] = {
       { CKA_CLASS,   NULL, 0 },
       { CKA_ID,      NULL, 0 },
       { CKA_SUBJECT, NULL, 0 }
    };
    PRStatus nssrv;
    CK_ULONG count = sizeof(pubktemplate) / sizeof(pubktemplate[0]);
    NSS_CK_SET_ATTRIBUTE_ITEM(pubktemplate, 0, &g_ck_class_pubkey);
    if (c->id.size > 0) {
       /* CKA_ID */
       NSS_CK_ITEM_TO_ATTRIBUTE(&c->id, &pubktemplate[1]);
    } else {
       /* failure, yes? */
       return (NSSPublicKey *)NULL;
    }
    if (c->subject.size > 0) {
       /* CKA_SUBJECT */
       NSS_CK_ITEM_TO_ATTRIBUTE(&c->subject, &pubktemplate[2]);
    } else {
       /* failure, yes? */
       return (NSSPublicKey *)NULL;
    }
    /* Try the cert's token first */
    if (c->token) {
       nssrv = nssToken_FindObjectByTemplate(c->token, pubktemplate, count);
    }
#endif
    /* Try all other key tokens */
    return (NSSPublicKey *)NULL;
}
NSS_EXTERN NSSSlot* NSSCertificate_GetSlot ( NSSCertificate *  c,
PRStatus statusOpt 
)

Definition at line 599 of file certificate.c.

{
    return (NSSSlot *)NULL;
}
NSS_EXTERN NSSToken* NSSCertificate_GetToken ( NSSCertificate *  c,
PRStatus statusOpt 
)

Definition at line 590 of file certificate.c.

{
    return (NSSToken *)NULL;
}
NSS_EXTERN NSSTrustDomain* NSSCertificate_GetTrustDomain ( NSSCertificate *  c)

Definition at line 582 of file certificate.c.

Here is the call graph for this function:

Here is the caller graph for this function:

NSS_EXTERN PRBool NSSCertificate_IsPrivateKeyAvailable ( NSSCertificate *  c,
NSSCallback *  uhh,
PRStatus statusOpt 
)

Definition at line 745 of file certificate.c.

{
    PRBool isUser = PR_FALSE;
    nssCryptokiObject **ip;
    nssCryptokiObject **instances = nssPKIObject_GetInstances(&c->object);
    if (!instances) {
       return PR_FALSE;
    }
    for (ip = instances; *ip; ip++) {
       nssCryptokiObject *instance = *ip;
       if (nssToken_IsPrivateKeyAvailable(instance->token, c, instance)) {
           isUser = PR_TRUE;
       }
    }
    nssCryptokiObjectArray_Destroy(instances);
    return isUser;
}

Here is the call graph for this function:

Here is the caller graph for this function:

NSS_EXTERN PRStatus NSSCertificate_Validate ( NSSCertificate *  c,
NSSTime *  timeOpt,
NSSUsage *  usage,
NSSPolicies *  policiesOpt 
)

Definition at line 261 of file certificate.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSCertificate_ValidateAndDiscoverUsagesAndPolicies ( NSSCertificate *  c,
NSSTime **  notBeforeOutOpt,
NSSTime **  notAfterOutOpt,
void allowedUsages,
void disallowedUsages,
void allowedPolicies,
void disallowedPolicies,
NSSArena *  arenaOpt 
)

Definition at line 288 of file certificate.c.

Here is the call graph for this function:

NSS_EXTERN void** NSSCertificate_ValidateCompletely ( NSSCertificate *  c,
NSSTime *  timeOpt,
NSSUsage *  usage,
NSSPolicies *  policiesOpt,
void **  rvOpt,
PRUint32  rvLimit,
NSSArena *  arenaOpt 
)

Definition at line 273 of file certificate.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSCertificate_Verify ( NSSCertificate *  c,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  data,
NSSItem *  signature,
NSSTime *  timeOpt,
NSSUsage *  usage,
NSSPolicies *  policiesOpt,
NSSCallback *  uhh 
)

Definition at line 634 of file certificate.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSCertificate_VerifyRecover ( NSSCertificate *  c,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  signature,
NSSTime *  timeOpt,
NSSUsage *  usage,
NSSPolicies *  policiesOpt,
NSSCallback *  uhh,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 650 of file certificate.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSCertificate_WrapSymmetricKey ( NSSCertificate *  c,
NSSAlgorithmAndParameters *  apOpt,
NSSSymmetricKey *  keyToWrap,
NSSTime *  timeOpt,
NSSUsage *  usage,
NSSPolicies *  policiesOpt,
NSSCallback *  uhh,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 667 of file certificate.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSCryptoContext_BeginDecrypt ( NSSCryptoContext *  cc,
NSSAlgorithmAndParameters *  apOpt,
NSSCallback *  uhhOpt 
)

Definition at line 655 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSCryptoContext_BeginDigest ( NSSCryptoContext *  cc,
NSSAlgorithmAndParameters *  apOpt,
NSSCallback *  uhhOpt 
)

Definition at line 978 of file cryptocontext.c.

{
    return nssToken_BeginDigest(cc->token, cc->session, apOpt);
}

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSCryptoContext_BeginEncrypt ( NSSCryptoContext *  cc,
NSSAlgorithmAndParameters *  apOpt,
NSSCallback *  uhhOpt 
)

Definition at line 824 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSCryptoContext_BeginSign ( NSSCryptoContext *  cc,
NSSAlgorithmAndParameters *  apOpt,
NSSCallback *  uhhOpt 
)

Definition at line 703 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSCryptoContext_BeginSignRecover ( NSSCryptoContext *  cc,
NSSAlgorithmAndParameters *  apOpt,
NSSCallback *  uhhOpt 
)

Definition at line 749 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSCryptoContext_BeginVerify ( NSSCryptoContext *  cc,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  signature,
NSSCallback *  uhhOpt 
)

Definition at line 871 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSCryptoContext_BeginVerifyRecover ( NSSCryptoContext *  cc,
NSSAlgorithmAndParameters *  apOpt,
NSSCallback *  uhhOpt 
)

Definition at line 916 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSCryptoContext* NSSCryptoContext_Clone ( NSSCryptoContext *  cc)

Definition at line 1013 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSCryptoContext_ContinueDecrypt ( NSSCryptoContext *  cc,
NSSItem *  data,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 666 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSCryptoContext_ContinueDigest ( NSSCryptoContext *  cc,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  item 
)

Definition at line 988 of file cryptocontext.c.

{
       /*
    NSSAlgorithmAndParameters *ap;
    ap = (apOpt) ? apOpt : cc->ap;
    */
       /* why apOpt?  can't change it at this point... */
    return nssToken_ContinueDigest(cc->token, cc->session, item);
}

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSCryptoContext_ContinueEncrypt ( NSSCryptoContext *  cc,
NSSItem *  data,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 835 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSCryptoContext_ContinueSign ( NSSCryptoContext *  cc,
NSSItem *  data 
)

Definition at line 714 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSCryptoContext_ContinueSignRecover ( NSSCryptoContext *  cc,
NSSItem *  data,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 760 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSCryptoContext_ContinueVerify ( NSSCryptoContext *  cc,
NSSItem *  data 
)

Definition at line 883 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSCryptoContext_ContinueVerifyRecover ( NSSCryptoContext *  cc,
NSSItem *  data,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 927 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSCryptoContext_Decrypt ( NSSCryptoContext *  cc,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  encryptedData,
NSSCallback *  uhhOpt,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 641 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSSymmetricKey* NSSCryptoContext_DeriveSymmetricKey ( NSSCryptoContext *  cc,
NSSPublicKey *  bk,
NSSAlgorithmAndParameters *  apOpt,
NSSOID *  target,
PRUint32  keySizeOpt,
NSSOperations  operations,
NSSCallback *  uhhOpt 
)

Definition at line 795 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSCryptoContext_Destroy ( NSSCryptoContext *  cc)

Definition at line 86 of file cryptocontext.c.

{
    PRStatus status = PR_SUCCESS;
    PORT_Assert(cc->certStore);
    if (cc->certStore) {
       status = nssCertificateStore_Destroy(cc->certStore);
       if (status == PR_FAILURE) {
           return status;
       }
    } else {
       status = PR_FAILURE;
    }
    nssArena_Destroy(cc->arena);
    return status;
}

Here is the call graph for this function:

Here is the caller graph for this function:

NSS_EXTERN NSSItem* NSSCryptoContext_Digest ( NSSCryptoContext *  cc,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  data,
NSSCallback *  uhhOpt,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 964 of file cryptocontext.c.

{
    return nssToken_Digest(cc->token, cc->session, apOpt, 
                           data, rvOpt, arenaOpt);
}

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSCryptoContext_Encrypt ( NSSCryptoContext *  cc,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  data,
NSSCallback *  uhhOpt,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 810 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate* NSSCryptoContext_FindBestCertificateByEmail ( NSSCryptoContext *  cc,
NSSASCII7 email,
NSSTime *  timeOpt,
NSSUsage *  usage,
NSSPolicies *  policiesOpt 
)

Definition at line 406 of file cryptocontext.c.

{
    NSSCertificate **certs;
    NSSCertificate *rvCert = NULL;

    PORT_Assert(cc->certStore);
    if (!cc->certStore) {
       return NULL;
    }
    certs = nssCertificateStore_FindCertificatesByEmail(cc->certStore,
                                                        email,
                                                        NULL, 0, NULL);
    if (certs) {
       rvCert = nssCertificateArray_FindBestCertificate(certs,
                                                        timeOpt,
                                                        usage,
                                                        policiesOpt);
       nssCertificateArray_Destroy(certs);
    }
    return rvCert;
}

Here is the call graph for this function:

Here is the caller graph for this function:

NSS_EXTERN NSSCertificate* NSSCryptoContext_FindBestCertificateByNameComponents ( NSSCryptoContext *  cc,
NSSUTF8 nameComponents,
NSSTime *  timeOpt,
NSSUsage *  usage,
NSSPolicies *  policiesOpt 
)

Definition at line 365 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate* NSSCryptoContext_FindBestCertificateByNickname ( NSSCryptoContext *  cc,
NSSUTF8 name,
NSSTime *  timeOpt,
NSSUsage *  usage,
NSSPolicies *  policiesOpt 
)

Definition at line 234 of file cryptocontext.c.

{
    NSSCertificate **certs;
    NSSCertificate *rvCert = NULL;
    PORT_Assert(cc->certStore);
    if (!cc->certStore) {
       return NULL;
    }
    certs = nssCertificateStore_FindCertificatesByNickname(cc->certStore,
                                                           name,
                                                           NULL, 0, NULL);
    if (certs) {
       rvCert = nssCertificateArray_FindBestCertificate(certs,
                                                        timeOpt,
                                                        usage,
                                                        policiesOpt);
       nssCertificateArray_Destroy(certs);
    }
    return rvCert;
}

Here is the call graph for this function:

Here is the caller graph for this function:

NSS_EXTERN NSSCertificate* NSSCryptoContext_FindBestCertificateBySubject ( NSSCryptoContext *  cc,
NSSDER subject,
NSSTime *  timeOpt,
NSSUsage *  usage,
NSSPolicies *  policiesOpt 
)

Definition at line 301 of file cryptocontext.c.

{
    NSSCertificate **certs;
    NSSCertificate *rvCert = NULL;
    PORT_Assert(cc->certStore);
    if (!cc->certStore) {
       return NULL;
    }
    certs = nssCertificateStore_FindCertificatesBySubject(cc->certStore,
                                                          subject,
                                                          NULL, 0, NULL);
    if (certs) {
       rvCert = nssCertificateArray_FindBestCertificate(certs,
                                                        timeOpt,
                                                        usage,
                                                        policiesOpt);
       nssCertificateArray_Destroy(certs);
    }
    return rvCert;
}

Here is the call graph for this function:

Here is the caller graph for this function:

NSS_EXTERN NSSCertificate* NSSCryptoContext_FindBestUserCertificate ( NSSCryptoContext *  cc,
NSSTime *  timeOpt,
NSSUsage *  usage,
NSSPolicies *  policiesOpt 
)

Definition at line 467 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate* NSSCryptoContext_FindBestUserCertificateForEmailSigning ( NSSCryptoContext *  cc,
NSSASCII7 signerOpt,
NSSASCII7 recipientOpt,
NSSAlgorithmAndParameters *  apOpt,
NSSPolicies *  policiesOpt 
)

Definition at line 525 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate* NSSCryptoContext_FindBestUserCertificateForSSLClientAuth ( NSSCryptoContext *  cc,
NSSUTF8 sslHostOpt,
NSSDER rootCAsOpt[],
PRUint32  rootCAsMaxOpt,
NSSAlgorithmAndParameters *  apOpt,
NSSPolicies *  policiesOpt 
)

Definition at line 494 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate* NSSCryptoContext_FindCertificateByEncodedCertificate ( NSSCryptoContext *  cc,
NSSBER encodedCertificate 
)

Definition at line 391 of file cryptocontext.c.

{
    PORT_Assert(cc->certStore);
    if (!cc->certStore) {
       return NULL;
    }
    return nssCertificateStore_FindCertificateByEncodedCertificate(
                                                           cc->certStore,
                                                           encodedCertificate);
}

Here is the call graph for this function:

Here is the caller graph for this function:

NSS_EXTERN NSSCertificate* NSSCryptoContext_FindCertificateByIssuerAndSerialNumber ( NSSCryptoContext *  cc,
NSSDER issuer,
NSSDER serialNumber 
)

Definition at line 284 of file cryptocontext.c.

{
    PORT_Assert(cc->certStore);
    if (!cc->certStore) {
       return NULL;
    }
    return nssCertificateStore_FindCertificateByIssuerAndSerialNumber(
                                                               cc->certStore,
                                                               issuer,
                                                               serialNumber);
}

Here is the call graph for this function:

Here is the caller graph for this function:

NSS_EXTERN NSSCertificate* NSSCryptoContext_FindCertificateByOCSPHash ( NSSCryptoContext *  cc,
NSSItem *  hash 
)

Definition at line 457 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate** NSSCryptoContext_FindCertificatesByEmail ( NSSCryptoContext *  cc,
NSSASCII7 email,
NSSCertificate *  rvOpt[],
PRUint32  maximumOpt,
NSSArena *  arenaOpt 
)

Definition at line 435 of file cryptocontext.c.

{
    NSSCertificate **rvCerts;
    PORT_Assert(cc->certStore);
    if (!cc->certStore) {
       return NULL;
    }
    rvCerts = nssCertificateStore_FindCertificatesByEmail(cc->certStore,
                                                          email,
                                                          rvOpt,
                                                          maximumOpt,
                                                          arenaOpt);
    return rvCerts;
}

Here is the call graph for this function:

NSS_EXTERN NSSCertificate** NSSCryptoContext_FindCertificatesByNameComponents ( NSSCryptoContext *  cc,
NSSUTF8 nameComponents,
NSSCertificate *  rvOpt[],
PRUint32  maximumOpt,
NSSArena *  arenaOpt 
)

Definition at line 378 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate** NSSCryptoContext_FindCertificatesByNickname ( NSSCryptoContext *  cc,
NSSUTF8 name,
NSSCertificate *  rvOpt[],
PRUint32  maximumOpt,
NSSArena *  arenaOpt 
)

Definition at line 262 of file cryptocontext.c.

{
    NSSCertificate **rvCerts;
    PORT_Assert(cc->certStore);
    if (!cc->certStore) {
       return NULL;
    }
    rvCerts = nssCertificateStore_FindCertificatesByNickname(cc->certStore,
                                                             name,
                                                             rvOpt,
                                                             maximumOpt,
                                                             arenaOpt);
    return rvCerts;
}

Here is the call graph for this function:

NSS_EXTERN NSSCertificate** NSSCryptoContext_FindCertificatesBySubject ( NSSCryptoContext *  cc,
NSSDER subject,
NSSCertificate *  rvOpt[],
PRUint32  maximumOpt,
NSSArena *  arenaOpt 
)

Definition at line 351 of file cryptocontext.c.

{
    return nssCryptoContext_FindCertificatesBySubject(cc, subject,
                                                      rvOpt, maximumOpt,
                                                      arenaOpt);
}

Here is the call graph for this function:

Here is the caller graph for this function:

NSS_EXTERN NSSCertificate* NSSCryptoContext_FindOrImportCertificate ( NSSCryptoContext *  cc,
NSSCertificate *  c 
)

Definition at line 136 of file cryptocontext.c.

{
    NSSCertificate *rvCert = NULL;

    PORT_Assert(cc->certStore);
    if (!cc->certStore) {
       nss_SetError(NSS_ERROR_INVALID_ARGUMENT);
       return rvCert;
    }
    rvCert = nssCertificateStore_FindOrAdd(cc->certStore, c);
    if (rvCert == c && c->object.cryptoContext != cc) {
       PORT_Assert(!c->object.cryptoContext);
       c->object.cryptoContext = cc;
    } 
    if (rvCert) {
       /* an NSSCertificate cannot be part of two crypto contexts
       ** simultaneously.  If this assertion fails, then there is 
       ** a serious Stan design flaw.
       */
       PORT_Assert(cc == c->object.cryptoContext);
    }
    return rvCert;
}

Here is the call graph for this function:

Here is the caller graph for this function:

NSS_EXTERN NSSSymmetricKey* NSSCryptoContext_FindSymmetricKeyByAlgorithmAndKeyID ( NSSCryptoContext *  cc,
NSSOID *  algorithm,
NSSItem *  keyID,
NSSCallback *  uhhOpt 
)

Definition at line 624 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate** NSSCryptoContext_FindUserCertificates ( NSSCryptoContext *  cc,
NSSTime *  timeOpt,
NSSUsage *  usageOpt,
NSSPolicies *  policiesOpt,
NSSCertificate **  rvOpt,
PRUint32  rvLimit,
NSSArena *  arenaOpt 
)

Definition at line 479 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate* NSSCryptoContext_FindUserCertificatesForEmailSigning ( NSSCryptoContext *  cc,
NSSASCII7 signerOpt,
NSSASCII7 recipientOpt,
NSSAlgorithmAndParameters *  apOpt,
NSSPolicies *  policiesOpt,
NSSCertificate **  rvOpt,
PRUint32  rvLimit,
NSSArena *  arenaOpt 
)

Definition at line 539 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate** NSSCryptoContext_FindUserCertificatesForSSLClientAuth ( NSSCryptoContext *  cc,
NSSUTF8 sslHostOpt,
NSSDER rootCAsOpt[],
PRUint32  rootCAsMaxOpt,
NSSAlgorithmAndParameters *  apOpt,
NSSPolicies *  policiesOpt,
NSSCertificate **  rvOpt,
PRUint32  rvLimit,
NSSArena *  arenaOpt 
)

Definition at line 508 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSCryptoContext_FinishDecrypt ( NSSCryptoContext *  cc,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 678 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSCryptoContext_FinishDigest ( NSSCryptoContext *  cc,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 1003 of file cryptocontext.c.

{
    return nssToken_FinishDigest(cc->token, cc->session, rvOpt, arenaOpt);
}

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSCryptoContext_FinishEncrypt ( NSSCryptoContext *  cc,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 847 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSCryptoContext_FinishSign ( NSSCryptoContext *  cc,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 724 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSCryptoContext_FinishSignRecover ( NSSCryptoContext *  cc,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 772 of file cryptocontext.c.

Here is the call graph for this function:

Definition at line 893 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSCryptoContext_FinishVerifyRecover ( NSSCryptoContext *  cc,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 939 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSCryptoContext_GenerateKeyPair ( NSSCryptoContext *  cc,
NSSAlgorithmAndParameters *  ap,
NSSPrivateKey **  pvkOpt,
NSSPublicKey **  pbkOpt,
PRBool  privateKeyIsSensitive,
NSSToken *  destination,
NSSCallback *  uhhOpt 
)

Definition at line 583 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSSymmetricKey* NSSCryptoContext_GenerateSymmetricKey ( NSSCryptoContext *  cc,
NSSAlgorithmAndParameters *  ap,
PRUint32  keysize,
NSSToken *  destination,
NSSCallback *  uhhOpt 
)

Definition at line 598 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSSymmetricKey* NSSCryptoContext_GenerateSymmetricKeyFromPassword ( NSSCryptoContext *  cc,
NSSAlgorithmAndParameters *  ap,
NSSUTF8 passwordOpt,
NSSToken *  destinationOpt,
NSSCallback *  uhhOpt 
)

Definition at line 611 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSCallback* NSSCryptoContext_GetDefaultCallback ( NSSCryptoContext *  cc,
PRStatus statusOpt 
)

Definition at line 116 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSTrustDomain* NSSCryptoContext_GetTrustDomain ( NSSCryptoContext *  cc)

Definition at line 126 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate* NSSCryptoContext_ImportEncodedCertificate ( NSSCryptoContext *  cc,
NSSBER ber 
)

Definition at line 174 of file cryptocontext.c.

Here is the call graph for this function:

Definition at line 184 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate* NSSCryptoContext_ImportPKIXCertificate ( NSSCryptoContext *  cc,
struct NSSPKIXCertificateStr *  pc 
)

Definition at line 164 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSCryptoContext_SetDefaultCallback ( NSSCryptoContext *  cc,
NSSCallback *  newCallback,
NSSCallback **  oldCallbackOpt 
)

Definition at line 105 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSCryptoContext_Sign ( NSSCryptoContext *  cc,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  data,
NSSCallback *  uhhOpt,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 689 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSCryptoContext_SignRecover ( NSSCryptoContext *  cc,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  data,
NSSCallback *  uhhOpt,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 735 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSSymmetricKey* NSSCryptoContext_UnwrapSymmetricKey ( NSSCryptoContext *  cc,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  wrappedKey,
NSSCallback *  uhhOpt 
)

Definition at line 783 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSCryptoContext_Verify ( NSSCryptoContext *  cc,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  data,
NSSItem *  signature,
NSSCallback *  uhhOpt 
)

Definition at line 858 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSCryptoContext_VerifyRecover ( NSSCryptoContext *  cc,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  signature,
NSSCallback *  uhhOpt,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 902 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSCryptoContext_WrapSymmetricKey ( NSSCryptoContext *  cc,
NSSAlgorithmAndParameters *  apOpt,
NSSSymmetricKey *  keyToWrap,
NSSCallback *  uhhOpt,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 950 of file cryptocontext.c.

Here is the call graph for this function:

NSS_EXTERN NSSCryptoContext* NSSPrivateKey_CreateCryptoContext ( NSSPrivateKey *  vk,
NSSAlgorithmAndParameters *  apOpt,
NSSCallback *  uhh 
)

Definition at line 229 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSPrivateKey_Decrypt ( NSSPrivateKey *  vk,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  encryptedData,
NSSCallback *  uhh,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 150 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSPrivateKey_DeleteStoredObject ( NSSPrivateKey *  vk,
NSSCallback *  uhh 
)

Definition at line 61 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSSymmetricKey* NSSPrivateKey_DeriveSymmetricKey ( NSSPrivateKey *  vk,
NSSPublicKey *  bk,
NSSAlgorithmAndParameters *  apOpt,
NSSOID *  target,
PRUint32  keySizeOpt,
NSSOperations  operations,
NSSCallback *  uhh 
)

Definition at line 204 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSPrivateKey_Destroy ( NSSPrivateKey *  vk)

fgmr -- trust objects

Definition at line 52 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSPrivateKey_Encode ( NSSPrivateKey *  vk,
NSSAlgorithmAndParameters *  ap,
NSSItem *  passwordOpt,
NSSCallback *  uhhOpt,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 99 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate* NSSPrivateKey_FindBestCertificate ( NSSPrivateKey *  vk,
NSSTime *  timeOpt,
NSSUsage *  usageOpt,
NSSPolicies *  policiesOpt 
)

Definition at line 252 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate** NSSPrivateKey_FindCertificates ( NSSPrivateKey *  vk,
NSSCertificate *  rvOpt[],
PRUint32  maximumOpt,
NSSArena *  arenaOpt 
)

Definition at line 240 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSPublicKey* NSSPrivateKey_FindPublicKey ( NSSPrivateKey *  vk)

Definition at line 219 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSModule* NSSPrivateKey_GetModule ( NSSPrivateKey *  vk)

Definition at line 141 of file asymmkey.c.

Here is the call graph for this function:

Definition at line 80 of file asymmkey.c.

Here is the call graph for this function:

Definition at line 71 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSSlot* NSSPrivateKey_GetSlot ( NSSPrivateKey *  vk)

Definition at line 132 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSToken* NSSPrivateKey_GetToken ( NSSPrivateKey *  vk)

Definition at line 123 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSTrustDomain* NSSPrivateKey_GetTrustDomain ( NSSPrivateKey *  vk,
PRStatus statusOpt 
)

Definition at line 113 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN PRBool NSSPrivateKey_IsStillPresent ( NSSPrivateKey *  vk,
PRStatus statusOpt 
)

Definition at line 89 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSPrivateKey_Sign ( NSSPrivateKey *  vk,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  data,
NSSCallback *  uhh,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 164 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSPrivateKey_SignRecover ( NSSPrivateKey *  vk,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  data,
NSSCallback *  uhh,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 178 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSSymmetricKey* NSSPrivateKey_UnwrapSymmetricKey ( NSSPrivateKey *  vk,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  wrappedKey,
NSSCallback *  uhh 
)

Definition at line 192 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSCryptoContext* NSSPublicKey_CreateCryptoContext ( NSSPublicKey *  bk,
NSSAlgorithmAndParameters *  apOpt,
NSSCallback *  uhh 
)

Definition at line 391 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSPublicKey_DeleteStoredObject ( NSSPublicKey *  bk,
NSSCallback *  uhh 
)

Definition at line 273 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSPublicKey_Destroy ( NSSPublicKey *  bk)

Definition at line 264 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSPublicKey_Encode ( NSSPublicKey *  bk,
NSSAlgorithmAndParameters *  ap,
NSSCallback *  uhhOpt,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 283 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSPublicKey_Encrypt ( NSSPublicKey *  bk,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  data,
NSSCallback *  uhh,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 336 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate* NSSPublicKey_FindBestCertificate ( NSSPublicKey *  bk,
NSSTime *  timeOpt,
NSSUsage *  usageOpt,
NSSPolicies *  policiesOpt 
)

Definition at line 414 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate** NSSPublicKey_FindCertificates ( NSSPublicKey *  bk,
NSSCertificate *  rvOpt[],
PRUint32  maximumOpt,
NSSArena *  arenaOpt 
)

Definition at line 402 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSPrivateKey* NSSPublicKey_FindPrivateKey ( NSSPublicKey *  bk,
NSSCallback *  uhh 
)

Definition at line 426 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSModule* NSSPublicKey_GetModule ( NSSPublicKey *  bk,
PRStatus statusOpt 
)

Definition at line 326 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSSlot* NSSPublicKey_GetSlot ( NSSPublicKey *  bk,
PRStatus statusOpt 
)

Definition at line 316 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSToken* NSSPublicKey_GetToken ( NSSPublicKey *  bk,
PRStatus statusOpt 
)

Definition at line 306 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSTrustDomain* NSSPublicKey_GetTrustDomain ( NSSPublicKey *  bk,
PRStatus statusOpt 
)

Definition at line 296 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSPublicKey_Verify ( NSSPublicKey *  bk,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  data,
NSSItem *  signature,
NSSCallback *  uhh 
)

Definition at line 350 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSPublicKey_VerifyRecover ( NSSPublicKey *  bk,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  signature,
NSSCallback *  uhh,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 363 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSPublicKey_WrapSymmetricKey ( NSSPublicKey *  bk,
NSSAlgorithmAndParameters *  apOpt,
NSSSymmetricKey *  keyToWrap,
NSSCallback *  uhh,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 377 of file asymmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSCryptoContext* NSSSymmetricKey_CreateCryptoContext ( NSSSymmetricKey *  mk,
NSSAlgorithmAndParameters *  apOpt,
NSSCallback *  uhh 
)

Definition at line 291 of file symmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSSymmetricKey_Decrypt ( NSSSymmetricKey *  mk,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  encryptedData,
NSSCallback *  uhh,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 148 of file symmkey.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSSymmetricKey_DeleteStoredObject ( NSSSymmetricKey *  mk,
NSSCallback *  uhh 
)

Definition at line 57 of file symmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSSymmetricKey* NSSSymmetricKey_DeriveSymmetricKey ( NSSSymmetricKey *  originalKey,
NSSAlgorithmAndParameters *  apOpt,
NSSOID *  target,
PRUint32  keySizeOpt,
NSSOperations  operations,
NSSCallback *  uhh 
)

Definition at line 277 of file symmkey.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSSymmetricKey_Destroy ( NSSSymmetricKey *  mk)

Definition at line 48 of file symmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSSymmetricKey_Encrypt ( NSSSymmetricKey *  mk,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  data,
NSSCallback *  uhh,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 134 of file symmkey.c.

Here is the call graph for this function:

Definition at line 67 of file symmkey.c.

Here is the call graph for this function:

Definition at line 76 of file symmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSModule* NSSSymmetricKey_GetModule ( NSSSymmetricKey *  mk,
PRStatus statusOpt 
)

Definition at line 124 of file symmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSSlot* NSSSymmetricKey_GetSlot ( NSSSymmetricKey *  mk,
PRStatus statusOpt 
)

Definition at line 114 of file symmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSToken* NSSSymmetricKey_GetToken ( NSSSymmetricKey *  mk,
PRStatus statusOpt 
)

Definition at line 104 of file symmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSTrustDomain* NSSSymmetricKey_GetTrustDomain ( NSSSymmetricKey *  mk,
PRStatus statusOpt 
)

Definition at line 94 of file symmkey.c.

Here is the call graph for this function:

Definition at line 85 of file symmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSSymmetricKey_Sign ( NSSSymmetricKey *  mk,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  data,
NSSCallback *  uhh,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 162 of file symmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSSymmetricKey_SignRecover ( NSSSymmetricKey *  mk,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  data,
NSSCallback *  uhh,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 176 of file symmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSPrivateKey* NSSSymmetricKey_UnwrapPrivateKey ( NSSSymmetricKey *  wrappingKey,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  wrappedKey,
NSSUTF8 labelOpt,
NSSItem *  keyIDOpt,
PRBool  persistant,
PRBool  sensitive,
NSSToken *  destinationOpt,
NSSCallback *  uhh 
)

Definition at line 260 of file symmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSSymmetricKey* NSSSymmetricKey_UnwrapSymmetricKey ( NSSSymmetricKey *  wrappingKey,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  wrappedKey,
NSSOID *  target,
PRUint32  keySizeOpt,
NSSOperations  operations,
NSSCallback *  uhh 
)

Definition at line 245 of file symmkey.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSSymmetricKey_Verify ( NSSSymmetricKey *  mk,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  data,
NSSItem *  signature,
NSSCallback *  uhh 
)

Definition at line 190 of file symmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSSymmetricKey_VerifyRecover ( NSSSymmetricKey *  mk,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  signature,
NSSCallback *  uhh,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 203 of file symmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSSymmetricKey_WrapPrivateKey ( NSSSymmetricKey *  wrappingKey,
NSSAlgorithmAndParameters *  apOpt,
NSSPrivateKey *  keyToWrap,
NSSCallback *  uhh,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 231 of file symmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSSymmetricKey_WrapSymmetricKey ( NSSSymmetricKey *  wrappingKey,
NSSAlgorithmAndParameters *  apOpt,
NSSSymmetricKey *  keyToWrap,
NSSCallback *  uhh,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 217 of file symmkey.c.

Here is the call graph for this function:

NSS_EXTERN NSSTrustDomain* NSSTrustDomain_Create ( NSSUTF8 moduleOpt,
NSSUTF8 uriOpt,
NSSUTF8 opaqueOpt,
void reserved 
)

Definition at line 65 of file trustdomain.c.

{
    NSSArena *arena;
    NSSTrustDomain *rvTD;
    arena = NSSArena_Create();
    if(!arena) {
       return (NSSTrustDomain *)NULL;
    }
    rvTD = nss_ZNEW(arena, NSSTrustDomain);
    if (!rvTD) {
       goto loser;
    }
    /* protect the token list and the token iterator */
    rvTD->tokensLock = NSSRWLock_New(100, "tokens");
    if (!rvTD->tokensLock) {
       goto loser;
    }
    nssTrustDomain_InitializeCache(rvTD, NSSTRUSTDOMAIN_DEFAULT_CACHE_SIZE);
    rvTD->arena = arena;
    rvTD->refCount = 1;
    rvTD->statusConfig = NULL;
    return rvTD;
loser:
    if (rvTD && rvTD->tokensLock) {
       NSSRWLock_Destroy(rvTD->tokensLock);
    }
    nssArena_Destroy(arena);
    return (NSSTrustDomain *)NULL;
}

Here is the call graph for this function:

NSS_EXTERN NSSCryptoContext* NSSTrustDomain_CreateCryptoContext ( NSSTrustDomain *  td,
NSSCallback *  uhhOpt 
)

Definition at line 1363 of file trustdomain.c.

{
    return nssTrustDomain_CreateCryptoContext(td, uhhOpt);
}

Here is the call graph for this function:

NSS_EXTERN NSSCryptoContext* NSSTrustDomain_CreateCryptoContextForAlgorithm ( NSSTrustDomain *  td,
NSSOID *  algorithm 
)

Definition at line 1372 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSCryptoContext* NSSTrustDomain_CreateCryptoContextForAlgorithmAndParameters ( NSSTrustDomain *  td,
NSSAlgorithmAndParameters *  ap 
)

Definition at line 1382 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSTrustDomain_Destroy ( NSSTrustDomain *  td)

Definition at line 110 of file trustdomain.c.

{
    PRStatus status = PR_SUCCESS;
    if (--td->refCount == 0) {
       /* Destroy each token in the list of tokens */
       if (td->tokens) {
           nssListIterator_Destroy(td->tokens);
           td->tokens = NULL;
       }
       if (td->tokenList) {
           nssList_Clear(td->tokenList, token_destructor);
           nssList_Destroy(td->tokenList);
           td->tokenList = NULL;
       }
       NSSRWLock_Destroy(td->tokensLock);
       td->tokensLock = NULL;
       status = nssTrustDomain_DestroyCache(td);
       if (status == PR_FAILURE) {
           return status;
       }
       /* Destroy the trust domain */
       nssArena_Destroy(td->arena);
    }
    return status;
}

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSTrustDomain_DisableToken ( NSSTrustDomain *  td,
NSSToken *  token,
NSSError  why 
)

Definition at line 230 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSTrustDomain_EnableToken ( NSSTrustDomain *  td,
NSSToken *  token 
)

Definition at line 241 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate* NSSTrustDomain_FindBestCertificateByNameComponents ( NSSTrustDomain *  td,
NSSUTF8 nameComponents,
NSSTime *  timeOpt,
NSSUsage *  usage,
NSSPolicies *  policiesOpt 
)

Definition at line 726 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate* NSSTrustDomain_FindBestCertificateByNickname ( NSSTrustDomain *  td,
NSSUTF8 name,
NSSTime *  timeOpt,
NSSUsage *  usage,
NSSPolicies *  policiesOpt 
)

Definition at line 564 of file trustdomain.c.

{
    return nssTrustDomain_FindBestCertificateByNickname(td,
                                                        name,
                                                        timeOpt,
                                                        usage,
                                                        policiesOpt);
}

Here is the call graph for this function:

NSS_EXTERN NSSCertificate* NSSTrustDomain_FindBestCertificateBySubject ( NSSTrustDomain *  td,
NSSDER subject,
NSSTime *  timeOpt,
NSSUsage *  usage,
NSSPolicies *  policiesOpt 
)

Definition at line 710 of file trustdomain.c.

{
    return nssTrustDomain_FindBestCertificateBySubject(td,
                                                       subject,
                                                       timeOpt,
                                                       usage,
                                                       policiesOpt);
}

Here is the call graph for this function:

NSS_EXTERN NSSToken* NSSTrustDomain_FindBestTokenForAlgorithms ( NSSTrustDomain *  td,
NSSOID *  algorithms[],
PRUint32  nAlgorithmsOpt 
)

Definition at line 316 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate* NSSTrustDomain_FindBestUserCertificate ( NSSTrustDomain *  td,
NSSTime *  timeOpt,
NSSUsage *  usage,
NSSPolicies *  policiesOpt 
)

Definition at line 914 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate* NSSTrustDomain_FindBestUserCertificateForEmailSigning ( NSSTrustDomain *  td,
NSSASCII7 signerOpt,
NSSASCII7 recipientOpt,
NSSAlgorithmAndParameters *  apOpt,
NSSPolicies *  policiesOpt 
)

Definition at line 972 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate* NSSTrustDomain_FindBestUserCertificateForSSLClientAuth ( NSSTrustDomain *  td,
NSSUTF8 sslHostOpt,
NSSDER rootCAsOpt[],
PRUint32  rootCAsMaxOpt,
NSSAlgorithmAndParameters *  apOpt,
NSSPolicies *  policiesOpt 
)

Definition at line 941 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate* NSSTrustDomain_FindCertificateByEmail ( NSSTrustDomain *  td,
NSSASCII7 email,
NSSTime *  timeOpt,
NSSUsage *  usage,
NSSPolicies *  policiesOpt 
)
NSS_EXTERN NSSCertificate* NSSTrustDomain_FindCertificateByEncodedCertificate ( NSSTrustDomain *  td,
NSSBER encodedCertificate 
)

Definition at line 870 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate* NSSTrustDomain_FindCertificateByIssuerAndSerialNumber ( NSSTrustDomain *  td,
NSSDER issuer,
NSSDER serialNumber 
)

Definition at line 831 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate* NSSTrustDomain_FindCertificateByOCSPHash ( NSSTrustDomain *  td,
NSSItem *  hash 
)

Definition at line 904 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate** NSSTrustDomain_FindCertificatesByEmail ( NSSTrustDomain *  td,
NSSASCII7 email,
NSSCertificate *  rvOpt[],
PRUint32  maximumOpt,
NSSArena *  arenaOpt 
)

Definition at line 891 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate** NSSTrustDomain_FindCertificatesByNameComponents ( NSSTrustDomain *  td,
NSSUTF8 nameComponents,
NSSCertificate *  rvOpt[],
PRUint32  maximumOpt,
NSSArena *  arenaOpt 
)

Definition at line 739 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate** NSSTrustDomain_FindCertificatesByNickname ( NSSTrustDomain *  td,
NSSUTF8 name,
NSSCertificate *  rvOpt[],
PRUint32  maximumOpt,
NSSArena *  arenaOpt 
)

Definition at line 523 of file trustdomain.c.

{
    return nssTrustDomain_FindCertificatesByNickname(td,
                                                     name,
                                                     rvOpt,
                                                     maximumOpt,
                                                     arenaOpt);
}

Here is the call graph for this function:

NSS_EXTERN NSSCertificate** NSSTrustDomain_FindCertificatesBySubject ( NSSTrustDomain *  td,
NSSDER subject,
NSSCertificate *  rvOpt[],
PRUint32  maximumOpt,
NSSArena *  arenaOpt 
)

Definition at line 669 of file trustdomain.c.

{
    return nssTrustDomain_FindCertificatesBySubject(td, 
                                                    subject,
                                                    rvOpt,
                                                    maximumOpt,
                                                    arenaOpt);
}

Here is the call graph for this function:

NSS_EXTERN NSSSlot* NSSTrustDomain_FindSlotByName ( NSSTrustDomain *  td,
NSSUTF8 slotName 
)

Definition at line 262 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSSymmetricKey* NSSTrustDomain_FindSymmetricKeyByAlgorithmAndKeyID ( NSSTrustDomain *  td,
NSSOID *  algorithm,
NSSItem *  keyID,
NSSCallback *  uhhOpt 
)

Definition at line 1342 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSToken* NSSTrustDomain_FindTokenByName ( NSSTrustDomain *  td,
NSSUTF8 tokenName 
)

Definition at line 272 of file trustdomain.c.

{
    PRStatus nssrv;
    NSSUTF8 *myName;
    NSSToken *tok = NULL;
    NSSRWLock_LockRead(td->tokensLock);
    for (tok  = (NSSToken *)nssListIterator_Start(td->tokens);
         tok != (NSSToken *)NULL;
         tok  = (NSSToken *)nssListIterator_Next(td->tokens))
    {
       if (nssToken_IsPresent(tok)) {
           myName = nssToken_GetName(tok);
           if (nssUTF8_Equal(tokenName, myName, &nssrv)) break;
       }
    }
    nssListIterator_Finish(td->tokens);
    NSSRWLock_UnlockRead(td->tokensLock);
    return tok;
}

Here is the call graph for this function:

NSS_EXTERN NSSToken* NSSTrustDomain_FindTokenBySlotName ( NSSTrustDomain *  td,
NSSUTF8 slotName 
)

Definition at line 296 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSToken* NSSTrustDomain_FindTokenForAlgorithm ( NSSTrustDomain *  td,
NSSOID *  algorithm 
)

Definition at line 306 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate** NSSTrustDomain_FindUserCertificates ( NSSTrustDomain *  td,
NSSTime *  timeOpt,
NSSUsage *  usageOpt,
NSSPolicies *  policiesOpt,
NSSCertificate **  rvOpt,
PRUint32  rvLimit,
NSSArena *  arenaOpt 
)

Definition at line 926 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate** NSSTrustDomain_FindUserCertificatesForEmailSigning ( NSSTrustDomain *  td,
NSSASCII7 signerOpt,
NSSASCII7 recipientOpt,
NSSAlgorithmAndParameters *  apOpt,
NSSPolicies *  policiesOpt,
NSSCertificate **  rvOpt,
PRUint32  rvLimit,
NSSArena *  arenaOpt 
)

Definition at line 986 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate** NSSTrustDomain_FindUserCertificatesForSSLClientAuth ( NSSTrustDomain *  td,
NSSUTF8 sslHostOpt,
NSSDER rootCAsOpt[],
PRUint32  rootCAsMaxOpt,
NSSAlgorithmAndParameters *  apOpt,
NSSPolicies *  policiesOpt,
NSSCertificate **  rvOpt,
PRUint32  rvLimit,
NSSArena *  arenaOpt 
)

Definition at line 955 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSTrustDomain_GenerateKeyPair ( NSSTrustDomain *  td,
NSSAlgorithmAndParameters *  ap,
NSSPrivateKey **  pvkOpt,
NSSPublicKey **  pbkOpt,
PRBool  privateKeyIsSensitive,
NSSToken *  destination,
NSSCallback *  uhhOpt 
)

Definition at line 1301 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSSymmetricKey* NSSTrustDomain_GenerateSymmetricKey ( NSSTrustDomain *  td,
NSSAlgorithmAndParameters *  ap,
PRUint32  keysize,
NSSToken *  destination,
NSSCallback *  uhhOpt 
)

Definition at line 1316 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSSymmetricKey* NSSTrustDomain_GenerateSymmetricKeyFromPassword ( NSSTrustDomain *  td,
NSSAlgorithmAndParameters *  ap,
NSSUTF8 passwordOpt,
NSSToken *  destinationOpt,
NSSCallback *  uhhOpt 
)

Definition at line 1329 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSCallback* NSSTrustDomain_GetDefaultCallback ( NSSTrustDomain *  td,
PRStatus statusOpt 
)

Definition at line 209 of file trustdomain.c.

{
    return nssTrustDomain_GetDefaultCallback(td, statusOpt);
}

Here is the call graph for this function:

NSS_EXTERN NSSCertificate* NSSTrustDomain_ImportCertificate ( NSSTrustDomain *  td,
NSSCertificate *  c 
)

Definition at line 346 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate* NSSTrustDomain_ImportEncodedCertificate ( NSSTrustDomain *  td,
NSSBER ber 
)

Definition at line 367 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate** NSSTrustDomain_ImportEncodedCertificateChain ( NSSTrustDomain *  td,
NSSBER ber,
NSSCertificate *  rvOpt[],
PRUint32  maximumOpt,
NSSArena *  arenaOpt 
)

Definition at line 377 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSPrivateKey* NSSTrustDomain_ImportEncodedPrivateKey ( NSSTrustDomain *  td,
NSSBER ber,
NSSItem *  passwordOpt,
NSSCallback *  uhhOpt,
NSSToken *  destination 
)

Definition at line 390 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSPublicKey* NSSTrustDomain_ImportEncodedPublicKey ( NSSTrustDomain *  td,
NSSBER ber 
)

Definition at line 403 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN NSSCertificate* NSSTrustDomain_ImportPKIXCertificate ( NSSTrustDomain *  td,
struct NSSPKIXCertificateStr *  pc 
)

Definition at line 356 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSTrustDomain_IsTokenEnabled ( NSSTrustDomain *  td,
NSSToken *  token,
NSSError whyOpt 
)

Definition at line 251 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSTrustDomain_LoadModule ( NSSTrustDomain *  td,
NSSUTF8 moduleOpt,
NSSUTF8 uriOpt,
NSSUTF8 opaqueOpt,
void reserved 
)

Definition at line 218 of file trustdomain.c.

{
    return PR_FAILURE;
}
NSS_EXTERN PRStatus NSSTrustDomain_Login ( NSSTrustDomain *  td,
NSSCallback *  uhhOpt 
)

Definition at line 327 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSTrustDomain_Logout ( NSSTrustDomain *  td)

Definition at line 337 of file trustdomain.c.

Here is the call graph for this function:

NSS_EXTERN PRStatus NSSTrustDomain_SetDefaultCallback ( NSSTrustDomain *  td,
NSSCallback *  newCallback,
NSSCallback **  oldCallbackOpt 
)

Definition at line 183 of file trustdomain.c.

{
    if (oldCallbackOpt) {
       *oldCallbackOpt = td->defaultCallback;
    }
    td->defaultCallback = newCallback;
    return PR_SUCCESS;
}
NSS_EXTERN PRStatus* NSSTrustDomain_TraverseCertificates ( NSSTrustDomain *  td,
PRStatus(*)(NSSCertificate *c, void *arg callback,
void arg 
)

Definition at line 1010 of file trustdomain.c.

{
    PRStatus status;
    NSSToken *token = NULL;
    NSSSlot **slots = NULL;
    NSSSlot **slotp;
    nssPKIObjectCollection *collection = NULL;
    nssPKIObjectCallback pkiCallback;
    nssUpdateLevel updateLevel;
    NSSCertificate **cached = NULL;
    nssList *certList;

    certList = nssList_Create(NULL, PR_FALSE);
    if (!certList) return NULL;
    (void *)nssTrustDomain_GetCertsFromCache(td, certList);
    cached = get_certs_from_list(certList);
    collection = nssCertificateCollection_Create(td, cached);
    nssCertificateArray_Destroy(cached);
    nssList_Destroy(certList);
    if (!collection) {
       return (PRStatus *)NULL;
    }
    /* obtain the current set of active slots in the trust domain */
    slots = nssTrustDomain_GetActiveSlots(td, &updateLevel);
    if (!slots) {
       goto loser;
    }
    /* iterate over the slots */
    for (slotp = slots; *slotp; slotp++) {
       /* get the token for the slot, if present */
       token = nssSlot_GetToken(*slotp);
       if (token) {
           nssSession *session;
           nssTokenSearchType tokenOnly = nssTokenSearchType_TokenOnly;
           /* get a session for the token */
           session = nssTrustDomain_GetSessionForToken(td, token);
           if (!session) {
              nssToken_Destroy(token);
              goto loser;
           }
           /* perform the traversal */
           status = nssToken_TraverseCertificates(token,
                                                  session,
                                                  tokenOnly,
                                                  collector,
                                                  collection);
           nssToken_Destroy(token);
       }
    }

    /* Traverse the collection */
    pkiCallback.func.cert = callback;
    pkiCallback.arg = arg;
    status = nssPKIObjectCollection_Traverse(collection, &pkiCallback);
    /* clean up */
    nssPKIObjectCollection_Destroy(collection);
    nssSlotArray_Destroy(slots);
    return NULL;
loser:
    if (slots) {
       nssSlotArray_Destroy(slots);
    }
    if (collection) {
       nssPKIObjectCollection_Destroy(collection);
    }
    return NULL;
}

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSUserCertificate_Decrypt ( NSSUserCertificate uc,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  data,
NSSTime *  timeOpt,
NSSUsage *  usage,
NSSPolicies *  policiesOpt,
NSSCallback *  uhh,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 798 of file certificate.c.

Here is the call graph for this function:

NSS_EXTERN NSSSymmetricKey* NSSUserCertificate_DeriveSymmetricKey ( NSSUserCertificate uc,
NSSCertificate *  c,
NSSAlgorithmAndParameters *  apOpt,
NSSOID *  target,
PRUint32  keySizeOpt,
NSSOperations  operations,
NSSCallback *  uhh 
)

Definition at line 866 of file certificate.c.

Here is the call graph for this function:

Definition at line 788 of file certificate.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSUserCertificate_Sign ( NSSUserCertificate uc,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  data,
NSSTime *  timeOpt,
NSSUsage *  usage,
NSSPolicies *  policiesOpt,
NSSCallback *  uhh,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 815 of file certificate.c.

Here is the call graph for this function:

NSS_EXTERN NSSItem* NSSUserCertificate_SignRecover ( NSSUserCertificate uc,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  data,
NSSTime *  timeOpt,
NSSUsage *  usage,
NSSPolicies *  policiesOpt,
NSSCallback *  uhh,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 832 of file certificate.c.

Here is the call graph for this function:

NSS_EXTERN NSSSymmetricKey* NSSUserCertificate_UnwrapSymmetricKey ( NSSUserCertificate uc,
NSSAlgorithmAndParameters *  apOpt,
NSSItem *  wrappedKey,
NSSTime *  timeOpt,
NSSUsage *  usage,
NSSPolicies *  policiesOpt,
NSSCallback *  uhh,
NSSItem *  rvOpt,
NSSArena *  arenaOpt 
)

Definition at line 849 of file certificate.c.

Here is the call graph for this function:


Variable Documentation

Definition at line 87 of file errorval.c.