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

fix: (*UConn).Read() and Secure Renegotiation #292

Merged
merged 2 commits into from Apr 10, 2024
Merged

Conversation

gaukas
Copy link
Member

@gaukas gaukas commented Apr 10, 2024

Close #291: (*UConn).Read() incorrectly calling (*Conn).Handshake()
Close #284: Secure Renegotiation fails due to #291 and RenegotiationExt was Fake.

Copy `(*Conn).Read` to `(*UConn).Read` and force it use `(*UConn).Handshake`.
Same for `handleRenegotiation` and `handlePostHandshakeMessage`.

Signed-off-by: Gaukas Wang <i@gaukas.wang>
This make sure the renegotiation would work in certain scenarios instead of no scenarios.

Signed-off-by: Gaukas Wang <i@gaukas.wang>
@gaukas gaukas added the bug Unexpected behavior confirmed and should be fixed label Apr 10, 2024
@gaukas gaukas self-assigned this Apr 10, 2024
@gaukas gaukas changed the title fix: (*Conn).Handshake() and Secure Renegotiation fix: (*UConn).Read() and Secure Renegotiation Apr 10, 2024
@gaukas gaukas merged commit e684676 into master Apr 10, 2024
6 checks passed
gaukas added a commit that referenced this pull request Apr 10, 2024
* fix: UConn Read does not trigger correct Handshake

Copy `(*Conn).Read` to `(*UConn).Read` and force it use `(*UConn).Handshake`.
Same for `handleRenegotiation` and `handlePostHandshakeMessage`.

Signed-off-by: Gaukas Wang <i@gaukas.wang>

* update: use VerifyData in RenegotiationInfoExt

This make sure the renegotiation would work in certain scenarios instead of no scenarios.

Signed-off-by: Gaukas Wang <i@gaukas.wang>

---------

Signed-off-by: Gaukas Wang <i@gaukas.wang>
@gaukas gaukas deleted the fix-uconn-renegotiation branch May 2, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected behavior confirmed and should be fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: (*Conn).Handshake() is called upon (*UConn).Read() Secured Renegotiation is not supported
1 participant