From: Adriaan de Jong Date: Tue, 5 Jul 2011 07:56:53 +0000 (+0200) Subject: Fixed a compilation warning for size_t key sizes X-Git-Tag: v2.3-alpha1~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2896b10c5f170d3821a647c1f38f542fdeba9eb;p=thirdparty%2Fopenvpn.git Fixed a compilation warning for size_t key sizes Signed-off-by: Adriaan de Jong Acked-by: David Sommerseth Signed-off-by: David Sommerseth --- diff --git a/ssl_polarssl.c b/ssl_polarssl.c index e9b4bff84..7ea20ca38 100644 --- a/ssl_polarssl.c +++ b/ssl_polarssl.c @@ -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);