00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059 #include <openssl/opensslconf.h>
00060
00061
00062 #ifndef HEADER_E_OS2_H
00063 #define HEADER_E_OS2_H
00064
00065 #if (defined(__SYMBIAN32__) && !defined(SYMBIAN))
00066 #define SYMBIAN
00067 #endif
00068
00069 #ifdef __cplusplus
00070 extern "C" {
00071 #endif
00072
00073
00074
00075
00076
00077
00078
00079 #define OPENSSL_SYS_UNIX
00080 #ifndef SYMBIAN
00081
00082 #if defined(__MWERKS__) && defined(macintosh) || defined(OPENSSL_SYSNAME_MAC)
00083 # undef OPENSSL_SYS_UNIX
00084 # define OPENSSL_SYS_MACINTOSH_CLASSIC
00085 #endif
00086
00087
00088 #if defined(NETWARE) || defined(OPENSSL_SYSNAME_NETWARE)
00089 # undef OPENSSL_SYS_UNIX
00090 # define OPENSSL_SYS_NETWARE
00091 #endif
00092
00093
00094
00095
00096
00097 #if defined(OPENSSL_SYSNAME_UWIN)
00098 # undef OPENSSL_SYS_UNIX
00099 # define OPENSSL_SYS_WIN32_UWIN
00100 #else
00101 # if defined(__CYGWIN32__) || defined(OPENSSL_SYSNAME_CYGWIN32)
00102 # undef OPENSSL_SYS_UNIX
00103 # define OPENSSL_SYS_WIN32_CYGWIN
00104 # else
00105 # if defined(_WIN32) || defined(OPENSSL_SYSNAME_WIN32)
00106 # undef OPENSSL_SYS_UNIX
00107 # define OPENSSL_SYS_WIN32
00108 # endif
00109 # if defined(OPENSSL_SYSNAME_WINNT)
00110 # undef OPENSSL_SYS_UNIX
00111 # define OPENSSL_SYS_WINNT
00112 # endif
00113 # if defined(OPENSSL_SYSNAME_WINCE)
00114 # undef OPENSSL_SYS_UNIX
00115 # define OPENSSL_SYS_WINCE
00116 # endif
00117 # endif
00118 #endif
00119
00120
00121 #if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_WINNT) || defined(OPENSSL_SYS_WINCE)
00122 # undef OPENSSL_SYS_UNIX
00123 # define OPENSSL_SYS_WINDOWS
00124 # ifndef OPENSSL_SYS_MSDOS
00125 # define OPENSSL_SYS_MSDOS
00126 # endif
00127 #endif
00128
00129
00130
00131
00132 #ifdef OPENSSL_SYS_WINDOWS
00133 # ifndef OPENSSL_OPT_WINDLL
00134 # if defined(_WINDLL)
00135
00136 # define OPENSSL_OPT_WINDLL
00137 # endif
00138 # endif
00139 #endif
00140
00141
00142 #if defined(__VMS) || defined(VMS) || defined(OPENSSL_SYSNAME_VMS)
00143 # undef OPENSSL_SYS_UNIX
00144 # define OPENSSL_SYS_VMS
00145 # if defined(__DECC)
00146 # define OPENSSL_SYS_VMS_DECC
00147 # elif defined(__DECCXX)
00148 # define OPENSSL_SYS_VMS_DECC
00149 # define OPENSSL_SYS_VMS_DECCXX
00150 # else
00151 # define OPENSSL_SYS_VMS_NODECC
00152 # endif
00153 #endif
00154
00155
00156 #if defined(__EMX__) || defined(__OS2__)
00157 # undef OPENSSL_SYS_UNIX
00158 # define OPENSSL_SYS_OS2
00159 #endif
00160
00161
00162 #ifdef OPENSSL_SYS_UNIX
00163 # if defined(linux) || defined(__linux__) || defined(OPENSSL_SYSNAME_LINUX)
00164 # define OPENSSL_SYS_LINUX
00165 # endif
00166 # ifdef OPENSSL_SYSNAME_MPE
00167 # define OPENSSL_SYS_MPE
00168 # endif
00169 # ifdef OPENSSL_SYSNAME_SNI
00170 # define OPENSSL_SYS_SNI
00171 # endif
00172 # ifdef OPENSSL_SYSNAME_ULTRASPARC
00173 # define OPENSSL_SYS_ULTRASPARC
00174 # endif
00175 # ifdef OPENSSL_SYSNAME_NEWS4
00176 # define OPENSSL_SYS_NEWS4
00177 # endif
00178 # ifdef OPENSSL_SYSNAME_MACOSX
00179 # define OPENSSL_SYS_MACOSX
00180 # endif
00181 # ifdef OPENSSL_SYSNAME_MACOSX_RHAPSODY
00182 # define OPENSSL_SYS_MACOSX_RHAPSODY
00183 # define OPENSSL_SYS_MACOSX
00184 # endif
00185 # ifdef OPENSSL_SYSNAME_SUNOS
00186 # define OPENSSL_SYS_SUNOS
00187 #endif
00188 # if defined(_CRAY) || defined(OPENSSL_SYSNAME_CRAY)
00189 # define OPENSSL_SYS_CRAY
00190 # endif
00191 # if defined(_AIX) || defined(OPENSSL_SYSNAME_AIX)
00192 # define OPENSSL_SYS_AIX
00193 # endif
00194 #endif
00195
00196
00197 #ifdef OPENSSL_SYSNAME_VOS
00198 # define OPENSSL_SYS_VOS
00199 #endif
00200
00201
00202 #ifdef OPENSSL_SYSNAME_VXWORKS
00203 # define OPENSSL_SYS_VXWORKS
00204 #endif
00205
00206
00207 #endif
00208
00213
00214 #ifdef OPENSSL_SYS_MSDOS
00215 # define OPENSSL_UNISTD_IO <io.h>
00216 # define OPENSSL_DECLARE_EXIT extern void exit(int);
00217 #else
00218 # define OPENSSL_UNISTD_IO OPENSSL_UNISTD
00219 # define OPENSSL_DECLARE_EXIT
00220 #endif
00221
00222
00223
00224
00225
00226
00227
00228
00229
00230
00231
00232
00233
00234
00235
00236
00237
00238
00239
00240
00241 #if defined(OPENSSL_SYS_VMS_NODECC)
00242 # define OPENSSL_EXPORT globalref
00243 # define OPENSSL_IMPORT globalref
00244 # define OPENSSL_GLOBAL globaldef
00245 #elif defined(OPENSSL_SYS_WINDOWS) && defined(OPENSSL_OPT_WINDLL)
00246 # define OPENSSL_EXPORT extern __declspec(dllexport)
00247 # define OPENSSL_IMPORT extern __declspec(dllimport)
00248 # define OPENSSL_GLOBAL
00249 #else
00250 # define OPENSSL_EXPORT extern
00251 # define OPENSSL_IMPORT extern
00252 # define OPENSSL_GLOBAL
00253 #endif
00254 #define OPENSSL_EXTERN OPENSSL_IMPORT
00255
00256
00257
00258
00259
00260
00261
00262
00263
00264
00265
00266
00267 #ifdef OPENSSL_EXPORT_VAR_AS_FUNCTION
00268 # define OPENSSL_IMPLEMENT_GLOBAL(type,name) \
00269 extern type _hide_##name; \
00270 type *_shadow_##name(void) { return &_hide_##name; } \
00271 static type _hide_##name
00272 # define OPENSSL_DECLARE_GLOBAL(type,name) type *_shadow_##name(void)
00273 # define OPENSSL_GLOBAL_REF(name) (*(_shadow_##name()))
00274 #else
00275 #ifndef EMULATOR
00276 # define OPENSSL_IMPLEMENT_GLOBAL(type,name) OPENSSL_GLOBAL type _shadow_##name
00277 # define OPENSSL_DECLARE_GLOBAL(type,name) OPENSSL_EXPORT type _shadow_##name
00278 # define OPENSSL_GLOBAL_REF(name) _shadow_##name
00279 #else
00280 # define OPENSSL_IMPLEMENT_GLOBAL(type,name)
00281 # define OPENSSL_DECLARE_GLOBAL(type,name)
00282 # define OPENSSL_GLOBAL_REF(name) libcrypto_ImpurePtr()->_shadow_##name
00283 #endif
00284 #endif
00285
00286 #ifdef __cplusplus
00287 }
00288 #endif
00289 #endif