File: libssh2_userauth_publickey.3

package info (click to toggle)
libssh2 1.4.2-1.1%2Bdeb7u2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 4,100 kB
  • sloc: ansic: 22,376; sh: 11,380; makefile: 330; awk: 23
file content (27 lines) | stat: -rw-r--r-- 928 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.TH libssh2_userauth_publickey 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
.SH NAME
libssh2_userauth_publickey - authenticate using a callback function
.SH SYNOPSIS
#include <libssh2.h>

.nf
int libssh2_userauth_publickey(LIBSSH2_SESSION *session,
                               const char *user,
                               const unsigned char *pubkeydata,
                               size_t pubkeydata_len,
                               sign_callback,
                               void **abstract);
.SH DESCRIPTION
Authenticate with the \fIsign_callback\fP callback that matches the prototype
below
.SH CALLBACK
.nf
int name(LIBSSH2_SESSION *session, unsigned char **sig, size_t *sig_len,
         const unsigned char *data, size_t data_len, void **abstract);
.fi

This function gets called...
.SH RETURN VALUE
Return 0 on success or negative on failure.
.SH SEE ALSO
.BR libssh2_userauth_publickey_fromfile_ex(3)