#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) |
char* debug_fmt | ( | const char * | format, | |
... | ||||
) |
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 | |||
) |
Definition at line 169 of file debug.c.
References debug_print_mpi(), rsa_context::E, _ssl_context::f_dbg, rsa_context::N, _x509_cert::next, _ssl_context::p_dbg, _x509_cert::rsa, and x509parse_cert_info().
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.