Changes

Jump to: navigation, search

NSS Shared DB And LINUX

210 bytes added, 15:19, 30 December 2008
Application Programmer's Summary
2. The second exception is applications which want to perform automatic migration of an old NSS database from an old location to the new system location. These applications should initialize NSS with:
rv = NSS_InitMerge“sqlNSS_InitWithMerge("sql:/etc/pki/nssdb”, “”, “”, “”, oldNSSdirectory, uniqueIDForOldDB, nameOfOldDBForPrompt, flags);
The application should then follow the automatic merge instructions in the shared database documentation.
 
(NSS_InitWithMerge() only works if a shared db already exists at the target directory [https://bugzilla.mozilla.org/show_bug.cgi?id=465709 Bug#465709] so it needs to be created first using NSS_Initialize?)
3. The third exception is applications that must have a separately managed environment. Typically these applications would have a mode (probably default) which would open NSS normally, but could be configured to use their own NSS environment. The options to use the system or private environment should not be hard coded in the application, but should be under user/administrator control. Applications of this class would include Server products or test modes of application products (like Firefox profiles). In this mode the application should initialize NSS with it's traditional Init call, passing in the appropriate private database.
16
edits

Navigation menu