]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Use error instead of fprintf.
authorSimon Josefsson <simon@josefsson.org>
Tue, 4 Nov 2008 16:59:11 +0000 (17:59 +0100)
committerSimon Josefsson <simon@josefsson.org>
Tue, 4 Nov 2008 16:59:11 +0000 (17:59 +0100)
src/certtool.c

index 3e9d0fc7977a397be1c2d52c321044e4257019b4..33e8db0abcb736b474dfc1263ae817ac3660928a 100644 (file)
@@ -2697,7 +2697,7 @@ pkcs12_info (void)
 
   result = gnutls_pkcs12_verify_mac (pkcs12, pass);
   if (result < 0)
-    fprintf (stderr, "verify_mac: %s", gnutls_strerror (result));
+    error (0, 0, "verify_mac: %s", gnutls_strerror (result));
 
   indx = 0;
 
@@ -2728,11 +2728,10 @@ pkcs12_info (void)
 
          result = gnutls_pkcs12_bag_decrypt (bag, pass);
 
-         if (result < 0) 
+         if (result < 0)
            {
-               fprintf (stderr, "bag_decrypt: %s",
-                  gnutls_strerror (result));
-               continue;
+             error (0, 0, "bag_decrypt: %s", gnutls_strerror (result));
+             continue;
            }
 
          result = gnutls_pkcs12_bag_get_count (bag);