skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 3:... HP Open Source Security for OpenVMS Volume 3:...
go to beginning of chapter: KRB5 (Kerberos V5) Application Programming Interface KRB5 (Kerberos V5) Application Programming Interface
go to previous page: krb5_mk_safe  Format a KRB_SAFE message krb5_mk_safe Format a KRB_SAFE message
go to next page: krb5_parse_name  Convert string principal name to protocol formatkrb5_parse_name Convert string principal name to protocol format
end of book navigation links

krb5_os_localaddr -- Return all protocol addresses of this host 



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_address when no longer needed.

Return Values 

This routine returns the following KRB5 status code:

0
Successful completion.
ENOMEM
Insufficient memory.


go to previous page: krb5_mk_safe  Format a KRB_SAFE message krb5_mk_safe Format a KRB_SAFE message
go to next page: krb5_parse_name  Convert string principal name to protocol formatkrb5_parse_name Convert string principal name to protocol format