guest.h(3)Bark

NAME

guest.h - Bark guest session ticket, upgrade, logout, capability bits, and build-mode macros.

SYNOPSIS

Macros

#define BARK_DEV 1

Defined as 1 in local development builds (BARK_RELEASE=0).

#define BARK_SPLIT_GATE 1

Defined as 1 when compiling the Tier-0 pre-login Gate shell of a split app.

#define BARK_SPLIT_SLICE 1

Defined as 1 when compiling the post-login encrypted slice of a split app.

Enumerations

enum bark_cap_bits

Capability entitlement bitmask constants.

Functions

int bark_read_ticket (char *buf, uint32_t cap)

Read the active Bark session ticket into buf. Returns byte length or <=0.

int bark_upgrade_session (const char *bearer_token)

Upgrade the running Bark session with a newly minted bearer token.

int bark_clear_session (void)

Clear the active Bark session token and unload post-login slices.

uint64_t bark_session_caps (void)

Return the bitmask of capabilities granted to the active Bark session.

Detailed Description

Bark guest session ticket, upgrade, logout, capability bits, and build-mode macros.

Author

Generated automatically by Doxygen for Bark from the source code.