| 1 | /* |
|---|
| 2 | * matrixConfig.h |
|---|
| 3 | * Release $Name: MATRIXSSL_1_8_3_OPEN $ |
|---|
| 4 | * |
|---|
| 5 | * Configuration settings for building the MatrixSSL library. |
|---|
| 6 | * These options affect the size and algorithms present in the library. |
|---|
| 7 | */ |
|---|
| 8 | /* |
|---|
| 9 | * Copyright (c) PeerSec Networks, 2002-2007. All Rights Reserved. |
|---|
| 10 | * The latest version of this code is available at http://www.matrixssl.org |
|---|
| 11 | * |
|---|
| 12 | * This software is open source; you can redistribute it and/or modify |
|---|
| 13 | * it under the terms of the GNU General Public License as published by |
|---|
| 14 | * the Free Software Foundation; either version 2 of the License, or |
|---|
| 15 | * (at your option) any later version. |
|---|
| 16 | * |
|---|
| 17 | * This General Public License does NOT permit incorporating this software |
|---|
| 18 | * into proprietary programs. If you are unable to comply with the GPL, a |
|---|
| 19 | * commercial license for this software may be purchased from PeerSec Networks |
|---|
| 20 | * at http://www.peersec.com |
|---|
| 21 | * |
|---|
| 22 | * This program is distributed in WITHOUT ANY WARRANTY; without even the |
|---|
| 23 | * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|---|
| 24 | * See the GNU General Public License for more details. |
|---|
| 25 | * |
|---|
| 26 | * You should have received a copy of the GNU General Public License |
|---|
| 27 | * along with this program; if not, write to the Free Software |
|---|
| 28 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 29 | * http://www.gnu.org/copyleft/gpl.html |
|---|
| 30 | */ |
|---|
| 31 | /******************************************************************************/ |
|---|
| 32 | |
|---|
| 33 | #ifndef _h_MATRIXCONFIG |
|---|
| 34 | #define _h_MATRIXCONFIG |
|---|
| 35 | |
|---|
| 36 | #ifdef __cplusplus |
|---|
| 37 | extern "C" { |
|---|
| 38 | #endif |
|---|
| 39 | |
|---|
| 40 | /******************************************************************************/ |
|---|
| 41 | /* |
|---|
| 42 | Define the number of sessions to cache here. |
|---|
| 43 | Minimum value is 1 |
|---|
| 44 | Session caching provides such an increase in performance that it isn't |
|---|
| 45 | an option to disable. |
|---|
| 46 | */ |
|---|
| 47 | #define SSL_SESSION_TABLE_SIZE 32 |
|---|
| 48 | |
|---|
| 49 | /******************************************************************************/ |
|---|
| 50 | /* |
|---|
| 51 | Define the following to enable various cipher suites |
|---|
| 52 | At least one of these must be defined. If multiple are defined, |
|---|
| 53 | the handshake will determine which is best for the connection. |
|---|
| 54 | */ |
|---|
| 55 | #define USE_SSL_RSA_WITH_RC4_128_MD5 |
|---|
| 56 | #define USE_SSL_RSA_WITH_RC4_128_SHA |
|---|
| 57 | #define USE_SSL_RSA_WITH_3DES_EDE_CBC_SHA |
|---|
| 58 | |
|---|
| 59 | /******************************************************************************/ |
|---|
| 60 | /* |
|---|
| 61 | Support for encrypted private key files, using 3DES |
|---|
| 62 | */ |
|---|
| 63 | #define USE_ENCRYPTED_PRIVATE_KEYS |
|---|
| 64 | |
|---|
| 65 | /******************************************************************************/ |
|---|
| 66 | /* |
|---|
| 67 | Support for client side SSL |
|---|
| 68 | */ |
|---|
| 69 | #define USE_CLIENT_SIDE_SSL |
|---|
| 70 | #define USE_SERVER_SIDE_SSL |
|---|
| 71 | |
|---|
| 72 | |
|---|
| 73 | /******************************************************************************/ |
|---|
| 74 | /* |
|---|
| 75 | Use native 64 bit integers (long longs) |
|---|
| 76 | */ |
|---|
| 77 | #define USE_INT64 |
|---|
| 78 | |
|---|
| 79 | /******************************************************************************/ |
|---|
| 80 | /* |
|---|
| 81 | Hi-res POSIX timer. Use rdtscll() for timing routines in linux.c |
|---|
| 82 | */ |
|---|
| 83 | /* #define USE_RDTSCLL_TIME */ |
|---|
| 84 | |
|---|
| 85 | /******************************************************************************/ |
|---|
| 86 | /* |
|---|
| 87 | Support for multithreading environment. This should be enabled |
|---|
| 88 | if multiple SSL sessions will be active at the same time in |
|---|
| 89 | different threads. The library will still be single threaded, |
|---|
| 90 | but will serialize access to the session cache with a mutex. |
|---|
| 91 | */ |
|---|
| 92 | //#define USE_MULTITHREADING |
|---|
| 93 | |
|---|
| 94 | /******************************************************************************/ |
|---|
| 95 | /* |
|---|
| 96 | Support for file system. |
|---|
| 97 | */ |
|---|
| 98 | #define USE_FILE_SYSTEM |
|---|
| 99 | |
|---|
| 100 | #ifdef __cplusplus |
|---|
| 101 | } |
|---|
| 102 | #endif |
|---|
| 103 | |
|---|
| 104 | #endif /* _h_MATRIXCONFIG */ |
|---|
| 105 | |
|---|
| 106 | /******************************************************************************/ |
|---|
| 107 | |
|---|