Section: C Library Functions (3)Local indexUp BSD mandoc
HEIMDAL
NAME
krb5_expand_hostnamekrb5_expand_hostname_realms
- Kerberos 5 host name canonicalization functions
LIBRARY
Kerberos 5 Library (libkrb5, -lkrb5)
SYNOPSIS
In krb5.h
Ft krb5_error_code
Fo krb5_expand_hostname
Fa krb5_context context
Fa const char *orig_hostname
Fa char **new_hostname
Fc Ft krb5_error_code
Fo krb5_expand_hostname_realms
Fa krb5_context context
Fa const char *orig_hostname
Fa char **new_hostname
Fa char ***realms
Fc
DESCRIPTION
Fn krb5_expand_hostname
tries to make
Fa orig_hostname
into a more canonical one in the newly allocated space returned in
Fa new_hostname .
Caller must free the hostname with
free(3).
Fn krb5_expand_hostname_realms
expands
Fa orig_hostname
to a name we believe to be a hostname in newly
allocated space in
Fa new_hostname
and return the realms
Fa new_hostname
is belive to belong to in
Fa realms .
Fa Realms
is a array terminated with
NULL
Caller must free the
Fa realms
with
Fn krb5_free_host_realm
and
Fa new_hostname
with
free(3).