aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2014-05-24 23:55:27 +0100
committerMatt Caswell <matt@openssl.org>2014-05-24 23:55:27 +0100
commit955376fde3c60999b27deeebb41d82ad17dca3da (patch)
tree056149afcf27b7b401013e54f290300a74e02582
parent894172f207437cb7564e8cd5f7b50f7cbfd068e1 (diff)
downloadopenssl-955376fde3c60999b27deeebb41d82ad17dca3da.tar.gz
Fix for non compilation with TLS_DEBUG defined
-rw-r--r--ssl/t1_enc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c
index a98f6fe882..52fd32978a 100644
--- a/ssl/t1_enc.c
+++ b/ssl/t1_enc.c
@@ -1067,14 +1067,10 @@ int tls1_mac(SSL *ssl, unsigned char *md, int send)
if (!stream_mac)
EVP_MD_CTX_cleanup(&hmac);
#ifdef TLS_DEBUG
-printf("sec=");
-{unsigned int z; for (z=0; z<md_size; z++) printf("%02X ",mac_sec[z]); printf("\n"); }
printf("seq=");
{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=");
-{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
if (!SSL_IS_DTLS(ssl))