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

krb5_copy_checksum — Copy a checksum structure

  Table of Contents



C Prototype

krb5_error_code krb5_copy_checksum(
krb5_context context,
const krb5_checksum *ckfrom,
krb5_checksum **ckto );


context (input/output) 

The context structure.

ckfrom (input)  

The checksum to be copied.

ckto (output)  

A pointer to a copy of the checksum.


This routine copies a checksum structure, filling in *ckto to point to the newly allocated copy, which should be freed with krb5_free_checksum.

Return Values

This routine returns the following KRB5 status code:


Successful completion.
ENOMEMInsufficient memory.