1libssh2_session_hostkey(3)      libssh2 manual      libssh2_session_hostkey(3)
2
3
4

NAME

6       libssh2_session_hostkey - get the remote key
7

SYNOPSIS

9       #include <libssh2.h>
10
11       const char *libssh2_session_hostkey(LIBSSH2_SESSION *session,
12                                           size_t *len, int *type);
13

DESCRIPTION

15       Returns a pointer to the current host key, the value len points to will
16       get the length of the key.
17
18       The value type points to the type of hostkey  which  is  one  of:  LIB‐
19       SSH2_HOSTKEY_TYPE_RSA,      LIBSSH2_HOSTKEY_TYPE_DSS,      or      LIB‐
20       SSH2_HOSTKEY_TYPE_UNKNOWN.
21
22

RETURN VALUE

24       A pointer, or NULL if something went wrong.
25

SEE ALSO

27       libssh2_knownhost_check(3) libssh2_knownhost_add(3)
28
29
30
31libssh2 0.15                      1 Jun 2007        libssh2_session_hostkey(3)
Impressum