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 RPC secure (TLS) #2424

Merged
merged 3 commits into from
Dec 4, 2019
Merged

Conversation

cryptocode
Copy link
Contributor

@cryptocode cryptocode commented Dec 4, 2019

RPC TLS support broke during some refactorings, as sockets got passed where an ssl stream was expected. To avoid duplicate implementations, read and parse_request are now template functions taking a socket or stream type as argument.

Also noticed that load_certs fails without error logging if cert paths are misconfigured - this ends up in a catch-all in thread_runner. Fixed by catching and logging locally.

Finally, fixed that async_handshake wasn't executed in a strand.

update: Moved implementation to explicit template instantiations, to follow #2425 (thanks @wezrule)

@cryptocode cryptocode added the bug label Dec 4, 2019
@cryptocode cryptocode added this to the V21.0 milestone Dec 4, 2019
@cryptocode cryptocode self-assigned this Dec 4, 2019
wezrule
wezrule previously approved these changes Dec 4, 2019
@cryptocode cryptocode merged commit f7cd523 into nanocurrency:develop Dec 4, 2019
@cryptocode cryptocode deleted the cc-rpc-secure-fixes branch December 4, 2019 15:27
@zhyatt zhyatt added the rpc Changes related to Remote Procedure Calls label Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug rpc Changes related to Remote Procedure Calls
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants