1libssh2_userauth_publickey(3)       libssh2      libssh2_userauth_publickey(3)
2
3
4

NAME

6       libssh2_userauth_publickey - authenticate using a callback function
7

SYNOPSIS

9       #include <libssh2.h>
10
11       int
12       libssh2_userauth_publickey(LIBSSH2_SESSION *session,
13                                  const char *user,
14                                  const unsigned char *pubkeydata,
15                                  size_t pubkeydata_len,
16                                  sign_callback,
17                                  void **abstract);
18

DESCRIPTION

20       Authenticate with the sign_callback callback that matches the prototype
21       below
22

CALLBACK

24       int name(LIBSSH2_SESSION *session, unsigned char **sig, size_t *sig_len,
25                const unsigned char *data, size_t data_len, void **abstract);
26
27       This function gets called...
28

RETURN VALUE

30       Return 0 on success or negative on failure.
31

SEE ALSO

33       libssh2_userauth_publickey_fromfile_ex(3)
34
35
36
37libssh2 0.15                      1 Jun 2007     libssh2_userauth_publickey(3)
Impressum