My Project
Loading...
Searching...
No Matches
logging.h File Reference

Go to the source code of this file.

Typedefs

typedef void(* wolfSSL_Logging_cb) (const int logLevel, const char *const logMessage)
 

Enumerations

enum  wc_FuncNum {
  WC_FUNC_HELLO_REQUEST_SEND = 0 , WC_FUNC_HELLO_REQUEST_DO , WC_FUNC_CLIENT_HELLO_SEND , WC_FUNC_CLIENT_HELLO_DO ,
  WC_FUNC_SERVER_HELLO_SEND , WC_FUNC_SERVER_HELLO_DO , WC_FUNC_ENCRYPTED_EXTENSIONS_SEND , WC_FUNC_ENCRYPTED_EXTENSIONS_DO ,
  WC_FUNC_CERTIFICATE_REQUEST_SEND , WC_FUNC_CERTIFICATE_REQUEST_DO , WC_FUNC_CERTIFICATE_SEND , WC_FUNC_CERTIFICATE_DO ,
  WC_FUNC_CERTIFICATE_VERIFY_SEND , WC_FUNC_CERTIFICATE_VERIFY_DO , WC_FUNC_FINISHED_SEND , WC_FUNC_FINISHED_DO ,
  WC_FUNC_KEY_UPDATE_SEND , WC_FUNC_KEY_UPDATE_DO , WC_FUNC_EARLY_DATA_SEND , WC_FUNC_EARLY_DATA_DO ,
  WC_FUNC_NEW_SESSION_TICKET_SEND , WC_FUNC_NEW_SESSION_TICKET_DO , WC_FUNC_SERVER_HELLO_DONE_SEND , WC_FUNC_SERVER_HELLO_DONE_DO ,
  WC_FUNC_TICKET_SEND , WC_FUNC_TICKET_DO , WC_FUNC_CLIENT_KEY_EXCHANGE_SEND , WC_FUNC_CLIENT_KEY_EXCHANGE_DO ,
  WC_FUNC_CERTIFICATE_STATUS_SEND , WC_FUNC_CERTIFICATE_STATUS_DO , WC_FUNC_SERVER_KEY_EXCHANGE_SEND , WC_FUNC_SERVER_KEY_EXCHANGE_DO ,
  WC_FUNC_END_OF_EARLY_DATA_SEND , WC_FUNC_END_OF_EARLY_DATA_DO , WC_FUNC_COUNT
}
 

Functions

WOLFSSL_API int wolfSSL_SetLoggingCb (wolfSSL_Logging_cb log_function)
 This function registers a logging callback that will be used to handle the wolfSSL log message. By default, if the system supports it fprintf() to stderr is used but by using this function anything can be done by the user.
 
WOLFSSL_API wolfSSL_Logging_cb wolfSSL_GetLoggingCb (void)
 
WOLFSSL_API int wolfSSL_Debugging_ON (void)
 If logging has been enabled at build time this function turns on logging at runtime. To enable logging at build time use –enable-debug or define DEBUG_WOLFSSL.
 
WOLFSSL_API void wolfSSL_Debugging_OFF (void)
 This function turns off runtime logging messages. If they’re already off, no action is taken.
 
WOLFSSL_LOCAL int wc_LoggingInit (void)
 
WOLFSSL_LOCAL int wc_LoggingCleanup (void)
 
WOLFSSL_LOCAL int wc_AddErrorNode (int error, int line, char *buf, char *file)
 
WOLFSSL_LOCAL int wc_PeekErrorNode (int index, const char **file, const char **reason, int *line)
 
WOLFSSL_LOCAL void wc_RemoveErrorNode (int index)
 
WOLFSSL_LOCAL void wc_ClearErrorNodes (void)
 
WOLFSSL_LOCAL int wc_PullErrorNode (const char **file, const char **reason, int *line)
 
WOLFSSL_API int wc_SetLoggingHeap (void *h)
 
WOLFSSL_API int wc_ERR_remove_state (void)
 
WOLFSSL_API void wc_ERR_print_errors_fp (XFILE fp)
 
WOLFSSL_API void wc_ERR_print_errors_cb (int(*cb)(const char *str, size_t len, void *u), void *u)
 
WOLFSSL_API void WOLFSSL_START (int funcNum)
 
WOLFSSL_API void WOLFSSL_END (int funcNum)
 
WOLFSSL_API void WOLFSSL_TIME (int count)
 
WOLFSSL_API void WOLFSSL_ENTER (const char *msg)
 
WOLFSSL_API void WOLFSSL_LEAVE (const char *msg, int ret)
 
WOLFSSL_API int WOLFSSL_IS_DEBUG_ON (void)
 
WOLFSSL_API void WOLFSSL_MSG (const char *msg)
 
WOLFSSL_API void WOLFSSL_BUFFER (const byte *buffer, word32 length)
 
WOLFSSL_API void WOLFSSL_ERROR_LINE (int err, const char *func, unsigned int line, const char *file, void *ctx)
 
WOLFSSL_API void WOLFSSL_ERROR (int err)
 
WOLFSSL_API void WOLFSSL_ERROR_MSG (const char *msg)
 

Variables

 C
 

Variable Documentation

◆ C

C
extern
Initial value:
{
#endif
enum wc_LogLevels {
ERROR_LOG = 0,
INFO_LOG,
ENTER_LOG,
LEAVE_LOG,
OTHER_LOG
}