- Removed redundant POLARSSL_DEBUG_MSG define

This commit is contained in:
Paul Bakker 2012-02-11 16:17:43 +00:00
parent a8cd239d6b
commit 1504af585c
4 changed files with 6 additions and 12 deletions

View File

@ -9,6 +9,9 @@ Features
* Added support for multi-domain certificates through the X509 Subject
Alternative Name extension
Changes
* Removed redundant POLARSSL_DEBUG_MSG define
= Version 1.1.1 released on 2012-01-23
Bugfix
* Check for failed malloc() in ssl_set_hostname() and x509_get_entries()

View File

@ -146,15 +146,6 @@
#define POLARSSL_CIPHER_NULL_CIPHER
*/
/**
* \def POLARSSL_DEBUG_MSG
*
* Requires: POLARSSL_DEBUG_C
*
* Enable all SSL/TLS debugging messages.
*/
#define POLARSSL_DEBUG_MSG
/**
* \def POLARSSL_ENABLE_WEAK_CIPHERSUITES
*

View File

@ -30,7 +30,7 @@
#include "config.h"
#include "ssl.h"
#if defined(POLARSSL_DEBUG_MSG) && defined(POLARSSL_DEBUG_C)
#if defined(POLARSSL_DEBUG_C)
#define SSL_DEBUG_MSG( level, args ) \
debug_print_msg( ssl, level, __FILE__, __LINE__, debug_fmt args );

View File

@ -178,7 +178,7 @@ static int ssl_write_client_hello( ssl_context *ssl )
static int ssl_parse_server_hello( ssl_context *ssl )
{
#if defined(POLARSSL_DEBUG_MSG) && defined(POLARSSL_DEBUG_C)
#if defined(POLARSSL_DEBUG_C)
time_t t;
#endif
int ret, i;
@ -228,7 +228,7 @@ static int ssl_parse_server_hello( ssl_context *ssl )
ssl->minor_ver = buf[5];
#if defined(POLARSSL_DEBUG_MSG) && defined(POLARSSL_DEBUG_C)
#if defined(POLARSSL_DEBUG_C)
t = ( (time_t) buf[6] << 24 )
| ( (time_t) buf[7] << 16 )
| ( (time_t) buf[8] << 8 )