summaryrefslogtreecommitdiffstats
path: root/e_os.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* RT3969: Add OPENSSL_SYS_UEFIDavid Woodhouse2015-09-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This provides support for building in the EDK II reference implementation of UEFI. Most UEFI firmware in existence uses OpenSSL for implementing the core cryptographic functionality needed for Secure Boot. This has always previously been handled with external patches to OpenSSL but we are now making a concerted effort to eliminate those. In this mode, we don't actually use the OpenSSL makefiles; we process the MINFO file generated by 'make files' and incorporate it into the EDK2 build system. Since EDK II builds for various targets with varying word size and we need to have a single prepackaged configuration, we deliberately don't hard-code the setting of SIXTY_FOUR_BIT vs. THIRTY_TWO_BIT in opensslconf.h. We bypass that for OPENSSL_SYS_UEFI and allow EDK II itself to set those, depending on the architecture. For x86_64, EDK II sets SIXTY_FOUR_BIT and thus uses 'long long' for the 64-bit type, even when building with GCC where 'long' is also 64-bit. We do this because the Microsoft toolchain has 32-bit 'long'. Signed-off-by: Rich Salz <rsalz@akamai.com> Reviewed-by: Tim Hudson <tjh@openssl.org>
* Identify and move OpenSSL internal header filesRichard Levitte2015-05-141-2/+2
| | | | | | | | | | | | | | There are header files in crypto/ that are used by the rest of OpenSSL. Move those to include/internal and adapt the affected source code, Makefiles and scripts. The header files that got moved are: crypto/constant_time_locl.h crypto/o_dir.h crypto/o_str.h Reviewed-by: Matt Caswell <matt@openssl.org>
* Add OSSL_NELEM macro.Dr. Stephen Henson2015-05-031-0/+2
| | | | | | | Add OSSL_NELEM macro to e_os.h to determine the number of elements in an array. Reviewed-by: Tim Hudson <tjh@openssl.org>
* VMS adjustments:Richard Levitte2015-01-301-0/+1
| | | | | | | | Add new symbols that are longer than 31 chars to symhacks. VMS doesn't have <sys/un.h>, reflect that in e_os.h. MS_CALLBACK has been removed, ssl_task.c needs adjustment. Reviewed-by: Andy Polyakov <appro@openssl.org>
* ifdef cleanup part 3: OPENSSL_SYSNAMERich Salz2015-01-231-10/+0
| | | | | | | | Rename OPENSSL_SYSNAME_xxx to OPENSSL_SYS_xxx Remove MS_STATIC; it's a relic from platforms <32 bits. Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org>
* Run util/openssl-format-source -v -c .Matt Caswell2015-01-221-452/+466
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* Cleanup OPENSSL_NO_xxx, part 1master-pre-reformatRich Salz2015-01-141-5/+0
| | | | | | | | | | OPENSSL_NO_RIPEMD160, OPENSSL_NO_RIPEMD merged into OPENSSL_NO_RMD160 OPENSSL_NO_FP_API merged into OPENSSL_NO_STDIO Two typo's on #endif comments fixed: OPENSSL_NO_ECB fixed to OPENSSL_NO_OCB OPENSSL_NO_HW_SureWare fixed to OPENSSL_NO_HW_SUREWARE Reviewed-by: Richard Levitte <levitte@openssl.org>
* Avoid deprecation problems in Visual Studio 13Matt Caswell2015-01-131-1/+3
| | | | Reviewed-by: Andy Polyakov <appro@openssl.org>
* RT3548: Remove unsupported platformsRich Salz2015-01-121-8/+0
| | | | | | | This last one for this ticket. Removes WIN16. So long, MS_CALLBACK and MS_FAR. We won't miss you. Reviewed-by: Richard Levitte <levitte@openssl.org>
* RT3546: Remove #define IRIX_CC_BUGRich Salz2015-01-051-7/+0
| | | | | | | Leftovers from commit 448155e9bbda27cbba365ff549a7e2044a8a399f Remove now-unused #define's Reviewed-by: Matt Caswell <matt@openssl.org>
* mark all block comments that need format preserving so thatTim Hudson2014-12-301-1/+2
| | | | | | | indent will not alter them when reformatting comments Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
* RT3548: Remove unsupported platformsRich Salz2014-12-281-2/+0
| | | | | | | | This commit removes DG-UX. It also flushes out some left-behinds in config. And regenerates TABLE from Configure (hadn't been done in awhile). Reviewed-by: Richard Levitte <levitte@openssl.org>
* RT3548: Remove unsupported platforms.Rich Salz2014-12-221-5/+0
| | | | | | This commit removes MPE/iX Reviewed-by: Andy Polyakov <appro@openssl.org>
* RT3548: Remove outdated platformsRich Salz2014-12-201-10/+0
| | | | | | This commit removes all mention of NeXT and NextStep. Reviewed-by: Richard Levitte <levitte@openssl.org>
* RT3548: Remove some obsolete platformsRich Salz2014-12-181-5/+1
| | | | | | This commit removes Sony NEWS4 Reviewed-by: Richard Levitte <levitte@openssl.org>
* RT3548: Remove some obsolete platformsRich Salz2014-12-171-18/+1
| | | | | | This commit removes BEOS. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Remove OPENSSL_FIPSCANISTER code.Dr. Stephen Henson2014-12-081-2/+0
| | | | | | | OPENSSL_FIPSCANISTER is only set if the fips module is being built (as opposed to being used). Since the fips module wont be built in master this is redundant. Reviewed-by: Tim Hudson <tjh@openssl.org>
* e_os.h: refine inline override logic (to address warnings in debug build).Andy Polyakov2014-09-301-3/+10
| | | | Reviewed-by: Dr Stephen Henson <steve@openssl.org>
* Remove #ifdef's for IRIX_CC_BUGRich Salz2014-09-251-7/+0
| | | | Reviewed-by: Andy Polyakov <appro@openssl.org>
* e_os.h: allow inline functions to be compiled by legacy compilers.Andy Polyakov2014-09-251-9/+16
| | | | Reviewed-by: Matt Caswell <matt@openssl.org>
* RT3544: Remove MWERKS supportRich Salz2014-09-251-28/+0
| | | | | | | | | | | | The following #ifdef tests were all removed: __MWERKS__ MAC_OS_pre_X MAC_OS_GUSI_SOURCE MAC_OS_pre_X OPENSSL_SYS_MACINTOSH_CLASSIC OPENSSL_SYS_MACOSX_RHAPSODY Reviewed-by: Andy Polyakov <appro@openssl.org>
* RT3108: OPENSSL_NO_SOCK should imply OPENSSL_NO_DGRAMRich Salz2014-09-081-0/+4
| | | | Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
* define inline for Visual StudioEmilia Kasper2014-08-211-2/+10
| | | | | | | | In Visual Studio, inline is available in C++ only, however __inline is available for C, see http://msdn.microsoft.com/en-us/library/z8y1yy88.aspx Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Dr Stephen Henson <steve@openssl.org>
* Undo a90081576c94f9f54de1755188a00ccc1760549aRich Salz2014-08-091-2/+27
| | | | Undo unapproved commit that removed DJGPP and WATT32
* Remove DJGPP (and therefore WATT32) #ifdef's.Rich Salz2014-08-081-27/+2
| | | | | | DJGPP is no longer a supported platform. Remove all #ifdef, etc., cases that refer to it. DJGPP also #define'd WATT32, so that is now removed as well.
* e_os.h: limit _MSC_VER trickery to older compilers.Andy Polyakov2014-07-021-2/+2
| | | | PR: #3390
* Windows build fixes.Dr. Stephen Henson2014-07-011-0/+1
|
* s_client/s_server: support unix domain socketsGeoff Thorpe2014-05-091-0/+10
| | | | | | | | | | | | | | | | | | | | | | The "-unix <path>" argument allows s_server and s_client to use a unix domain socket in the filesystem instead of IPv4 ("-connect", "-port", "-accept", etc). If s_server exits gracefully, such as when "-naccept" is used and the requested number of SSL/TLS connections have occurred, then the domain socket file is removed. On ctrl-C, it is likely that the stale socket file will be left over, such that s_server would normally fail to restart with the same arguments. For this reason, s_server also supports an "-unlink" option, which will clean up any stale socket file before starting. If you have any reason to want encrypted IPC within an O/S instance, this concept might come in handy. Otherwise it just demonstrates that there is nothing about SSL/TLS that limits it to TCP/IP in any way. (There might also be benchmarking and profiling use in this path, as unix domain sockets are much lower overhead than connecting over local IP addresses). Signed-off-by: Geoff Thorpe <geoff@openssl.org>
* Avoid Windows 8 Getversion deprecated errors.Dr. Stephen Henson2014-02-251-0/+7
| | | | | | | | | | | Windows 8 SDKs complain that GetVersion() is deprecated. We only use GetVersion like this: (GetVersion() < 0x80000000) which checks if the Windows version is NT based. Use a macro check_winnt() which uses GetVersion() on older SDK versions and true otherwise.
* misspellings fixes by https://github.com/vlajos/misspell_fixerVeres Lajos2013-09-051-1/+1
|
* Improve WINCE support.Andy Polyakov2013-01-191-1/+4
| | | | Submitted by: Pierre Delaage
* e_os.h: keep stdin redifinitions to "normal" Windows.Andy Polyakov2012-10-291-1/+1
|
* e_os.h: skip redundant headers in fipscanister build.Andy Polyakov2012-10-271-2/+4
|
* Add new type ossl_ssize_t instead of ssize_t and move definitions toDr. Stephen Henson2010-07-261-12/+0
| | | | | e_os2.h, this should fix WIN32 compilation issues and hopefully avoid conflicts with other headers which may workaround ssize_t in different ways.
* fix PR#2261 in a different wayDr. Stephen Henson2010-05-311-4/+0
|
* PR: 2261Dr. Stephen Henson2010-05-271-0/+3
| | | | | | | Submitted By: De Rudder, Stephen L." <s_derudder@tditx.com> Workaround for newer Windows headers which define EADDRINUSE but not to the same value as WSAEADDRINUSE.
* PR: 2005Dr. Stephen Henson2009-08-261-0/+12
| | | | | | | | | Submitted by: steve@openssl.org Some systems have broken IPv6 headers and/or implementations. If OPENSSL_USE_IPV6 is set to 0 IPv6 is not used, if it is set to 1 it is used and if undefined an attempt is made to detect at compile time by checking if AF_INET6 is set and excluding known problem platforms.
* Updates from 1.0.0-stable branch.Dr. Stephen Henson2009-04-201-4/+4
|
* This _WIN32-specific patch makes it possible to "wrap" OpenSSL in anotherAndy Polyakov2008-12-221-1/+27
| | | | | | | .DLL, in particular static build. The issue has been discussed in RT#1230 and later on openssl-dev, and mutually exclusive approaches were suggested. This completes compromise solution suggested in RT#1230. PR: 1230
* Netware support.Dr. Stephen Henson2008-01-031-11/+22
| | | | Submitted by: Guenter Knauf <eflash@gmx.net>
* Addendum to commit #16651.Andy Polyakov2007-10-071-0/+8
|
* Fix mingw warnings.Andy Polyakov2006-10-231-1/+4
|
* Add BeOS support.Ulf Möller2006-04-111-0/+18
| | | | | | PR: 1312 Submitted by: Oliver Tappe <zooey@hirschkaefer.de> Reviewed by: Ulf Moeller
* Compile Windows with winsock2.h. But note that we still link with wsock32!Andy Polyakov2006-01-021-0/+12
| | | | | This works because wsock32 commonly loads ws2_32 anyway and we [intend to] check upon presense of winsock2-specific API at run-time.
* Keep disclaiming 16-bit platform support. For now remove WIN16 referencesAndy Polyakov2005-12-181-22/+2
| | | | from .h files...
* Tidying up WinCE support.Andy Polyakov2005-11-091-8/+13
|
* First draft for WCE PortSDK support. Once again! It's *draft* which requiresAndy Polyakov2005-11-061-1/+3
| | | | more work, i.e. more modifications are due...
* Engage OPENSSL_NO_POSIX_IO on Windows CE.Andy Polyakov2005-11-031-0/+1
|
* Make cygwin work in directories mounted with 'text' attribute.Andy Polyakov2005-11-031-0/+4
|
* Fix SunOS 4 building issue.Andy Polyakov2005-09-221-1/+1
| | | | PR: 1196