Skip to content

Commit

Permalink
Clear warnings/errors within TLS_DEBUG code sections
Browse files Browse the repository at this point in the history
Reviewed-by: Tim Hudson <tjh@openssl.org>
  • Loading branch information
levitte committed Dec 17, 2014
1 parent 3ddb291 commit 6dec5e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ssl/t1_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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; z<rec->length; 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; z<rec->length; z++) fprintf(stderr,"%02X ",rec->data[z]); fprintf(stderr,"\n"); }
#endif

if (!SSL_IS_DTLS(ssl))
Expand All @@ -1080,7 +1080,7 @@ printf("rec=");
}

#ifdef TLS_DEBUG
{unsigned int z; for (z=0; z<md_size; z++) printf("%02X ",md[z]); printf("\n"); }
{unsigned int z; for (z=0; z<md_size; z++) fprintf(stderr,"%02X ",md[z]); fprintf(stderr,"\n"); }
#endif
return(md_size);
}
Expand Down

0 comments on commit 6dec5e1

Please sign in to comment.