Skip to content

openssl: add debug traces to ML-KEM ed25519 KEX codepath - #2259

Closed
vszakats wants to merge 8 commits into
libssh2:masterfrom
vszakats:dbg
Closed

vszakats wants to merge 8 commits into
libssh2:masterfrom
vszakats:dbg

Conversation

@vszakats

@vszakats vszakats commented Jul 8, 2026

Copy link
Copy Markdown
Member

Also enable a success-path debug message in the OpenSSL no-deprecated
job.

Bug: #1644 (comment)
Follow-up tp bc77633
Follow-up to a69fb2a #2092
Follow-up to 8e4c14b #2083
Follow-up to 3ba252e #1644

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR improves OpenSSL Ed25519 verification diagnostics by adding debug traces to ssh2_ed25519_verify() and wiring CI so the OpenSSL-3-no-deprecated job enables the extra ML-KEM debug trace macro.

Changes:

  • Extend ssh2_ed25519_verify() to accept a LIBSSH2_SESSION * for emitting KEX debug traces and log key OpenSSL call outcomes.
  • Update the Ed25519 hostkey verification call site to pass the session through.
  • Enable -DLIBSSH2_DEBUG_MLKEM in the OpenSSL-3-no-deprecated GitHub Actions job to allow the success-path trace.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/openssl.c Adds session-aware debug traces around Ed25519 verify initialization and verification.
src/hostkey.c Passes session into ssh2_ed25519_verify() for logging support.
src/crypto.h Updates the internal Ed25519 verify prototype to include LIBSSH2_SESSION *.
.github/workflows/ci.yml Enables LIBSSH2_DEBUG_MLKEM for the OpenSSL-3-no-deprecated CI job to surface the new trace.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/openssl.c Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

@vszakats vszakats changed the title openssl: add debug traces to ssh2_ed25519_verify() openssl: add debug traces to ML-KEM ed25519 codepath Jul 9, 2026
@vszakats vszakats changed the title openssl: add debug traces to ML-KEM ed25519 codepath openssl: add debug traces to ML-KEM ed25519 KEX codepath Jul 9, 2026
@vszakats vszakats closed this in ca0e2dc Jul 9, 2026
@vszakats
vszakats deleted the dbg branch July 9, 2026 01:22
vszakats added a commit that referenced this pull request Oct 4, 2026
With the issue fixed, the debug/trace code is no longer necessary.

Also:
- GHA: drop tracing targeting FreeBSD, those flaky failures were not
  seen since then.
  Follow-up to 13dcd17 #2227

Ref: #1644 (comment)
Follow-up to 4f2692f #2633
Follow-up to ca0e2dc #2259
Follow-up to 3ba252e #1644

Closes #2651
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.

2 participants