Fix for non compilation with TLS_DEBUG defined
This commit is contained in:
parent
3f2959beee
commit
44f28dd1e6
@ -942,14 +942,10 @@ int tls1_mac(SSL *ssl, unsigned char *md, int send)
|
|||||||
if (!stream_mac)
|
if (!stream_mac)
|
||||||
EVP_MD_CTX_cleanup(&hmac);
|
EVP_MD_CTX_cleanup(&hmac);
|
||||||
#ifdef TLS_DEBUG
|
#ifdef TLS_DEBUG
|
||||||
printf("sec=");
|
|
||||||
{unsigned int z; for (z=0; z<md_size; z++) printf("%02X ",mac_sec[z]); printf("\n"); }
|
|
||||||
printf("seq=");
|
printf("seq=");
|
||||||
{int z; for (z=0; z<8; z++) printf("%02X ",seq[z]); printf("\n"); }
|
{int z; for (z=0; z<8; z++) printf("%02X ",seq[z]); printf("\n"); }
|
||||||
printf("buf=");
|
|
||||||
{int z; for (z=0; z<5; z++) printf("%02X ",buf[z]); printf("\n"); }
|
|
||||||
printf("rec=");
|
printf("rec=");
|
||||||
{unsigned int z; for (z=0; z<rec->length; z++) printf("%02X ",buf[z]); printf("\n"); }
|
{unsigned int z; for (z=0; z<rec->length; z++) printf("%02X ",rec->data[z]); printf("\n"); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (ssl->version != DTLS1_VERSION && ssl->version != DTLS1_BAD_VER)
|
if (ssl->version != DTLS1_VERSION && ssl->version != DTLS1_BAD_VER)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user