1
0
Derivar 0

Don't hardcode "SunX509" as key algorithm

in XMPPTCPConnection. Instead use the default algorithm.

Fixes SMACK-771.
Este cometimento está contido em:
Florian Schmaus 2017-07-02 18:30:53 +02:00
ascendente 3d032298a5
cometimento 685edde308
1 ficheiros modificados com 2 adições e 1 eliminações

Ver ficheiro

@ -745,7 +745,8 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
}
if (ks != null) {
KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509");
String keyManagerFactoryAlgorithm = KeyManagerFactory.getDefaultAlgorithm();
KeyManagerFactory kmf = KeyManagerFactory.getInstance(keyManagerFactoryAlgorithm);
try {
if (pcb == null) {
kmf.init(ks, null);