Fix 93364: SSLSocket.setCipherPolicy needs to be called before using SSL
git-svn-id: svn://10.0.0.236/trunk@100276 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
3295f2ac61
commit
e0488b83ec
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user