|Use the session key when creating the request, used for user to user authentication.|
|Mark the request as mutual authenticate required so that the receiver returns a mutual authentication packet.|
The krb5_rd_req read the AP_REQ in inbuf and verify and extract the content. If server is specified, that server will be fetched from the keytab and used unconditionally. If server is NULL, the keytab will be search for a matching principal.
The keytab argument specifies what keytab to search for receiving principals. The arguments ap_req_options and ticket returns the content.
When the AS-REQ is a user to user request, neither of keytab or principal are used, instead krb5_rd_req expects the session key to be set in auth_context.
The krb5_verify_ap_req and krb5_build_ap_req both constructs and verify the AP_REQ message, should not be used by external code.