]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fixed a compilation warning for size_t key sizes
authorAdriaan de Jong <dejong@fox-it.com>
Tue, 5 Jul 2011 07:56:53 +0000 (09:56 +0200)
committerDavid Sommerseth <davids@redhat.com>
Sat, 22 Oct 2011 13:18:53 +0000 (15:18 +0200)
Signed-off-by: Adriaan de Jong <dejong@fox-it.com>
Acked-by: David Sommerseth <davids@redhat.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
ssl_polarssl.c

index e9b4bff84b3d43c65f1ccb704478afeb44bfb603..7ea20ca3823e01069f50fc0b2233b92ba465a186 100644 (file)
@@ -207,8 +207,8 @@ else
       msg (M_FATAL, "Cannot read DH parameters from file %s", dh_file);
   }
 
-  msg (D_TLS_DEBUG_LOW, "Diffie-Hellman initialized with %d bit key",
-      8 * mpi_size(&ctx->dhm_ctx->P));
+  msg (D_TLS_DEBUG_LOW, "Diffie-Hellman initialized with " counter_format " bit key",
+      (counter_type) 8 * mpi_size(&ctx->dhm_ctx->P));
 }
 
 int
@@ -813,7 +813,7 @@ print_details (struct key_state_ssl * ks_ssl, const char *prefix)
   cert = ks_ssl->ctx->peer_cert;
   if (cert != NULL)
     {
-      openvpn_snprintf (s2, sizeof (s2), ", %d bit RSA", cert->rsa.len * 8);
+      openvpn_snprintf (s2, sizeof (s2), ", " counter_format " bit RSA", (counter_type) cert->rsa.len * 8);
     }
 
   msg (D_HANDSHAKE, "%s%s", s1, s2);