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

Diff for /src/usr.bin/openssl/dhparam.c between version 1.9 and 1.10

version 1.9, 2017/01/20 08:57:11 version 1.10, 2018/02/07 04:57:06
Line 292 
Line 292 
                         BIO_printf(bio_err, "Generating DSA parameters, %d bit long prime\n", num);                          BIO_printf(bio_err, "Generating DSA parameters, %d bit long prime\n", num);
                         if (!dsa || !DSA_generate_parameters_ex(dsa, num,                          if (!dsa || !DSA_generate_parameters_ex(dsa, num,
                                 NULL, 0, NULL, NULL, &cb)) {                                  NULL, 0, NULL, NULL, &cb)) {
                                 if (dsa)                                  DSA_free(dsa);
                                         DSA_free(dsa);  
                                 ERR_print_errors(bio_err);                                  ERR_print_errors(bio_err);
                                 goto end;                                  goto end;
                         }                          }
Line 469 
Line 468 
   
 end:  end:
         BIO_free(in);          BIO_free(in);
         if (out != NULL)          BIO_free_all(out);
                 BIO_free_all(out);          DH_free(dh);
         if (dh != NULL)  
                 DH_free(dh);  
   
         return (ret);          return (ret);
 }  }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10