change 'usage' formatting
This commit is contained in:
parent
34f1f2a81c
commit
e2aeb8174b
1 changed files with 49 additions and 53 deletions
102
apps/ecparam.c
102
apps/ecparam.c
|
@ -98,31 +98,28 @@
|
||||||
#undef PROG
|
#undef PROG
|
||||||
#define PROG ecparam_main
|
#define PROG ecparam_main
|
||||||
|
|
||||||
/* -inform arg - input format - default PEM (DER or PEM)
|
/* -inform arg - input format - default PEM (DER or PEM)
|
||||||
* -outform arg - output format - default PEM
|
* -outform arg - output format - default PEM
|
||||||
* -in arg - input file - default stdin
|
* -in arg - input file - default stdin
|
||||||
* -out arg - output file - default stdout
|
* -out arg - output file - default stdout
|
||||||
* -noout
|
* -noout - do not print the ec parameter
|
||||||
* -text
|
* -text - print the ec parameters in text form
|
||||||
* -check - validate the ec parameters
|
* -check - validate the ec parameters
|
||||||
* -C
|
* -C - print a 'C' function creating the parameters
|
||||||
* -noout
|
* -name arg - use the ec parameters with 'short name' name
|
||||||
* -name file - use the ecparameters with 'short name' name
|
* -list_curves - prints a list of all currently available curve 'short names'
|
||||||
* -list_curves - prints a list of all currently available curve
|
* -conv_form arg - specifies the point conversion form
|
||||||
* 'short names' and exits
|
* - possible values: compressed
|
||||||
* -conv_form - specifies the point conversion form
|
* uncompressed (default)
|
||||||
* possible values: compressed
|
* hybrid
|
||||||
* uncompressed (default)
|
* -param_enc arg - specifies the way the ec parameters are encoded
|
||||||
* hybrid
|
* in the asn1 der encoding
|
||||||
* -param_enc - specifies the way the ec parameters are encoded
|
* possible values: named_curve (default)
|
||||||
* in the asn1 der encoding
|
* explicit
|
||||||
* possilbe values: named_curve (default)
|
* -no_seed - if 'explicit' parameters are choosen do not use the seed
|
||||||
* explicit
|
* -genkey - generate ec key
|
||||||
* -no_seed - if 'explicit' parameters are choosen do not
|
* -rand file - files to use for random number input
|
||||||
* use the seed
|
* -engine e - use engine e, possibly a hardware device
|
||||||
* -genkey - generates a ec private key
|
|
||||||
* -rand file
|
|
||||||
* -engine e - use engine e, possible a hardware device
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -264,52 +261,51 @@ int MAIN(int argc, char **argv)
|
||||||
bad:
|
bad:
|
||||||
BIO_printf(bio_err, "%s [options] <infile >outfile\n",prog);
|
BIO_printf(bio_err, "%s [options] <infile >outfile\n",prog);
|
||||||
BIO_printf(bio_err, "where options are\n");
|
BIO_printf(bio_err, "where options are\n");
|
||||||
BIO_printf(bio_err, " -inform arg input format - "
|
BIO_printf(bio_err, " -inform arg input format - "
|
||||||
"default PEM (DER or PEM)\n");
|
"default PEM (DER or PEM)\n");
|
||||||
BIO_printf(bio_err, " -outform arg output format - "
|
BIO_printf(bio_err, " -outform arg output format - "
|
||||||
"default PEM\n");
|
"default PEM\n");
|
||||||
BIO_printf(bio_err, " -in arg input file - "
|
BIO_printf(bio_err, " -in arg input file - "
|
||||||
"default stdin\n");
|
"default stdin\n");
|
||||||
BIO_printf(bio_err, " -out arg output file - "
|
BIO_printf(bio_err, " -out arg output file - "
|
||||||
"default stdout\n");
|
"default stdout\n");
|
||||||
BIO_printf(bio_err, " -noout do not print the "
|
BIO_printf(bio_err, " -noout do not print the "
|
||||||
"ec parameter\n");
|
"ec parameter\n");
|
||||||
BIO_printf(bio_err, " -text print the ec "
|
BIO_printf(bio_err, " -text print the ec "
|
||||||
"parameters in text form\n");
|
"parameters in text form\n");
|
||||||
BIO_printf(bio_err, " -check validate the ec "
|
BIO_printf(bio_err, " -check validate the ec "
|
||||||
"parameters\n");
|
"parameters\n");
|
||||||
BIO_printf(bio_err, " -C print a 'C' "
|
BIO_printf(bio_err, " -C print a 'C' "
|
||||||
"function creating the parameters\n");
|
"function creating the parameters\n");
|
||||||
BIO_printf(bio_err, " -name arg use the "
|
BIO_printf(bio_err, " -name arg use the "
|
||||||
"ec parameters with 'short name' name\n");
|
"ec parameters with 'short name' name\n");
|
||||||
BIO_printf(bio_err, " -list_curves prints a list of "
|
BIO_printf(bio_err, " -list_curves prints a list of "
|
||||||
"all currently available curve\n");
|
"all currently available curve 'short names'\n");
|
||||||
BIO_printf(bio_err, " 'short names'\n");
|
BIO_printf(bio_err, " -conv_form arg specifies the "
|
||||||
BIO_printf(bio_err, " -conv_form arg specifies the "
|
|
||||||
"point conversion form \n");
|
"point conversion form \n");
|
||||||
BIO_printf(bio_err, " possible values:"
|
BIO_printf(bio_err, " possible values:"
|
||||||
" compressed\n");
|
" compressed\n");
|
||||||
BIO_printf(bio_err, " "
|
BIO_printf(bio_err, " "
|
||||||
" uncompressed (default)\n");
|
" uncompressed (default)\n");
|
||||||
BIO_printf(bio_err, " "
|
BIO_printf(bio_err, " "
|
||||||
" hybrid\n");
|
" hybrid\n");
|
||||||
BIO_printf(bio_err, " -param_enc arg specifies the way"
|
BIO_printf(bio_err, " -param_enc arg specifies the way"
|
||||||
" the ec parameters are encoded\n");
|
" the ec parameters are encoded\n");
|
||||||
BIO_printf(bio_err, " in the asn1 der "
|
BIO_printf(bio_err, " in the asn1 der "
|
||||||
"encoding\n");
|
"encoding\n");
|
||||||
BIO_printf(bio_err, " possilbe values:"
|
BIO_printf(bio_err, " possible values:"
|
||||||
" named_curve (default)\n");
|
" named_curve (default)\n");
|
||||||
BIO_printf(bio_err," "
|
BIO_printf(bio_err, " "
|
||||||
" explicit\n");
|
" explicit\n");
|
||||||
BIO_printf(bio_err, " -no_seed if 'explicit'"
|
BIO_printf(bio_err, " -no_seed if 'explicit'"
|
||||||
" parameters are choosen do not\n");
|
" parameters are choosen do not"
|
||||||
BIO_printf(bio_err, " use the seed\n");
|
" use the seed\n");
|
||||||
BIO_printf(bio_err, " -genkey generate ec"
|
BIO_printf(bio_err, " -genkey generate ec"
|
||||||
" key\n");
|
" key\n");
|
||||||
BIO_printf(bio_err, " -rand file files to use for"
|
BIO_printf(bio_err, " -rand file files to use for"
|
||||||
" random number input\n");
|
" random number input\n");
|
||||||
BIO_printf(bio_err, " -engine e use engine e, "
|
BIO_printf(bio_err, " -engine e use engine e, "
|
||||||
"possible a hardware device\n");
|
"possibly a hardware device\n");
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue