summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdriaan de Jong <dejong@fox-it.com>2011-07-05 09:56:53 +0200
committerDavid Sommerseth <davids@redhat.com>2011-10-22 15:18:53 +0200
commitc2896b10c5f170d3821a647c1f38f542fdeba9eb (patch)
treee97da894d6595d57b0d953a3446db2f88f3d0a91
parent50d1fc0dd5844fd0ef92b4d09e021f9332fd5e77 (diff)
downloadopenvpn-c2896b10c5f170d3821a647c1f38f542fdeba9eb.tar.gz
openvpn-c2896b10c5f170d3821a647c1f38f542fdeba9eb.tar.xz
openvpn-c2896b10c5f170d3821a647c1f38f542fdeba9eb.zip
Fixed a compilation warning for size_t key sizes
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>
-rw-r--r--ssl_polarssl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ssl_polarssl.c b/ssl_polarssl.c
index e9b4bff..7ea20ca 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);