libssh2_publickey_add_ex(3)
π 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 β¨
0on 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. π β¨
π¦ where this page comes from
- alpine 3.22: libssh2-doc 1.11.1-r3 Β· BSD-3-Clause
- alpine 3.23: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- alpine 3.24: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- arch rolling: libssh2 1.11.1-7 Β· BSD-3-Clause
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u1 Β· BSD3
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u2 Β· BSD3
- epel 10: libssh2-docs 1.11.1-9.el10_3 Β· BSD-3-Clause
- epel 9: libssh2-docs 1.11.1-9.el9 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-4.fc43 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-9.fc43 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-5.fc44 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-9.fc44 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- ubuntu questing: libssh2-1-dev 1.11.1-1build1
- ubuntu questing: libssh2-1-dev 1.11.1-1ubuntu0.25.10.2
- ubuntu resolute: libssh2-1-dev 1.11.1-1build2 Β· BSD3
- ubuntu resolute: libssh2-1-dev 1.11.1-1ubuntu0.26.04.4 Β· BSD3
- ubuntu stonking: libssh2-1-dev 1.11.1-6 Β· BSD3
- π the page's license: BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms