Deleted Added
full compact
dgst.c (111147) dgst.c (127128)
1/* apps/dgst.c */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 333 unchanged lines hidden (view full) ---

342 if (BIO_read_filename(in,argv[i]) <= 0)
343 {
344 perror(argv[i]);
345 err++;
346 continue;
347 }
348 if(!out_bin)
349 {
1/* apps/dgst.c */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 333 unchanged lines hidden (view full) ---

342 if (BIO_read_filename(in,argv[i]) <= 0)
343 {
344 perror(argv[i]);
345 err++;
346 continue;
347 }
348 if(!out_bin)
349 {
350 tmp=tofree=OPENSSL_malloc(strlen(name)+strlen(argv[i])+5);
351 sprintf(tmp,"%s(%s)= ",name,argv[i]);
350 size_t len = strlen(name)+strlen(argv[i])+5;
351 tmp=tofree=OPENSSL_malloc(len);
352 BIO_snprintf(tmp,len,"%s(%s)= ",name,argv[i]);
352 }
353 else
354 tmp="";
355 r=do_fp(out,buf,inp,separator,out_bin,sigkey,sigbuf,
356 siglen,tmp,argv[i]);
357 if(r)
358 err=r;
359 if(tofree)

--- 86 unchanged lines hidden ---
353 }
354 else
355 tmp="";
356 r=do_fp(out,buf,inp,separator,out_bin,sigkey,sigbuf,
357 siglen,tmp,argv[i]);
358 if(r)
359 err=r;
360 if(tofree)

--- 86 unchanged lines hidden ---