NSS_InitReadWrite(dir);
rv = NSS_InitReadWrite(dir); if (rv != SECSuccess) { SECU_PrintPRandOSError(progName); exit(-1); }   p12u_EnableAllCiphers();
P12U_Init(char *dir){    PK11_SetPasswordFunc(SECU_GetModulePassword);    PR_Init(PR_SYSTEM_THREAD, PR_PRIORITY_NORMAL, 1);    NSS_InitReadWrite(dir);    /* setup unicode callback functions */    PORT_SetUCS2_ASCIIConversionFunction(p12u_ucs2_ascii_conversion_function);    PORT_SetUCS4_UTF8ConversionFunction(sec_port_ucs4_utf8_conversion_function);    PORT_SetUCS2_UTF8ConversionFunction(sec_port_ucs2_utf8_conversion_function);    return 0;}