libssh2_userau...lickey_fromfile(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_userauth_publickey_fromfile β€” bestie edition πŸ’–

okay so this one lives in the libssh2 manual, and it's genuinely one of the shortest little pages ever, but that's fine because it's a convenience macro and convenience is the whole point ✨


🌸 NAME 🌸

libssh2_userauth_publickey_fromfile β€” a convenience macro for libssh2_userauth_publickey_fromfile_ex(3) calls 🫢


✨ SYNOPSIS ✨

#include <libssh2.h>

int
libssh2_userauth_publickey_fromfile(LIBSSH2_SESSION *session,
                                    const char *username,
                                    const char *publickey,
                                    const char *privatekey,
                                    const char *passphrase);

πŸŽ€ DESCRIPTION πŸŽ€

so the tea is: this is a macro, and it lives in a public libssh2 header file πŸ“. it's not doing the heavy lifting itself, no ma'am β€” it's built on top of the actual function libssh2_userauth_publickey_fromfile_ex(3). it's giving convenience wrapper energy, and honestly? iconic πŸ’…


πŸ’œ RETURN VALUE πŸ’œ

go check libssh2_userauth_publickey_fromfile_ex(3) β€” that's where the answers live bestie, this page isn't gonna spoil it for you πŸ™ˆ


πŸ¦‹ ERRORS πŸ¦‹

same deal fr fr β€” see libssh2_userauth_publickey_fromfile_ex(3) πŸ’€


⭐ SEE ALSO ⭐


and that's the whole page, no cap 🌈 libssh2 1.2.4, dated 20 Feb 201 β€” yeah the date is literally cut off like that in the source, not me being chaotic for once 😭 mwah, go read the _ex version, it has all the lore πŸ’–βœ¨