Document which NSS APIs can be called before NSS initialization and/or after NSS shutdown

RESOLVED INACTIVE

Status

NSS
Libraries
RESOLVED INACTIVE
5 years ago
22 hours ago

People

(Reporter: briansmith, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

By default, no NSS API should be used before NSS is initialized or after NSS is shut down. But, we should guarantee that SECItem API, at least, is free to be used at any time.

I suggest the following list (taken from freebl_hash.def and nss.def):

NSSLOW_Init;
NSSLOW_Shutdown;
NSSLOWHASH_Length;
NSSLOWHASH_Begin;
NSSLOWHASH_Destroy;
NSSLOWHASH_End;
NSSLOWHASH_NewContext;
NSSLOWHASH_Update;

ATOB_AsciiToData;
BTOA_ConvertItemToAscii;
BTOA_DataToAscii;
NSS_Init;
NSS_Initialize;
NSS_InitReadWrite;
NSS_NoDB_Init;
NSS_Shutdown;
NSS_VersionCheck;
PORT_Alloc;
PORT_Free;
PORT_GetError;
PORT_SetError;
PORT_SetUCS4_UTF8ConversionFunction;
PORT_SetUCS2_UTF8ConversionFunction;
PORT_SetUCS2_ASCIIConversionFunction;
SECITEM_CopyItem;
SECITEM_DupItem;
SECITEM_FreeItem;
SECITEM_ZfreeItem;
NSSRWLock_Destroy;
NSSRWLock_HaveWriteLock;
NSSRWLock_LockRead;
NSSRWLock_LockWrite;
NSSRWLock_New;
NSSRWLock_UnlockRead;
NSSRWLock_UnlockWrite;
NSS_PutEnv;
PORT_ArenaAlloc;
PORT_ArenaZAlloc;
PORT_FreeArena;
PORT_NewArena;
PORT_Realloc;
PORT_ZAlloc;
PORT_ZFree;
SECITEM_CompareItem;
ATOB_ConvertAsciiToItem;
PORT_ArenaGrow;
PORT_ArenaMark;
PORT_ArenaRelease;
PORT_ArenaStrdup;
PORT_ArenaUnmark;
PORT_UCS2_ASCIIConversion;
PORT_UCS2_UTF8Conversion;
SECITEM_AllocItem;
NSSBase64Decoder_Create;
NSSBase64Decoder_Destroy;
NSSBase64Decoder_Update;
NSSBase64Encoder_Create;
NSSBase64Encoder_Destroy;
NSSBase64Encoder_Update;
NSSBase64_DecodeBuffer;   # from Stan
NSSBase64_EncodeItem;   # from Stan
PORT_Strdup;
SECITEM_ItemsAreEqual;
SECITEM_ArenaDupItem;
NSS_IsInitialized;
NSS_RegisterShutdown;
NSS_UnregisterShutdown;
NSS_InitWithMerge;
NSS_InitContext;
NSS_ShutdownContext;
NSS_GetVersion;
Blocks: 928456

Comment 1

22 hours ago
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Last Resolved: 22 hours ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.