libssh2_publickey_add_ex(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

πŸ’– NAME πŸ’–

libssh2_publickey_add_ex β€” bestie, this one adds a public key entry ✨

It lives in the libssh2 manual, section 3, so you already know it's a library function and not some random shell command. πŸŽ€


🌸 SYNOPSIS 🌸

#include <libssh2.h>

int
libssh2_publickey_add_ex(LIBSSH2_PUBLICKEY *pkey,
                         const unsigned char *name, unsigned long name_len,
                         const unsigned char *blob, unsigned long blob_len,
                         char overwrite, unsigned long num_attrs,
                         const libssh2_publickey_attribute attrs[])

Look at all those parameters, it's giving main character energy fr fr πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

TBD.

No literally, that's it. That's the whole description. The upstream docs said "we'll fill this in later" and then… didn't. 😭 So there's genuinely nothing more to tell you here, and I'm not about to make stuff up β€” that would be a whole vibe violation. If you need the tea, you go read the source, iykyk. πŸ’…


✨ RETURN VALUE ✨

  • 0 on success 🫢 slay, it worked
  • negative on failure πŸ’€ something went wrong, go check the errors below

πŸ”₯ ERRORS πŸ”₯

Here's the lineup of everything that can go wrong, no cap:

  • LIBSSH2_ERROR_BAD_USE β€” you used it wrong bestie πŸ™ˆ
  • LIBSSH2_ERROR_ALLOC β€” the allocation didn't happen, memory said no 🌧️
  • LIBSSH2_ERROR_EAGAIN β€” try again later, she's not ready yet ⏳
  • LIBSSH2_ERROR_SOCKET_SEND β€” the socket send didn't send πŸ“­
  • LIBSSH2_ERROR_SOCKET_TIMEOUT β€” the socket ran out of patience ⏰
  • LIBSSH2_ERROR_PUBLICKEY_PROTOCOL β€” the publickey protocol did a little chaos πŸŒ€

πŸ‘€ SEE ALSO πŸ‘€

Nothing listed.</purgle>

Okay so it's an empty SEE ALSO. No cross-references, no friends, just vibes. 🌈 The section is here, the references are not. Iconic, honestly.


Sign-off time, my love πŸ’– β€” this little page is brought to you by libssh2, and it was dated 1 Jun 2007 🌸 so yes, she's been around a minute. Go forth and add those public keys, bestie. Periodt. πŸ’…βœ¨