Lines Matching refs:val

73 it_val_pass(char *name, char *val, nvlist_t *e);
327 char *val = NULL;
361 val = NULL;
362 (void) nvlist_lookup_string(proplist, PROP_RADIUS_SECRET, &val);
363 if (val) {
366 ret = it_val_pass(PROP_RADIUS_SECRET, val, errs);
371 ret = iscsi_binary_to_base64_str((uint8_t *)val,
372 strlen(val), bsecret, MAX_BASE64_LEN);
388 val = NULL;
389 (void) nvlist_lookup_string(cprops, PROP_RADIUS_SERVER, &val);
390 if (val && (strcasecmp(val, "none") == 0)) {
395 val = NULL;
396 (void) nvlist_lookup_string(cprops, PROP_ALIAS, &val);
397 if (val && (strcasecmp(val, "none") == 0)) {
616 char *val = NULL;
654 val = NULL;
655 (void) nvlist_lookup_string(proplist, PROP_TARGET_CHAP_USER, &val);
656 if (val && (strcasecmp(val, "none") == 0)) {
660 val = NULL;
661 (void) nvlist_lookup_string(proplist, PROP_ALIAS, &val);
662 if (val && (strcasecmp(val, "none") == 0)) {
667 val = NULL;
668 (void) nvlist_lookup_string(proplist, PROP_TARGET_CHAP_SECRET, &val);
669 if (val) {
672 ret = it_val_pass(PROP_TARGET_CHAP_SECRET, val, errs);
677 ret = iscsi_binary_to_base64_str((uint8_t *)val,
678 strlen(val), bsecret, MAX_BASE64_LEN);
1378 char *val = NULL;
1410 if ((nvlist_lookup_string(proplist, PROP_CHAP_USER, &val)) == 0) {
1411 if (strcasecmp(val, "none") == 0) {
1417 if ((nvlist_lookup_string(proplist, PROP_CHAP_SECRET, &val)) == 0) {
1420 ret = it_val_pass(PROP_CHAP_SECRET, val, errs);
1424 ret = iscsi_binary_to_base64_str((uint8_t *)val,
1425 strlen(val), bsecret, MAX_BASE64_LEN);
1527 char *val;
1542 val = NULL;
1556 (void) nvpair_value_string(nvp, &val);
1559 if (!val) {
1574 val = NULL;
1575 (void) nvpair_value_string(nvp, &val);
1578 if (!val) {
1584 if ((strcmp(val, PA_AUTH_NONE) != 0) &&
1585 (strcmp(val, PA_AUTH_CHAP) != 0) &&
1586 (strcmp(val, PA_AUTH_RADIUS) != 0) &&
1587 (strcmp(val, "default") != 0)) {
1588 PROPERR(errs, val, gettext(
1592 auth = val;
1627 char *val;
1645 val = NULL;
1649 (void) nvpair_value_string(nvp, &val);
1653 if (!val) {
1659 if (!val) {
1666 if ((strcmp(val, PA_AUTH_NONE) != 0) &&
1667 (strcmp(val, PA_AUTH_CHAP) != 0) &&
1668 (strcmp(val, PA_AUTH_RADIUS) != 0)) {
1674 auth = val;
1703 if (!val) {
1711 if (!val) {
1718 if ((it_common_convert_sa(val, &sa,
1787 char *val;
1814 val = NULL;
1815 (void) nvpair_value_string(nvp, &val);
1818 if (!val) {
1864 it_val_pass(char *name, char *val, nvlist_t *e)
1868 if (!name || !val) {
1875 sz = strlen(val);