version 1.5, 2015/08/22 16:36:05 |
version 1.6, 2015/09/11 14:30:23 |
|
|
static struct { |
static struct { |
int C; |
int C; |
int check; |
int check; |
#ifndef OPENSSL_NO_ENGINE |
|
char *engine; |
|
#endif |
|
char *infile; |
char *infile; |
int informat; |
int informat; |
int noout; |
int noout; |
|
|
.type = OPTION_FLAG, |
.type = OPTION_FLAG, |
.opt.flag = &dh_config.check, |
.opt.flag = &dh_config.check, |
}, |
}, |
#ifndef OPENSSL_NO_ENGINE |
|
{ |
{ |
.name = "engine", |
|
.argname = "id", |
|
.desc = "Use the engine specified by the given identifier", |
|
.type = OPTION_ARG, |
|
.opt.arg = &dh_config.engine, |
|
}, |
|
#endif |
|
{ |
|
.name = "in", |
.name = "in", |
.argname = "file", |
.argname = "file", |
.desc = "Input file (default stdin)", |
.desc = "Input file (default stdin)", |
|
|
dh_usage(void) |
dh_usage(void) |
{ |
{ |
fprintf(stderr, |
fprintf(stderr, |
"usage: dh [-C] [-check] [-engine id] [-in file] [-inform format]\n" |
"usage: dh [-C] [-check] [-in file] [-inform format]\n" |
" [-noout] [-out file] [-outform format] [-text]\n\n"); |
" [-noout] [-out file] [-outform format] [-text]\n\n"); |
options_usage(dh_options); |
options_usage(dh_options); |
} |
} |
|
|
dh_usage(); |
dh_usage(); |
goto end; |
goto end; |
} |
} |
|
|
#ifndef OPENSSL_NO_ENGINE |
|
setup_engine(bio_err, dh_config.engine, 0); |
|
#endif |
|
|
|
in = BIO_new(BIO_s_file()); |
in = BIO_new(BIO_s_file()); |
out = BIO_new(BIO_s_file()); |
out = BIO_new(BIO_s_file()); |