Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add two events Pty/Set_env/Start_shell into the server #53

Merged
merged 3 commits into from
Mar 20, 2023

Conversation

dinosaure
Copy link
Member

This PR change a bit the interface of awa-mirage and give the ability to handle new events:

  • Pty: when the window change
  • Set_env: when the client wants to set the local environment
  • Shell: when the client requests a shell

@dinosaure dinosaure force-pushed the handle-pty-and-shell branch 2 times, most recently from 92d7ab5 to 43fc6fe Compare March 4, 2023 12:46
lwt/awa_lwt.ml Outdated Show resolved Hide resolved
mirage/awa_mirage.ml Outdated Show resolved Hide resolved
@hannesm
Copy link
Member

hannesm commented Mar 9, 2023

LGTM, minor nits in the comments.

@dinosaure
Copy link
Member Author

I decided to upgrade the lwt layer with the support of the shell in a different way than the mirage layer via a callback for set_env and set_window (when we got such event from the server) and an optional ?cmd argument for the exec_callback. It breaks the API too but less than the mirage layer.

@dinosaure dinosaure force-pushed the handle-pty-and-shell branch 2 times, most recently from f6d39de to cadf744 Compare March 13, 2023 15:13
@dinosaure
Copy link
Member Author

I think it's ready to merge. A question remains about an homogeneized interface between awa-lwt and awa-mirage but I would like to have a feedback on that before. /cc @hannesm @reynir (@palainp already updated sshfs accordind to this PR).

@palainp
Copy link
Member

palainp commented Mar 20, 2023

(@palainp already updated sshfs accordind to this PR).

Unfortunately not yet, but I will :)

A question remains about an homogeneized interface between awa-lwt and awa-mirage but I would like to have a feedback on that before.

I prefer the awa-mirage style, but that's just a personal view, and I agree that a similar interface should be beneficial.

@hannesm
Copy link
Member

hannesm commented Mar 20, 2023

I'm fine with this PR. I did not use the server API (yet).

@dinosaure dinosaure merged commit f0f1c5d into mirage:main Mar 20, 2023
@dinosaure dinosaure deleted the handle-pty-and-shell branch March 20, 2023 12:13
hannesm added a commit to hannesm/opam-repository that referenced this pull request Mar 22, 2023
CHANGES:

* server: be able to stop using a Lwt_switch.t (mirage/awa-ssh#52 @dinosaure)
* server: add Pty/Set_env/Start_shell events (mirage/awa-ssh#53 @dinosaure)
* client: support password authentication and keyboard-interactive (mirage/awa-ssh#51
  @hannesm, reported by @dgjustice mirage/awa-ssh#31)
* client: add NIST EC curves (mirage/awa-ssh#31 @hannesm)
* client: try public key authenticaion only once (mirage/awa-ssh#50 @reynir @hannesm)
* remove (partially implemented) hostbased authentication (mirage/awa-ssh#31 @hannesm)
* replace deprecated Cstruct.copy by Cstruct.to_string (mirage/awa-ssh#53 @dinosaure)
* remove ppx_cstruct and sexplib dependencies (mirage/awa-ssh#54 @hannesm)
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.

3 participants