Lines Matching refs:value

202 range_check_validator(int index, char *section, char *value)  in range_check_validator()  argument
206 if (value == NULL) in range_check_validator()
208 if (strlen(value) == 0) in range_check_validator()
210 if (!is_a_number(value)) { in range_check_validator()
214 val = strtoul(value, NULL, 0); in range_check_validator()
227 string_length_check_validator(int index, char *section, char *value) in string_length_check_validator() argument
231 if (value == NULL) in string_length_check_validator()
233 if (strlen(value) == 0) in string_length_check_validator()
235 if (strlen(value) > smbclnt_proto_options[index].maxval) in string_length_check_validator()
245 yes_no_validator(int index, char *section, char *value) in yes_no_validator() argument
247 if (value == NULL) in yes_no_validator()
249 if (strlen(value) == 0) in yes_no_validator()
251 if ((strcasecmp(value, "yes") == 0) || in yes_no_validator()
252 (strcasecmp(value, "no") == 0) || in yes_no_validator()
253 (strcasecmp(value, "true") == 0) || in yes_no_validator()
254 (strcasecmp(value, "false") == 0)) in yes_no_validator()
264 ip_address_validator(int index, char *section, char *value) in ip_address_validator() argument
268 if (value == NULL) in ip_address_validator()
270 len = strlen(value); in ip_address_validator()
280 minauth_validator(int index, char *section, char *value) in minauth_validator() argument
284 if (value == NULL) in minauth_validator()
286 ival = smb_cf_minauth_from_str(value); in minauth_validator()
295 protocol_validator(int index, char *section, char *value) in protocol_validator() argument
299 if (value == NULL) in protocol_validator()
301 ival = smb_cf_version_from_str(value); in protocol_validator()
310 signing_validator(int index, char *section, char *value) in signing_validator() argument
312 if (value == NULL) in signing_validator()
314 if (strlen(value) == 0) in signing_validator()
316 if (strcmp(value, "disabled") == 0 || in signing_validator()
317 strcmp(value, "enabled") == 0 || in signing_validator()
318 strcmp(value, "required") == 0) in signing_validator()
326 password_validator(int index, char *section, char *value) in password_validator() argument
331 if (strlen(value) == 0) in password_validator()
333 if (strncmp(value, "$$1", 3) != 0) in password_validator()
335 if (smb_simpledecrypt(buffer, value) != 0) in password_validator()
373 char *name = NULL, *value = NULL; in smbclnt_config_load() local
409 value = scf_simple_prop_next_astring(prop); in smbclnt_config_load()
412 if (strncmp("section", name, 7) == 0 && value != NULL) { in smbclnt_config_load()
414 (xmlChar *)value); in smbclnt_config_load()
425 node = sa_create_property(name, value); in smbclnt_config_load()
447 char *section = smbclnt_proto_options[PROTO_OPT_SECTION].value; in smbfs_save_propset()
490 if (strcmp(smbclnt_proto_options[i].value, "") == 0) in smbfs_save_propset()
496 smbclnt_proto_options[i].value); in smbfs_save_propset()
499 free(smbclnt_proto_options[i].value); in smbfs_save_propset()
500 smbclnt_proto_options[i].value = NULL; in smbfs_save_propset()
511 smbclnt_proto_options[PROTO_OPT_SECTION].value); in smbfs_save_propset()
512 free(smbclnt_proto_options[PROTO_OPT_SECTION].value); in smbfs_save_propset()
513 smbclnt_proto_options[PROTO_OPT_SECTION].value = NULL; in smbfs_save_propset()
616 smbfs_validate_proto_prop(int index, char *section, char *name, char *value) in smbfs_validate_proto_prop() argument
624 return (smbclnt_proto_options[index].validator(index, section, value)); in smbfs_validate_proto_prop()
632 smbfs_save_property(int index, char *section, char *value) in smbfs_save_property() argument
643 smbclnt_proto_options[PROTO_OPT_SECTION].value = s; in smbfs_save_property()
644 s = strdup(value); in smbfs_save_property()
647 smbclnt_proto_options[index].value = s; in smbfs_save_property()
663 char *value; in smbfs_set_proto_prop() local
671 value = sa_get_property_attr(prop, "value"); in smbfs_set_proto_prop()
672 if (name != NULL && value != NULL) { in smbfs_set_proto_prop()
676 name, value); in smbfs_set_proto_prop()
679 value) != 0) { in smbfs_set_proto_prop()
689 if (value != NULL) in smbfs_set_proto_prop()
690 sa_free_attr_string(value); in smbfs_set_proto_prop()