提交 6dec5e1c 编写于 作者: R Richard Levitte

Clear warnings/errors within TLS_DEBUG code sections

Reviewed-by: NTim Hudson <tjh@openssl.org>
上级 3ddb2914
...@@ -1064,10 +1064,10 @@ int tls1_mac(SSL *ssl, unsigned char *md, int send) ...@@ -1064,10 +1064,10 @@ int tls1_mac(SSL *ssl, unsigned char *md, int send)
if (!stream_mac) if (!stream_mac)
EVP_MD_CTX_cleanup(&hmac); EVP_MD_CTX_cleanup(&hmac);
#ifdef TLS_DEBUG #ifdef TLS_DEBUG
printf("seq="); fprintf(stderr,"seq=");
{int z; for (z=0; z<8; z++) printf("%02X ",seq[z]); printf("\n"); } {int z; for (z=0; z<8; z++) fprintf(stderr,"%02X ",seq[z]); fprintf(stderr,"\n"); }
printf("rec="); fprintf(stderr,"rec=");
{unsigned int z; for (z=0; z<rec->length; z++) printf("%02X ",rec->data[z]); printf("\n"); } {unsigned int z; for (z=0; z<rec->length; z++) fprintf(stderr,"%02X ",rec->data[z]); fprintf(stderr,"\n"); }
#endif #endif
if (!SSL_IS_DTLS(ssl)) if (!SSL_IS_DTLS(ssl))
...@@ -1080,7 +1080,7 @@ printf("rec="); ...@@ -1080,7 +1080,7 @@ printf("rec=");
} }
#ifdef TLS_DEBUG #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 #endif
return(md_size); return(md_size);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册