logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

libssh2_userauth_publickey - authenticate using a callback function

Callback

       int name(LIBSSH2_SESSION *session, unsigned char **sig, size_t *sig_len,
                const unsigned char *data, size_t data_len, void **abstract);

       This function gets called...

Description

       Authenticate with the sign_callback callback that matches the prototype below

Name

       libssh2_userauth_publickey - authenticate using a callback function

Return Value

       Return 0 on success or negative on failure.

See Also

libssh2_userauth_publickey_fromfile_ex(3)

libssh2 0.15                                       1 Jun 2007                      libssh2_userauth_publickey(3)

Synopsis

       #include <libssh2.h>

       int
       libssh2_userauth_publickey(LIBSSH2_SESSION *session,
                                  const char *user,
                                  const unsigned char *pubkeydata,
                                  size_t pubkeydata_len,
                                  sign_callback,
                                  void **abstract);

See Also