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

krb5_auth_con_genaddrs — Get full IP address from address and port

  Table of Contents

  Glossary

  Index

C Prototype

krb5_error_code krb5_auth_con_genaddrs(
krb5_context context,
krb5_auth_context auth_context,
int infd,
int flags );

Arguments

context (input/output) 

The context structure.

auth_context (input/output) 

A per-connection context.

infd (input)  

Input socket file descriptor.

flags (input) 

Input flags. These symbols are defined in KRB$ROOT:[INCLUDE]KRB5.H. The values can be OR’d together. Possible values for flags are:
KRB5_AUTH_CONTEXT_GENERATE_LOCAL_ADDR
KRB5_AUTH_CONTEXT_GENERATE_REMOTE_ADDR
KRB5_AUTH_CONTEXT_GENERATE_LOCAL_FULL_ADDR
KRB5_AUTH_CONTEXT_GENERATE_REMOTE_FULL_ADDR

Description

This routine takes an IP address and port, and generates a full IP address.

Return Values

This routine returns the following KRB5 status codes:

0Successful completion.