/home/dko/Projects/mobilec/src/security/xyssl-0.9/library/debug.c File Reference

#include "xyssl/config.h"
#include "xyssl/debug.h"
#include <stdarg.h>
#include <stdlib.h>

Go to the source code of this file.

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)

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:29 2010 for Mobile-C by  doxygen 1.6.3