Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Android compatibility #189

Closed
wants to merge 1 commit into from

Conversation

yincrash
Copy link

Fixes #188 by removing ECDSA signatures in the AndroidConfig.
Add SpongyCastle as the default security provider.

@hierynomus
Copy link
Owner

This is not complete. If somebody would have called upon SecurityUtils before loading the AndroidConfig, it would break.

@yincrash
Copy link
Author

Whoops. I'll fix it and add a test.

@hierynomus hierynomus closed this Sep 30, 2016
@hierynomus
Copy link
Owner

Fixed this.

@willemw12
Copy link

Is this fixed? The changes have not been merged. There is no:

.... SecurityUtils.setSecurityProvider("SC"); ...

in AndroidConfig.java.

@hierynomus
Copy link
Owner

Correct, The call to SecurityUtils.registerSecurityProvider("org.spongycastle...."); in AndroidConfig does that for you. See https://github.com/hierynomus/sshj/blob/master/src/main/java/net/schmizz/sshj/common/SecurityUtils.java#L73

So yes, this should be fixed. Unless you've found an issue :)

@willemw12
Copy link

I could only make SSHJ+SpongyCastle work after temporarily changing isBouncyCastleRegistered() in SecurityUtils.java, from:

return BOUNCY_CASTLE.equals(securityProvider);

into:

return BOUNCY_CASTLE.equals(securityProvider) || "SC".equals(securityProvider);

@hierynomus
Copy link
Owner

@willemw12 Can you create a new issue for that?

@willemw12
Copy link

@hierynomus: See #308.

@hierynomus
Copy link
Owner

Thanks @willemw12 Will fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

#136 / #134 (version 0.10) broke android support
3 participants