Sets the list of configuration files to be examined in determining machine defaults. filenames is an array of files to check in order. The array must have a NULL entry as the last element.
Returns system errors.
Figures out the Kerberos server names for the given realm, filling in hostlist with a null terminated array of pointers to hostnames.
If realm is unknown, the filled-in pointer is set to NULL.
The pointer array and strings pointed to are all in allocated storage, and should be freed by the caller when finished.
Returns system errors.
Frees the storage taken by a host list returned by krb5_get_krbhst.
Retrieves the default realm to be used if no user-specified realm is available (e.g. to interpret a user-typed principal name with the realm omitted for convenience), filling in lrealm with a pointer to the default realm in allocated storage.
It is the caller's responsibility for freeing the allocated storage pointed to be lream when it is finished with it.
Returns system errors.
Sets the default realm to be used if no user-specified realm is available (e.g. to interpret a user-typed principal name with the realm omitted for convenience). (c.f. krb5_get_default_realm)
If realm is NULL, then the operating system default value will used.
Returns system errors.
Figures out the Kerberos realm names for host, filling in realmlist with a pointer to an argv[] style list of names, terminated with a null pointer.
If host is NULL, the local host's realms are determined.
If there are no known realms for the host, the filled-in pointer is set to NULL.
The pointer array and strings pointed to are all in allocated storage, and should be freed by the caller when finished.
Returns system errors.
Frees the storage taken by a realmlist returned by krb5_get_local_realm.
Determines the proper name of a realm. This is mainly so that a krb4 principal can be converted properly into a krb5 one. If realm is null, the function will assume the default realm of the host. The returned *domain is allocated and must be freed by the caller.