Permalink
Browse files

Moved from %zd to a more compatible format string (counter_format)

Signed-off-by: Adriaan de Jong <dejong@fox-it.com>
  • Loading branch information...
1 parent 86338fd commit 82e745b6e4c81b5fa5f0d0793383a292696d2991 @andj committed Oct 6, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 ssl_polarssl.c
View
6 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 %zd 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
@@ -822,7 +822,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), ", %zd 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);

0 comments on commit 82e745b

Please sign in to comment.