Go to the documentation of this file.
27 #ifndef POLARSSL_DEBUG_H
28 #define POLARSSL_DEBUG_H
32 #if defined(POLARSSL_ECP_C)
36 #if defined(POLARSSL_DEBUG_C)
38 #define SSL_DEBUG_MSG( level, args ) \
39 debug_print_msg( ssl, level, __FILE__, __LINE__, debug_fmt args );
41 #define SSL_DEBUG_RET( level, text, ret ) \
42 debug_print_ret( ssl, level, __FILE__, __LINE__, text, ret );
44 #define SSL_DEBUG_BUF( level, text, buf, len ) \
45 debug_print_buf( ssl, level, __FILE__, __LINE__, text, buf, len );
47 #if defined(POLARSSL_BIGNUM_C)
48 #define SSL_DEBUG_MPI( level, text, X ) \
49 debug_print_mpi( ssl, level, __FILE__, __LINE__, text, X );
52 #if defined(POLARSSL_ECP_C)
53 #define SSL_DEBUG_ECP( level, text, X ) \
54 debug_print_ecp( ssl, level, __FILE__, __LINE__, text, X );
57 #if defined(POLARSSL_X509_CRT_PARSE_C)
58 #define SSL_DEBUG_CRT( level, text, crt ) \
59 debug_print_crt( ssl, level, __FILE__, __LINE__, text, crt );
64 #define SSL_DEBUG_MSG( level, args ) do { } while( 0 )
65 #define SSL_DEBUG_RET( level, text, ret ) do { } while( 0 )
66 #define SSL_DEBUG_BUF( level, text, buf, len ) do { } while( 0 )
67 #define SSL_DEBUG_MPI( level, text, X ) do { } while( 0 )
68 #define SSL_DEBUG_ECP( level, text, X ) do { } while( 0 )
69 #define SSL_DEBUG_CRT( level, text, crt ) do { } while( 0 )
77 char *
debug_fmt(
const char *format, ... );
80 const char *file,
int line,
const char *text );
83 const char *file,
int line,
84 const char *text,
int ret );
87 const char *file,
int line,
const char *text,
88 unsigned char *buf,
size_t len );
90 #if defined(POLARSSL_BIGNUM_C)
92 const char *file,
int line,
93 const char *text,
const mpi *X );
96 #if defined(POLARSSL_ECP_C)
98 const char *file,
int line,
102 #if defined(POLARSSL_X509_CRT_PARSE_C)
104 const char *file,
int line,
105 const char *text,
const x509_crt *crt );