geom_gate userland utility improvements
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

40 lines
1.6 KiB

  1. .TH libssh2_userauth_list 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
  2. .SH NAME
  3. libssh2_userauth_list - list supported authentication methods
  4. .SH SYNOPSIS
  5. .nf
  6. #include <libssh2.h>
  7. char *
  8. libssh2_userauth_list(LIBSSH2_SESSION *session, const char *username,
  9. unsigned int username_len);
  10. .SH DESCRIPTION
  11. \fIsession\fP - Session instance as returned by
  12. .BR libssh2_session_init_ex(3)
  13. \fIusername\fP - Username which will be used while authenticating. Note that
  14. most server implementations do not permit attempting authentication with
  15. different usernames between requests. Therefore this must be the same username
  16. you will use on later userauth calls.
  17. \fIusername_len\fP - Length of username parameter.
  18. Send a \fBSSH_USERAUTH_NONE\fP request to the remote host. Unless the remote
  19. host is configured to accept none as a viable authentication scheme
  20. (unlikely), it will return \fBSSH_USERAUTH_FAILURE\fP along with a listing of
  21. what authentication schemes it does support. In the unlikely event that none
  22. authentication succeeds, this method with return NULL. This case may be
  23. distinguished from a failing case by examining
  24. \fIlibssh2_userauth_authenticated(3)\fP.
  25. .SH RETURN VALUE
  26. On success a comma delimited list of supported authentication schemes. This
  27. list is internally managed by libssh2. On failure returns NULL.
  28. .SH ERRORS
  29. \fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed.
  30. \fILIBSSH2_ERROR_SOCKET_SEND\fP - Unable to send data on socket.
  31. \fILIBSSH2_ERROR_EAGAIN\fP - Marked for non-blocking I/O but the call
  32. .SH SEE ALSO
  33. .BR libssh2_session_init_ex(3)