use case-insensitive comparison in set_table_opts
authorBodo Möller <bodo@openssl.org>
Sat, 10 Feb 2001 11:21:29 +0000 (11:21 +0000)
committerBodo Möller <bodo@openssl.org>
Sat, 10 Feb 2001 11:21:29 +0000 (11:21 +0000)
(similar to how arguments such as -inform/-outform specifications
are treated)

apps/apps.c

index bdd8c714264984394ce623aa3cdd67c27fc6128d..ddc4df077343c02baf65d06bf9fa3de057e2d72e 100644 (file)
@@ -806,7 +806,7 @@ static int set_table_opts(unsigned long *flags, const char *arg, const NAME_EX_T
        } else c = 1;
 
        for(ptbl = in_tbl; ptbl->name; ptbl++) {
-               if(!strcmp(arg, ptbl->name)) {
+               if(!strcasecmp(arg, ptbl->name)) {
                        *flags &= ~ptbl->mask;
                        if(c) *flags |= ptbl->flag;
                        else *flags &= ~ptbl->flag;