clj-libssh2.libssh2.knownhost
Functions for checking a remote host's fingerprint against a known hosts
file.
add
deprecated in libssh2
(add hosts host salt key keylen typemark store)
int libssh2_knownhost_add(LIBSSH2_KNOWNHOSTS *hosts,
const char *host,
const char *salt,
const char *key,
size_t keylen,
int typemask,
struct libssh2_knownhost **store);
addc
(addc hosts host salt key keylen comment commentlen typemask store)
int libssh2_knownhost_addc(LIBSSH2_KNOWNHOSTS *hosts,
const char *host,
const char *salt,
const char *key,
size_t keylen,
const char *comment,
size_t commentlen,
int typemask,
struct libssh2_knownhost **store);
check
(check hosts host key keylen typemask knownhost)
int libssh2_knownhost_check(LIBSSH2_KNOWNHOSTS *hosts,
const char *host,
const char *key,
size_t keylen,
int typemask,
struct libssh2_knownhost **knownhost);
checkp
(checkp hosts host port key keylen typemask knownhost)
int libssh2_knownhost_checkp(LIBSSH2_KNOWNHOSTS *hosts,
const char *host,
int port,
const char *key,
size_t keylen,
int typemask,
struct libssh2_knownhost **knownhost);
del
(del hosts entry)
int libssh2_knownhost_del(LIBSSH2_KNOWNHOSTS *hosts,
struct libssh2_knownhost *entry);
free
(free hosts)
void libssh2_knownhost_free(LIBSSH2_KNOWNHOSTS *hosts);
get
(get hosts store prev)
int libssh2_knownhost_get(LIBSSH2_KNOWNHOSTS *hosts,
struct libssh2_knownhost **store,
struct libssh2_knownhost *prev);
init
(init session)
LIBSSH2_KNOWNHOSTS * libssh2_knownhost_init(LIBSSH2_SESSION *session);
readfile
(readfile hosts filename type)
int libssh2_knownhost_readfile(LIBSSH2_KNOWNHOSTS *hosts,
const char *filename,
int type);
readline
(readline hosts line len type)
int libssh2_knownhost_readline(LIBSSH2_KNOWNHOSTS *hosts,
const char *line,
size_t len,
int type);
writefile
(writefile hosts filename type)
int libssh2_knownhost_writefile(LIBSSH2_KNOWNHOSTS *hosts,
const char *filename,
int type);
writeline
(writeline hosts known buffer buflen outlen type)
int libssh2_knownhost_writeline(LIBSSH2_KNOWNHOSTS *hosts,
struct libssh2_knownhost *known,
char *buffer,
size_t buflen,
size_t *outlen,
int type);