Skip to content

agent: list supported backends in libssh2_build_options() - #2312

Closed
vszakats wants to merge 6 commits into
libssh2:masterfrom
vszakats:agentmore2
Closed

vszakats wants to merge 6 commits into
libssh2:masterfrom
vszakats:agentmore2

Conversation

@vszakats

@vszakats vszakats commented Jul 14, 2026 •

Copy link
Copy Markdown
Member

Internally: make the agent backend guards unique for each backend, make
them contain the backend name. Use them in agent.c, move them to a
separate header and also reuse them from version.c.

Ref: #2285 (comment)
Follow-up to 2673970 #2178

@vszakats
vszakats requested a review from Copilot July 14, 2026 15:48
@vszakats vszakats changed the title agent: make them visible in libssh2_build_options() agent: list supported backends in libssh2_build_options() Jul 14, 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

This PR extends libssh2_build_options() to report which SSH agent backends were compiled in, and centralizes the backend “presence/name” macros into a shared internal header used by both the agent implementation and version/build-options reporting.

Changes:

  • Introduce src/agent.h with per-backend preprocessor guards that also expand to the backend display name.
  • Update src/agent.c to use the new per-backend guards and reuse the backend name macros in the supported-backends table.
  • Update src/version.c (and docs) so libssh2_build_options() includes one agent:<backend> entry per supported backend.

Reviewed changes

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

Show a summary per file
File Description
src/version.c Adds agent:<backend> entries to the build-options string using the new backend macros.
src/Makefile.inc Includes the new internal header in the header list for builds/dist packaging.
src/agent.h New internal header defining backend guards and their human-readable names.
src/agent.c Replaces broad backend guards with per-backend guards and reuses backend-name macros.
docs/libssh2_build_options.md Documents the new agent build-options key and possible values.

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

@vszakats vszakats closed this in 0907309 Jul 14, 2026
@vszakats
vszakats deleted the agentmore2 branch July 14, 2026 16:29
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