]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
better printing
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 4 Nov 2012 16:37:44 +0000 (17:37 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 4 Nov 2012 16:37:44 +0000 (17:37 +0100)
src/danetool.c

index 1cf92ff924365ce0b01a5e9e1894962088715851..f0213d4cb94403b4c17cd530a6bc9a8de6621bc7 100644 (file)
@@ -213,7 +213,8 @@ size_t size;
       if (ret < 0)
         error (EXIT_FAILURE, 0, "gnutls_hex_encode: %s", dane_strerror (ret));
 
-      fprintf(outfile, "\nEntry %d:\n_%u._%s.%s. IN TLSA ( %.2x %.2x %.2x %s )\n", i+1, port, proto, host, usage, type, match, buffer);
+      printf("\nEntry %d:\n", i+1);
+      fprintf(outfile, "_%u._%s.%s. IN TLSA ( %.2x %.2x %.2x %s )\n", port, proto, host, usage, type, match, buffer);
 
       printf("\nCertificate usage: %s\n", dane_cert_usage_name(usage));
       printf("Certificate type: %s\n", dane_cert_type_name(type));