1 /* opensslconf.h */ 2 /* WARNING: Generated automatically from opensslconf.h.in by Configure. */ 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 /* OpenSSL was configured with the following options: */ 8 #ifndef OPENSSL_DOING_MAKEDEPEND 9 10 // -- GODOT start -- 11 #if defined(OPENSSL_SYS_WINDOWS) 12 # define WIN32_LEAN_AND_MEAN 13 // Seems like we have troubles properly using the logic in e_os2.h 14 # if defined(_WIN32) 15 # define OPENSSL_SYS_WIN32 16 # define OPENSSL_SYSNAME_WIN32 17 # endif 18 # if defined(_WIN64) 19 # define OPENSSL_SYS_WIN64 20 # define OPENSSL_SYSNAME_WIN64 21 # endif 22 #endif 23 // -- GODOT end -- 24 25 #ifndef OPENSSL_NO_EC_NISTP_64_GCC_128 26 # define OPENSSL_NO_EC_NISTP_64_GCC_128 27 #endif 28 #ifndef OPENSSL_NO_GMP 29 # define OPENSSL_NO_GMP 30 #endif 31 #ifndef OPENSSL_NO_JPAKE 32 # define OPENSSL_NO_JPAKE 33 #endif 34 #ifndef OPENSSL_NO_KRB5 35 # define OPENSSL_NO_KRB5 36 #endif 37 #ifndef OPENSSL_NO_LIBUNBOUND 38 # define OPENSSL_NO_LIBUNBOUND 39 #endif 40 #ifndef OPENSSL_NO_MD2 41 # define OPENSSL_NO_MD2 42 #endif 43 #ifndef OPENSSL_NO_RC5 44 # define OPENSSL_NO_RC5 45 #endif 46 #ifndef OPENSSL_NO_RFC3779 47 # define OPENSSL_NO_RFC3779 48 #endif 49 #ifndef OPENSSL_NO_SCTP 50 # define OPENSSL_NO_SCTP 51 #endif 52 #ifndef OPENSSL_NO_SSL_TRACE 53 # define OPENSSL_NO_SSL_TRACE 54 #endif 55 #ifndef OPENSSL_NO_SSL2 56 # define OPENSSL_NO_SSL2 57 #endif 58 #ifndef OPENSSL_NO_STORE 59 # define OPENSSL_NO_STORE 60 #endif 61 #ifndef OPENSSL_NO_UNIT_TEST 62 # define OPENSSL_NO_UNIT_TEST 63 #endif 64 #ifndef OPENSSL_NO_WEAK_SSL_CIPHERS 65 # define OPENSSL_NO_WEAK_SSL_CIPHERS 66 #endif 67 68 #endif /* OPENSSL_DOING_MAKEDEPEND */ 69 70 #ifndef OPENSSL_THREADS 71 # define OPENSSL_THREADS 72 #endif 73 #ifndef OPENSSL_NO_DYNAMIC_ENGINE 74 # define OPENSSL_NO_DYNAMIC_ENGINE 75 #endif 76 77 /* The OPENSSL_NO_* macros are also defined as NO_* if the application 78 asks for it. This is a transient feature that is provided for those 79 who haven't had the time to do the appropriate changes in their 80 applications. */ 81 #ifdef OPENSSL_ALGORITHM_DEFINES 82 # if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128) 83 # define NO_EC_NISTP_64_GCC_128 84 # endif 85 # if defined(OPENSSL_NO_GMP) && !defined(NO_GMP) 86 # define NO_GMP 87 # endif 88 # if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE) 89 # define NO_JPAKE 90 # endif 91 # if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5) 92 # define NO_KRB5 93 # endif 94 # if defined(OPENSSL_NO_LIBUNBOUND) && !defined(NO_LIBUNBOUND) 95 # define NO_LIBUNBOUND 96 # endif 97 # if defined(OPENSSL_NO_MD2) && !defined(NO_MD2) 98 # define NO_MD2 99 # endif 100 # if defined(OPENSSL_NO_RC5) && !defined(NO_RC5) 101 # define NO_RC5 102 # endif 103 # if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779) 104 # define NO_RFC3779 105 # endif 106 # if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP) 107 # define NO_SCTP 108 # endif 109 # if defined(OPENSSL_NO_SSL_TRACE) && !defined(NO_SSL_TRACE) 110 # define NO_SSL_TRACE 111 # endif 112 # if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2) 113 # define NO_SSL2 114 # endif 115 # if defined(OPENSSL_NO_STORE) && !defined(NO_STORE) 116 # define NO_STORE 117 # endif 118 # if defined(OPENSSL_NO_UNIT_TEST) && !defined(NO_UNIT_TEST) 119 # define NO_UNIT_TEST 120 # endif 121 # if defined(OPENSSL_NO_WEAK_SSL_CIPHERS) && !defined(NO_WEAK_SSL_CIPHERS) 122 # define NO_WEAK_SSL_CIPHERS 123 # endif 124 #endif 125 126 // -- GODOT start -- 127 // Added in 1.0.2s and we didn't define it up to now, 128 // so keeping it as previously to ensure compatibility. 129 //#define OPENSSL_CPUID_OBJ 130 // -- GODOT end -- 131 132 /* crypto/opensslconf.h.in */ 133 134 /* Generate 80386 code? */ 135 #undef I386_ONLY 136 137 #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */ 138 #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR) 139 #define ENGINESDIR "/usr/local/ssl/lib/engines" 140 #define OPENSSLDIR "/usr/local/ssl" 141 #endif 142 #endif 143 144 #undef OPENSSL_UNISTD 145 #define OPENSSL_UNISTD <unistd.h> 146 147 #undef OPENSSL_EXPORT_VAR_AS_FUNCTION 148 149 #if defined(HEADER_IDEA_H) && !defined(IDEA_INT) 150 #define IDEA_INT unsigned int 151 #endif 152 153 #if defined(HEADER_MD2_H) && !defined(MD2_INT) 154 #define MD2_INT unsigned int 155 #endif 156 157 #if defined(HEADER_RC2_H) && !defined(RC2_INT) 158 /* I need to put in a mod for the alpha - eay */ 159 #define RC2_INT unsigned int 160 #endif 161 162 #if defined(HEADER_RC4_H) 163 #if !defined(RC4_INT) 164 /* using int types make the structure larger but make the code faster 165 * on most boxes I have tested - up to %20 faster. */ 166 /* 167 * I don't know what does "most" mean, but declaring "int" is a must on: 168 * - Intel P6 because partial register stalls are very expensive; 169 * - elder Alpha because it lacks byte load/store instructions; 170 */ 171 #define RC4_INT unsigned int 172 #endif 173 #if !defined(RC4_CHUNK) 174 /* 175 * This enables code handling data aligned at natural CPU word 176 * boundary. See crypto/rc4/rc4_enc.c for further details. 177 */ 178 #define RC4_CHUNK unsigned long 179 #endif 180 #endif 181 182 #if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG) 183 /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a 184 * %20 speed up (longs are 8 bytes, int's are 4). */ 185 #ifndef DES_LONG 186 #define DES_LONG unsigned int 187 #endif 188 #endif 189 190 #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H) 191 #define CONFIG_HEADER_BN_H 192 #undef BN_LLONG 193 194 /* Should we define BN_DIV2W here? */ 195 196 /* Only one for the following should be defined */ 197 // -- GODOT start -- 198 // Default changed in 1.0.2s, we keep previous value to ensure compatibility. 199 //#define SIXTY_FOUR_BIT_LONG 200 #undef SIXTY_FOUR_BIT_LONG 201 #undef SIXTY_FOUR_BIT 202 //#undef THIRTY_TWO_BIT 203 #define THIRTY_TWO_BIT 204 #endif 205 // -- GODOT end -- 206 207 #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H) 208 #define CONFIG_HEADER_RC4_LOCL_H 209 /* if this is defined data[i] is used instead of *data, this is a %20 210 * speedup on x86 */ 211 #undef RC4_INDEX 212 #endif 213 214 #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H) 215 #define CONFIG_HEADER_BF_LOCL_H 216 #undef BF_PTR 217 #endif /* HEADER_BF_LOCL_H */ 218 219 #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H) 220 #define CONFIG_HEADER_DES_LOCL_H 221 #ifndef DES_DEFAULT_OPTIONS 222 /* the following is tweaked from a config script, that is why it is a 223 * protected undef/define */ 224 #ifndef DES_PTR 225 #undef DES_PTR 226 #endif 227 228 /* This helps C compiler generate the correct code for multiple functional 229 * units. It reduces register dependancies at the expense of 2 more 230 * registers */ 231 #ifndef DES_RISC1 232 #undef DES_RISC1 233 #endif 234 235 #ifndef DES_RISC2 236 #undef DES_RISC2 237 #endif 238 239 #if defined(DES_RISC1) && defined(DES_RISC2) 240 #error YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!! 241 #endif 242 243 /* Unroll the inner loop, this sometimes helps, sometimes hinders. 244 * Very mucy CPU dependant */ 245 #ifndef DES_UNROLL 246 #define DES_UNROLL 247 #endif 248 249 /* These default values were supplied by 250 * Peter Gutman <pgut001@cs.auckland.ac.nz> 251 * They are only used if nothing else has been defined */ 252 #if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL) 253 /* Special defines which change the way the code is built depending on the 254 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find 255 even newer MIPS CPU's, but at the moment one size fits all for 256 optimization options. Older Sparc's work better with only UNROLL, but 257 there's no way to tell at compile time what it is you're running on */ 258 259 #if defined( __sun ) || defined ( sun ) /* Newer Sparc's */ 260 # define DES_PTR 261 # define DES_RISC1 262 # define DES_UNROLL 263 #elif defined( __ultrix ) /* Older MIPS */ 264 # define DES_PTR 265 # define DES_RISC2 266 # define DES_UNROLL 267 #elif defined( __osf1__ ) /* Alpha */ 268 # define DES_PTR 269 # define DES_RISC2 270 #elif defined ( _AIX ) /* RS6000 */ 271 /* Unknown */ 272 #elif defined( __hpux ) /* HP-PA */ 273 /* Unknown */ 274 #elif defined( __aux ) /* 68K */ 275 /* Unknown */ 276 #elif defined( __dgux ) /* 88K (but P6 in latest boxes) */ 277 # define DES_UNROLL 278 #elif defined( __sgi ) /* Newer MIPS */ 279 # define DES_PTR 280 # define DES_RISC2 281 # define DES_UNROLL 282 #elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */ 283 # define DES_PTR 284 # define DES_RISC1 285 # define DES_UNROLL 286 #endif /* Systems-specific speed defines */ 287 #endif 288 289 #endif /* DES_DEFAULT_OPTIONS */ 290 #endif /* HEADER_DES_LOCL_H */ 291 #ifdef __cplusplus 292 } 293 #endif 294