Removed making commandline arguments case insensitive

This commit is contained in:
Paul Bakker 2013-11-30 15:13:02 +01:00
parent a8239a4490
commit c97f9f6465
6 changed files with 6 additions and 51 deletions

View file

@ -434,7 +434,7 @@ exit:
int main( int argc, char *argv[] )
{
int i, j, n;
int i;
const int *list;
int ret = 1;
int nb_conn;
@ -474,14 +474,6 @@ int main( int argc, char *argv[] )
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];
if( ( q = strchr( p, '=' ) ) == NULL )
continue;

View file

@ -174,7 +174,7 @@ int main( int argc, char *argv[] )
unsigned char der_buffer[4096];
char buf[1024];
size_t pem_size, der_size = sizeof(der_buffer);
int i, j, n;
int i;
char *p, *q;
/*
@ -201,13 +201,6 @@ int main( int argc, char *argv[] )
goto usage;
*q++ = '\0';
n = strlen( p );
for( j = 0; j < n; j++ )
{
if( argv[i][j] >= 'A' && argv[i][j] <= 'Z' )
argv[i][j] |= 0x20;
}
if( strcmp( p, "filename" ) == 0 )
opt.filename = q;
else if( strcmp( p, "output_file" ) == 0 )

View file

@ -128,7 +128,7 @@ int main( int argc, char *argv[] )
int ret = 0;
pk_context key;
char buf[1024];
int i, j, n;
int i;
char *p, *q, *r;
x509write_csr req;
entropy_context entropy;
@ -166,13 +166,6 @@ int main( int argc, char *argv[] )
goto usage;
*q++ = '\0';
n = strlen( p );
for( j = 0; j < n; j++ )
{
if( argv[i][j] >= 'A' && argv[i][j] <= 'Z' )
argv[i][j] |= 0x20;
}
if( strcmp( p, "filename" ) == 0 )
opt.filename = q;
else if( strcmp( p, "output_file" ) == 0 )

View file

@ -183,7 +183,7 @@ int main( int argc, char *argv[] )
*subject_key = &loaded_subject_key;
char buf[1024];
char issuer_name[128];
int i, j, n;
int i;
char *p, *q, *r;
#if defined(POLARSSL_X509_CSR_PARSE_C)
char subject_name[128];
@ -244,13 +244,6 @@ int main( int argc, char *argv[] )
goto usage;
*q++ = '\0';
n = strlen( p );
for( j = 0; j < n; j++ )
{
if( argv[i][j] >= 'A' && argv[i][j] <= 'Z' )
argv[i][j] |= 0x20;
}
if( strcmp( p, "request_file" ) == 0 )
opt.request_file = q;
else if( strcmp( p, "subject_key" ) == 0 )

View file

@ -66,7 +66,7 @@ int main( int argc, char *argv[] )
int ret = 0;
unsigned char buf[100000];
x509_crl crl;
int i, j, n;
int i;
char *p, *q;
/*
@ -85,14 +85,6 @@ int main( int argc, char *argv[] )
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];
if( ( q = strchr( p, '=' ) ) == NULL )
goto usage;

View file

@ -66,7 +66,7 @@ int main( int argc, char *argv[] )
int ret = 0;
unsigned char buf[100000];
x509_csr csr;
int i, j, n;
int i;
char *p, *q;
/*
@ -85,14 +85,6 @@ int main( int argc, char *argv[] )
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];
if( ( q = strchr( p, '=' ) ) == NULL )
goto usage;