path: root/src/agent.c
AgeCommit message (Collapse)AuthorFilesLines
2018-10-25socket: Undouble socket fdsSanne Raymaekers1-1/+1
Signed-off-by: Sanne Raymaekers <sraymaek@redhat.com>
2018-10-05agent: Use (PUSH|PULL)_BE_U32 in agent_talk()Andreas Schneider1-23/+3
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2018-10-05agent: Just use uint32_t for the countAndreas Schneider1-3/+10
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/+8
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-08-20agent: Fix type of the bufferAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-01buffer: Add and use ssh_buffer_allocate_size()Pino Toscano1-0/+15
Add a small helper for ssh_buffer to ensure that the buffer has a certain amount of space already preallocated. This can be useful in case it is known how much data is going to be added to a buffer, to avoid multiple reallocations. Make use of it in few places in the library. Signed-off-by: Pino Toscano <ptoscano@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-29Rest in Peace SSHv1Andreas Schneider1-58/+36
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2018-06-28Remove vim modelines from all filesAndreas Schneider1-2/+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-03-15agent: Add cert auth support to ssh_agent_get_next_ident()Axel Eppe1-0/+4
Signed-off-by: Axel Eppe <aeppe@google.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-19buffer: do not use ssh_buffer_get_rest_len()Fabiano Fidêncio1-2/+2
As ssh_buffer_get_len() actually calls ssh_buffer_get_rest_len(), let's just use the first one. This is a preparatory step for removing ssh_buffer_get_rest_len(). Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-19buffer: rename ssh_buffer_get_rest() to ssh_buffer_get()Fabiano Fidêncio1-2/+2
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-19cleanup: use ssh_ prefix in the buffer (non-static) functionsFabiano Fidêncio1-15/+15
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>
2016-01-19cleanup: use ssh_ prefix in the agent (non-static) functionsFabiano Fidêncio1-5/+5
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>
2015-10-20agent: Fix agent auth on big endian machinesAndreas Schneider1-4/+13
BUG: https://red.libssh.org/issues/204 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-06-29agent: Add ssh_set_agent_socketPeter Volpe1-3/+20
Allow callers to specify their own socket for an ssh agent. Signed-off-by: Peter Volpe <pvolpe@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-01-19src: Rename buffer_add_data() to ssh_buffer_add_data().Andreas Schneider1-2/+2
2014-01-19src: Rename buffer_init to ssh_buffer_init().Andreas Schneider1-1/+1
2014-01-07update copyright informationAris Adamantiadis1-1/+1
2013-07-23cmake: Check for unistd.h.Andreas Schneider1-2/+2
2013-07-14agent: Fix possible segfaults due to NULL pointer deref.Andreas Schneider1-2/+2
CID #1035578
2013-07-14log: Implment new logging functions.Andreas Schneider1-10/+10
2013-07-13ssh-agent: implement the clientside for agent forwarding auth.Aris Adamantiadis1-30/+75
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-06-19agent: Fix a possible memory leak.Andreas Schneider1-5/+16
2013-06-19agent: Fix possible memory leak.Andreas Schneider1-2/+7
2013-01-23include: Fix the LGPL header.Andreas Schneider1-13/+12
This has been reported by rpmlint: libssh-devel.x86_64: W: incorrect-fsf-address libssh.h
2012-10-12agent: Fix some memory leaks in error paths.Andreas Schneider1-0/+4
Found by Coverity.
2012-07-17build: Fix missing struct in_addr warning.Andreas Schneider1-0/+1
2012-04-10agent: Do not fail reads with EPIPE if there is not enough data to read.Andreas Schneider1-1/+2
2011-11-16agent: Improve logging.Andreas Schneider1-12/+11
2011-09-10agent: Add missing config.h include.Andreas Schneider1-0/+2
2011-08-30keys: Remove keys.h where it is obsolete.Andreas Schneider1-1/+0
2011-08-30pki: Use consistent API for ssh_pki_export_pubkey_blob().Andreas Schneider1-2/+2
2011-08-25agent: Remove obsolete agent_sign_data().Andreas Schneider1-84/+0
2011-08-25auth: Add ssh_userauth_agent().Andreas Schneider1-57/+53
This commit is pretty big cause several functions have been refactored.
2011-08-22agent: Fix memory leak.Andreas Schneider1-1/+5
2011-08-21agent: Add ssh_agent_sign_data().Andreas Schneider1-1/+89
2011-08-16pki: Remove session from ssh_pki_import_pubkey_* functions.Andreas Schneider1-1/+1
2011-08-16pki: Rename ssh_pki_import_pubkey_string and make it public.Andreas Schneider1-1/+1
It should be named ssh_pki_import_pubkey_blob().
2011-08-13agent: Use new pki functions.Andreas Schneider1-3/+8
2010-10-03Removed references to ssh_buffer_get_beginAris Adamantiadis1-3/+3
2010-09-06misc: Rename libssh/ to src/Andreas Schneider1-0/+502