Skip to content

refactor: Use string-based encryption APIs in UnityTransport#2238

Merged
simon-lemay-unity merged 4 commits intodevelopfrom
refactor/use-new-encryption-apis
Oct 6, 2022
Merged

refactor: Use string-based encryption APIs in UnityTransport#2238
simon-lemay-unity merged 4 commits intodevelopfrom
refactor/use-new-encryption-apis

Conversation

@simon-lemay-unity
Copy link
Copy Markdown
Contributor

Now that UTP 1.3 is the official dependency of NGO, we can make use of its new string-based secure settings. These are basically the exact same thing as the previous ones, except they accept strings instead of fixed strings. This PR modifies the UnityTransport code to make use of these new APIs, simplifying the code a little since fixed strings can be a bit cumbersome to work with.

This PR also adds missing XML documentation in UnityTransport and SecretsLoaderHelper.

Also as a minor modification, the exception throw when trying to use secure WebSockets with Relay has been removed. This will be entirely handled inside UTP starting in 2.0.0-exp.8, so there won't be any need to add anything to NGO.

Changelog

N/A

Testing and Documentation

  • No tests have been added.
  • No documentation changes or additions were necessary.

@simon-lemay-unity simon-lemay-unity enabled auto-merge (squash) October 6, 2022 16:15
@simon-lemay-unity simon-lemay-unity merged commit 8b2a8b7 into develop Oct 6, 2022
@simon-lemay-unity simon-lemay-unity deleted the refactor/use-new-encryption-apis branch October 6, 2022 17:16
jakobbbb pushed a commit to GooseGirlGames/com.unity.netcode.gameobjects that referenced this pull request Feb 22, 2023
…echnologies#2238)

* Add missing XML documentation

* Use string-based secure APIs from UTP

Co-authored-by: ashwini <36935028+ashwinimurt@users.noreply.github.com>
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.

3 participants