26 char *ssh_get_user_home_dir(
void);
27 char *ssh_get_local_username(
void);
28 int ssh_file_readaccess_ok(
const char *file);
31 char *ssh_path_expand_escape(
ssh_session session,
const char *s);
32 int ssh_analyze_banner(
ssh_session session,
int server);
33 int ssh_is_ipaddr_v4(
const char *str);
34 int ssh_is_ipaddr(
const char *str);
54 void ssh_list_free(
struct ssh_list *list);
58 int ssh_list_append(
struct ssh_list *list,
const void *data);
59 int ssh_list_prepend(
struct ssh_list *list,
const void *data);
61 char *ssh_lowercase(
const char* str);
62 char *ssh_hostport(
const char *host,
int port);
64 const void *_ssh_list_pop_head(
struct ssh_list *list);
66 #define ssh_iterator_value(type, iterator)\ 67 ((type)((iterator)->data)) 74 #define ssh_list_pop_head(type, ssh_list)\ 75 ((type)_ssh_list_pop_head(ssh_list)) 77 int ssh_make_milliseconds(
long sec,
long usec);
79 int ssh_timeout_elapsed(
struct ssh_timestamp *ts,
int timeout);
82 int ssh_match_group(
const char *group,
const char *
object);
Definition: session.h:102
size_t ssh_list_count(const struct ssh_list *list)
Get the number of elements in the list.
Definition: misc.c:406
int ssh_timeout_update(struct ssh_timestamp *ts, int timeout)
updates a timeout value so it reflects the remaining time
Definition: misc.c:1030
char * ssh_path_expand_tilde(const char *d)
Expand a directory starting with a tilde '~'.
Definition: misc.c:650