libssh2_userauth_publickey.3 (905B)
1.TH libssh2_userauth_publickey 3 "1 Jun 2007" "libssh2 0.15" "libssh2" 2.SH NAME 3libssh2_userauth_publickey - authenticate using a callback function 4.SH SYNOPSIS 5.nf 6#include <libssh2.h> 7 8int 9libssh2_userauth_publickey(LIBSSH2_SESSION *session, 10 const char *user, 11 const unsigned char *pubkeydata, 12 size_t pubkeydata_len, 13 sign_callback, 14 void **abstract); 15.fi 16.SH DESCRIPTION 17Authenticate with the \fIsign_callback\fP callback that matches the prototype 18below 19.SH CALLBACK 20.nf 21int name(LIBSSH2_SESSION *session, unsigned char **sig, size_t *sig_len, 22 const unsigned char *data, size_t data_len, void **abstract); 23.fi 24 25This function gets called... 26.SH RETURN VALUE 27Return 0 on success or negative on failure. 28.SH SEE ALSO 29.BR libssh2_userauth_publickey_fromfile_ex(3)