Do not lowercase key values in arguments in cert_app.c

This commit is contained in:
Paul Bakker 2013-09-16 21:40:34 +02:00
parent cff6842b39
commit ace02867f6

View File

@ -190,19 +190,17 @@ int main( int argc, char *argv[] )
for( i = 1; i < argc; i++ ) for( i = 1; i < argc; i++ )
{ {
n = strlen( argv[i] );
for( j = 0; j < n; j++ )
{
if( argv[i][j] >= 'A' && argv[i][j] <= 'Z' )
argv[i][j] |= 0x20;
}
p = argv[i]; p = argv[i];
if( ( q = strchr( p, '=' ) ) == NULL ) if( ( q = strchr( p, '=' ) ) == NULL )
goto usage; goto usage;
*q++ = '\0'; *q++ = '\0';
for( j = 0; p + j < q; j++ )
{
if( argv[i][j] >= 'A' && argv[i][j] <= 'Z' )
argv[i][j] |= 0x20;
}
if( strcmp( p, "mode" ) == 0 ) if( strcmp( p, "mode" ) == 0 )
{ {
if( strcmp( q, "file" ) == 0 ) if( strcmp( q, "file" ) == 0 )