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

krb5_copy_addresses — Copy Kerberos addresses

  Table of Contents



C Prototype

krb5_error_code krb5_copy_addresses(
krb5_context context,
krb5_address * const *inaddr,
krb5_address ***outaddr );


context (input/output) 

The context structure.

inaddr (input) 

An array of addresses.

outaddr (output) 

A pointer to a copy of the array of addresses.


This routine copies addresses in inaddr to *outaddr, which is allocated memory and should be freed with krb5_free_addresses.

Return Values

This routine returns the following KRB5 status code:


Successful completion.
ENOMEMInsufficient memory.