From c2896b10c5f170d3821a647c1f38f542fdeba9eb Mon Sep 17 00:00:00 2001 From: Adriaan de Jong Date: Tue, 5 Jul 2011 09:56:53 +0200 Subject: [PATCH] Fixed a compilation warning for size_t key sizes Signed-off-by: Adriaan de Jong Acked-by: David Sommerseth Signed-off-by: David Sommerseth --- ssl_polarssl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.47.2