#undef GETU32
#define GETU32(p) (*((u32*)(p)))
-#if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__)
-typedef unsigned __int64 u64;
-#define U64(C) C##UI64
-#elif defined(__arch64__)
+#if defined(_LP64)
typedef unsigned long u64;
#define U64(C) C##UL
#else
* machine.
*/
-#ifdef _WIN64
-#define BN_ULONG unsigned long long
-#else
#define BN_ULONG unsigned long
-#endif
#undef mul
#undef mul_add
#include "bn_lcl.h"
#include <stdlib.h>
-#ifdef _WIN32
-# include <malloc.h>
-# ifndef alloca
-# define alloca _alloca
-# endif
-#elif defined(__GNUC__)
+#if defined(__GNUC__)
# ifndef alloca
# define alloca(s) __builtin_alloca((s))
# endif
* [including the GNU Public Licence.]
*/
-#ifdef OPENSSL_SYS_WIN32
-#include <stdlib.h>
-#endif
-
-
#undef c2l
#define c2l(c,l) (l =((unsigned long)(*((c)++))) , \
l|=((unsigned long)(*((c)++)))<< 8L, \
/* first - get the length */
while (net_num < HDRSIZE)
{
-#ifndef OPENSSL_SYS_WIN32
i=read(fd,(void *)&(net[net_num]),HDRSIZE-net_num);
-#else
- i=_read(fd,(void *)&(net[net_num]),HDRSIZE-net_num);
-#endif
#ifdef EINTR
if ((i == -1) && (errno == EINTR)) continue;
#endif
net_num=0;
while (net_num < rnum)
{
-#ifndef OPENSSL_SYS_WIN32
i=read(fd,(void *)&(net[net_num]),rnum-net_num);
-#else
- i=_read(fd,(void *)&(net[net_num]),rnum-net_num);
-#endif
#ifdef EINTR
if ((i == -1) && (errno == EINTR)) continue;
#endif
{
/* eay 26/08/92 I was not doing writing from where we
* got up to. */
-#ifndef _WIN32
i=write(fd,(void *)&(outbuf[j]),outnum-j);
-#else
- i=_write(fd,(void *)&(outbuf[j]),outnum-j);
-#endif
if (i == -1)
{
#ifdef EINTR
}
/* ===== Engine "management" functions ===== */
-#if defined(_WIN32)
-typedef unsigned __int64 IA32CAP;
-#else
typedef unsigned long long IA32CAP;
-#endif
/* Prepare the ENGINE structure for registration */
static int
/* We do these includes here to avoid header problems on platforms that
do not have the VIA padlock anyway... */
#include <stdlib.h>
-#ifdef _WIN32
-# include <malloc.h>
-# ifndef alloca
-# define alloca _alloca
-# endif
-#elif defined(__GNUC__)
+#if defined(__GNUC__)
# ifndef alloca
# define alloca(s) __builtin_alloca(s)
# endif
#ifndef OPENSSL_NO_RSA
-#ifdef _WIN32
-typedef unsigned __int64 UINT64;
-#else
typedef unsigned long long UINT64;
-#endif
typedef unsigned short UINT16;
/* Table t is interleaved in the following manner:
#include <machine/endian.h>
-#if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__)
-typedef __int64 i64;
-typedef unsigned __int64 u64;
-#define U64(C) C##UI64
-#elif defined(__arch64__)
+#if defined(_LP64)
typedef long i64;
typedef unsigned long u64;
#define U64(C) C##UL
#define SHA512_CBLOCK (SHA_LBLOCK*8) /* SHA-512 treats input data as a
* contiguous array of 64 bit
* wide big-endian values. */
-#if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__)
-#define SHA_LONG64 unsigned __int64
-#define U64(C) C##UI64
-#elif defined(__arch64__)
+#if defined(_LP64)
#define SHA_LONG64 unsigned long
#define U64(C) C##UL
#else
#include <openssl/evp.h>
#if (BN_BYTES == 8)
-# if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__)
-# define bn_pack4(a1,a2,a3,a4) ((a1##UI64<<48)|(a2##UI64<<32)|(a3##UI64<<16)|a4##UI64)
-# elif defined(__arch64__)
+# if defined(_LP64)
# define bn_pack4(a1,a2,a3,a4) ((a1##UL<<48)|(a2##UL<<32)|(a3##UL<<16)|a4##UL)
# else
# define bn_pack4(a1,a2,a3,a4) ((a1##ULL<<48)|(a2##ULL<<32)|(a3##ULL<<16)|a4##ULL)
extern "C" {
#endif
-#ifdef WIN32
-/* Under Win32 this is defined in wincrypt.h */
-#undef X509_NAME
-#endif
-
#include <openssl/x509.h>
#include <openssl/x509v3.h>
#include <machine/endian.h>
typedef unsigned char u8;
-#if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32)
-typedef unsigned __int64 u64;
-#elif defined(__arch64__)
+#if defined(_LP64)
typedef unsigned long u64;
#else
typedef unsigned long long u64;
#undef GETU32
#define GETU32(p) (*((u32*)(p)))
-#if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__)
-typedef unsigned __int64 u64;
-#define U64(C) C##UI64
-#elif defined(__arch64__)
+#if defined(_LP64)
typedef unsigned long u64;
#define U64(C) C##UL
#else
* machine.
*/
-#ifdef _WIN64
-#define BN_ULONG unsigned long long
-#else
#define BN_ULONG unsigned long
-#endif
#undef mul
#undef mul_add
#include "bn_lcl.h"
#include <stdlib.h>
-#ifdef _WIN32
-# include <malloc.h>
-# ifndef alloca
-# define alloca _alloca
-# endif
-#elif defined(__GNUC__)
+#if defined(__GNUC__)
# ifndef alloca
# define alloca(s) __builtin_alloca((s))
# endif
* [including the GNU Public Licence.]
*/
-#ifdef OPENSSL_SYS_WIN32
-#include <stdlib.h>
-#endif
-
-
#undef c2l
#define c2l(c,l) (l =((unsigned long)(*((c)++))) , \
l|=((unsigned long)(*((c)++)))<< 8L, \
/* first - get the length */
while (net_num < HDRSIZE)
{
-#ifndef OPENSSL_SYS_WIN32
i=read(fd,(void *)&(net[net_num]),HDRSIZE-net_num);
-#else
- i=_read(fd,(void *)&(net[net_num]),HDRSIZE-net_num);
-#endif
#ifdef EINTR
if ((i == -1) && (errno == EINTR)) continue;
#endif
net_num=0;
while (net_num < rnum)
{
-#ifndef OPENSSL_SYS_WIN32
i=read(fd,(void *)&(net[net_num]),rnum-net_num);
-#else
- i=_read(fd,(void *)&(net[net_num]),rnum-net_num);
-#endif
#ifdef EINTR
if ((i == -1) && (errno == EINTR)) continue;
#endif
{
/* eay 26/08/92 I was not doing writing from where we
* got up to. */
-#ifndef _WIN32
i=write(fd,(void *)&(outbuf[j]),outnum-j);
-#else
- i=_write(fd,(void *)&(outbuf[j]),outnum-j);
-#endif
if (i == -1)
{
#ifdef EINTR
}
/* ===== Engine "management" functions ===== */
-#if defined(_WIN32)
-typedef unsigned __int64 IA32CAP;
-#else
typedef unsigned long long IA32CAP;
-#endif
/* Prepare the ENGINE structure for registration */
static int
/* We do these includes here to avoid header problems on platforms that
do not have the VIA padlock anyway... */
#include <stdlib.h>
-#ifdef _WIN32
-# include <malloc.h>
-# ifndef alloca
-# define alloca _alloca
-# endif
-#elif defined(__GNUC__)
+#if defined(__GNUC__)
# ifndef alloca
# define alloca(s) __builtin_alloca(s)
# endif
#ifndef OPENSSL_NO_RSA
-#ifdef _WIN32
-typedef unsigned __int64 UINT64;
-#else
typedef unsigned long long UINT64;
-#endif
typedef unsigned short UINT16;
/* Table t is interleaved in the following manner:
#include <machine/endian.h>
-#if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__)
-typedef __int64 i64;
-typedef unsigned __int64 u64;
-#define U64(C) C##UI64
-#elif defined(__arch64__)
+#if defined(_LP64)
typedef long i64;
typedef unsigned long u64;
#define U64(C) C##UL
#define SHA512_CBLOCK (SHA_LBLOCK*8) /* SHA-512 treats input data as a
* contiguous array of 64 bit
* wide big-endian values. */
-#if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__)
-#define SHA_LONG64 unsigned __int64
-#define U64(C) C##UI64
-#elif defined(__arch64__)
+#if defined(_LP64)
#define SHA_LONG64 unsigned long
#define U64(C) C##UL
#else
#include <openssl/evp.h>
#if (BN_BYTES == 8)
-# if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__)
-# define bn_pack4(a1,a2,a3,a4) ((a1##UI64<<48)|(a2##UI64<<32)|(a3##UI64<<16)|a4##UI64)
-# elif defined(__arch64__)
+# if defined(_LP64)
# define bn_pack4(a1,a2,a3,a4) ((a1##UL<<48)|(a2##UL<<32)|(a3##UL<<16)|a4##UL)
# else
# define bn_pack4(a1,a2,a3,a4) ((a1##ULL<<48)|(a2##ULL<<32)|(a3##ULL<<16)|a4##ULL)
extern "C" {
#endif
-#ifdef WIN32
-/* Under Win32 this is defined in wincrypt.h */
-#undef X509_NAME
-#endif
-
#include <openssl/x509.h>
#include <openssl/x509v3.h>
#include <machine/endian.h>
typedef unsigned char u8;
-#if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32)
-typedef unsigned __int64 u64;
-#elif defined(__arch64__)
+#if defined(_LP64)
typedef unsigned long u64;
#else
typedef unsigned long long u64;