Hello,

Attached is a patch to add a new method `libssh2_channel_request_auth_agent`
which requests that an agent forwarding listener be started on the remote side
for SSH agent forwarding.

The method adheres to the RFC draft[2] as well as contains RFC non-compliant
tries (sending "auth-agent-...@openssh.com") in order to remain working
with OpenSSH.

This is my first patch so please let me know if I did anything wrong.
I've tested
the code by modifying the ssh_exec.c example to request agent forwarding,
which worked great. I didn't write a new example though, so I didn't commit
these changes (since it alters ssh_exec).

Best,
Mitchell

Attachment: libssh2_channel_request_auth_agent.patch
Description: Binary data

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to