Skip to content

Check TLS version support in ElectrumClient#1216

Merged
dpad85 merged 1 commit into
masterfrom
tls-adaptive-version
Nov 18, 2019
Merged

Check TLS version support in ElectrumClient#1216
dpad85 merged 1 commit into
masterfrom
tls-adaptive-version

Conversation

@dpad85
Copy link
Copy Markdown
Member

@dpad85 dpad85 commented Nov 18, 2019

#1160 updated netty, and ElectrumClient now uses TLSv1.3 when using the custom electrum server feature. However mobile devices may not support TLS 1.3 (for android, only from 10/API 29):

As such trying to enable TLSv1.3 in ElectrumClient raises an exception on older Android. It does not gracefully fallback to TLSv1.2 as was expected.

This PR fixes that by checking support beforehand.

@dpad85 dpad85 merged commit f45dc1c into master Nov 18, 2019
@dpad85 dpad85 deleted the tls-adaptive-version branch November 18, 2019 14:24
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.

2 participants