#include "polarssl/config.h"
#include "polarssl/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 (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) |
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 | |||
) |
Definition at line 270 of file debug.c.
References debug_print_pk(), _ssl_context::f_dbg, _x509_crt::next, _ssl_context::p_dbg, _x509_crt::pk, and x509_crt_info().
Referenced by test_suite_debug_print_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 | |||
) |
Definition at line 160 of file debug.c.
References _ssl_context::f_dbg, mpi::n, mpi::p, and _ssl_context::p_dbg.
Referenced by debug_print_ecp(), debug_print_pk(), and test_suite_debug_print_mpi().
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] |
Definition at line 234 of file debug.c.
References debug_print_ecp(), debug_print_mpi(), debug_print_msg(), pk_debug(), POLARSSL_PK_DEBUG_ECP, POLARSSL_PK_DEBUG_MAX_ITEMS, POLARSSL_PK_DEBUG_MPI, and POLARSSL_PK_DEBUG_NONE.
Referenced by debug_print_crt().
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.