[BACK]Return to ecparam.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / openssl

Diff for /src/usr.bin/openssl/ecparam.c between version 1.6 and 1.7

version 1.6, 2014/12/14 14:45:33 version 1.7, 2014/12/28 14:21:42
Line 111 
Line 111 
 } 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;
Line 127 
Line 127 
 }  }
   
 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;
Line 159 
Line 159 
                 .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
         {          {
Line 237 
Line 237 
                 .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",

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7