Changes

Jump to: navigation, search

NSS Shared DB

88 bytes added, 01:48, 5 February 2008
Mode 2A
Applications can avoid final case of failure by forcing the user to authenticate to softoken using PK11_Authenticate().
<pre> configdir = PR_smprintf("sql:%s",oldconfigdir); rv = NSS_InitReadWrite(configdir); if (rv != SECSuccess) { goto fail; }
slot = PK11_GetInternalKeySlot();  /* optional */ rv = PK11_Authenticate(slot , PR_FALSE, pwArg); if (rv != SECSuccess) { goto fail; } /* database has been updated... */</pre>
====== Mode 3A ======
439
edits

Navigation menu