version 1.6, 2014/12/14 14:45:33 |
version 1.7, 2014/12/28 14:21:42 |
|
|
} ecparam_config; |
} ecparam_config; |
|
|
static int |
static int |
ecparam_opt_form(struct option *opt, char *arg) |
ecparam_opt_form(char *arg) |
{ |
{ |
if (strcmp(arg, "compressed") == 0) |
if (strcmp(arg, "compressed") == 0) |
ecparam_config.form = POINT_CONVERSION_COMPRESSED; |
ecparam_config.form = POINT_CONVERSION_COMPRESSED; |
|
|
} |
} |
|
|
static int |
static int |
ecparam_opt_enctype(struct option *opt, char *arg) |
ecparam_opt_enctype(char *arg) |
{ |
{ |
if (strcmp(arg, "explicit") == 0) |
if (strcmp(arg, "explicit") == 0) |
ecparam_config.asn1_flag = 0; |
ecparam_config.asn1_flag = 0; |
|
|
.desc = "Specify point conversion form:\n" |
.desc = "Specify point conversion form:\n" |
" compressed, uncompressed (default), hybrid", |
" compressed, uncompressed (default), hybrid", |
.type = OPTION_ARG_FUNC, |
.type = OPTION_ARG_FUNC, |
.func = ecparam_opt_form, |
.opt.argfunc = ecparam_opt_form, |
}, |
}, |
#ifndef OPENSSL_NO_ENGINE |
#ifndef OPENSSL_NO_ENGINE |
{ |
{ |
|
|
.desc = "Specify EC parameter ASN.1 encoding type:\n" |
.desc = "Specify EC parameter ASN.1 encoding type:\n" |
" explicit, named_curve (default)", |
" explicit, named_curve (default)", |
.type = OPTION_ARG_FUNC, |
.type = OPTION_ARG_FUNC, |
.func = ecparam_opt_enctype, |
.opt.argfunc = ecparam_opt_enctype, |
}, |
}, |
{ |
{ |
.name = "text", |
.name = "text", |