KRB5_FIND_PADATA(3)

πŸ’– KRB5_FIND_PADATA(3) πŸ’–

okay bestie, welcome to the Library Functions Manual for KRB5_FIND_PADATA β€” yes it's a mouthful, no we're not scared of it 🫢


✨ NAME ✨

krb5_find_padata, krb5_padata_add β€” the Kerberos 5 pre-authentication data handling functions πŸ’… like, this is where the pre-auth data gets found and where it gets added. that's the whole job. iconic behaviour fr fr.


🌸 LIBRARY 🌸

Kerberos 5 Library (libkrb5, -lkrb5) β€” link it and she's yours, no cap πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <krb5.h>

PA_DATA *
krb5_find_padata(PA_DATA *val, unsigned len, int type, int *index);

int
krb5_padata_add(krb5_context context, METHOD_DATA *md, int type,
    void *buf, size_t len);

like look at her. two whole functions. main character energy, honestly πŸ‘‘


πŸ’œ DESCRIPTION πŸ’œ

πŸ” krb5_find_padata()

so this one tries to find the pre-authentication data entry of type type inside the array val of length len β€” like a little scavenger hunt through the array, but for the exact type you asked for 🧚

here's the cute part: the search starts at the entry pointed out by *index β€” and heads up, that's zero based indexing, so no, 0 is not a mistake, that's just how she counts πŸ™ˆ

and if the type isn't found? you get NULL back. nothing. nada. she looked, she didn't see it, that's the whole story 😭

βž• krb5_padata_add()

this one's the opposite vibe β€” instead of searching, she adds a pre-authentication data entry of type type pointed out by buf and len, and drops it right into md ✨

that's it. that's the function. obsessed πŸ“


πŸ‘€ SEE ALSO πŸ‘€


and that's the page bestie, go forth and find your padata πŸ’–βœ¨

written under the HEIMDAL era, dated March 21, 2004 β€” yeah she's vintage, she's a classic, we stan an old queen πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from