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.
 
 
 
 

35 lines
1.2 KiB

  1. .\"
  2. .\" Copyright (c) 2009 by Daiki Ueno
  3. .\"
  4. .TH libssh2_agent_get_identity 3 "23 Dec 2009" "libssh2 1.2" "libssh2 manual"
  5. .SH NAME
  6. libssh2_agent_get_identity - get a public key off the collection of public keys managed by ssh-agent
  7. .SH SYNOPSIS
  8. #include <libssh2.h>
  9. int libssh2_agent_get_identity(LIBSSH2_AGENT *agent,
  10. struct libssh2_agent_publickey **store,
  11. struct libssh2_agent_publickey *prev);
  12. .SH DESCRIPTION
  13. \fIlibssh2_agent_get_identity(3)\fP allows an application to iterate
  14. over all public keys in the collection managed by ssh-agent.
  15. \fIstore\fP should point to a pointer that gets filled in to point to the
  16. public key data.
  17. \fIprev\fP is a pointer to a previous 'struct libssh2_agent_publickey'
  18. as returned by a previous invoke of this function, or NULL to get the
  19. first entry in the internal collection.
  20. .SH RETURN VALUE
  21. Returns 0 if everything is fine and information about a host was stored in
  22. the \fIstore\fP struct.
  23. Returns 1 if it reached the end of public keys.
  24. Returns negative values for error
  25. .SH AVAILABILITY
  26. Added in libssh2 1.2
  27. .SH SEE ALSO
  28. .BR libssh2_agent_list_identities(3)
  29. .BR libssh2_agent_userauth(3)