clj-libssh2.libssh2.userauth

Functions for authenticating a user.

authenticated

(authenticated session)
int libssh2_userauth_authenticated(LIBSSH2_SESSION *session);

hostbased-fromfile

(hostbased-fromfile session username publickey privatekey passphrase hostname)
int libssh2_userauth_hostbased_fromfile(LIBSSH2_SESSION *session,
                                        const char *username,
                                        const char *publickey,
                                        const char *privatekey,
                                        const char *passphrase,
                                        const char *hostname);

hostbased-fromfile-ex

(hostbased-fromfile-ex session username username-len publickey privatekey passphrase hostname hostname-len local-username local-username-len)
int libssh2_userauth_hostbased_fromfile_ex(LIBSSH2_SESSION *session,
                                           const char *username,
                                           unsigned int username_len,
                                           const char *publickey,
                                           const char *privatekey,
                                           const char *passphrase,
                                           const char *hostname,
                                           unsigned int hostname_len,
                                           const char *local_username,
                                           unsigned int *local_username_len);

keyboard-interactive

(keyboard-interactive session username response-callback)
int libssh2_userauth_keyboard_interactive(LIBSSH2_SESSION* session,
                                          const char *username,
                                          LIBSSH2_USERAUTH_KBDINT_RESPONSE_FUNC((*response_callback)));

keyboard-interactive-ex

(keyboard-interactive-ex session username username-len response-callback)
int libssh2_userauth_keyboard_interactive_ex(LIBSSH2_SESSION *session,
                                             const char *username,
                                             unsigned int username_len,
                                             LIBSSH2_USERAUTH_KBDINT_RESPONSE_FUNC(*response_callback));

list

(list session username username-len)
char * libssh2_userauth_list(LIBSSH2_SESSION *session,
                             const char *username,
                             unsigned int username_len);

password

(password session username password)
int libssh2_userauth_password(LIBSSH2_SESSION *session,
                              const char* username,
                              const char* password);

password-ex

(password-ex session username username-len password password-len passwd_change_cb)
int libssh2_userauth_password_ex(LIBSSH2_SESSION *session,
                                 const char *username,
                                 unsigned int username_len,
                                 const char *password,
                                 unsigned int password_len,
                                 LIBSSH2_PASSWD_CHANGEREQ_FUNC((*passwd_change_cb)));

publickey

(publickey session user pubkeydata pubkeydata-len sign-callback abstract)
int libssh2_userauth_publickey(LIBSSH2_SESSION *session,
                               const char *user,
                               const unsigned char *pubkeydata,
                               size_t pubkeydata_len,
                               sign_callback,
                               void **abstract);

publickey-fromfile

(publickey-fromfile session username publickey privatekey passphrase)
int libssh2_userauth_publickey_fromfile(LIBSSH2_SESSION *session,
                                        const char *username,
                                        const char *publickey,
                                        const char *privatekey,
                                        const char *passphrase);

publickey-fromfile-ex

(publickey-fromfile-ex session username username-len publickey privatekey passphrase)
int libssh2_userauth_publickey_fromfile_ex(LIBSSH2_SESSION *session,
                                           const char *username,
                                           unsigned int ousername_len,
                                           const char *publickey,
                                           const char *privatekey,
                                           const char *passphrase);

publickey-frommemory

(publickey-frommemory session username username-len publickeydata publickeydata-len privatekeydata privatekeydata-len passphrase)
int libssh2_userauth_publickey_frommemory(LIBSSH2_SESSION *session,
                                          const char *username,
                                          size_t username_len,
                                          const char *publickeydata,
                                          size_t publickeydata_len,
                                          const char *privatekeydata,
                                          size_t privatekeydata_len,
                                          const char *passphrase);