MIT Kerberos Documentation

krb5_pac_add_buffer - Add a buffer to a PAC handle.

krb5_error_code krb5_pac_add_buffer(krb5_context context, krb5_pac pac, krb5_ui_4 type, const krb5_data * data)

[in] context - Library context

[in] pac - PAC handle

[in] type - Buffer type

[in] data - contents

  • 0 Success; otherwise - Kerberos error codes

This function adds a buffer of type type and contents data to pac if there isn’t already a buffer of this type present.

The valid values of type is one of the following:

  • #KRB5_PAC_LOGON_INFO - Logon information
  • #KRB5_PAC_CREDENTIALS_INFO - Credentials information
  • #KRB5_PAC_SERVER_CHECKSUM - Server checksum
  • #KRB5_PAC_CLIENT_INFO - Client name and ticket information
  • #KRB5_PAC_DELEGATION_INFO - Constrained delegation information
  • #KRB5_PAC_UPN_DNS_INFO - User principal name and DNS information