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

krb5_os_localaddr — Return all protocol addresses of this host

  Table of Contents

  Glossary

  Index

C Prototype

krb5_error_code krb5_os_localaddr(
krb5_context context,
krb5_address ***addr );

Arguments

context (input) 

The context structure.

addr (output) 

A pointer to an array of address pointers.

Description

This routine returns all of the protocol addresses of this host.

Compile-time configuration flags will indicate which protocol family addresses might be returned. The *addr argument is filled in to point to an array of address pointers, terminated by a NULL pointer. All the storage pointed to is allocated and should be freed by the caller with krb5_free_addresses when no longer needed.

Return Values

This routine returns the following KRB5 status code:

0Successful completion.

ENOMEM

Insufficient memory.