/home/dko/Projects/mobilec/src/security/xyssl-0.9/include/xyssl/debug.h File Reference

#include "xyssl/config.h"
#include "xyssl/ssl.h"

Go to the source code of this file.

Defines

#define SSL_DEBUG_MSG(level, args)   debug_print_msg( ssl, level, __FILE__, __LINE__, debug_fmt args );
#define SSL_DEBUG_RET(level, text, ret)   debug_print_ret( ssl, level, __FILE__, __LINE__, text, ret );
#define SSL_DEBUG_BUF(level, text, buf, len)   debug_print_buf( ssl, level, __FILE__, __LINE__, text, buf, len );
#define SSL_DEBUG_MPI(level, text, X)   debug_print_mpi( ssl, level, __FILE__, __LINE__, text, X );
#define SSL_DEBUG_CRT(level, text, crt)   debug_print_crt( ssl, level, __FILE__, __LINE__, text, crt );

Functions

char * debug_fmt (const char *format,...)
void debug_print_msg (ssl_context *ssl, int level, char *file, int line, char *text)
void debug_print_ret (ssl_context *ssl, int level, char *file, int line, char *text, int ret)
void debug_print_buf (ssl_context *ssl, int level, char *file, int line, char *text, unsigned char *buf, int len)
void debug_print_mpi (ssl_context *ssl, int level, char *file, int line, char *text, mpi *X)
void debug_print_crt (ssl_context *ssl, int level, char *file, int line, char *text, x509_cert *crt)

Detailed Description

Definition in file debug.h.


Define Documentation

#define SSL_DEBUG_BUF ( level,
text,
buf,
len   )     debug_print_buf( ssl, level, __FILE__, __LINE__, text, buf, len );
#define SSL_DEBUG_CRT ( level,
text,
crt   )     debug_print_crt( ssl, level, __FILE__, __LINE__, text, crt );

Definition at line 24 of file debug.h.

Referenced by ssl_parse_certificate(), and ssl_write_certificate().

#define SSL_DEBUG_MPI ( level,
text,
 )     debug_print_mpi( ssl, level, __FILE__, __LINE__, text, X );
#define SSL_DEBUG_MSG ( level,
args   )     debug_print_msg( ssl, level, __FILE__, __LINE__, debug_fmt args );
#define SSL_DEBUG_RET ( level,
text,
ret   )     debug_print_ret( ssl, level, __FILE__, __LINE__, text, ret );

Function Documentation

char* debug_fmt ( const char *  format,
  ... 
)

Definition at line 38 of file debug.c.

References vsnprintf.

void debug_print_buf ( ssl_context ssl,
int  level,
char *  file,
int  line,
char *  text,
unsigned char *  buf,
int  len 
)

Definition at line 82 of file debug.c.

References _ssl_context::f_dbg, and _ssl_context::p_dbg.

void debug_print_crt ( ssl_context ssl,
int  level,
char *  file,
int  line,
char *  text,
x509_cert crt 
)
void debug_print_mpi ( ssl_context ssl,
int  level,
char *  file,
int  line,
char *  text,
mpi X 
)

Definition at line 124 of file debug.c.

References _ssl_context::f_dbg, mpi::n, mpi::p, and _ssl_context::p_dbg.

Referenced by debug_print_crt().

void debug_print_msg ( ssl_context ssl,
int  level,
char *  file,
int  line,
char *  text 
)

Definition at line 52 of file debug.c.

References _ssl_context::f_dbg, and _ssl_context::p_dbg.

void debug_print_ret ( ssl_context ssl,
int  level,
char *  file,
int  line,
char *  text,
int  ret 
)

Definition at line 66 of file debug.c.

References _ssl_context::f_dbg, and _ssl_context::p_dbg.

Generated on Tue Dec 28 15:15:28 2010 for Mobile-C by  doxygen 1.6.3