KRB5_RCACHE(3)

πŸ’– KRB5_RCACHE β€” the replay cache page, bestie edition πŸ’–

okay so this is a libkrb5 joint, manual page KRB5_RCACHE(3) from the Library Functions Manual. It's giving "Kerberos 5 replay cache" and honestly? iconic. Let's get into it. πŸŽ€


✨ NAME ✨

krb5_rcache, krb5_rc_close, krb5_rc_default, krb5_rc_default_name, krb5_rc_default_type, krb5_rc_destroy, krb5_rc_expunge, krb5_rc_get_lifespan, krb5_rc_get_name, krb5_rc_get_type, krb5_rc_initialize, krb5_rc_recover, krb5_rc_resolve, krb5_rc_resolve_full, krb5_rc_resolve_type, krb5_rc_store, krb5_get_server_rcache β€” Kerberos 5 replay cache 🌸


πŸ“š LIBRARY πŸ“š

Kerberos 5 Library (libkrb5, -lkrb5)


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <krb5.h>

struct krb5_rcache;

krb5_error_code
krb5_rc_close(krb5_context context, krb5_rcache id);

krb5_error_code
krb5_rc_default(krb5_context context, krb5_rcache *id);

const char *
krb5_rc_default_name(krb5_context context);

const char *
krb5_rc_default_type(krb5_context context);

krb5_error_code
krb5_rc_destroy(krb5_context context, krb5_rcache id);

krb5_error_code
krb5_rc_expunge(krb5_context context, krb5_rcache id);

krb5_error_code
krb5_rc_get_lifespan(krb5_context context, krb5_rcache id,
    krb5_deltat *auth_lifespan);

const char*
krb5_rc_get_name(krb5_context context, krb5_rcache id);

const char*
krb5_rc_get_type(krb5_context context, krb5_rcache id);

krb5_error_code
krb5_rc_initialize(krb5_context context, krb5_rcache id,
    krb5_deltat auth_lifespan);

krb5_error_code
krb5_rc_recover(krb5_context context, krb5_rcache id);

krb5_error_code
krb5_rc_resolve(krb5_context context, krb5_rcache id, const char *name);

krb5_error_code
krb5_rc_resolve_full(krb5_context context, krb5_rcache *id,
    const char *string_name);

krb5_error_code
krb5_rc_resolve_type(krb5_context context, krb5_rcache *id,
    const char *type);

krb5_error_code
krb5_rc_store(krb5_context context, krb5_rcache id,
    krb5_donot_replay *rep);

krb5_error_code
krb5_get_server_rcache(krb5_context context, const krb5_data *piece,
    krb5_rcache *id);

no cap, that's the whole lineup πŸ‘‘ seventeen functions and one lil opaque struct, all here, all accounted for.


πŸ’… DESCRIPTION πŸ’…

The krb5_rcache structure holds a storage element that is used for data manipulation. πŸ’Ύ

and here's the tea: the structure contains no public accessible elements. so like… don't go poking around in there, bestie, there's nothing for you to see. it's giving "private account, no followers allowed." πŸ™ˆ

krb5_rc_initialize() β€” creates the reply cache id and sets its lifespan to auth_lifespan. πŸ”₯

⚠️ but WAIT. if the cache already exists, the content is destroyed. like, gone gone. not "moved to trash," not "recoverable," destroyed. be so careful with that one, fr fr. 😭

πŸ‘€ SEE ALSO πŸ‘€


and that's the page!! this beauty came from HEIMDAL, dated May 1, 2006 β€” yeah she's vintage, she's a classic, she's still slaying πŸ’œβœ¨ stay safe out there with your replay caches, mwah 🫢

πŸ“¦ where this page comes from