Fix for non compilation with TLS_DEBUG defined
authorMatt Caswell <matt@openssl.org>
Sat, 24 May 2014 22:55:27 +0000 (23:55 +0100)
committerMatt Caswell <matt@openssl.org>
Sat, 24 May 2014 22:55:27 +0000 (23:55 +0100)
ssl/t1_enc.c

index a98f6fe882d7362d76e2fe273a7e4ccefd16b748..52fd32978a8b4b946bb4f1090d1c6bac9ad21ea2 100644 (file)
@@ -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))