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

Diff for /src/usr.bin/openssl/req.c between version 1.14 and 1.15

version 1.14, 2017/01/20 08:57:12 version 1.15, 2018/02/07 05:47:55
Line 340 
Line 340 
         }          }
   
         if (badops) {          if (badops) {
 bad:   bad:
                 BIO_printf(bio_err, "%s [options] <infile >outfile\n", prog);                  BIO_printf(bio_err, "%s [options] <infile >outfile\n", prog);
                 BIO_printf(bio_err, "where options  are\n");                  BIO_printf(bio_err, "where options  are\n");
                 BIO_printf(bio_err, " -inform arg    input format - DER or PEM\n");                  BIO_printf(bio_err, " -inform arg    input format - DER or PEM\n");
Line 591 
Line 591 
                         cipher = NULL;                          cipher = NULL;
   
                 i = 0;                  i = 0;
 loop:   loop:
                 if (!PEM_write_bio_PrivateKey(out, pkey, cipher,                  if (!PEM_write_bio_PrivateKey(out, pkey, cipher,
                         NULL, 0, NULL, passout)) {                          NULL, 0, NULL, passout)) {
                         if ((ERR_GET_REASON(ERR_peek_error()) ==                          if ((ERR_GET_REASON(ERR_peek_error()) ==
Line 858 
Line 858 
                 }                  }
         }          }
         ex = 0;          ex = 0;
 end:   end:
         if (ex) {          if (ex) {
                 ERR_print_errors(bio_err);                  ERR_print_errors(bio_err);
         }          }
Line 943 
Line 943 
                 goto err;                  goto err;
   
         ret = 1;          ret = 1;
 err:   err:
         return (ret);          return (ret);
 }  }
   
Line 996 
Line 996 
         }          }
         if (sk_CONF_VALUE_num(dn_sk)) {          if (sk_CONF_VALUE_num(dn_sk)) {
                 i = -1;                  i = -1;
 start:          for (;;) {   start:         for (;;) {
                         int ret;                          int ret;
                         i++;                          i++;
                         if (sk_CONF_VALUE_num(dn_sk) <= i)                          if (sk_CONF_VALUE_num(dn_sk) <= i)
Line 1214 
Line 1214 
 {  {
         int i, ret = 0;          int i, ret = 0;
         char buf[1024];          char buf[1024];
 start:   start:
         if (!batch)          if (!batch)
                 BIO_printf(bio_err, "%s [%s]:", text, def);                  BIO_printf(bio_err, "%s [%s]:", text, def);
         (void) BIO_flush(bio_err);          (void) BIO_flush(bio_err);
Line 1255 
Line 1255 
                 (unsigned char *) buf, -1, -1, mval))                  (unsigned char *) buf, -1, -1, mval))
                 goto err;                  goto err;
         ret = 1;          ret = 1;
 err:   err:
         return (ret);          return (ret);
 }  }
   
Line 1267 
Line 1267 
         int i;          int i;
         static char buf[1024];          static char buf[1024];
   
 start:   start:
         if (!batch)          if (!batch)
                 BIO_printf(bio_err, "%s [%s]:", text, def);                  BIO_printf(bio_err, "%s [%s]:", text, def);
         (void) BIO_flush(bio_err);          (void) BIO_flush(bio_err);
Line 1312 
Line 1312 
                 goto err;                  goto err;
         }          }
         return (1);          return (1);
 err:   err:
         return (0);          return (0);
 }  }
   

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15