aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/misc.h
AgeCommit message (Collapse)AuthorFilesLines
2020-01-23misc: Make the src pointer const in ssh_strreplace()Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2019-12-20misc: Add ssh_strreplace()Andreas Schneider1-0/+1
Pair-Programmed-With: Sahana Prasad <sahana@redhat.com> Signed-Off-by: Sahana Prasad <sahana@redhat.com> Signed-Off-By: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2019-12-20misc: Add ssh_tmpname()Andreas Schneider1-0/+1
Signed-Off-By: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2019-12-09misc: Add a function to encode newlinesAnderson Toshiyuki Sasaki1-0/+1
Given a string, the added function encodes existing newline characters ('\n') as the string "\\n" and puts into a given output buffer. The output buffer must have at least 2 times the length of the input string plus 1 for the terminating '\0'. In the worst case, each character can be replaced by 2 characters. Fixes T189 Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2019-12-09CVE-2019-14889: misc: Add function to quote file namesAnderson Toshiyuki Sasaki1-0/+8
The added function quote file names strings to be used in a shell. Special cases are treated for the charactes '\'' and '!'. Fixes T181 Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-08-06misc: Introduce internal function ssh_mkdirs()Anderson Toshiyuki Sasaki1-0/+3
If the given path includes missing directories, ssh_mkdirs() tries to create them recursively. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-08-06misc: Introduce internal function ssh_dir_writeable()Anderson Toshiyuki Sasaki1-0/+1
The introduced internal function checks if the provided path is for an existing directory which is accessible for writing. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-07-30misc: Introduce ssh_log_hexdump()Anderson Toshiyuki Sasaki1-0/+1
The introduced internal function is intended to be a replacement for the deprecated function ssh_print_hexa(). Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-10-09libmbedtls: Support OpenSSH-compatible AES-GCM ciphers using mbedTLSJakub Jelen1-0/+2
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-29Rest in Peace SSHv1Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2018-06-04misc: Add ssh_list_count()Andreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-11-07misc: Use simpler macros for htonll and ntohllAndreas Schneider1-9/+0
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2013-01-23include: Fix the LGPL header.Andreas Schneider1-12/+11
This has been reported by rpmlint: libssh-devel.x86_64: W: incorrect-fsf-address libssh.h
2012-12-03BUG 96: Guard ntohll() and htonll prototypes correctly.Andreas Schneider1-1/+6
2012-01-02session: Cleanup timeout functions.rofl0r1-0/+1
It is possible that we get unrelated packets while waiting for termination, thus waiting indefinitely. As a workaround we have to check the user-supplied timeout.
2011-09-02channels: replaced bugged lists with ssh_listAris Adamantiadis1-0/+1
cherry-picked from 0aef5f Conflicts: src/session.c
2011-08-22misc: Add ssh_match_group().Andreas Schneider1-0/+2
2011-08-16misc: Remove session from ssh_get_local_username().Andreas Schneider1-1/+1
2011-05-24Introduced ssh_timeout_elapsed functionsAris Adamantiadis1-0/+9
Functions to mesure elapsed time before and after a serie of calls. Introduces a dependancy to clock_gettime() and librt, hope this doesn't break anything. Porting to gettimeofday() should not be too hard.
2011-02-12misc: Added ssh_is_ipaddr() function.Andreas Schneider1-0/+2
2010-09-29misc: Differentiate between client and server in ssh_analyze_banner.Andreas Schneider1-1/+1
2010-09-29misc: Move ssh_analyze_banner to a common location.Andreas Schneider1-0/+1
Don't duplicate functions!
2010-05-11Added a function to expand an escaped string.Andreas Schneider1-0/+1
2010-05-11Added a function to expand the tilde from a path.Andreas Schneider1-0/+2
2010-05-01First implementation of known_hosts with port readAris Adamantiadis1-0/+1
2010-04-07Fixed solaris compilation warning and ignore case at host parameter.Ruben Garcia Azuara1-0/+1
- Suppress compilation warning in solaris caused by a comma at the end of the last value. - Ignore case at host parameter in config file Signed-off-by: Ruben Garcia Azuara <rubenga@tid.es> Signed-off-by: Andreas Schneider <mail@cynapses.org>
2010-03-04Fixed and added support for several identity files.Andreas Schneider1-0/+1
2010-03-04Rename ssh_list_add to ssh_list_append.Andreas Schneider1-1/+1
2010-03-04Added a prepend function for ssh_list.Andreas Schneider1-0/+1
2010-03-01renamed ssh_list_get_head to ssh_list_pop_headAris Adamantiadis1-8/+4
2009-09-26More include file splittingAris Adamantiadis1-0/+69