Skip to content

Conversation

u3s
Copy link
Contributor

@u3s u3s commented Sep 5, 2025

No description provided.

@u3s u3s self-assigned this Sep 5, 2025
@u3s u3s added the team:PS Assigned to OTP team PS label Sep 5, 2025
Copy link
Contributor

github-actions bot commented Sep 5, 2025

CT Test Results

    2 files     29 suites   19m 7s ⏱️
  481 tests   475 ✅  6 💤 0 ❌
1 686 runs  1 660 ✅ 26 💤 0 ❌

Results for commit 1eba2fc.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@u3s u3s requested a review from IngelaAndin September 8, 2025 10:13
@IngelaAndin
Copy link
Contributor

Why does ssh_file document its callbacks at all, the ones that are documented in ssh_key_api and ssh_client_api. My understanding is that users are no meant to call them directly, so they should not be documented here?!

Copy link
Contributor

@IngelaAndin IngelaAndin left a comment

Choose a reason for hiding this comment

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

See general comment in PR

@u3s
Copy link
Contributor Author

u3s commented Sep 29, 2025

Why does ssh_file document its callbacks at all, the ones that are documented in ssh_key_api and ssh_client_api. My understanding is that users are no meant to call them directly, so they should not be documented here?!

  • ssh_file seems to provide some more details on top of callbacks from ssh_client_key_api and ssh_server_key_api
  • also ssh_file implements only selected ssh_client_key_api callbacks - so in that sense I can understand why ssh_file documents callbacks

@IngelaAndin
Copy link
Contributor

The pages ssh_file page it self states: "The functions are Callbacks for the SSH app. They are not intended to be called from the user's code!"

So this is not an API and should not be documented as such.

ssh-file does not implement deprecated callbacks (they might be deprecated only in the documentation). And I think an extra signing function that purpose is there for "engine type" customization.

So this should not be documented in this way, it is confusing. I think some of the information might qualify for SSH users guide
documentation and the rest is internal documentation.

@IngelaAndin
Copy link
Contributor

If there is something that you think is relevant to the implementers of callback then that information could also be put in the callback API decriptions.

@u3s u3s added priority:low stalled waiting for input by the Erlang/OTP team labels Sep 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:low stalled waiting for input by the Erlang/OTP team team:PS Assigned to OTP team PS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants