Skip to content

version: reflect KEX-SHA1, MAC-SHA1, deprecated APIs in libssh2_build_options() - #2453

Closed
vszakats wants to merge 4 commits into
libssh2:masterfrom
vszakats:vv
Closed

vszakats wants to merge 4 commits into
libssh2:masterfrom
vszakats:vv

Conversation

@vszakats

@vszakats vszakats commented Jul 30, 2026 •

Copy link
Copy Markdown
Member

Follow-up to 3e14d67 #2444
Follow-up to 99f9353 #2443
Follow-up to 2673970 #2178

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

Updates libssh2_build_options() output to explicitly report whether legacy SHA1-based key exchange and MAC algorithms were compiled in, aligning the reported build options with the recent default-disable changes from follow-up PRs (#2443/#2444).

Changes:

  • Add KEX-SHA1:on/off to the build options string based on LIBSSH2_KEX_SHA1_ENABLE.
  • Add MAC-SHA1:on/off to the build options string based on LIBSSH2_HMAC_SHA1_ENABLE.
  • Minor CI script tweak to the legacy-options cflags string formatting (no functional change expected).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
src/version.c Extends the build options string to include explicit KEX-SHA1 and MAC-SHA1 on/off reporting.
.github/workflows/ci.yml Minor adjustment to legacy-options cflags string formatting.

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

@vszakats vszakats changed the title version: reflect KEX-SHA1, MAC-SHA1 in libssh2_build_options() version: reflect KEX-SHA1, MAC-SHA1, deprecated APIs in libssh2_build_options() Jul 30, 2026

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 1 out of 2 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

src/version.c:178

  • The build-options key name deprecated-API-1 is misleading: it’s controlled by LIBSSH2_NO_DEPRECATED, which disables/enables deprecated APIs in general (not a specific "API 1"). Since libssh2_build_options() is a public, parseable output string, it’s better to avoid an unexplained -1 suffix that consumers may interpret as a versioned/leveled concept.
    "deprecated-API-1:"

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 1 out of 2 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

src/version.c:178

  • libssh2_build_options() output key deprecated-API: uses mixed case and a singular form that’s inconsistent with the other non-algorithm keys (e.g., clear-memory:, debug-logging:). Since this is a public, parseable output format, consider using an all-lowercase key for consistency and to reduce consumer parsing surprises.
    "deprecated-API:"

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 1 out of 2 changed files in this pull request and generated no new comments.

@vszakats vszakats closed this in cf107fb Jul 30, 2026
@vszakats
vszakats deleted the vv branch July 30, 2026 12:08
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