Lines Matching refs:value

189  * Check the range of value as int range.
193 range_check_validator(int index, char *section, char *value)
197 if (value == NULL)
199 if (strlen(value) == 0)
201 if (!is_a_number(value)) {
205 val = strtoul(value, NULL, 0);
218 string_length_check_validator(int index, char *section, char *value)
222 if (value == NULL)
224 if (strlen(value) == 0)
226 if (strlen(value) > smbclnt_proto_options[index].maxval)
236 yes_no_validator(int index, char *section, char *value)
238 if (value == NULL)
240 if (strlen(value) == 0)
242 if ((strcasecmp(value, "yes") == 0) ||
243 (strcasecmp(value, "no") == 0) ||
244 (strcasecmp(value, "true") == 0) ||
245 (strcasecmp(value, "false") == 0))
255 ip_address_validator(int index, char *section, char *value)
259 if (value == NULL)
261 len = strlen(value);
271 minauth_validator(int index, char *section, char *value)
273 if (value == NULL)
275 if (strlen(value) == 0)
277 if (strcmp(value, "kerberos") == 0 ||
278 strcmp(value, "ntlmv2") == 0 ||
279 strcmp(value, "ntlm") == 0 ||
280 strcmp(value, "lm") == 0 ||
281 strcmp(value, "none") == 0)
289 signing_validator(int index, char *section, char *value)
291 if (value == NULL)
293 if (strlen(value) == 0)
295 if (strcmp(value, "disabled") == 0 ||
296 strcmp(value, "enabled") == 0 ||
297 strcmp(value, "required") == 0)
305 password_validator(int index, char *section, char *value)
310 if (strlen(value) == 0)
312 if (strncmp(value, "$$1", 3) != 0)
314 if (smb_simpledecrypt(buffer, value) != 0)
352 char *name = NULL, *value = NULL;
388 value = scf_simple_prop_next_astring(prop);
391 if (strncmp("section", name, 7) == 0 && value != NULL) {
393 (xmlChar *)value);
404 node = sa_create_property(name, value);
418 * which only set the value in our array and marked them as
426 char *section = smbclnt_proto_options[PROTO_OPT_SECTION].value;
469 if (strcmp(smbclnt_proto_options[i].value, "") == 0)
475 smbclnt_proto_options[i].value);
478 free(smbclnt_proto_options[i].value);
479 smbclnt_proto_options[i].value = NULL;
490 smbclnt_proto_options[PROTO_OPT_SECTION].value);
491 free(smbclnt_proto_options[PROTO_OPT_SECTION].value);
492 smbclnt_proto_options[PROTO_OPT_SECTION].value = NULL;
588 * smbfs_validate_proto_prop(index, name, value)
591 * value. This is a sanity check to prevent bad values getting into
595 smbfs_validate_proto_prop(int index, char *section, char *name, char *value)
603 return (smbclnt_proto_options[index].validator(index, section, value));
611 smbfs_save_property(int index, char *section, char *value)
622 smbclnt_proto_options[PROTO_OPT_SECTION].value = s;
623 s = strdup(value);
626 smbclnt_proto_options[index].value = s;
642 char *value;
650 value = sa_get_property_attr(prop, "value");
651 if (name != NULL && value != NULL) {
655 name, value);
658 value) != 0) {
668 if (value != NULL)
669 sa_free_attr_string(value);
680 * Caller must free the returned value.