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

Diff for /src/usr.bin/openssl/dgst.c between version 1.2 and 1.3

version 1.2, 2015/07/20 17:10:45 version 1.3, 2015/07/20 18:23:52
Line 393 
Line 393 
   
         if (sigfile && sigkey) {          if (sigfile && sigkey) {
                 BIO *sigbio;                  BIO *sigbio;
                 sigbio = BIO_new_file(sigfile, "rb");  
                 siglen = EVP_PKEY_size(sigkey);                  siglen = EVP_PKEY_size(sigkey);
                 sigbuf = malloc(siglen);                  sigbuf = malloc(siglen);
                   if (sigbuf == NULL) {
                           BIO_printf(bio_err, "out of memory\n");
                           ERR_print_errors(bio_err);
                           goto end;
                   }
                   sigbio = BIO_new_file(sigfile, "rb");
                 if (!sigbio) {                  if (!sigbio) {
                         BIO_printf(bio_err, "Error opening signature file %s\n",                          BIO_printf(bio_err, "Error opening signature file %s\n",
                             sigfile);                              sigfile);

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3