Lines Matching refs:val

77 it_val_pass(char *name, char *val, nvlist_t *e);
334 char *val = NULL;
368 val = NULL;
369 (void) nvlist_lookup_string(proplist, PROP_RADIUS_SECRET, &val);
370 if (val) {
373 ret = it_val_pass(PROP_RADIUS_SECRET, val, errs);
378 ret = iscsi_binary_to_base64_str((uint8_t *)val,
379 strlen(val), bsecret, MAX_BASE64_LEN);
395 val = NULL;
396 (void) nvlist_lookup_string(cprops, PROP_RADIUS_SERVER, &val);
397 if (val && (strcasecmp(val, "none") == 0)) {
402 val = NULL;
403 (void) nvlist_lookup_string(cprops, PROP_ALIAS, &val);
404 if (val && (strcasecmp(val, "none") == 0)) {
626 char *val = NULL;
664 val = NULL;
665 (void) nvlist_lookup_string(proplist, PROP_TARGET_CHAP_USER, &val);
666 if (val && (strcasecmp(val, "none") == 0)) {
670 val = NULL;
671 (void) nvlist_lookup_string(proplist, PROP_ALIAS, &val);
672 if (val && (strcasecmp(val, "none") == 0)) {
677 val = NULL;
678 (void) nvlist_lookup_string(proplist, PROP_TARGET_CHAP_SECRET, &val);
679 if (val) {
682 ret = it_val_pass(PROP_TARGET_CHAP_SECRET, val, errs);
687 ret = iscsi_binary_to_base64_str((uint8_t *)val,
688 strlen(val), bsecret, MAX_BASE64_LEN);
1390 char *val = NULL;
1422 if ((nvlist_lookup_string(proplist, PROP_CHAP_USER, &val)) == 0) {
1423 if (strcasecmp(val, "none") == 0) {
1429 if ((nvlist_lookup_string(proplist, PROP_CHAP_SECRET, &val)) == 0) {
1432 ret = it_val_pass(PROP_CHAP_SECRET, val, errs);
1436 ret = iscsi_binary_to_base64_str((uint8_t *)val,
1437 strlen(val), bsecret, MAX_BASE64_LEN);
1541 char *val;
1556 val = NULL;
1570 (void) nvpair_value_string(nvp, &val);
1573 if (!val) {
1588 val = NULL;
1589 (void) nvpair_value_string(nvp, &val);
1592 if (!val) {
1598 if ((strcmp(val, PA_AUTH_NONE) != 0) &&
1599 (strcmp(val, PA_AUTH_CHAP) != 0) &&
1600 (strcmp(val, PA_AUTH_RADIUS) != 0) &&
1601 (strcmp(val, "default") != 0)) {
1602 PROPERR(errs, val, gettext(
1606 auth = val;
1641 char *val;
1659 val = NULL;
1663 (void) nvpair_value_string(nvp, &val);
1667 if (!val) {
1673 if (!val) {
1680 if ((strcmp(val, PA_AUTH_NONE) != 0) &&
1681 (strcmp(val, PA_AUTH_CHAP) != 0) &&
1682 (strcmp(val, PA_AUTH_RADIUS) != 0)) {
1688 auth = val;
1717 if (!val) {
1725 if (!val) {
1732 if ((it_common_convert_sa(val, &sa,
1801 char *val;
1828 val = NULL;
1829 (void) nvpair_value_string(nvp, &val);
1832 if (!val) {
1878 it_val_pass(char *name, char *val, nvlist_t *e)
1882 if (!name || !val) {
1889 sz = strlen(val);