krb5_principal_get_type
if (krb5_principal_get_type(context, p) != MAGIC_HOSTBASED_NAME_TYPE) {
krb5_principal_get_type(context, server) == KRB5_NT_SRV_HST) {
krb5_principal_get_type(context, client) == KRB5_NT_ENTERPRISE_PRINCIPAL)
krb5_principal_get_type (