1libssh2_userauth_list(3)        libssh2 manual        libssh2_userauth_list(3)
2
3
4

NAME

6       libssh2_userauth_list - list supported authentication methods
7

SYNOPSIS

9       #include <libssh2.h>
10
11       char *
12       libssh2_userauth_list(LIBSSH2_SESSION *session, const char *username,
13                             unsigned int username_len);
14

DESCRIPTION

16       session - Session instance as returned by libssh2_session_init_ex(3)
17
18       username  - Username which will be used while authenticating. Note that
19       most server implementations do  not  permit  attempting  authentication
20       with  different  usernames between requests. Therefore this must be the
21       same username you will use on later userauth calls.
22
23       username_len - Length of username parameter.
24
25       Send a SSH_USERAUTH_NONE request to the remote host. Unless the  remote
26       host  is  configured  to  accept none as a viable authentication scheme
27       (unlikely), it will return SSH_USERAUTH_FAILURE along with a listing of
28       what authentication schemes it does support. In the unlikely event that
29       none authentication succeeds, this method with return NULL.  This  case
30       may  be  distinguished  from  a failing case by examining libssh2_user‐
31       auth_authenticated(3).
32

RETURN VALUE

34       On success a comma delimited list of supported authentication  schemes.
35       This list is internally managed by libssh2.  On failure returns NULL.
36

ERRORS

38       LIBSSH2_ERROR_ALLOC -  An internal memory allocation call failed.
39
40       LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
41
42       LIBSSH2_ERROR_EAGAIN - Marked for non-blocking I/O but the call
43

SEE ALSO

45       libssh2_session_init_ex(3)
46
47
48
49libssh2 0.15                      1 Jun 2007          libssh2_userauth_list(3)
Impressum