mbed TLS library

Dependents:   HTTPClient-SSL WS_SERVER

Embed: (wiki syntax)

« Back to documentation index

debug.h File Reference

debug.h File Reference

Debug functions. More...

Go to the source code of this file.

Functions

void debug_set_log_mode (int log_mode)
 Set the log mode for the debug functions globally (Default value: POLARSSL_DEBUG_DFL_MODE)
void debug_set_threshold (int threshold)
 Set the level threshold to handle globally.

Detailed Description

Debug functions.

Copyright (C) 2006-2011, ARM Limited, All Rights Reserved

This file is part of mbed TLS (https://tls.mbed.org)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Definition in file debug.h.


Function Documentation

void debug_set_log_mode ( int  log_mode )

Set the log mode for the debug functions globally (Default value: POLARSSL_DEBUG_DFL_MODE)

Parameters:
log_modeThe log mode to use (POLARSSL_DEBUG_LOG_FULL or POLARSSL_DEBUG_LOG_RAW)

Definition at line 56 of file debug.c.

void debug_set_threshold ( int  threshold )

Set the level threshold to handle globally.

Messages that have a level over the threshold value are ignored. (Default value: 0 (No debug))

Parameters:
thresholdmaximum level of messages to pass on

Definition at line 61 of file debug.c.