Repository navigation
Conversation
Follow-up to 3e14d67 libssh2#2444 Follow-up to 99f9353 libssh2#2443
There was a problem hiding this comment.
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/offto the build options string based onLIBSSH2_KEX_SHA1_ENABLE. - Add
MAC-SHA1:on/offto the build options string based onLIBSSH2_HMAC_SHA1_ENABLE. - Minor CI script tweak to the legacy-options
cflagsstring 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.
libssh2_build_options()libssh2_build_options()
There was a problem hiding this comment.
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-1is misleading: it’s controlled byLIBSSH2_NO_DEPRECATED, which disables/enables deprecated APIs in general (not a specific "API 1"). Sincelibssh2_build_options()is a public, parseable output string, it’s better to avoid an unexplained-1suffix that consumers may interpret as a versioned/leveled concept.
"deprecated-API-1:"
There was a problem hiding this comment.
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 keydeprecated-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:"
Follow-up to 3e14d67 #2444
Follow-up to 99f9353 #2443
Follow-up to 2673970 #2178