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_1cred  Encode a KRB_CRED message for krb5_rd_cred krb5_mk_1cred Encode a KRB_CRED message for krb5_rd_cred
go to next page: krb5_mk_ncred  Encode a KRB_CRED message for krb5_rd_credkrb5_mk_ncred Encode a KRB_CRED message for krb5_rd_cred
end of book navigation links

krb5_mk_error -- Format an error message 



C Prototype 

krb5_error_code krb5_mk_error(
         krb5_context         context,
         const krb5_error     *dec_err,
         krb5_data            *enc_err );

Arguments 

context
(input/output)
 The context structure.
dec_err (input) The error structure to format.
enc_err (output) The formatted error buffer.

Description 

This routine formats the error structure *dec_err into an error buffer *enc_err.

The error buffer storage (enc_err->data) is allocated, and should be freed by the caller when finished.

Return Values 

This routine returns the following KRB5 status code:

0
Successful completion.


go to previous page: krb5_mk_1cred  Encode a KRB_CRED message for krb5_rd_cred krb5_mk_1cred Encode a KRB_CRED message for krb5_rd_cred
go to next page: krb5_mk_ncred  Encode a KRB_CRED message for krb5_rd_credkrb5_mk_ncred Encode a KRB_CRED message for krb5_rd_cred