Home
last modified time | relevance | path

Searched refs:strval (Results 1 – 25 of 52) sorted by relevance

123

/titanic_41/usr/src/common/net/wanboot/
H A Dbootconf.c279 char *strval; in valid_encryption() local
290 if (nvlist_lookup_string(nvl, BC_ENCRYPTION_TYPE, &strval) == 0) { in valid_encryption()
291 if (strlen(strval) > 0) { in valid_encryption()
292 if (strcmp(strval, BC_ENCRYPTION_3DES) != 0 && in valid_encryption()
293 strcmp(strval, BC_ENCRYPTION_AES) != 0) { in valid_encryption()
314 char *strval; in valid_signature() local
325 if (nvlist_lookup_string(nvl, BC_SIGNATURE_TYPE, &strval) == 0) { in valid_signature()
326 if (strlen(strval) > 0) { in valid_signature()
327 if (strcmp(strval, BC_SIGNATURE_SHA1) != 0) { in valid_signature()
349 char *strval; in valid_client_authentication() local
[all …]
/titanic_41/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dldap_principal2.c463 char **values=NULL, *strval[10]={NULL}, errbuf[1024]; local
820 memset(strval, 0, sizeof(strval));
821 if ((strval[0]=getstringtime(entries->last_success)) == NULL)
823 …if ((st=krb5_add_str_mem_ldap_mod(&mods, "krbLastSuccessfulAuth", LDAP_MOD_REPLACE, strval)) != 0)…
824 free (strval[0]);
827 free (strval[0]);
831 memset(strval, 0, sizeof(strval));
832 if ((strval[0]=getstringtime(entries->last_failed)) == NULL)
834 … if ((st=krb5_add_str_mem_ldap_mod(&mods, "krbLastFailedAuth", LDAP_MOD_REPLACE, strval)) != 0) {
835 free (strval[0]);
[all …]
H A Dldap_tkt_policy.c50 char *strval[3]={NULL}, *policy_dn = NULL; local
69 memset(strval, 0, sizeof(strval));
70 strval[0] = policy->policy;
71 if ((st=krb5_add_str_mem_ldap_mod(&mods, "cn", LDAP_MOD_ADD, strval)) != 0)
74 memset(strval, 0, sizeof(strval));
75 strval[0] = "krbTicketPolicy";
76 strval[1] = "krbTicketPolicyaux";
77 if ((st=krb5_add_str_mem_ldap_mod(&mods, "objectclass", LDAP_MOD_ADD, strval)) != 0)
127 … *attrvalues[]={"krbTicketPolicy", "krbTicketPolicyAux", NULL}, *strval[2]={NULL}; local
152 memset(strval, 0, sizeof(strval));
[all …]
H A Dldap_services.c56 char **rdns=NULL, *realmattr=NULL, *strval[3]={NULL}; local
74 memset(strval, 0, sizeof(strval));
75 strval[0] = "krbService";
77 strval[1] = "krbKdcService";
80 strval[1] = "krbAdmService";
83 strval[1] = "krbPwdService";
86 strval[1] = "krbKdcService";
89 if ((st=krb5_add_str_mem_ldap_mod(&mods, "objectclass", LDAP_MOD_ADD, strval)) != 0)
97 memset(strval, 0, sizeof(strval));
98 strval[0] = rdns[0];
[all …]
H A Dldap_realm.c397 char **strval=NULL, *strvalprc[5]={NULL}; local
473 strval = rparams->subtree;
475 strval)) != 0) {
786 char *strval[2]={NULL}, *kerberoscontdn=NULL, **rdns=NULL; local
815 strval[0] = "krbContainer";
816 strval[1] = NULL;
817 if ((st=krb5_add_str_mem_ldap_mod(&mods, "objectclass", LDAP_MOD_ADD, strval)) != 0)
827 strval[0] = rdns[0];
828 strval[1] = NULL;
829 if ((st=krb5_add_str_mem_ldap_mod(&mods, "cn", LDAP_MOD_ADD, strval)) != 0)
[all …]
H A Dldap_principal.c262 char *user=NULL, *DN=NULL, *strval[10] = {NULL}; local
309 memset(strval, 0, sizeof(strval));
310 strval[0] = user;
312 strval)) != 0)
350 memset(strval, 0, sizeof(strval));
353 strval[r++] = attrvalues[q];
354 strval[r] = NULL;
357 strval)) != 0)
H A Dldap_pwd_policy.c62 char **rdns=NULL, *strval[2]={NULL}, *policy_dn; local
86 strval[0] = rdns[0];
87 if ((st=krb5_add_str_mem_ldap_mod(&mods, "cn", LDAP_MOD_ADD, strval)) != 0)
90 strval[0] = "krbPwdPolicy";
91 if ((st=krb5_add_str_mem_ldap_mod(&mods, "objectclass", LDAP_MOD_ADD, strval)) != 0)
/titanic_41/usr/src/lib/libadm/common/
H A Dckkeywd.c41 match(char *strval, char *set[]) in match() argument
46 len = (int)strlen(strval); in match()
50 if (strncmp(set[i], strval, len) == 0) { in match()
58 (void) strcpy(strval, found); in match()
65 ckkeywd(char *strval, char *keyword[], char *defstr, char *error, char *help, in ckkeywd() argument
93 (void) strcpy(strval, defstr); in ckkeywd()
104 (void) strcpy(strval, input); in ckkeywd()
116 (void) strcpy(strval, input); in ckkeywd()
H A Dckitem.c131 char strval[MAX_INPUT]; in ckitem() local
164 if (n = getstr(strval, defstr, error, help, prompt)) { in ckitem()
169 if (strcmp(strval, "??") == 0) { in ckitem()
172 if ((defstr) && (strcmp(strval, defstr) == 0)) { in ckitem()
176 list = match(menup, strval, (int)max); in ckitem()
191 getnum(char *strval, int max, int *begin, int *end) in getnum() argument
197 pt = strval; in getnum()
232 match(CKMENU *menup, char *strval, int max) argument
244 if (pt = strpbrk(strval, " \t,")) {
255 isdigit((unsigned char)*strval)) {
[all …]
H A Dgetvol.c290 char strval[16], prmpt[BUFSIZ]; in insert() local
409 if (n = ckkeywd(strval, keyword, NULL, NULL, NULL, pt)) in insert()
413 if (*strval == 'f') { in insert()
419 } else if (*strval == 'm') { in insert()
422 } else if (*strval == 'e' || *strval == 'u') { in insert()
425 } else if (*strval == 'w') { in insert()
428 } else if (*strval == 'o') in insert()
H A Dckstr.c142 ckstr(char *strval, char *regexp[], int length, char *defstr, char *error, in ckstr() argument
163 (void) strcpy(strval, defstr); in ckstr()
176 (void) strcpy(strval, input); in ckstr()
185 (void) strcpy(strval, input); in ckstr()
/titanic_41/usr/src/cmd/captoinfo/
H A Dcaptoinfo.c126 static char **strval[2]; /* dynamic array of string pointers */ variable
320 strval[uselevel][i] = otgetstr(strcodes[i], &nextstring); in filltables()
324 if (strval[uselevel][i]) { in filltables()
326 tpr(trace, strval[uselevel][i]); in filltables()
333 if (strval[uselevel][i] && (strval[uselevel][i][0] == '\0')) { in filltables()
337 strval[uselevel][i] = NULL; in filltables()
446 tpr(trace, strval[uselevel][i]); in getcapstr()
449 return (strval[uselevel][i]); in getcapstr()
506 tpr(trace, strval[uselevel][i]); in getinfostr()
509 return (strval[uselevel][i]); in getinfostr()
[all …]
/titanic_41/usr/src/lib/libslp/javalib/com/sun/slp/
H A DSLPV1SSrvMsg.java1041 String strval = valTok.toString().trim(); in parseValue() local
1045 if (strval.startsWith(WILDCARD)) { in parseValue()
1047 strval = strval.substring(1, strval.length()); in parseValue()
1051 if (strval.endsWith(WILDCARD)) { in parseValue()
1053 strval = strval.substring(0, strval.length()-1); in parseValue()
1060 ServiceLocationAttributeV1.evaluate(strval, charCode); in parseValue()
1065 strval = in parseValue()
1072 strval = WILDCARD + strval; in parseValue()
1077 strval = strval + WILDCARD; in parseValue()
1082 strval = val.toString(); in parseValue()
[all …]
/titanic_41/usr/src/cmd/valtools/
H A Dckkeywd.c85 char *strval; in main() local
170 strval = (char *)malloc(len); in main()
171 if (!strval) { in main()
176 n = ckkeywd(strval, keyword, deflt, error, help, prompt); in main()
182 (void) fputs(strval, stdout); in main()
H A Dckuid.c117 char *strval; in main() local
221 strval = (char *)malloc(len); in main()
222 if (!strval) { in main()
227 n = ckuid(strval, disp, deflt, error, help, prompt); in main()
233 (void) fputs(strval, stdout); in main()
H A Dckstr.c116 char *strval; in main() local
257 strval = (char *)malloc(len); in main()
258 if (!strval) { in main()
263 n = ckstr(strval, regexp, length, deflt, error, help, prompt); in main()
269 (void) fputs(strval, stdout); in main()
/titanic_41/usr/src/cmd/cmd-inet/lib/ipmgmtd/
H A Dipmgmt_persist.c1037 char strval[IPMGMT_STRSIZE]; in i_ipmgmt_node2nvl() local
1051 (void) snprintf(strval, IPMGMT_STRSIZE, "%d", np->am_lnum); in i_ipmgmt_node2nvl()
1052 if ((err = nvlist_add_string(*nvl, IPADM_NVP_LIFNUM, strval)) != 0) in i_ipmgmt_node2nvl()
1055 (void) snprintf(strval, IPMGMT_STRSIZE, "%d", np->am_family); in i_ipmgmt_node2nvl()
1056 if ((err = nvlist_add_string(*nvl, IPADM_NVP_FAMILY, strval)) != 0) in i_ipmgmt_node2nvl()
1059 (void) snprintf(strval, IPMGMT_STRSIZE, "%d", np->am_flags); in i_ipmgmt_node2nvl()
1060 if ((err = nvlist_add_string(*nvl, FLAGS, strval)) != 0) in i_ipmgmt_node2nvl()
1063 (void) snprintf(strval, IPMGMT_STRSIZE, "%d", np->am_atype); in i_ipmgmt_node2nvl()
1064 if ((err = nvlist_add_string(*nvl, ATYPE, strval)) != 0) in i_ipmgmt_node2nvl()
1077 if (inet_ntop(AF_INET6, &in6->sin6_addr, strval, in i_ipmgmt_node2nvl()
[all …]
/titanic_41/usr/src/cmd/zonecfg/
H A Dzonecfg_lex.l346 yylval.strval = create_token(yytext);
351 yylval.strval = create_token(yytext);
356 yylval.strval = create_token(yytext);
361 yylval.strval = create_token(yytext + 1);
362 if (yylval.strval[yyleng - 2] == '"')
363 yylval.strval[yyleng - 2] = 0;
368 yylval.strval = create_token(yytext + 1);
369 if (yylval.strval[yyleng - 2] == '"')
370 yylval.strval[yyleng - 2] = 0;
/titanic_41/usr/src/cmd/infocmp/
H A Dinfocmp.c616 register char *strval; in check_nth_terminal() local
765 strval = tgetstr(str[i].capname, (char **)0); in check_nth_terminal()
767 if (str[i].seenagain && (strval != NULL)) { in check_nth_terminal()
768 if (!EQUAL(strval, str[i].secondval)) { in check_nth_terminal()
778 PR(stderr, strval); in check_nth_terminal()
782 if (strval != NULL) { in check_nth_terminal()
784 str[i].secondval = strval; in check_nth_terminal()
786 if (!EQUAL(str[i].val, strval)) in check_nth_terminal()
793 if (strval != NULL) { in check_nth_terminal()
796 str[i].fullname, strval); in check_nth_terminal()
[all …]
/titanic_41/usr/src/cmd/tnf/prex/
H A Dprexlex.l103 ${ID} { yylval.strval = strdup(&yytext[1]); return SETNAME; }
104 &{ID} { yylval.strval = strdup(&yytext[1]); return FCNNAME; }
105 {ID} { yylval.strval = strdup(yytext); return IDENT; }
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/
H A Dnwamcfg_lex.l219 yylval.strval = safe_strdup(yytext);
224 yylval.strval = safe_strdup(yytext);
229 yylval.strval = safe_strdup(yytext);
234 yylval.strval = safe_strdup(yytext);
/titanic_41/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dllp.c297 char *strval; in upgrade_llp_config() local
374 strval = wp->llp_ipv4addrstr; in upgrade_llp_config()
375 if ((err = nwamd_set_ncu_string(ip_ncu, &strval, 1, in upgrade_llp_config()
391 strval = wp->llp_ipv6addrstr; in upgrade_llp_config()
392 if ((err = nwamd_set_ncu_string(ip_ncu, &strval, 1, in upgrade_llp_config()
/titanic_41/usr/src/cmd/ldap/common/
H A Dldapsearch.c46 static void write_string_attr_value( char *attrname, char *strval,
1093 write_string_attr_value( char *attrname, char *strval, unsigned long opts ) in write_string_attr_value() argument
1095 if ( strval == NULL ) { in write_string_attr_value()
1096 strval = ""; in write_string_attr_value()
1099 write_ldif_value( attrname, strval, strlen( strval ), 0 ); in write_string_attr_value()
1101 printf( "%s\n", strval ); in write_string_attr_value()
1103 printf( "%s%s%s\n", attrname, sep, strval ); in write_string_attr_value()
/titanic_41/usr/src/lib/libzfs/common/
H A Dlibzfs_dataset.c957 char *strval; in zfs_valid_proplist() local
997 (void) nvpair_value_string(elem, &strval); in zfs_valid_proplist()
998 if (nvlist_add_string(ret, propname, strval) != 0) { in zfs_valid_proplist()
1044 (void) nvpair_value_string(elem, &strval); in zfs_valid_proplist()
1045 if (strcmp(strval, "none") == 0) { in zfs_valid_proplist()
1048 strval, &intval) != 0) { in zfs_valid_proplist()
1119 &strval, &intval, errbuf) != 0) in zfs_valid_proplist()
1184 if (strcasecmp(strval, ZFS_MLSLABEL_DEFAULT) == 0) in zfs_valid_proplist()
1189 (str_to_label(strval, &new_sl, MAC_LABEL, in zfs_valid_proplist()
1204 if (strcmp(strval, hex) == 0) { in zfs_valid_proplist()
[all …]
H A Dlibzfs_pool.c218 const char *strval; in zpool_get_prop() local
341 if (zpool_prop_index_to_string(prop, intval, &strval) in zpool_get_prop()
344 (void) strlcpy(buf, strval, len); in zpool_get_prop()
399 char *strval; in zpool_valid_proplist() local
435 (void) nvpair_value_string(elem, &strval); in zpool_valid_proplist()
436 if (strcmp(strval, ZFS_FEATURE_ENABLED) != 0) { in zpool_valid_proplist()
469 &strval, &intval, errbuf) != 0) in zpool_valid_proplist()
508 if (strval[0] != '\0' && !bootfs_name_valid(poolname, in zpool_valid_proplist()
509 strval)) { in zpool_valid_proplist()
511 "is an invalid name"), strval); in zpool_valid_proplist()
[all …]

123