Lines Matching +defs:val +defs:state

100 	void		*state = NULL;
111 PROFILE_ITER_LIST_SECTION, &state);
113 while (state != NULL) {
114 code = profile_iterator(&state, &name, &value);
162 if (state != NULL)
163 profile_iterator_free(&state);
673 void *state = NULL, *state2 = NULL;
692 PROFILE_ITER_LIST_SECTION, &state);
694 code = profile_iterator(&state, &source, &dummy_val);
738 if (state != NULL)
739 profile_iterator_free(&state);
852 * char **val, boolean_t master_required, boolean_t kdc_required)
859 * (val returns realm validated)
862 * (val returns default realm configured)
865 * (val returns realm configured)
868 * (val returns realm not found)
871 * (val returns realm specified)
874 * (val returns realm specified)
877 * (val returns realm specified)
880 * (val returns realm specified)
883 * (val returns realm specified)
887 * (val returns the domain/host name)
890 * (val returns the realm specified)
891 * where val is the associated errant value, associated with val_err. This
912 k5_profile_validate(profile_t profile, char *realm, int *val_err, char **val,
920 if (profile == NULL || realm == NULL || val_err == NULL || val == NULL)
924 *val = NULL;
932 *val = strdup(*trealms);
933 if (*val == NULL)
944 if ((*val = strdup(realm)) == NULL)
952 if ((*val = strdup(realm)) == NULL)
967 if ((*val = strdup(*domains)) == NULL)
978 if ((*val = strdup(realm)) == NULL)
994 if ((*val = strdup(realm)) == NULL)
1009 if ((*val = strdup(realm)) == NULL)
1021 if ((*val = strdup(default_realm)) == NULL)
1028 if ((*val = strdup(realm)) == NULL)
1043 if ((*val = strdup(default_realm)) == NULL)
1048 if ((*val = strdup(realm)) == NULL)
1129 * k5_profile_validate_get_error_msg(profile_t profile, int err, char *val,
1135 * where val is the val returned by the k5_profile_validate function
1144 k5_profile_validate_get_error_msg(profile_t profile, int err, char *val,
1151 if (profile == NULL || val == NULL || err_msg == NULL)
1198 if (asprintf(err_msg, "%s: %s: %s", f, m, val) == -1)