[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.12 and 1.13

version 1.12, 2015/08/22 16:36:05 version 1.13, 2015/09/11 14:30:23
Line 95 
Line 95 
         int asn1_flag;          int asn1_flag;
         int check;          int check;
         char *curve_name;          char *curve_name;
         char *engine;  
         point_conversion_form_t form;          point_conversion_form_t form;
         int genkey;          int genkey;
         char *infile;          char *infile;
Line 161 
Line 160 
                 .type = OPTION_ARG_FUNC,                  .type = OPTION_ARG_FUNC,
                 .opt.argfunc = ecparam_opt_form,                  .opt.argfunc = ecparam_opt_form,
         },          },
 #ifndef OPENSSL_NO_ENGINE  
         {          {
                 .name = "engine",  
                 .argname = "id",  
                 .desc = "Use the engine specified by the given identifier",  
                 .type = OPTION_ARG,  
                 .opt.arg = &ecparam_config.engine,  
         },  
 #endif  
         {  
                 .name = "genkey",                  .name = "genkey",
                 .desc = "Generate an EC private key using the specified "                  .desc = "Generate an EC private key using the specified "
                     "parameters",                      "parameters",
Line 252 
Line 242 
 ecparam_usage(void)  ecparam_usage(void)
 {  {
         fprintf(stderr, "usage: ecparam [-C] [-check] [-conv_form arg] "          fprintf(stderr, "usage: ecparam [-C] [-check] [-conv_form arg] "
             "[-engine id] [-genkey]\n"              " [-genkey]\n"
             "    [-in file] [-inform DER | PEM] [-list_curves] [-name arg]\n"              "    [-in file] [-inform DER | PEM] [-list_curves] [-name arg]\n"
             "    [-no_seed] [-noout] [-out file] [-outform DER | PEM]\n"              "    [-no_seed] [-noout] [-out file] [-outform DER | PEM]\n"
             "    [-param_enc arg] [-text]\n\n");              "    [-param_enc arg] [-text]\n\n");
Line 302 
Line 292 
                         goto end;                          goto end;
                 }                  }
         }          }
   
 #ifndef OPENSSL_NO_ENGINE  
         setup_engine(bio_err, ecparam_config.engine, 0);  
 #endif  
   
         if (ecparam_config.list_curves) {          if (ecparam_config.list_curves) {
                 EC_builtin_curve *curves = NULL;                  EC_builtin_curve *curves = NULL;

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13