projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
756587d
)
Fix for non compilation with TLS_DEBUG defined
author
Matt Caswell
<matt@openssl.org>
Sat, 24 May 2014 22:55:27 +0000
(23:55 +0100)
committer
Matt Caswell
<matt@openssl.org>
Sat, 24 May 2014 22:56:58 +0000
(23:56 +0100)
ssl/t1_enc.c
patch
|
blob
|
history
diff --git
a/ssl/t1_enc.c
b/ssl/t1_enc.c
index 0c4cddedf85c703e55d7b5bbf5be6612dabaf221..5e05e933223d6921c87617a1ba4295e3e4ce3ec1 100644
(file)
--- a/
ssl/t1_enc.c
+++ b/
ssl/t1_enc.c
@@
-1048,14
+1048,10
@@
int tls1_mac(SSL *ssl, unsigned char *md, int send)
if (!stream_mac)
EVP_MD_CTX_cleanup(&hmac);
#ifdef TLS_DEBUG
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("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=");
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->version != DTLS1_VERSION && ssl->version != DTLS1_BAD_VER)
#endif
if (ssl->version != DTLS1_VERSION && ssl->version != DTLS1_BAD_VER)