[pkg-opensc-commit] [opensc] 146/295: Do not print data to terminal when output file is given.

Eric Dorland eric at moszumanska.debian.org
Sat Jun 24 21:11:25 UTC 2017


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository opensc.

commit ebf0a8b9f5e2a3fa2d15cc9842c6d1232f3cd4f2
Author: Nuno Goncalves <nunojpg at gmail.com>
Date:   Tue Jan 3 07:10:23 2017 +0000

    Do not print data to terminal when output file is given.
    
    This brings --read-data-object behavior in line with
    --read-certificate, which only print the object to
    stdout if no output file is given.
    
    Signed-off-by: Nuno Goncalves <nunojpg at gmail.com>
---
 src/tools/pkcs15-tool.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/tools/pkcs15-tool.c b/src/tools/pkcs15-tool.c
index 4c7be8d..4693f21 100644
--- a/src/tools/pkcs15-tool.c
+++ b/src/tools/pkcs15-tool.c
@@ -389,16 +389,6 @@ print_data_object(const char *kind, const u8*data, size_t data_len)
 			}
 		for (i=0; i < data_len; i++)
 			fprintf(outf, "%c", data[i]);
-		if (opt_raw) {
-			for (i=0; i < data_len; i++)
-				printf("%c", data[i]);
-		} else {
-			printf("Dumping (%lu bytes) to file <%s>: <",
-				(unsigned long) data_len, opt_outfile);
-			for (i=0; i < data_len; i++)
-				printf(" %02X", data[i]);
-			printf(" >\n");
-		}
 		fclose(outf);
 	} else {
 		if (opt_raw) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/opensc.git



More information about the pkg-opensc-commit mailing list