mirror of
https://github.com/libssh2/libssh2.git
synced 2025-04-19 02:24:04 +03:00
- `- ` -> `- ` - `. ` -> `. ` - `\- ` -> `- ` - `-1` -> `\-1` - fold long lines along the way This makes the minus sign come out as a Unicode minus sign (0x2212), and title separator dashes as Unicode hyphen (0x2010), with `groff -Tutf8` v1.23.0. Ref: https://lwn.net/Articles/947941/ Closes #1210
44 lines
1.7 KiB
Groff
44 lines
1.7 KiB
Groff
.\" Copyright (C) The libssh2 project and its contributors.
|
|
.\" SPDX-License-Identifier: BSD-3-Clause
|
|
.TH libssh2_userauth_list 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
|
|
.SH NAME
|
|
libssh2_userauth_list - list supported authentication methods
|
|
.SH SYNOPSIS
|
|
.nf
|
|
#include <libssh2.h>
|
|
|
|
char *
|
|
libssh2_userauth_list(LIBSSH2_SESSION *session,
|
|
const char *username,
|
|
unsigned int username_len);
|
|
.fi
|
|
.SH DESCRIPTION
|
|
\fIsession\fP - Session instance as returned by
|
|
.BR libssh2_session_init_ex(3)
|
|
|
|
\fIusername\fP - Username which will be used while authenticating. Note that
|
|
most server implementations do not permit attempting authentication with
|
|
different usernames between requests. Therefore this must be the same username
|
|
you will use on later userauth calls.
|
|
|
|
\fIusername_len\fP - Length of username parameter.
|
|
|
|
Send a \fBSSH_USERAUTH_NONE\fP request to the remote host. Unless the remote
|
|
host is configured to accept none as a viable authentication scheme
|
|
(unlikely), it will return \fBSSH_USERAUTH_FAILURE\fP along with a listing of
|
|
what authentication schemes it does support. In the unlikely event that none
|
|
authentication succeeds, this method with return NULL. This case may be
|
|
distinguished from a failing case by examining
|
|
\fIlibssh2_userauth_authenticated(3)\fP.
|
|
.SH RETURN VALUE
|
|
On success a comma delimited list of supported authentication schemes. This
|
|
list is internally managed by libssh2. On failure returns NULL.
|
|
.SH ERRORS
|
|
\fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed.
|
|
|
|
\fILIBSSH2_ERROR_SOCKET_SEND\fP - Unable to send data on socket.
|
|
|
|
\fILIBSSH2_ERROR_EAGAIN\fP - Marked for non-blocking I/O but the call
|
|
.SH SEE ALSO
|
|
.BR libssh2_session_init_ex(3)
|