libssh2_agent_list_identities(3)

πŸ“¦
version 1.11.1 Β· 3 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, epel 10, epel 9, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ libssh2_agent_list_identities(3) ✨

okay bestie, welcome to the libssh2 manual page for libssh2_agent_list_identities πŸ’… β€” she lives in the libssh2 section 3 fam and she's here to ask your ssh-agent for a lil list of public keys, no cap.


🌸 NAME 🌸

libssh2_agent_list_identities β€” request an ssh-agent to list of public keys πŸ—οΈβœ¨


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <libssh2.h>

int
libssh2_agent_list_identities(LIBSSH2_AGENT *agent);

πŸ’– DESCRIPTION πŸ’–

So basically, you call this function and it asks the ssh-agent to give you a list of public keys, and then it stashes them in the internal collection of the handle. like, the keys are just there now, chilling inside agent, waiting for you 🫢

Then when you want one, you hit up libssh2_agent_get_identity(3) to pull a public key off the collection. that's the move, that's the whole vibe 😌


⭐ RETURN VALUE ⭐

Returns 0 if it succeeded, or a negative value for error. periodt. πŸ’€


🌈 AVAILABILITY 🌈

Added in libssh2 1.2 β€” she's been iconic since day one, fr fr πŸ‘‘


πŸŽ€ SEE ALSO πŸŽ€


and that's the whole page bestie, you ate that πŸ“πŸ’œ

from the libssh2 girlies, dated 23 Dec 2009 β€” go forth and list those identities, main character energy only βœ¨πŸ¦‹