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

Upgrade utls version and API to v1.6.7 #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Jovis7
Copy link

@Jovis7 Jovis7 commented Nov 22, 2024

  • https://github.com/getlantern/engineering/issues/1757

  • With new utls, the way we use to get utls.ClientSessionState doesn't work anymore (conn.HandshakeState.Session).
    New utls uses utls.ClientSessionCache to get utls.ClientSessionState.

  • New utls version introduced API utls.ClientSessionState.ResumptionState() and utls.SessionState.Bytes()
    to retrieve session_state and session_ticket in bytes for session serialization.
    (Current serialization fields, version / cipher_suite / master_secret, don't include the private fields to recover complete clientSessionState.)

  • New utls version introduced API utls.ParseSessionState and utls.NewResumptionState to deserialize and recover clientSessionState.

  • Add a new field session_state(bytes) for serialization, and remove version / cipher_suite / master_secret

  • utls uconn.SetSessionState is deprecated in favor of uconn.SetSessionTicketExtension().

@Jovis7 Jovis7 requested a review from hwh33 November 22, 2024 10:44
@Jovis7 Jovis7 changed the title upgrade utls to v1.6.7 Upgrade utls version and API to v1.6.7 Nov 22, 2024
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