krb5_pac(3)

πŸ“¦
version 7.8.0 Β· 3 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, epel 10, epel 9, fedora 43, fedora 44

✨ krb5_pac β€” Heimdal Kerberos 5 PAC handling functions ✨

okay bestie, welcome to krb5_pac(3), the manual page for the Heimdal Kerberos 5 library and its whole PAC-handling situation πŸ’– if you've ever been like "what even IS a PAC and why is it being parsed at me" β€” this is your page, sit down, hydrate πŸ“


🌸 NAME 🌸

krb5_pac β€” Heimdal Kerberos 5 PAC handling functions

like, the entire PAC-handling department. that's the vibe πŸŽ€


✨ SYNOPSIS ✨

πŸ¦‹ Functions πŸ¦‹

KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_pac_get_buffer
    (krb5_context context, krb5_pac p, uint32_t type, krb5_data *data)

KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_pac_verify
    (krb5_context context, const krb5_pac pac, time_t authtime,
    krb5_const_principal principal, const krb5_keyblock *server, const
    krb5_keyblock *privsvr)

that's two functions. two. that's the whole cast πŸ’…


πŸ’œ Detailed Description πŸ’œ

there's no big long description here bestie, the page just rolls straight into the function docs. no filler, we love a lowkey minimalist icon πŸ‘‘


πŸ”₯ Function Documentation πŸ”₯

🌈 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_pac_get_buffer (krb5_context context, krb5_pac p, uint32_t type, krb5_data * data)

Get the PAC buffer of specific type from the pac. like, you hand it a type, it hands you back the matching buffer. main character exchange fr 🫢

Parameters

  • context β€” Kerberos 5 context.
  • p β€” the pac structure returned by krb5_pac_parse().
  • type β€” type of buffer to get
  • data β€” return data, free with krb5_data_free().
🚨 bestie, listen: that data you get back? you FREE it with krb5_data_free(). don't be out here leaking, that's not the vibe 😭

Returns

Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message().


🌟 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_pac_verify (krb5_context context, const krb5_pac pac, time_t authtime, krb5_const_principal principal, const krb5_keyblock * server, const krb5_keyblock * privsvr)

Verify the PAC. that's it. that's the whole description. short, confident, ate ✨

Parameters

  • context β€” Kerberos 5 context.
  • pac β€” the pac structure returned by krb5_pac_parse().
  • authtime β€” The time of the ticket the PAC belongs to.
  • principal β€” the principal to verify.
  • server β€” The service key, most always be given.
  • privsvr β€” The KDC key, may be given.
πŸ’€ real talk: server β€” the service key β€” most always be given. so like, give it. and privsvr (the KDC key) may be given, so that one's optional-ish, your call, iykyk.

Returns

Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message().


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Heimdal Kerberos 5 library from the source code.

(so nobody's taking credit personally, it's the Doxygen machine's moment, and honestly? it's giving autogenerated but make it fashion πŸŽ€)


Version 7.8.0 Β· Tue Nov 15 2022 β€” that's the version and the date bestie, and that's a wrap on krb5_pac(3) πŸ¦‹ go free your krb5_data, verify your PACs, and slay πŸ’–πŸ’…βœ¨

πŸ“¦ where this page comes from