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: master-post-reformat~142 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6dec5e1ca91171aa8b5e528c8d8f5f88a7841ec6;p=oweals%2Fopenssl.git Clear warnings/errors within TLS_DEBUG code sections Reviewed-by: Tim Hudson --- diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index 7ef1558dee..dd293065c1 100644 --- a/ssl/t1_enc.c +++ b/ssl/t1_enc.c @@ -1064,10 +1064,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_IS_DTLS(ssl)) @@ -1080,7 +1080,7 @@ printf("rec="); } #ifdef TLS_DEBUG -{unsigned int z; for (z=0; z