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

refactor: introduce tls state manager #52

Merged
merged 6 commits into from
Jan 19, 2024
Merged

Conversation

ainghazal
Copy link
Collaborator

This is the fifth commit in the series of incremental refactoring of the current minivpn tree.

In this commit, we introduce the tlsstate package, which is the layer above the control channel

tlsstate is a service worker that will attempt to do a TLS negotiation (wrapped in a control packet), and then use this secure channel to exchange keys with the OpenVPN server and use these keys for encrypting and decrypting payloads in the data channel.

tlsstate waits for a signal in the NotifyTLS channel and then will start the handshake and the key negotiation.

Reference issue: #47

@ainghazal ainghazal requested a review from bassosimone January 15, 2024 18:10
@ainghazal ainghazal self-assigned this Jan 15, 2024
Copy link
Contributor

@bassosimone bassosimone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐳

@ainghazal ainghazal merged commit dc271ad into ooni:main Jan 19, 2024
@ainghazal ainghazal deleted the refactor-tls branch January 19, 2024 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants