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_kuserok  Determine whether the local user is authorized to log in krb5_kuserok Determine whether the local user is authorized...
go to next page: krb5_mk_error  Format an error messagekrb5_mk_error Format an error message
end of book navigation links

krb5_mk_1cred -- Encode a KRB_CRED message for krb5_rd_cred 



C Prototype 

krb5_error_code krb5_mk_1cred (
        krb5_context            context,
        krb5_auth_context       auth_context,
        krb5_creds              *pcreds,
        krb5_data               **ppdata,
        krb5_replay_data        *outdata );

Arguments 

context
(input/output)
 The context structure.
auth_context (input) The Kerberos authentication context.
pcreds (input) A pointer to 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 a Kerberos credential, and returns a KRB_CRED message in outdata that is suitable for krb5_rd_cred. This is a convenience function that calls krb5_mk_ncred with only a single set of credentials.

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_kuserok  Determine whether the local user is authorized to log in krb5_kuserok Determine whether the local user is authorized...
go to next page: krb5_mk_error  Format an error messagekrb5_mk_error Format an error message