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 keylog mode not working correctly on certain OpenSSL versions #534

Merged
merged 2 commits into from
Apr 29, 2024

Conversation

AmazingPP
Copy link
Contributor

@AmazingPP AmazingPP commented Apr 28, 2024

Fixes #533

The root cause of the problem was that the offset of the client_random member within the ssl3_state_st structure varies across different OpenSSL versions.

Although the offsets for the ssl3_state_st->client_random member (SSL3_STATE_ST_CLIENT_RANDOM) were already generated for all supported OpenSSL versions, but they were not being utilized correctly.

To solve this issue, the existing SSL3_STATE_ST_CLIENT_RANDOM offsets have been integrated into the code, ensuring that ecapture can accurately retrieve the client_random value from the correct location within the ssl3_state_st structure, regardless of the OpenSSL version being used.

the problem was the `client_random` member having different offsets within the `ssl3_state_st`
structure across various OpenSSL versions

Fixes gojue#533
Copy link
Member

@cfc4n cfc4n left a comment

Choose a reason for hiding this comment

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

isn't the ssl3_state_st structure of the 1.1.0 series like this?

@AmazingPP
Copy link
Contributor Author

isn't the ssl3_state_st structure of the 1.1.0 series like this?

Yes, it's not just a minor difference between 1.1.0 and 1.1.1. The ssl3_state_st structure in the 1.0.2 series is completely different from the 1.1.0 and 1.1.1 series.

@AmazingPP AmazingPP requested a review from cfc4n April 29, 2024 00:48
Copy link
Member

@cfc4n cfc4n left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

@cfc4n cfc4n merged commit 650beff into gojue:master Apr 29, 2024
6 checks passed
@AmazingPP AmazingPP deleted the gh-533 branch April 29, 2024 00:57
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.

Keylog capture not working with OpenSSL 1.1.0
2 participants