libzrtp  1.2.0
ZRTP VoIP security
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
zrtp_config_user.h
Go to the documentation of this file.
1 /*
2  * libZRTP SDK library, implements the ZRTP secure VoIP protocol.
3  * Copyright (c) 2006-2009 Philip R. Zimmermann. All rights reserved.
4  * Contact: http://philzimmermann.com
5  * For licensing and other legal details, see the file zrtp_legal.c.
6  *
7  * Viktor Krykun <v.krikun at zfoneproject.com>
8  */
9 
15 #ifndef __ZRTP_CONFIG_USER_H__
16 #define __ZRTP_CONFIG_USER_H__
17 
41 #define ZP_WIN32 100
42 
43 #define ZP_WIN64 106
44 
45 #define ZP_WIN32_KERNEL 101
46 
47 #define ZP_WINCE 102
48 
49 #define ZP_LINUX 103
50 
51 #define ZP_DARWIN 104
52 
53 #define ZP_SYMBIAN 105
54 
55 #define ZP_BSD 107
56 
57 #define ZP_ANDROID 108
58 
60 //#undefine ZRTP_PLATFORM
61 
62 
64 #define ZBO_BIG_ENDIAN 0x4321
65 
66 #define ZBO_LITTLE_ENDIAN 0x1234
67 
69 //#define ZRTP_BYTE_ORDER
70 
72 #ifndef ZRTP_SAS_DIGEST_LENGTH
73 #define ZRTP_SAS_DIGEST_LENGTH 32
74 #endif
75 
77 #ifndef ZRTP_MAX_STREAMS_PER_SESSION
78 #define ZRTP_MAX_STREAMS_PER_SESSION 2
79 #endif
80 
88 #ifndef ZRTP_USE_EXTERN_SRTP
89 #define ZRTP_USE_EXTERN_SRTP 0
90 #endif
91 
101 #ifndef ZRTP_USE_STACK_MINIM
102 #define ZRTP_USE_STACK_MINIM 0
103 #endif
104 
105 #ifndef ZRTP_USE_BUILTIN
106 #define ZRTP_USE_BUILTIN 1
107 #endif
108 
109 #ifndef ZRTP_USE_BUILTIN_SCEHDULER
110 #define ZRTP_USE_BUILTIN_SCEHDULER 1
111 #endif
112 
113 #ifndef ZRTP_USE_BUILTIN_CACHE
114 # if defined(_WIN32) || defined(__WIN32__) || defined(_WIN64) || defined(WIN32) || defined(__TOS_WIN__)
115 # if defined(__BUILDMACHINE__) && (__BUILDMACHINE__ == WinDDK)
116 # define ZRTP_USE_BUILTIN_CACHE 1
117 # else
118 # define ZRTP_USE_BUILTIN_CACHE 0
119 # endif
120 # else
121 # define ZRTP_USE_BUILTIN_CACHE 1
122 # endif
123 #endif
124 
125 #ifndef ZRTP_ENABLE_EC
126 #define ZRTP_ENABLE_EC 0
127 #endif
128 
129 #ifndef ZRTP_DEBUG_WITH_PJSIP
130 #define ZRTP_DEBUG_WITH_PJSIP 0
131 #endif
132 
140 #ifndef ZRTP_BUILD_FOR_CSD
141 #define ZRTP_BUILD_FOR_CSD 0
142 #endif
143 
155 #define ZRTP_PRESHARED_MAX_ALLOWED 20
156 
164 #ifndef ZRTP_LOG_MAX_LEVEL
165 #define ZRTP_LOG_MAX_LEVEL 3
166 #endif
167 
174 #ifndef ZRTP_DEBUG_SRTP_KEYS
175 #define ZRTP_DEBUG_SRTP_KEYS 0
176 #endif
177 
184 #ifndef ZRTP_DEBUG_ZRTP_KEYS
185 #define ZRTP_DEBUG_ZRTP_KEYS 0
186 #endif
187 
188 
189 /* \} */
190 
191 #endif /*__ZRTP_CONFIG_USER_H__*/