Skip to content

Add support for wasm32 targets#21

Open
HsuJv wants to merge 12 commits intocitronneur:masterfrom
HsuJv:wasm32
Open

Add support for wasm32 targets#21
HsuJv wants to merge 12 commits intocitronneur:masterfrom
HsuJv:wasm32

Conversation

@HsuJv
Copy link
Copy Markdown

@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