krb5_mk_safe(3)
generates integrity protected and/or encrypted messages
LIBRARY
Kerberos 5 Library (libkrb5, -lkrb5)
SYNOPSIS
In krb5.h
Ft krb5_error_code
Fn krb5_mk_priv krb5_context context krb5_auth_context auth_context const krb5_data *userdata krb5_data *outbuf krb5_replay_data *outdata
Ft krb5_error_code
Fn krb5_mk_safe krb5_context context krb5_auth_context auth_context const krb5_data *userdata krb5_data *outbuf krb5_replay_data *outdata
DESCRIPTION
Fn krb5_mk_safe
and
Fn krb5_mk_priv
formats
KRB-SAFE
(integrity protected)
and
KRB-PRIV
(also encrypted)
messages into
Fa outbuf .
The actual message data is taken from
Fa userdata .
If the
KRB5_AUTH_CONTEXT_DO_SEQUENCE
or
KRB5_AUTH_CONTEXT_DO_TIME
flags are set in the
Fa auth_context ,
sequence numbers and time stamps are generated.
If the
KRB5_AUTH_CONTEXT_RET_SEQUENCE
or
KRB5_AUTH_CONTEXT_RET_TIME
flags are set
they are also returned in the
Fa outdata
parameter.