1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 12:02:05 +01:00

Don't hardcode "SunX509" as key algorithm

in XMPPTCPConnection. Instead use the default algorithm.

Fixes SMACK-771.
This commit is contained in:
Florian Schmaus 2017-07-02 18:30:53 +02:00
parent 3d032298a5
commit 685edde308

View file

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