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

krb5_auth_con_getaddrs — Retrieve address fields from the auth_context

  Table of Contents

  Glossary

  Index

C Prototype

krb5_error_code krb5_auth_con_getaddrs(
krb5_context context,
krb5_auth_context auth_context,
krb5_address **local_addr,
krb5_address **remote_addr );

Arguments

context (input/output) 

The context structure.

auth_context (input/output)  

A per-connection context.

local_addr (output) 

Local address.

remote_addr (output) 

Remote address.

Description

This routine retrieves local_addr and remote_addr from auth_context. If local_addr or remote_addr is not NULL, the memory is first freed with krb5_free_address and then newly allocated. It is the caller’s responsibility to free the returned addresses in this way.

Return Values

This routine returns the following KRB5 status code:

0

Successful completion.