version 1.5, 2015/08/22 16:36:05 |
version 1.6, 2015/09/11 14:30:23 |
|
|
int C; |
int C; |
int check; |
int check; |
int dsaparam; |
int dsaparam; |
#ifndef OPENSSL_NO_ENGINE |
|
char *engine; |
|
#endif |
|
int g; |
int g; |
char *infile; |
char *infile; |
int informat; |
int informat; |
|
|
.type = OPTION_FLAG, |
.type = OPTION_FLAG, |
.opt.flag = &dhparam_config.dsaparam, |
.opt.flag = &dhparam_config.dsaparam, |
}, |
}, |
#ifndef OPENSSL_NO_ENGINE |
|
{ |
{ |
.name = "engine", |
|
.argname = "id", |
|
.desc = "Use the engine specified by the given identifier", |
|
.type = OPTION_ARG, |
|
.opt.arg = &dhparam_config.engine, |
|
}, |
|
#endif |
|
{ |
|
.name = "in", |
.name = "in", |
.argname = "file", |
.argname = "file", |
.desc = "Input file (default stdin)", |
.desc = "Input file (default stdin)", |
|
|
dhparam_usage() |
dhparam_usage() |
{ |
{ |
fprintf(stderr, |
fprintf(stderr, |
"usage: dhparam [-2 | -5] [-C] [-check] [-dsaparam] [-engine id]\n" |
"usage: dhparam [-2 | -5] [-C] [-check] [-dsaparam]\n" |
" [-in file] [-inform DER | PEM] [-noout] [-out file]\n" |
" [-in file] [-inform DER | PEM] [-noout] [-out file]\n" |
" [-outform DER | PEM] [-text] [numbits]\n\n"); |
" [-outform DER | PEM] [-text] [numbits]\n\n"); |
options_usage(dhparam_options); |
options_usage(dhparam_options); |
|
|
return (1); |
return (1); |
} |
} |
} |
} |
|
|
#ifndef OPENSSL_NO_ENGINE |
|
setup_engine(bio_err, dhparam_config.engine, 0); |
|
#endif |
|
|
|
if (dhparam_config.g && !num) |
if (dhparam_config.g && !num) |
num = DEFBITS; |
num = DEFBITS; |