ttypt/auth.h(3)axil-auth

NAME

ttypt/auth.h - Sessions, registration, ownership, and POSIX user/group operations for axil.

SYNOPSIS

#include <ttypt/xy-mod.h>
#include <stddef.h>

Functions

XY_DECL (int, get_cookie, const char *, cookie, char *, token, size_t, len)

Extract and validate a session token from a raw cookie value.

XY_DECL (const char *, get_session_user, const char *, token)

Resolve the username owning a session token.

XY_DECL (const char *, get_request_user, int, fd)

Resolve the username of the session on a client fd.

XY_DECL (int, auth_password_matches, const char *, username, const char *, password)

Check a username/password pair against the stored credential.

XY_DECL (int, require_login, int, fd, const char *, username)

Require a login, emitting the login challenge when absent.

XY_DECL (int, auth_get_tty_ticket, int, fd, char *, out, size_t, len)

Retrieve the signed TTY ticket for the authenticated user on fd.

Detailed Description

Sessions, registration, ownership, and POSIX user/group operations for axil.

Caller-facing XY hook declarations. Implementers must NOT include this header. Direct configuration lives in auth-config.h and internal outcome dispatches live in auth-outcome.h.

Function Documentation

XY_DECL (int , auth_get_tty_ticket , int , fd , char * , out , size_t , len )

Retrieve the signed TTY ticket for the authenticated user on fd. Non-zero (1) on success (writes NUL-terminated ticket into out), 0 on failure or absent module.

XY_DECL (int , auth_password_matches , const char * , username , const char * , password )

Check a username/password pair against the stored credential. Non-zero on success, 0 on failure or absent module.

Author

Generated automatically by Doxygen for axil-auth from the source code.