Files
mars-matrixssl/configs/fulltest/coreConfig.h
Janne Johansson dbc2786c73 MatrixSSL 4.1.0
2019-04-17 13:34:22 +03:00

110 lines
3.8 KiB
C

/**
* @file coreConfig.h
* @version $Format:%h%d$
*
* Configuration settings for Matrix core module.
*/
/*
* Copyright (c) 2013-2018 INSIDE Secure Corporation
* Copyright (c) PeerSec Networks, 2002-2011
* All Rights Reserved
*
* The latest version of this code is available at http://www.matrixssl.org
*
* This software is open source; 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 General Public License does NOT permit incorporating this software
* into proprietary programs. If you are unable to comply with the GPL, a
* commercial license for this software may be purchased from INSIDE at
* http://www.insidesecure.com/
*
* This program is distributed in 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* http://www.gnu.org/copyleft/gpl.html
*/
/******************************************************************************/
#ifndef _h_PS_CORECONFIG
# define _h_PS_CORECONFIG
/******************************************************************************/
/* Debug and tracing configuration */
/******************************************************************************/
/**
Enable various levels of trace.
When these option is turned off, messages are silently
discarded and their text does not take space in the binary image.
*/
/* #define USE_CORE_TRACE */
# ifndef NO_CORE_ERROR
# define USE_CORE_ERROR
# endif
# ifndef NO_CORE_ASSERT
# define USE_CORE_ASSERT
# endif
/** Allow target file of psTrace output to be chosen with the
PSCORE_DEBUG_FILE and PSCORE_DEBUG_FILE_APPEND environment variables.
By default, stdout is used. Disable to minimize footprint. */
/* #define USE_TRACE_FILE */
/** Experimental, extensible logging facility. Only used by the SL/CL
crypto libraries; not used by the TLS library. Disable to minimize
footprint. */
/* #define PS_LOGF */
/******************************************************************************/
/* Other Configurable features */
/******************************************************************************/
/**
If enabled, calls to the psError set of APIs will perform a platform
abort on the exeutable to aid in debugging.
*/
# ifdef DEBUG
/* #define HALT_ON_PS_ERROR *//* NOT RECOMMENDED FOR PRODUCTION BUILDS */
# endif
/** Enable to disable file IO related APIs, such as psGetFileBuf
and psParseCertFile. This helps to minimize footprint when no file IO
is needed. */
/* #define NO_FILE_SYSTEM */
/**
Include the psCoreOsdepMutex family of APIs
@note If intending to compile crypto-cl, then this flag should
always be set.
*/
# ifndef NO_MULTITHREADING
# define USE_MULTITHREADING
# endif /* NO_MULTITHREADING */
/**
Include the psNetwork family of APIs.
These APIs allow simple high-level socket api.
The API derive from BSD Sockets, and therefore it can only be used
on devices which have the prerequisitive APIs.
MatrixSSL itself can be used also be used without PS networking, but
many of example programs and MatrixSSLNet are based on PS networking.
*/
# ifndef NO_PS_NETWORKING
# define USE_PS_NETWORKING
# endif /* NO_PS_NETWORKING */
#endif /* _h_PS_CORECONFIG */
/******************************************************************************/