aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/agent.h
AgeCommit message (Collapse)AuthorFilesLines
2022-11-02Add external c declaration for c++Norbert Pocs1-0/+8
To make sure c++ name mangling works correctly c code should be noted "extern" Signed-off-by: Norbert Pocs <npocs@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2022-06-22Enable ssh agent authentication on WindowsWez Furlong1-2/+0
Windows has supported unix domain sockets for a couple of years now; see this article for more information about that: <https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/> This commit allows libssh to consider using agent authentication on Windows systems. It is mostly removing `#ifndef _WIN32` that prevented the unix domain socket code from being compiled in, and adjusting the use of `read(2)` and `write(2)` to `recv(2)` and `send(2)`, as the former functions are not compatible with sockets on Windows systems. For mingw systems, afunix.h isn't available so we use the technique as was used to resolve building with mingw as used by the curl project in: https://github.com/curl/curl/pull/5170 Signed-off-by: Wez Furlong <wez@fb.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-12-09agent: Return uint32_t for ssh_agent_get_ident_count()Andreas Schneider1-1/+1
Fixes T188 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2018-08-31SHA2 extension in the ssh-agent interfaceJakub Jelen1-0/+3
The new constants for flags are defined in draft-miller-ssh-agent-02 are active if the SHA2 extension is negotiated with the server. Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-28Remove vim modelines from all filesAndreas Schneider1-1/+0
If you want modelines use my vim plugin: https://github.com/cryptomilk/git-modeline.vim git config --add vim.modeline "ts=4 sw=4 et" Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-19cleanup: use ssh_ prefix in the agent (non-static) functionsFabiano FidĂȘncio1-4/+4
Having "ssh_" prefix in the functions' name will avoid possible clashes when compiling libssh statically. Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-07-13ssh-agent: implement the clientside for agent forwarding auth.Aris Adamantiadis1-0/+1
This can only be used to authenticate the client, not to allow the connected server to transfer agent requests Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-01-23include: Fix the LGPL header.Andreas Schneider1-0/+20
This has been reported by rpmlint: libssh-devel.x86_64: W: incorrect-fsf-address libssh.h
2011-08-25agent: Remove obsolete agent_sign_data().Andreas Schneider1-3/+0
2011-08-25auth: Add ssh_userauth_agent().Andreas Schneider1-5/+5
This commit is pretty big cause several functions have been refactored.
2011-08-21agent: Add ssh_agent_sign_data().Andreas Schneider1-0/+3
2009-12-06struct socket -> struct ssh_socket_struct +typedefAris Adamantiadis1-1/+1
2009-09-23Moved lots of declaration out of priv.hAris Adamantiadis1-0/+48
2009-05-12Fix the vim modeline and place it at the end of the file.Andreas Schneider1-0/+1
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@763 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-02-02Add missing agent files.Andreas Schneider1-0/+48
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@202 7dcaeef0-15fb-0310-b436-a5af3365683c