MIT Kerberos Documentation

krb5_auth_con_getrecvsubkey - Retrieve the receiving subkey from an auth context as a keyblock.

krb5_error_code krb5_auth_con_getrecvsubkey(krb5_context ctx, krb5_auth_context ac, krb5_keyblock ** keyblock)

[in] ctx - Library context

[in] ac - Authentication context

[out] keyblock - Receiving subkey

  • 0 Success; otherwise - Kerberos error codes

This function creates a keyblock containing the receiving subkey from auth_context . Use krb5_free_keyblock() to free keyblock when it is no longer needed.