Commit c97f9f64 authored by Paul Bakker's avatar Paul Bakker

Removed making commandline arguments case insensitive

parent a8239a44
......@@ -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;
......
......@@ -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 )
......
......@@ -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 )
......
......@@ -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 )
......
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment