#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) |
Definition in file debug.h.
#define SSL_DEBUG_BUF | ( | level, | |||
text, | |||||
buf, | |||||
len | ) | debug_print_buf( ssl, level, __FILE__, __LINE__, text, buf, len ); |
Definition at line 18 of file debug.h.
Referenced by ssl_calc_finished(), ssl_calc_verify(), ssl_decrypt_buf(), ssl_derive_keys(), ssl_encrypt_buf(), ssl_parse_client_hello(), ssl_parse_server_hello(), ssl_parse_server_key_exchange(), ssl_read_record(), ssl_write_certificate_request(), ssl_write_client_hello(), ssl_write_record(), ssl_write_server_hello(), and ssl_write_server_key_exchange().
#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, | |||||
X | ) | debug_print_mpi( ssl, level, __FILE__, __LINE__, text, X ); |
Definition at line 21 of file debug.h.
Referenced by ssl_parse_client_key_exchange(), ssl_parse_server_key_exchange(), ssl_write_client_key_exchange(), and ssl_write_server_key_exchange().
#define SSL_DEBUG_MSG | ( | level, | |||
args | ) | debug_print_msg( ssl, level, __FILE__, __LINE__, debug_fmt args ); |
Definition at line 12 of file debug.h.
Referenced by ssl_calc_finished(), ssl_calc_verify(), ssl_close_notify(), ssl_decrypt_buf(), ssl_derive_keys(), ssl_encrypt_buf(), ssl_fetch_input(), ssl_flush_output(), ssl_free(), ssl_handshake(), ssl_handshake_client(), ssl_handshake_server(), ssl_init(), ssl_parse_certificate(), ssl_parse_certificate_request(), ssl_parse_certificate_verify(), ssl_parse_change_cipher_spec(), ssl_parse_client_hello(), ssl_parse_client_key_exchange(), ssl_parse_finished(), ssl_parse_server_hello(), ssl_parse_server_hello_done(), ssl_parse_server_key_exchange(), ssl_read(), ssl_read_record(), ssl_write(), ssl_write_certificate(), ssl_write_certificate_request(), ssl_write_certificate_verify(), ssl_write_change_cipher_spec(), ssl_write_client_hello(), ssl_write_client_key_exchange(), ssl_write_finished(), ssl_write_record(), ssl_write_server_hello(), ssl_write_server_hello_done(), and ssl_write_server_key_exchange().
#define SSL_DEBUG_RET | ( | level, | |||
text, | |||||
ret | ) | debug_print_ret( ssl, level, __FILE__, __LINE__, text, ret ); |
Definition at line 15 of file debug.h.
Referenced by ssl_close_notify(), ssl_fetch_input(), ssl_flush_output(), ssl_parse_certificate(), ssl_parse_certificate_request(), ssl_parse_certificate_verify(), ssl_parse_change_cipher_spec(), ssl_parse_client_hello(), ssl_parse_client_key_exchange(), ssl_parse_finished(), ssl_parse_server_hello(), ssl_parse_server_hello_done(), ssl_parse_server_key_exchange(), ssl_read(), ssl_read_record(), ssl_set_dh_param(), ssl_write(), ssl_write_certificate(), ssl_write_certificate_verify(), ssl_write_change_cipher_spec(), ssl_write_client_hello(), ssl_write_client_key_exchange(), ssl_write_finished(), ssl_write_record(), ssl_write_server_hello_done(), and ssl_write_server_key_exchange().
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.