提交 2b7363ec 编写于 作者: M Matt Caswell

Ensure SSL_DEBUG works following size_t changes

Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 3cdc2f8f
......@@ -389,7 +389,7 @@ int ssl3_get_record(SSL *s)
goto f_err;
}
#ifdef SSL_DEBUG
printf("dec %ld\n", rr->length);
printf("dec %"OSSLzu"\n", rr->length);
{
size_t z;
for (z = 0; z < rr->length; z++)
......
......@@ -264,7 +264,7 @@ int tls1_change_cipher_state(SSL *s, int which)
#ifdef SSL_DEBUG
printf("which = %04X\nmac key=", which);
{
int z;
size_t z;
for (z = 0; z < i; z++)
printf("%02X%c", ms[z], ((z + 1) % 16) ? ' ' : '\n');
}
......@@ -334,7 +334,7 @@ int tls1_change_cipher_state(SSL *s, int which)
}
printf("\niv=");
{
int z;
size_t z;
for (z = 0; z < k; z++)
printf("%02X%c", iv[z], ((z + 1) % 16) ? ' ' : '\n');
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册