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

NAME

6       libssh2_userauth_list  - list the authentication methods supported by a
7       server
8

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

36       On success a comma delimited list of supported authentication  schemes.
37       This list is internally managed by libssh2.  On failure ruturns NULL.
38
39

ERRORS

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

SEE ALSO

49       libssh2_session_init_ex(3)
50
51
52
53libssh2 0.15                      1 Jun 2007          libssh2_userauth_list(3)
Impressum