Use hostrealm interface for realm mapping
Reimplement krb5_get_host_realm, krb5_get_fallback_host_realm, and
krb5_get_default_realm in terms of the hostrealm interface. Three
built-in modules (dns, domain, and profile) implement the current
behavior.
https://github.com/krb5/krb5/commit/db21244a069e581a392dff5b320e758e06a28e4dAuthor: Greg Hudson <ghudson@mit.edu>
Commit: db21244a069e581a392dff5b320e758e06a28e4d
Branch: master
src/include/k5-int.h | 4 +
src/include/k5-trace.h | 11 +-
src/lib/krb5/krb/init_ctx.c | 1 +
src/lib/krb5/libkrb5.exports | 1 +
src/lib/krb5/os/Makefile.in | 15 +-
src/lib/krb5/os/def_realm.c | 190 -----------------
src/lib/krb5/os/deps | 79 +++++--
src/lib/krb5/os/hostrealm.c | 401 +++++++++++++++++++++++++++++++++++
src/lib/krb5/os/hostrealm_dns.c | 143 +++++++++++++
src/lib/krb5/os/hostrealm_domain.c | 128 +++++++++++
src/lib/krb5/os/hostrealm_profile.c | 117 ++++++++++
src/lib/krb5/os/hst_realm.c | 255 +----------------------
src/lib/krb5/os/os-proto.h | 12 +
13 files changed, 884 insertions(+), 473 deletions(-)