s/strcmp/strcasecmp/

This commit is contained in:
Kurt Zeilenga 2004-09-18 00:15:06 +00:00
parent 5368501f35
commit 5e41701ca2

View File

@ -1495,7 +1495,7 @@ ldap_str2syntax( LDAP_CONST char * s,
case TK_RIGHTPAREN: case TK_RIGHTPAREN:
return syn; return syn;
case TK_BAREWORD: case TK_BAREWORD:
if ( !strcmp(sval,"NAME") ) { if ( !strcasecmp(sval,"NAME") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_name ) { if ( seen_name ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -1512,7 +1512,7 @@ ldap_str2syntax( LDAP_CONST char * s,
ldap_syntax_free(syn); ldap_syntax_free(syn);
return NULL; return NULL;
} }
} else if ( !strcmp(sval,"DESC") ) { } else if ( !strcasecmp(sval,"DESC") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_desc ) { if ( seen_desc ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -1625,11 +1625,11 @@ ldap_str2matchingrule( LDAP_CONST char * s,
ss = savepos; ss = savepos;
kind = get_token(&ss,&sval); kind = get_token(&ss,&sval);
if ( kind == TK_BAREWORD ) { if ( kind == TK_BAREWORD ) {
if ( !strcmp(sval, "NAME") || if ( !strcasecmp(sval, "NAME") ||
!strcmp(sval, "DESC") || !strcasecmp(sval, "DESC") ||
!strcmp(sval, "OBSOLETE") || !strcasecmp(sval, "OBSOLETE") ||
!strcmp(sval, "SYNTAX") || !strcasecmp(sval, "SYNTAX") ||
!strncmp(sval, "X-", 2) ) { !strncasecmp(sval, "X-", 2) ) {
/* Missing OID, backtrack */ /* Missing OID, backtrack */
ss = savepos; ss = savepos;
} else { } else {
@ -1665,7 +1665,7 @@ ldap_str2matchingrule( LDAP_CONST char * s,
} }
return mr; return mr;
case TK_BAREWORD: case TK_BAREWORD:
if ( !strcmp(sval,"NAME") ) { if ( !strcasecmp(sval,"NAME") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_name ) { if ( seen_name ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -1682,7 +1682,7 @@ ldap_str2matchingrule( LDAP_CONST char * s,
ldap_matchingrule_free(mr); ldap_matchingrule_free(mr);
return NULL; return NULL;
} }
} else if ( !strcmp(sval,"DESC") ) { } else if ( !strcasecmp(sval,"DESC") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_desc ) { if ( seen_desc ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -1702,7 +1702,7 @@ ldap_str2matchingrule( LDAP_CONST char * s,
} }
mr->mr_desc = sval; mr->mr_desc = sval;
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"OBSOLETE") ) { } else if ( !strcasecmp(sval,"OBSOLETE") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_obsolete ) { if ( seen_obsolete ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -1713,7 +1713,7 @@ ldap_str2matchingrule( LDAP_CONST char * s,
seen_obsolete = 1; seen_obsolete = 1;
mr->mr_obsolete = LDAP_SCHEMA_YES; mr->mr_obsolete = LDAP_SCHEMA_YES;
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"SYNTAX") ) { } else if ( !strcasecmp(sval,"SYNTAX") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_syntax ) { if ( seen_syntax ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -1824,11 +1824,11 @@ ldap_str2matchingruleuse( LDAP_CONST char * s,
ss = savepos; ss = savepos;
kind = get_token(&ss,&sval); kind = get_token(&ss,&sval);
if ( kind == TK_BAREWORD ) { if ( kind == TK_BAREWORD ) {
if ( !strcmp(sval, "NAME") || if ( !strcasecmp(sval, "NAME") ||
!strcmp(sval, "DESC") || !strcasecmp(sval, "DESC") ||
!strcmp(sval, "OBSOLETE") || !strcasecmp(sval, "OBSOLETE") ||
!strcmp(sval, "APPLIES") || !strcasecmp(sval, "APPLIES") ||
!strncmp(sval, "X-", 2) ) { !strncasecmp(sval, "X-", 2) ) {
/* Missing OID, backtrack */ /* Missing OID, backtrack */
ss = savepos; ss = savepos;
} else { } else {
@ -1864,7 +1864,7 @@ ldap_str2matchingruleuse( LDAP_CONST char * s,
} }
return mru; return mru;
case TK_BAREWORD: case TK_BAREWORD:
if ( !strcmp(sval,"NAME") ) { if ( !strcasecmp(sval,"NAME") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_name ) { if ( seen_name ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -1881,7 +1881,7 @@ ldap_str2matchingruleuse( LDAP_CONST char * s,
ldap_matchingruleuse_free(mru); ldap_matchingruleuse_free(mru);
return NULL; return NULL;
} }
} else if ( !strcmp(sval,"DESC") ) { } else if ( !strcasecmp(sval,"DESC") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_desc ) { if ( seen_desc ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -1901,7 +1901,7 @@ ldap_str2matchingruleuse( LDAP_CONST char * s,
} }
mru->mru_desc = sval; mru->mru_desc = sval;
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"OBSOLETE") ) { } else if ( !strcasecmp(sval,"OBSOLETE") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_obsolete ) { if ( seen_obsolete ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -1912,7 +1912,7 @@ ldap_str2matchingruleuse( LDAP_CONST char * s,
seen_obsolete = 1; seen_obsolete = 1;
mru->mru_obsolete = LDAP_SCHEMA_YES; mru->mru_obsolete = LDAP_SCHEMA_YES;
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"APPLIES") ) { } else if ( !strcasecmp(sval,"APPLIES") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_applies ) { if ( seen_applies ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2040,19 +2040,19 @@ ldap_str2attributetype( LDAP_CONST char * s,
ss = savepos; ss = savepos;
kind = get_token(&ss,&sval); kind = get_token(&ss,&sval);
if ( kind == TK_BAREWORD ) { if ( kind == TK_BAREWORD ) {
if ( !strcmp(sval, "NAME") || if ( !strcasecmp(sval, "NAME") ||
!strcmp(sval, "DESC") || !strcasecmp(sval, "DESC") ||
!strcmp(sval, "OBSOLETE") || !strcasecmp(sval, "OBSOLETE") ||
!strcmp(sval, "SUP") || !strcasecmp(sval, "SUP") ||
!strcmp(sval, "EQUALITY") || !strcasecmp(sval, "EQUALITY") ||
!strcmp(sval, "ORDERING") || !strcasecmp(sval, "ORDERING") ||
!strcmp(sval, "SUBSTR") || !strcasecmp(sval, "SUBSTR") ||
!strcmp(sval, "SYNTAX") || !strcasecmp(sval, "SYNTAX") ||
!strcmp(sval, "SINGLE-VALUE") || !strcasecmp(sval, "SINGLE-VALUE") ||
!strcmp(sval, "COLLECTIVE") || !strcasecmp(sval, "COLLECTIVE") ||
!strcmp(sval, "NO-USER-MODIFICATION") || !strcasecmp(sval, "NO-USER-MODIFICATION") ||
!strcmp(sval, "USAGE") || !strcasecmp(sval, "USAGE") ||
!strncmp(sval, "X-", 2) ) { !strncasecmp(sval, "X-", 2) ) {
/* Missing OID, backtrack */ /* Missing OID, backtrack */
ss = savepos; ss = savepos;
} else if ( flags } else if ( flags
@ -2088,7 +2088,7 @@ ldap_str2attributetype( LDAP_CONST char * s,
case TK_RIGHTPAREN: case TK_RIGHTPAREN:
return at; return at;
case TK_BAREWORD: case TK_BAREWORD:
if ( !strcmp(sval,"NAME") ) { if ( !strcasecmp(sval,"NAME") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_name ) { if ( seen_name ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2105,7 +2105,7 @@ ldap_str2attributetype( LDAP_CONST char * s,
ldap_attributetype_free(at); ldap_attributetype_free(at);
return NULL; return NULL;
} }
} else if ( !strcmp(sval,"DESC") ) { } else if ( !strcasecmp(sval,"DESC") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_desc ) { if ( seen_desc ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2125,7 +2125,7 @@ ldap_str2attributetype( LDAP_CONST char * s,
} }
at->at_desc = sval; at->at_desc = sval;
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"OBSOLETE") ) { } else if ( !strcasecmp(sval,"OBSOLETE") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_obsolete ) { if ( seen_obsolete ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2136,7 +2136,7 @@ ldap_str2attributetype( LDAP_CONST char * s,
seen_obsolete = 1; seen_obsolete = 1;
at->at_obsolete = LDAP_SCHEMA_YES; at->at_obsolete = LDAP_SCHEMA_YES;
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"SUP") ) { } else if ( !strcasecmp(sval,"SUP") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_sup ) { if ( seen_sup ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2151,7 +2151,7 @@ ldap_str2attributetype( LDAP_CONST char * s,
ldap_attributetype_free(at); ldap_attributetype_free(at);
return NULL; return NULL;
} }
} else if ( !strcmp(sval,"EQUALITY") ) { } else if ( !strcasecmp(sval,"EQUALITY") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_equality ) { if ( seen_equality ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2166,7 +2166,7 @@ ldap_str2attributetype( LDAP_CONST char * s,
ldap_attributetype_free(at); ldap_attributetype_free(at);
return NULL; return NULL;
} }
} else if ( !strcmp(sval,"ORDERING") ) { } else if ( !strcasecmp(sval,"ORDERING") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_ordering ) { if ( seen_ordering ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2181,7 +2181,7 @@ ldap_str2attributetype( LDAP_CONST char * s,
ldap_attributetype_free(at); ldap_attributetype_free(at);
return NULL; return NULL;
} }
} else if ( !strcmp(sval,"SUBSTR") ) { } else if ( !strcasecmp(sval,"SUBSTR") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_substr ) { if ( seen_substr ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2196,7 +2196,7 @@ ldap_str2attributetype( LDAP_CONST char * s,
ldap_attributetype_free(at); ldap_attributetype_free(at);
return NULL; return NULL;
} }
} else if ( !strcmp(sval,"SYNTAX") ) { } else if ( !strcasecmp(sval,"SYNTAX") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_syntax ) { if ( seen_syntax ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2240,7 +2240,7 @@ ldap_str2attributetype( LDAP_CONST char * s,
} }
} }
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"SINGLE-VALUE") ) { } else if ( !strcasecmp(sval,"SINGLE-VALUE") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( at->at_single_value ) { if ( at->at_single_value ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2250,7 +2250,7 @@ ldap_str2attributetype( LDAP_CONST char * s,
} }
at->at_single_value = LDAP_SCHEMA_YES; at->at_single_value = LDAP_SCHEMA_YES;
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"COLLECTIVE") ) { } else if ( !strcasecmp(sval,"COLLECTIVE") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( at->at_collective ) { if ( at->at_collective ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2260,7 +2260,7 @@ ldap_str2attributetype( LDAP_CONST char * s,
} }
at->at_collective = LDAP_SCHEMA_YES; at->at_collective = LDAP_SCHEMA_YES;
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"NO-USER-MODIFICATION") ) { } else if ( !strcasecmp(sval,"NO-USER-MODIFICATION") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( at->at_no_user_mod ) { if ( at->at_no_user_mod ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2270,7 +2270,7 @@ ldap_str2attributetype( LDAP_CONST char * s,
} }
at->at_no_user_mod = LDAP_SCHEMA_YES; at->at_no_user_mod = LDAP_SCHEMA_YES;
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"USAGE") ) { } else if ( !strcasecmp(sval,"USAGE") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_usage ) { if ( seen_usage ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2415,16 +2415,16 @@ ldap_str2objectclass( LDAP_CONST char * s,
ss = savepos; ss = savepos;
kind = get_token(&ss,&sval); kind = get_token(&ss,&sval);
if ( kind == TK_BAREWORD ) { if ( kind == TK_BAREWORD ) {
if ( !strcmp(sval, "NAME") || if ( !strcasecmp(sval, "NAME") ||
!strcmp(sval, "DESC") || !strcasecmp(sval, "DESC") ||
!strcmp(sval, "OBSOLETE") || !strcasecmp(sval, "OBSOLETE") ||
!strcmp(sval, "SUP") || !strcasecmp(sval, "SUP") ||
!strcmp(sval, "ABSTRACT") || !strcasecmp(sval, "ABSTRACT") ||
!strcmp(sval, "STRUCTURAL") || !strcasecmp(sval, "STRUCTURAL") ||
!strcmp(sval, "AUXILIARY") || !strcasecmp(sval, "AUXILIARY") ||
!strcmp(sval, "MUST") || !strcasecmp(sval, "MUST") ||
!strcmp(sval, "MAY") || !strcasecmp(sval, "MAY") ||
!strncmp(sval, "X-", 2) ) { !strncasecmp(sval, "X-", 2) ) {
/* Missing OID, backtrack */ /* Missing OID, backtrack */
ss = savepos; ss = savepos;
} else if ( flags & } else if ( flags &
@ -2460,7 +2460,7 @@ ldap_str2objectclass( LDAP_CONST char * s,
case TK_RIGHTPAREN: case TK_RIGHTPAREN:
return oc; return oc;
case TK_BAREWORD: case TK_BAREWORD:
if ( !strcmp(sval,"NAME") ) { if ( !strcasecmp(sval,"NAME") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_name ) { if ( seen_name ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2477,7 +2477,7 @@ ldap_str2objectclass( LDAP_CONST char * s,
ldap_objectclass_free(oc); ldap_objectclass_free(oc);
return NULL; return NULL;
} }
} else if ( !strcmp(sval,"DESC") ) { } else if ( !strcasecmp(sval,"DESC") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_desc ) { if ( seen_desc ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2497,7 +2497,7 @@ ldap_str2objectclass( LDAP_CONST char * s,
} }
oc->oc_desc = sval; oc->oc_desc = sval;
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"OBSOLETE") ) { } else if ( !strcasecmp(sval,"OBSOLETE") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_obsolete ) { if ( seen_obsolete ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2508,7 +2508,7 @@ ldap_str2objectclass( LDAP_CONST char * s,
seen_obsolete = 1; seen_obsolete = 1;
oc->oc_obsolete = LDAP_SCHEMA_YES; oc->oc_obsolete = LDAP_SCHEMA_YES;
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"SUP") ) { } else if ( !strcasecmp(sval,"SUP") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_sup ) { if ( seen_sup ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2525,7 +2525,7 @@ ldap_str2objectclass( LDAP_CONST char * s,
ldap_objectclass_free(oc); ldap_objectclass_free(oc);
return NULL; return NULL;
} }
} else if ( !strcmp(sval,"ABSTRACT") ) { } else if ( !strcasecmp(sval,"ABSTRACT") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_kind ) { if ( seen_kind ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2536,7 +2536,7 @@ ldap_str2objectclass( LDAP_CONST char * s,
seen_kind = 1; seen_kind = 1;
oc->oc_kind = LDAP_SCHEMA_ABSTRACT; oc->oc_kind = LDAP_SCHEMA_ABSTRACT;
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"STRUCTURAL") ) { } else if ( !strcasecmp(sval,"STRUCTURAL") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_kind ) { if ( seen_kind ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2547,7 +2547,7 @@ ldap_str2objectclass( LDAP_CONST char * s,
seen_kind = 1; seen_kind = 1;
oc->oc_kind = LDAP_SCHEMA_STRUCTURAL; oc->oc_kind = LDAP_SCHEMA_STRUCTURAL;
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"AUXILIARY") ) { } else if ( !strcasecmp(sval,"AUXILIARY") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_kind ) { if ( seen_kind ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2558,7 +2558,7 @@ ldap_str2objectclass( LDAP_CONST char * s,
seen_kind = 1; seen_kind = 1;
oc->oc_kind = LDAP_SCHEMA_AUXILIARY; oc->oc_kind = LDAP_SCHEMA_AUXILIARY;
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"MUST") ) { } else if ( !strcasecmp(sval,"MUST") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_must ) { if ( seen_must ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2574,7 +2574,7 @@ ldap_str2objectclass( LDAP_CONST char * s,
return NULL; return NULL;
} }
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"MAY") ) { } else if ( !strcasecmp(sval,"MAY") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_may ) { if ( seen_may ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2692,14 +2692,14 @@ ldap_str2contentrule( LDAP_CONST char * s,
ss = savepos; ss = savepos;
kind = get_token(&ss,&sval); kind = get_token(&ss,&sval);
if ( kind == TK_BAREWORD ) { if ( kind == TK_BAREWORD ) {
if ( !strcmp(sval, "NAME") || if ( !strcasecmp(sval, "NAME") ||
!strcmp(sval, "DESC") || !strcasecmp(sval, "DESC") ||
!strcmp(sval, "OBSOLETE") || !strcasecmp(sval, "OBSOLETE") ||
!strcmp(sval, "AUX") || !strcasecmp(sval, "AUX") ||
!strcmp(sval, "MUST") || !strcasecmp(sval, "MUST") ||
!strcmp(sval, "MAY") || !strcasecmp(sval, "MAY") ||
!strcmp(sval, "NOT") || !strcasecmp(sval, "NOT") ||
!strncmp(sval, "X-", 2) ) { !strncasecmp(sval, "X-", 2) ) {
/* Missing OID, backtrack */ /* Missing OID, backtrack */
ss = savepos; ss = savepos;
} else if ( flags & } else if ( flags &
@ -2735,7 +2735,7 @@ ldap_str2contentrule( LDAP_CONST char * s,
case TK_RIGHTPAREN: case TK_RIGHTPAREN:
return cr; return cr;
case TK_BAREWORD: case TK_BAREWORD:
if ( !strcmp(sval,"NAME") ) { if ( !strcasecmp(sval,"NAME") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_name ) { if ( seen_name ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2752,7 +2752,7 @@ ldap_str2contentrule( LDAP_CONST char * s,
ldap_contentrule_free(cr); ldap_contentrule_free(cr);
return NULL; return NULL;
} }
} else if ( !strcmp(sval,"DESC") ) { } else if ( !strcasecmp(sval,"DESC") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_desc ) { if ( seen_desc ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2772,7 +2772,7 @@ ldap_str2contentrule( LDAP_CONST char * s,
} }
cr->cr_desc = sval; cr->cr_desc = sval;
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"OBSOLETE") ) { } else if ( !strcasecmp(sval,"OBSOLETE") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_obsolete ) { if ( seen_obsolete ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2783,7 +2783,7 @@ ldap_str2contentrule( LDAP_CONST char * s,
seen_obsolete = 1; seen_obsolete = 1;
cr->cr_obsolete = LDAP_SCHEMA_YES; cr->cr_obsolete = LDAP_SCHEMA_YES;
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"AUX") ) { } else if ( !strcasecmp(sval,"AUX") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_aux ) { if ( seen_aux ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2799,7 +2799,7 @@ ldap_str2contentrule( LDAP_CONST char * s,
return NULL; return NULL;
} }
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"MUST") ) { } else if ( !strcasecmp(sval,"MUST") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_must ) { if ( seen_must ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2815,7 +2815,7 @@ ldap_str2contentrule( LDAP_CONST char * s,
return NULL; return NULL;
} }
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"MAY") ) { } else if ( !strcasecmp(sval,"MAY") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_may ) { if ( seen_may ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2831,7 +2831,7 @@ ldap_str2contentrule( LDAP_CONST char * s,
return NULL; return NULL;
} }
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"NOT") ) { } else if ( !strcasecmp(sval,"NOT") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_not ) { if ( seen_not ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2964,7 +2964,7 @@ ldap_str2structurerule( LDAP_CONST char * s,
} }
return sr; return sr;
case TK_BAREWORD: case TK_BAREWORD:
if ( !strcmp(sval,"NAME") ) { if ( !strcasecmp(sval,"NAME") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_name ) { if ( seen_name ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -2981,7 +2981,7 @@ ldap_str2structurerule( LDAP_CONST char * s,
ldap_structurerule_free(sr); ldap_structurerule_free(sr);
return NULL; return NULL;
} }
} else if ( !strcmp(sval,"DESC") ) { } else if ( !strcasecmp(sval,"DESC") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_desc ) { if ( seen_desc ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -3001,7 +3001,7 @@ ldap_str2structurerule( LDAP_CONST char * s,
} }
sr->sr_desc = sval; sr->sr_desc = sval;
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"OBSOLETE") ) { } else if ( !strcasecmp(sval,"OBSOLETE") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_obsolete ) { if ( seen_obsolete ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -3012,7 +3012,7 @@ ldap_str2structurerule( LDAP_CONST char * s,
seen_obsolete = 1; seen_obsolete = 1;
sr->sr_obsolete = LDAP_SCHEMA_YES; sr->sr_obsolete = LDAP_SCHEMA_YES;
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"FORM") ) { } else if ( !strcasecmp(sval,"FORM") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_nameform ) { if ( seen_nameform ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -3153,7 +3153,7 @@ ldap_str2nameform( LDAP_CONST char * s,
} }
return nf; return nf;
case TK_BAREWORD: case TK_BAREWORD:
if ( !strcmp(sval,"NAME") ) { if ( !strcasecmp(sval,"NAME") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_name ) { if ( seen_name ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -3170,7 +3170,7 @@ ldap_str2nameform( LDAP_CONST char * s,
ldap_nameform_free(nf); ldap_nameform_free(nf);
return NULL; return NULL;
} }
} else if ( !strcmp(sval,"DESC") ) { } else if ( !strcasecmp(sval,"DESC") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_desc ) { if ( seen_desc ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -3190,7 +3190,7 @@ ldap_str2nameform( LDAP_CONST char * s,
} }
nf->nf_desc = sval; nf->nf_desc = sval;
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"OBSOLETE") ) { } else if ( !strcasecmp(sval,"OBSOLETE") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_obsolete ) { if ( seen_obsolete ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -3201,7 +3201,7 @@ ldap_str2nameform( LDAP_CONST char * s,
seen_obsolete = 1; seen_obsolete = 1;
nf->nf_obsolete = LDAP_SCHEMA_YES; nf->nf_obsolete = LDAP_SCHEMA_YES;
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"MUST") ) { } else if ( !strcasecmp(sval,"MUST") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_must ) { if ( seen_must ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;
@ -3217,7 +3217,7 @@ ldap_str2nameform( LDAP_CONST char * s,
return NULL; return NULL;
} }
parse_whsp(&ss); parse_whsp(&ss);
} else if ( !strcmp(sval,"MAY") ) { } else if ( !strcasecmp(sval,"MAY") ) {
LDAP_FREE(sval); LDAP_FREE(sval);
if ( seen_may ) { if ( seen_may ) {
*code = LDAP_SCHERR_DUPOPT; *code = LDAP_SCHERR_DUPOPT;