HP Open Source Security for OpenVMS Volume 3: Kerberos > Chapter 6 KRB5 (Kerberos V5) Application Programming Interface

krb5_copy_data — Copy a Kerberos data structure

  Table of Contents



C Prototype

krb5_error_code krb5_copy_data(
krb5_context context,
const krb5_data *indata,
krb5_data **outdata );


context (input/output) 

The context structure.

indata (input)  

The data structure to be copied.

outdata (output)  

A pointer to a copy of the data structure.


This routine copies a data structure, filling in *outdata to point to the newly allocated copy, which should be freed with krb5_free_data.

Return Values

This routine returns the following KRB5 status code:


Successful completion.
ENOMEMInsufficient memory.