[PATCH] Make openssl 1.0.1 compilable on MinGW

2014-08-10 Thread Linda Zhang
Hello, OpenSSL 1.0.1 can't be compiled on MinGW because of 2 bugs: 1. There is a bad configuration of output format of asm files. 2. There is a conflict of the order of winsock2.h and windows.h in some source files so that the compiler shows error messages: #error ws2tcpip.h is not

Re: [PATCH] Make openssl 1.0.1 compilable on MinGW

2014-08-10 Thread Gisle Vanem
Linda Zhang lind...@qq.com wrote: 2. There is a conflict of the order of winsock2.h and windows.h in some source files so that the compiler shows error messages: #error ws2tcpip.h is not compatible with winsock.h. Include winsock2.h instead. mingw32-make: *** [tmp\t1_lib.o] Error 1

Re: [LibReSSL] Allow key generation to use arbitrary public exponents

2014-08-10 Thread Benny Baumann
Hi Annie, Am 09.08.2014 19:24, schrieb Annie Yousar: Hi Ben, you can generate keys with arbitrary exponents using the genpkey command: openssl genpkey -algorithm rsa \ -pkeyopt rsa_keygen_bits:16384 -pkeyopt rsa_keygen_pubexp:4711 Thanks for this information. Now that you mention this: I

Re: Re: [PATCH] Make openssl 1.0.1 compilable on MinGW

2014-08-10 Thread Linda Zhang
Hi Gisle, Building in MSYS by ./config and make works, but I can't find libeay32.dll and libssl32.dll when compilation finishes. So, I build openssl with command line ms\mingw32.bat. It seems there must be something wrong that it didn't pass CFLAGS configured by perl Configure mingw to gcc.

CRL update

2014-08-10 Thread anoop negi
Hello, I have an application with a simple init code : SSL_CTX *ctx; X509_STORE *store; X509_LOOKUP *lookup; (...) store = SSL_CTX_get_cert_store(ctx); lookup = X509_STORE_add_lookup(store, X509_LOOKUP_hash_dir()); X509_LOOKUP_add_dir(lookup, ca_path, X509_FILETYPE_PEM)

Re: [PATCH] Make openssl 1.0.1 compilable on MinGW

2014-08-10 Thread Support
Hi Linda, Have you tried running the 'regular' commands ? Perl Configure mingw make depend make make report As far as I know these always work on msys - there is no need to run the ms/mingw32.bat script. To get the shared libraries you need to add the shared flag to Configure, eg. perl

Re: Re: [PATCH] Make openssl 1.0.1 compilable on MinGW

2014-08-10 Thread Gisle Vanem
Linda Zhang lind...@qq.com wrote: So, I build openssl with command line ms\mingw32.bat. It seems there must be something wrong that it didn't pass CFLAGS configured by perl Configure mingw to gcc. OpenSSL (on Windows at least) is close to the package from hell. Someone here remember gettext?

Re: Re: [PATCH] Make openssl 1.0.1 compilable on MinGW

2014-08-10 Thread dcruette
Hi Gisle I contribute to the openssl-testing group by providing regular results of compilation/test for various platforms (Linux Ubuntu 32b i386, Linux Raspberry ARM, Windows 7 32b i386, may be OpenBSD Raspberry ARM in the future) Could someone communicate on the - must have (pre requisite for

Re: Re: [PATCH] Make openssl 1.0.1 compilable on MinGW

2014-08-10 Thread Linda Zhang
Hi Support and Gisle, Support wrote: Have you tried running the 'regular' commands ? Perl Configure mingw make depend make make report As far as I know these always work on msys - there is no need to run the ms/mingw32.bat script. To get the shared libraries you need to add the shared

Re: [PATCH] Make openssl 1.0.1 compilable on MinGW

2014-08-10 Thread dcruette
Hi In a previous post, I have seen that ms/mingw32 is deprecated (is removed from main snapshot) I confirm that perl Configure mingw make depend make make test is ok for openssl-SNAP-20140808 on windows 7 Regards Didier CRUETTE Le 10.08.2014 17:09, Support a écrit : Hi Linda, Have you