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

 » Glossary

 » Index

C Prototype

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

Arguments

context (input/output) 

The context structure.

ckfrom (input)  

The checksum to be copied.

ckto (output)  

A pointer to a copy of the checksum.

Description

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:

0

Successful completion.
ENOMEMInsufficient memory.