From: Richard Levitte Date: Tue, 16 Dec 2014 10:04:19 +0000 (+0100) Subject: Clear warnings/errors within TLS_DEBUG code sections X-Git-Tag: OpenSSL_1_0_1k~39 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=feefb73ad9e5dc3f98ecdf2f1b4eee035567a185 Clear warnings/errors within TLS_DEBUG code sections Reviewed-by: Andy Polyakov (cherry picked from commit bf68456f538cacc9dcfd00986962aef0e8538289) --- diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index b89aa5b7e0..1308c0344f 100644 --- a/ssl/t1_enc.c +++ b/ssl/t1_enc.c @@ -1048,10 +1048,10 @@ int tls1_mac(SSL *ssl, unsigned char *md, int send) if (!stream_mac) EVP_MD_CTX_cleanup(&hmac); #ifdef TLS_DEBUG -printf("seq="); -{int z; for (z=0; z<8; z++) printf("%02X ",seq[z]); printf("\n"); } -printf("rec="); -{unsigned int z; for (z=0; zlength; z++) printf("%02X ",rec->data[z]); printf("\n"); } +fprintf(stderr,"seq="); +{int z; for (z=0; z<8; z++) fprintf(stderr,"%02X ",seq[z]); fprintf(stderr,"\n"); } +fprintf(stderr,"rec="); +{unsigned int z; for (z=0; zlength; z++) fprintf(stderr,"%02X ",rec->data[z]); fprintf(stderr,"\n"); } #endif if (ssl->version != DTLS1_VERSION && ssl->version != DTLS1_BAD_VER) @@ -1064,7 +1064,7 @@ printf("rec="); } #ifdef TLS_DEBUG -{unsigned int z; for (z=0; z