aboutsummaryrefslogtreecommitdiff
path: root/src/known_hosts.c
AgeCommit message (Collapse)AuthorFilesLines
2016-11-05known_hosts: Add ssh_dump_knownhost() functionStef Walter1-57/+84
This works similarly to ssh_write_knownhost(), but allows the caller to get a line with the known_hosts line. BUG: https://red.libssh.org/issues/207 Signed-off-by: Stef Walter <stefw@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-19buffer: do not use ssh_buffer_get_rest_len()Fabiano Fidêncio1-4/+4
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-3/+3
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-19cleanup: use ssh_ prefix in the kex (non-static) functionsFabiano Fidêncio1-1/+1
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 buffer (non-static) functionsFabiano Fidêncio1-8/+8
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 bignum (non-static) functionsFabiano Fidêncio1-2/+2
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>
2014-12-25options: Fix setting the port.Andreas Schneider1-3/+3
Make sure we correctly read the port from the config file. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2014-02-05knownhosts: resolve leaks found by coverityAris Adamantiadis1-8/+5
2014-02-04knownhosts: detect variations of ecdsaAris Adamantiadis1-9/+31
2014-02-01known_hosts: add ssh_knownhosts_algorithms()Aris Adamantiadis1-0/+77
Goal of that function is to test the preferred key exchange methods based on what's available in the known_hosts file
2014-01-16src: Do not use deprecated functions.Andreas Schneider1-2/+2
2014-01-07src: Update my mail address.Andreas Schneider1-1/+1
2013-07-14src: Remove enter_function() and leave_function().Andreas Schneider1-30/+17
2013-07-14src: Migrate to SSH_LOG.Andreas Schneider1-3/+2
2013-06-13known_hosts: Fix readablity.Andreas Schneider1-1/+1
2012-10-12known_hosts: Don't leak memory in ssh_write_knownhost error paths.Andreas Schneider1-0/+8
Found by Coverity.
2012-07-17build: Fix missing struct in_addr warning.Andreas Schneider1-0/+1
2012-02-05session: Use a struct for all options.Andreas Schneider1-15/+18
2011-09-18priv: Move options and config prototypes to own header.Andreas Schneider1-0/+1
2011-09-08string: Use the struct and array for allocating the struct.Andreas Schneider1-3/+3
2011-09-08known_hosts: Fix a free before last use.Andreas Schneider1-1/+2
2011-09-07known_hosts: Fix a memleak.Andreas Schneider1-2/+4
2011-09-05known_hosts: Migrate ssh_write_knownhost() to new pki.Andreas Schneider1-172/+92
2011-06-15known_hosts: Added a log message for key type mismatch.Andreas Schneider1-0/+6
2011-06-13[crypto] initial support for ecdh-sha2-nistp256Aris Adamantiadis1-1/+1
Works with openssl Still requires work for libgcrypt and other modes
2010-10-03Removed references to ssh_buffer_get_beginAris Adamantiadis1-6/+6
2010-09-29known_hosts: Added missing include.Andreas Schneider1-0/+1
Thanks miloj ;)
2010-09-28pki: Create a file for known_hosts functions.Andreas Schneider1-0/+723