debug.c File Reference

#include "polarssl/config.h"
#include "polarssl/debug.h"
#include <stdarg.h>
#include <stdlib.h>
Include dependency graph for debug.c:

Go to the source code of this file.

Functions

char * debug_fmt (const char *format,...)
void debug_print_msg (const ssl_context *ssl, int level, const char *file, int line, const char *text)
void debug_print_ret (const ssl_context *ssl, int level, const char *file, int line, const char *text, int ret)
void debug_print_buf (const ssl_context *ssl, int level, const char *file, int line, const char *text, unsigned char *buf, size_t len)
void debug_print_ecp (const ssl_context *ssl, int level, const char *file, int line, const char *text, const ecp_point *X)
void debug_print_mpi (const ssl_context *ssl, int level, const char *file, int line, const char *text, const mpi *X)
static void debug_print_pk (const ssl_context *ssl, int level, const char *file, int line, const char *text, const pk_context *pk)
void debug_print_crt (const ssl_context *ssl, int level, const char *file, int line, const char *text, const x509_crt *crt)

Function Documentation

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

Definition at line 49 of file debug.c.

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

Definition at line 94 of file debug.c.

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

void debug_print_crt ( const ssl_context ssl,
int  level,
const char *  file,
int  line,
const char *  text,
const x509_crt crt 
)
void debug_print_ecp ( const ssl_context ssl,
int  level,
const char *  file,
int  line,
const char *  text,
const ecp_point X 
)

Definition at line 138 of file debug.c.

References debug_print_mpi(), ecp_point::X, ecp_point::Y, and ecp_point::Z.

Referenced by debug_print_pk().

void debug_print_mpi ( const ssl_context ssl,
int  level,
const char *  file,
int  line,
const char *  text,
const mpi X 
)
void debug_print_msg ( const ssl_context ssl,
int  level,
const char *  file,
int  line,
const char *  text 
)

Definition at line 63 of file debug.c.

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

Referenced by debug_print_pk().

static void debug_print_pk ( const ssl_context ssl,
int  level,
const char *  file,
int  line,
const char *  text,
const pk_context pk 
) [static]
void debug_print_ret ( const ssl_context ssl,
int  level,
const char *  file,
int  line,
const char *  text,
int  ret 
)

Definition at line 77 of file debug.c.

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


Generated on 9 Apr 2014 for PolarSSL v1.3.2 by  doxygen 1.6.1