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

openssl: stop duplicate ssl key logging for legacy OpenSSL #13683

Closed
wants to merge 1 commit into from

Conversation

jay
Copy link
Member

@jay jay commented May 17, 2024

  • Don't call the keylog function if it has already logged the key.

For old OpenSSL versions and its forks that do not have support for OpenSSL's keylog callback, libcurl has its own legacy key logging function that logs the TLS 1.2 (and earlier) key (client random + master key) on a single line.

Prior to this change, since e7de80e (not in a release), the legacy key logging function could write the same key line more than once (usually twice) due to some incorrect logic.

Closes #xxxx

- Don't call the keylog function if it has already logged the key.

For old OpenSSL versions and its forks that do not have support for
OpenSSL's keylog callback, libcurl has its own legacy key logging
function that logs the TLS 1.2 (and earlier) key (client random + master
key) on a single line.

Prior to this change, since e7de80e (not in a release), the legacy key
logging function could write the same key line more than once (usually
twice) due to some incorrect logic.

Closes #xxxx
@jay jay added the TLS label May 17, 2024
@jay jay requested review from icing and bagder May 17, 2024 08:03
@jay jay closed this in 02b1437 May 24, 2024
@jay jay deleted the fix_dupe_keylog branch May 24, 2024 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants