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

Add support for wasm32 targets #21

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Conversation

HsuJv
Copy link

@HsuJv HsuJv commented Oct 23, 2022

Since the wasm32 for the browser cannot have crate native-tls, a new trait is added to implement support for the BIO that allows users to encrypt/decrypt io data using their own methods, implementing the same functionality as OpenSSL. (Usually a WebSocket server to help initiate SSL connections)

To avoid blocking in WebSocket, switch all the synchronised API to async ones.

A simple POC is done at https://github.com/HsuJv/webgateway/tree/c6aa71107c57bb6019f9cf8029f715554dbe07bf/webrdp, which has successfully finished the NLA and launched all RDP data (w/o displaying)
poc

I used to have split this feature into three stages (bio support, asycn-io support and wasm32 support), but after all I decide to close the separate PRs and create the bundle one since they are all for the same purpose.

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.

1 participant