libssh2_userauth_authenticated(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_authenticated β€” it's giving auth status check πŸ’–

okay so bestie, welcome to the libssh2 manual, this one's about libssh2_userauth_authenticated(3) and it's literally the shortest lil vibe check in the whole library. let's go 🫢


✨ NAME ✨

libssh2_userauth_authenticated β€” return authentication status πŸ‘‘


✨ SYNOPSIS ✨

#include <libssh2.h>

int
libssh2_userauth_authenticated(LIBSSH2_SESSION *session);

✨ DESCRIPTION ✨

so here's the tea πŸ“:

  • session β€” a Session instance, and like, the exact kind you get back from libssh2_session_init_ex(3). no knockoffs, no substitutes, get it from the source bestie.

and what does this function do? it tells you whether or not the named session has been successfully authenticated. that's it. that's the whole thing. one lil question, one lil answer, no drama, no cap. πŸ’…


✨ RETURN VALUE ✨

  • returns 1 if it is authenticated βœ…
  • returns 0 if it is not ❌

literally binary. main character energy only, no in-between. 😌


✨ SEE ALSO ✨


πŸŽ€ friendly reminder: this page is libssh2 version 0.15, dated 1 Jun 2007, and it's page 1 of the manual β€” so yeah, this one's been slaying since way before your fave was born. periodt. πŸ’œ

stay authenticated bestie, mwah πŸ’‹βœ¨