mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
Fix 93364: SSLSocket.setCipherPolicy needs to be called before using SSL
This commit is contained in:
parent
3838f20301
commit
4022db02f5
@ -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