ret = 0;
if (verbose) {
- BIO_printf(bio_err, "bytes read : %8ju\n", BIO_number_read(in));
- BIO_printf(bio_err, "bytes written: %8ju\n", BIO_number_written(out));
+ BIO_printf(bio_err, "bytes read : %8ju\n",
+ (uintmax_t)BIO_number_read(in));
+ BIO_printf(bio_err, "bytes written: %8ju\n",
+ (uintmax_t)BIO_number_written(out));
}
end:
ERR_print_errors(bio_err);
BIO_printf(bio,
"---\nSSL handshake has read %ju bytes "
"and written %ju bytes\n",
- BIO_number_read(SSL_get_rbio(s)),
- BIO_number_written(SSL_get_wbio(s)));
+ (uintmax_t)BIO_number_read(SSL_get_rbio(s)),
+ (uintmax_t)BIO_number_written(SSL_get_wbio(s)));
}
print_verify_detail(s, bio);
BIO_printf(bio, (SSL_session_reused(s) ? "---\nReused, " : "---\nNew, "));
int indent, const ASN1_PCTX *pctx)
{
if ((it->size & INTxx_FLAG_SIGNED) == INTxx_FLAG_SIGNED)
- return BIO_printf(out, "%jd\n", **(int64_t **)pval);
- return BIO_printf(out, "%ju\n", **(uint64_t **)pval);
+ return BIO_printf(out, "%jd\n", (intmax_t)**(int64_t **)pval);
+ return BIO_printf(out, "%ju\n", (uintmax_t)**(uint64_t **)pval);
}
/* 32-bit variants */
if (is_true && c != CONSTTIME_TRUE_64) {
TEST_error("TRUE %s op failed", op_name);
- BIO_printf(bio_err, "a=%jx b=%jx\n", a, b);
+ BIO_printf(bio_err, "a=%jx b=%jx\n", (uintmax_t)a, (uintmax_t)b);
return 0;
} else if (!is_true && c != CONSTTIME_FALSE_64) {
TEST_error("FALSE %s op failed", op_name);
- BIO_printf(bio_err, "a=%jx b=%jx\n", a, b);
+ BIO_printf(bio_err, "a=%jx b=%jx\n", (uintmax_t)a, (uintmax_t)b);
return 0;
}
return 1;
if (selected != a) {
TEST_error("test_select_64 TRUE failed");
- BIO_printf(bio_err, "a=%jx b=%jx got %jx wanted a\n", a, b, selected);
+ BIO_printf(bio_err, "a=%jx b=%jx got %jx wanted a\n",
+ (uintmax_t)a, (uintmax_t)b, (uintmax_t)selected);
return 0;
}
selected = constant_time_select_64(CONSTTIME_FALSE_64, a, b);
if (selected != b) {
- BIO_printf(bio_err, "a=%jx b=%jx got %jx wanted b\n", a, b, selected);
+ BIO_printf(bio_err, "a=%jx b=%jx got %jx wanted b\n",
+ (uintmax_t)a, (uintmax_t)b, (uintmax_t)selected);
return 0;
}
return 1;