diff --git a/programs/test/ssl_test.c b/programs/test/ssl_test.c index debdb073e..216213240 100644 --- a/programs/test/ssl_test.c +++ b/programs/test/ssl_test.c @@ -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; diff --git a/programs/util/pem2der.c b/programs/util/pem2der.c index f3726843d..f1da438dc 100644 --- a/programs/util/pem2der.c +++ b/programs/util/pem2der.c @@ -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 ) diff --git a/programs/x509/cert_req.c b/programs/x509/cert_req.c index 2388dc9fc..c738b4a9e 100644 --- a/programs/x509/cert_req.c +++ b/programs/x509/cert_req.c @@ -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 ) diff --git a/programs/x509/cert_write.c b/programs/x509/cert_write.c index beac089b7..a2f265697 100644 --- a/programs/x509/cert_write.c +++ b/programs/x509/cert_write.c @@ -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 ) diff --git a/programs/x509/crl_app.c b/programs/x509/crl_app.c index 4bc37037f..0e4cd8801 100644 --- a/programs/x509/crl_app.c +++ b/programs/x509/crl_app.c @@ -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; diff --git a/programs/x509/req_app.c b/programs/x509/req_app.c index 9f478f2c0..1f9d62841 100644 --- a/programs/x509/req_app.c +++ b/programs/x509/req_app.c @@ -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;