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
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);