Re: [openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-12-19 Thread Andy Polyakov via RT
There is no assembly support for pe64. Well, Win64 ABI is fully supported by OpenSSL x86_64 assembler modules. There is no support for GNU assembler under Win64, but masm (rather known as ml64) and nasm are fully supported (though there are requirements for least supported versions, for

Re: [openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-11-13 Thread Alon Bar-Lev
Hello, appro added assembly support for mingw64 at [1]. I've succeeded in compiling this with the following patch. Thank you! Alon. [1] http://cvs.openssl.org/chngview?cn=17619 --- --- openssl-SNAP-20081113/Configure 2008-11-12 22:00:07.0 +0200 +++

Re: [openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-11-03 Thread Roumen Petrov
Alon Bar-Lev via RT wrote: On 10/31/08, Andy Polyakov via RT [EMAIL PROTECTED] wrote: Could you please test the other suggested bn_lcl.h modification? While you're on it... [SNIP] Attached is a new patch. Thanks! Alon. Why mingw64 ... -D_WIN32_WINNT=0x333 ? This has to defined by

Re: [openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-11-03 Thread Alon Bar-Lev
On 11/3/08, Roumen Petrov [EMAIL PROTECTED] wrote: Why mingw64 ... -D_WIN32_WINNT=0x333 ? This has to defined by openssl headers (if not defined) to 0x400. HEAD version is for winsock2 and I'm not sure that winsock2 is available as example for ancient nt3.51. The winsock2 library is

Re: [openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-11-01 Thread Andy Polyakov via RT
Could you please test the other suggested bn_lcl.h modification? While you're on it... I cannot actually test it... I can compile and users may test. I don't have a win64 machine. How is it tested? Implicitly by an application being inter-operable with another? Meaning that only only part

Re: [openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-11-01 Thread Alon Bar-Lev
On 11/1/08, Andy Polyakov via RT [EMAIL PROTECTED] wrote: Could you please test the other suggested bn_lcl.h modification? While you're on it... I cannot actually test it... I can compile and users may test. I don't have a win64 machine. How is it tested? Implicitly by an

Re: [openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-11-01 Thread Andy Polyakov via RT
I managed to produce them myself with mingw-w64-bin_x86-64-linux_20080921.tar.bz2. Modified sha512.c is fine, Great! My environment is gcc-4.3.2, binutils-CVS-head, mingw-w64-SVN-head as 20080921 is equipped with gcc-4.4.0 and whatever the rest it is equipped with. modified bn_lcl.h

Re: [openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-11-01 Thread Alon Bar-Lev
Great! Can you commit the mingw64 other stuff? On 11/1/08, Andy Polyakov via RT [EMAIL PROTECTED] wrote: I managed to produce them myself with mingw-w64-bin_x86-64-linux_20080921.tar.bz2. Modified sha512.c is fine, Great! My environment is gcc-4.3.2, binutils-CVS-head,

Re: [openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-10-31 Thread Andy Polyakov via RT
Could you please test the other suggested bn_lcl.h modification? While you're on it... I am not fully sure that the crypto/sha/sha512.c is correct, it simulate the behavior of win64 using Microsoft compiler, using _rotr64 function as ROTR. What you should have done instead is to modify macro

Re: [openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-10-31 Thread Alon Bar-Lev via RT
On 10/31/08, Andy Polyakov via RT [EMAIL PROTECTED] wrote: Could you please test the other suggested bn_lcl.h modification? While you're on it... I cannot actually test it... I can compile and users may test. I don't have a win64 machine. And I don't know how exactly I can check for speed... I

Re: [openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-10-30 Thread Alon Bar-Lev via RT
Hello, Attached is latest mingw win64 patch for OpenSSL. It is verified to work with the OpenSC project and the OpenVPN project using cross compile from Linux machine using binutils CVS head, gcc-4.3.2 and mingw-w64 svn head. There is no assembly support for pe64. So no assembly is

Re: [openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-10-30 Thread Andy Polyakov via RT
There is no assembly support for pe64. Well, Win64 ABI is fully supported by OpenSSL x86_64 assembler modules. There is no support for GNU assembler under Win64, but masm (rather known as ml64) and nasm are fully supported (though there are requirements for least supported versions, for nasm

Re: [openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-10-30 Thread Alon Bar-Lev via RT
On Thursday 30 October 2008, Andy Polyakov via RT wrote: There is no assembly support for pe64. Well, Win64 ABI is fully supported by OpenSSL x86_64 assembler modules. There is no support for GNU assembler under Win64, but masm (rather known as ml64) and nasm are fully supported (though

Re: [openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-10-20 Thread Alon Bar-Lev via RT
Hello, Attached is a new version, against latest snapshot. I don't know how the -DOPENSSL_USE_APPLINK works for you guys... It produces invalid asm for me... I don't fully understand what this file do... perl ../ms/uplink.pl coff uplink-cof.s x86_64-pc-mingw32-gcc -I. -I.. -I../include

Re: [openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-10-20 Thread Alon Bar-Lev via RT
The alarm() will be removed: https://sourceforge.net/tracker/index.php?func=detailaid=2182468group_id=202880atid=983354 __ OpenSSL Project http://www.openssl.org Development Mailing List

Re: [openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-07-21 Thread Ger Hobbelt
On Tue, Jun 3, 2008 at 12:32 PM, [EMAIL PROTECTED] via RT [EMAIL PROTECTED] wrote: - windows.h apparently includes wincrypt.h (no idea whether that's specific to that compiler, but it seems so ...), so I needed to #undefine a couple of names messed up by wincrypt.h (patches to rand.h,

Re: [openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-07-21 Thread Roumen Petrov
Ger Hobbelt wrote: On Tue, Jun 3, 2008 at 12:32 PM, [EMAIL PROTECTED] via RT [EMAIL PROTECTED] wrote: - windows.h apparently includes wincrypt.h (no idea whether that's specific to that compiler, but it seems so ...), so I needed to #undefine a couple of names messed up by wincrypt.h

Re: [openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-07-20 Thread [EMAIL PROTECTED] via RT
Andy Polyakov wrote: How do we know that these are not or should not be treated as mingw64 bugs? I mean it worked for mingw for years (I wonder how by the way), now ancestor is *being developed* and how come it's not its fault:-) I don't really understand that part about ancestor, but never

Re: [openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-07-20 Thread Andy Polyakov
How do we know that these are not or should not be treated as mingw64 bugs? I mean it worked for mingw for years (I wonder how by the way), now ancestor is *being developed* and how come it's not its fault:-) I don't really understand that part about ancestor, but never mind ... Oops! I

Re: [openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-07-17 Thread Andy Polyakov via RT
Here's a patch against today's snapshot of head. I think that you has to compile with -DWIN32_LEAN_AND_MEAN in Configure before to do some undefs in openssl headers. I'm not really convinced, but for the time being, I've added that compile option to get rid of that more or less cosmetic

Re: [openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-06-06 Thread [EMAIL PROTECTED] via RT
Hi, Please, could you propose a patch to the OpenSSL head. In the head -lwsock32 is replaced by -lws2_32. Will do.. I think that you has to compile with -DWIN32_LEAN_AND_MEAN in Configure before to do some undefs in openssl headers. Also see other win64 targets. But doesn't

Re: [openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-06-06 Thread [EMAIL PROTECTED] via RT
Hi, Please, could you propose a patch to the OpenSSL head. In the head -lwsock32 is replaced by -lws2_32. Here's a patch against today's snapshot of head. I think that you has to compile with -DWIN32_LEAN_AND_MEAN in Configure before to do some undefs in openssl headers.

Re: [openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-06-04 Thread Roumen Petrov
Hi Stefan, [EMAIL PROTECTED] via RT wrote: Hi, I just tried to compile OpenSSL-0.9.8h with mingw-w64 (see http://sourceforge.net/projects/mingw-w64/) and needed a couple of changes to the source code (see attached patch). Some notes: - I added a mingw64 line to Configure and

[openssl.org #1693] Compiling OpenSSL with mingw-w64

2008-06-03 Thread [EMAIL PROTECTED] via RT
Hi, I just tried to compile OpenSSL-0.9.8h with mingw-w64 (see http://sourceforge.net/projects/mingw-w64/) and needed a couple of changes to the source code (see attached patch). Some notes: - I added a mingw64 line to Configure and (think I) told it to use .exe extension for