Paul Allen-4 wrote: > > On Mon, 2009-06-15 at 21:32 -0700, patfla wrote: >> Hi Paul, >> >> I'm using (and have used from some time) a windows build of OpenSSL from >> here: >> >> http://www.slproweb.com/products/Win32OpenSSL.html > > Yup. I don't know why anybody would take that risk when building from > trusted source is so easy. But then, I don't know why anyone would use > Windows either, so there you go. :-) >
Because my company uses Windows. I'm on the latest build of Windows Server 2008 R2 from MSDN. Build 7100. First built using ./config which more-or-less worked but didn't produce any DLLs which was unsurprising given that /.config is the unix-style config. So then did: ./Configure mingw which gave me: > > $ ./Configure mingw > Configuring for mingw > no-camellia [default] OPENSSL_NO_CAMELLIA (skip dir) > no-capieng [default] OPENSSL_NO_CAPIENG (skip dir) > no-cms [default] OPENSSL_NO_CMS (skip dir) > no-gmp [default] OPENSSL_NO_GMP (skip dir) > no-jpake [experimental] OPENSSL_NO_JPAKE (skip dir) > no-krb5 [krb5-flavor not specified] OPENSSL_NO_KRB5 > no-mdc2 [default] OPENSSL_NO_MDC2 (skip dir) > no-montasm [default] > no-rc5 [default] OPENSSL_NO_RC5 (skip dir) > no-rfc3779 [default] OPENSSL_NO_RFC3779 (skip dir) > no-seed [default] OPENSSL_NO_SEED (skip dir) > no-shared [default] > no-zlib [default] > no-zlib-dynamic [default] > IsMK1MF=1 > CC =gcc > CFLAG =-DOPENSSL_THREADS -DDSO_WIN32 -mno-cygwin -DL_ENDIAN > -fomit-fram > e-pointer -O3 -march=i486 -Wall -D_WIN32_WINNT=0x333 > -DOPENSSL_BN_ASM_PART_WORDS > -DOPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM > EX_LIBS =-lwsock32 -lgdi32 > CPUID_OBJ =x86cpuid-cof.o > BN_ASM =bn86-cof.o co86-cof.o > DES_ENC =dx86-cof.o yx86-cof.o > AES_ASM_OBJ =ax86-cof.o > BF_ENC =bx86-cof.o > CAST_ENC =cx86-cof.o > RC4_ENC =rx86-cof.o rc4_skey.o > RC5_ENC =r586-cof.o > MD5_OBJ_ASM =mx86-cof.o > SHA1_OBJ_ASM =sx86-cof.o s512sse2-cof.o > RMD160_OBJ_ASM=rm86-cof.o > PROCESSOR = > RANLIB =true > ARFLAGS = > PERL =perl > THIRTY_TWO_BIT mode > DES_PTR used > DES_RISC1 used > DES_UNROLL used > BN_LLONG mode > RC4_INDEX mode > RC4_CHUNK is undefined > > Configured for mingw. > > m...@machine /cygdrive/c/openssl-0.9.8k > $ > then make clean ! clean up the previous build make which craps out on what appears to be the first file: > making all in crypto... > make[1]: Entering directory `/cygdrive/c/openssl-0.9.8k/crypto' > gcc -I. -I.. -I../include -DOPENSSL_THREADS -DDSO_WIN32 -mno-cygwin > -DL_ENDIAN > -fomit-frame-pointer -O3 -march=i486 -Wall -D_WIN32_WINNT=0x333 > -DOPENSSL_BN_ASM > _PART_WORDS -DOPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM > -DAES_ASM -c > -o cryptlib.o cryptlib.c > cryptlib.c: In function `OPENSSL_isservice': > cryptlib.c:415: error: `HWINSTA' undeclared (first use in this function) > cryptlib.c:415: error: (Each undeclared identifier is reported only once > cryptlib.c:415: error: for each function it appears in.) > cryptlib.c:415: error: parse error before "h" > I search and HWINSTA (presumably just turned on by an ifdef) is found only in this one C source - and no .h file. So I'm scratching my head. > m...@machine /cygdrive/c/openssl-0.9.8k > $ grep -ri "hwinsta" . --include=*.c > ./crypto/cryptlib.c:{ HWINSTA h; > m...@machine /cygdrive/c/openssl-0.9.8k > $ grep -ri "hwinsta" . --include=*.h > > m...@machine /cygdrive/c/openssl-0.9.8k > $ > -- View this message in context: http://www.nabble.com/example-code-for-OpenSSL-tp24040969p24084132.html Sent from the OpenSSL - User mailing list archive at Nabble.com. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org