Fix 93364: SSLSocket.setCipherPolicy needs to be called before using SSL

This commit is contained in:
nicolson%netscape.com 2001-08-03 07:01:52 +00:00
parent 3838f20301
commit 4022db02f5

View File

@ -381,6 +381,14 @@ Java_org_mozilla_jss_CryptoManager_initializeAllNative
}
JSS_javaVM = VMs[0];
/*
* Set up policy. We're always domestic now. Thanks to the US Government!
*/
if( NSS_SetDomesticPolicy() != SECSuccess ) {
JSS_throwMsg(env, SECURITY_EXCEPTION, "Unable to set security policy");
goto finish;
}
initialized = PR_TRUE;
finish: