diff options
-rw-r--r-- | ssl_polarssl.c | 6 |
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); |