version 1.6, 2015/09/10 16:01:06 |
version 1.7, 2015/09/11 14:30:23 |
|
|
int do_zlib; |
int do_zlib; |
#endif |
#endif |
int enc; |
int enc; |
#ifndef OPENSSL_NO_ENGINE |
|
char *engine; |
|
#endif |
|
char *hiv; |
char *hiv; |
char *hkey; |
char *hkey; |
char *hsalt; |
char *hsalt; |
|
|
.opt.value = &enc_config.enc, |
.opt.value = &enc_config.enc, |
.value = 1, |
.value = 1, |
}, |
}, |
#ifndef OPENSSL_NO_ENGINE |
|
{ |
{ |
.name = "engine", |
|
.argname = "id", |
|
.desc = "Use the engine specified by the given identifier", |
|
.type = OPTION_ARG, |
|
.opt.arg = &enc_config.engine, |
|
}, |
|
#endif |
|
{ |
|
.name = "in", |
.name = "in", |
.argname = "file", |
.argname = "file", |
.desc = "Input file to read from (default stdin)", |
.desc = "Input file to read from (default stdin)", |
|
|
{ |
{ |
fprintf(stderr, "usage: enc -ciphername [-AadePp] [-base64] " |
fprintf(stderr, "usage: enc -ciphername [-AadePp] [-base64] " |
"[-bufsize number] [-debug]\n" |
"[-bufsize number] [-debug]\n" |
" [-engine id] [-in file] [-iv IV] [-K key] [-k password]\n" |
" [-in file] [-iv IV] [-K key] [-k password]\n" |
" [-kfile file] [-md digest] [-none] [-nopad] [-nosalt]\n" |
" [-kfile file] [-md digest] [-none] [-nopad] [-nosalt]\n" |
" [-out file] [-pass arg] [-S salt] [-salt]\n\n"); |
" [-out file] [-pass arg] [-S salt] [-salt]\n\n"); |
options_usage(enc_options); |
options_usage(enc_options); |
|
|
} |
} |
enc_config.keystr = buf; |
enc_config.keystr = buf; |
} |
} |
|
|
#ifndef OPENSSL_NO_ENGINE |
|
setup_engine(bio_err, enc_config.engine, 0); |
|
#endif |
|
|
|
if (enc_config.md != NULL && |
if (enc_config.md != NULL && |
(dgst = EVP_get_digestbyname(enc_config.md)) == NULL) { |
(dgst = EVP_get_digestbyname(enc_config.md)) == NULL) { |