skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 3:... HP Open Source Security for OpenVMS Volume 3:...
go to beginning of chapter: KRB5 (Kerberos V5) Application Programming Interface KRB5 (Kerberos V5) Application Programming Interface
go to previous page: krb5_mk_error  Format an error message krb5_mk_error Format an error message
go to next page: krb5_mk_priv  Format a KRB_PRIV messagekrb5_mk_priv Format a KRB_PRIV message
end of book navigation links

krb5_mk_ncred -- Encode a KRB_CRED message for krb5_rd_cred 



C Prototype 

krb5_error_code krb5_mk_ncred (
        krb5_context            context,
        krb5_auth_context       auth_context,
        krb5_creds              **ppcreds,
        krb5_data               **ppdata,
        krb5_replay_data        *outdata );

Arguments 

context
(input/output)
 The context structure.
auth_context (input) The Kerberos authentication context.
ppcreds (input) A pointer to an array of Kerberos credentials.
ppdata (input) A pointer to a krb5_data structure (not used).
outdata (output) A pointer to the KRB_CRED message.

Description 

This routine takes an array of Kerberos credentials, and returns a KRB_CRED message in outdata that is suitable for krb5_rd_cred.

Return Values 

This routine returns the following KRB5 status codes:

0
Successful completion.
ENOMEM
Insufficient memory.
KRB5_RC_REQUIRED
Message replay detection requires rcache parameter.


go to previous page: krb5_mk_error  Format an error message krb5_mk_error Format an error message
go to next page: krb5_mk_priv  Format a KRB_PRIV messagekrb5_mk_priv Format a KRB_PRIV message