réplica de https://github.com/vanitasvitae/Smack.git
Don't hardcode "SunX509" as key algorithm
in XMPPTCPConnection. Instead use the default algorithm. Fixes SMACK-771.
Este cometimento está contido em:
ascendente
3d032298a5
cometimento
685edde308
|
@ -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);
|
||||
|
|
Carregando…
Criar uma nova questão referindo esta