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

Diff for /src/usr.bin/openssl/dh.c between version 1.5 and 1.6

version 1.5, 2015/08/22 16:36:05 version 1.6, 2015/09/11 14:30:23
Line 77 
Line 77 
 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;
Line 101 
Line 98 
                 .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)",
Line 157 
Line 145 
 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);
 }  }
Line 179 
Line 167 
                 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());

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