39 lines · 1.6 KB · Text
RawDownload
.TH libssh2_userauth_list 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual".SH NAMElibssh2_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);.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 thatmost server implementations do not permit attempting authentication withdifferent usernames between requests. Therefore this must be the same usernameyou 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 remotehost is configured to accept none as a viable authentication scheme(unlikely), it will return \fBSSH_USERAUTH_FAILURE\fP along with a listing ofwhat authentication schemes it does support. In the unlikely event that noneauthentication succeeds, this method with return NULL. This case may bedistinguished from a failing case by examining\fIlibssh2_userauth_authenticated(3)\fP..SH RETURN VALUEOn success a comma delimited list of supported authentication schemes.  Thislist is internally managed by libssh2.  On failure ruturns 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)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t