Re: [openssl.org #2137] [PATCH] mingw fixups

2010-01-12 Thread Alon Bar-Lev via RT
Hello,

I use i686-w64-mingw32...
We discussed this in past (I think) LEAN_AND_MEAN was added to win64
but not win32.

As w64 compiler much more complete and maintained I use it to compile
win32 as-well.

Alon.

On Tue, Jan 12, 2010 at 11:14 PM, Roumen Petrov via RT  wrote:
> Alon Bar-Lev via RT wrote:
>>
>> The following is required in order to make beta4 compile using mingw (w64).
>>
>> Every time there is #include  some symbols should be removed.
>> Also, there is no need to #include  if e_os2.h was included.
> [SNIP]
>
>> diff -urNp openssl-1.0.0-beta4.org/e_os.h openssl-1.0.0-beta4/e_os.h
>> --- openssl-1.0.0-beta4.org/e_os.h    2009-08-26 18:13:43.0 +0300
>> +++ openssl-1.0.0-beta4/e_os.h        2010-01-11 17:13:08.152360026 +0200
>> @@ -372,6 +372,13 @@ static unsigned int _strlen31(const char
>>   #    define DEFAULT_HOME  "C:"
>>   #  endif
>>
>> +#undef X509_NAME
>> +#undef X509_EXTENSIONS
>> +#undef X509_CERT_PAIR
>> +#undef PKCS7_ISSUER_AND_SERIAL
>> +#undef OCSP_REQUEST
>> +#undef OCSP_RESPONSE
>
> Why -DWIN32_LEAN_AND_MEAN don't work in you build ?
>
> Roumen
>
>
>


__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org


Re: [openssl.org #2137] [PATCH] mingw fixups

2010-01-12 Thread Roumen Petrov via RT
Alon Bar-Lev via RT wrote:
>
> The following is required in order to make beta4 compile using mingw (w64).
>
> Every time there is #include  some symbols should be removed.
> Also, there is no need to #include  if e_os2.h was included.
[SNIP]

> diff -urNp openssl-1.0.0-beta4.org/e_os.h openssl-1.0.0-beta4/e_os.h
> --- openssl-1.0.0-beta4.org/e_os.h2009-08-26 18:13:43.0 +0300
> +++ openssl-1.0.0-beta4/e_os.h2010-01-11 17:13:08.152360026 +0200
> @@ -372,6 +372,13 @@ static unsigned int _strlen31(const char
>   #define DEFAULT_HOME  "C:"
>   #  endif
>
> +#undef X509_NAME
> +#undef X509_EXTENSIONS
> +#undef X509_CERT_PAIR
> +#undef PKCS7_ISSUER_AND_SERIAL
> +#undef OCSP_REQUEST
> +#undef OCSP_RESPONSE

Why -DWIN32_LEAN_AND_MEAN don't work in you build ?

Roumen


__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org


Re: [openssl.org #2137] [PATCH] mingw fixups

2010-01-12 Thread Roumen Petrov

Alon Bar-Lev via RT wrote:


The following is required in order to make beta4 compile using mingw (w64).

Every time there is #include  some symbols should be removed.
Also, there is no need to #include  if e_os2.h was included.

[SNIP]


diff -urNp openssl-1.0.0-beta4.org/e_os.h openssl-1.0.0-beta4/e_os.h
--- openssl-1.0.0-beta4.org/e_os.h  2009-08-26 18:13:43.0 +0300
+++ openssl-1.0.0-beta4/e_os.h  2010-01-11 17:13:08.152360026 +0200
@@ -372,6 +372,13 @@ static unsigned int _strlen31(const char
  #define DEFAULT_HOME  "C:"
  #  endif

+#undef X509_NAME
+#undef X509_EXTENSIONS
+#undef X509_CERT_PAIR
+#undef PKCS7_ISSUER_AND_SERIAL
+#undef OCSP_REQUEST
+#undef OCSP_RESPONSE


Why -DWIN32_LEAN_AND_MEAN don't work in you build ?

Roumen
__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org


Not able to apply SRP-patch.txt in openssl-0.9.8k

2010-01-12 Thread Sanjeev
Hi,

I was trying to apply SRP-patch. But not able to do that .

Can anybody guide me through this how to apply this patch to openssl

best Regards,
-Sanjeev

-- 
Efforts may fail,But don't Fail to make efforts.
-
Sanjeev Kumar
Staff Scientist
CDAC(Formerly NCST)
Juhu,Mumbai-400049


[openssl.org #1618] Comments on OpenSSL RT #1618

2010-01-12 Thread Daniel Shelton via RT
Hi. I have been using OpenSSL's CA feature, and recently came across a
problem in the index.txt file.

This problem is similar to issue #1618, but I have a little more
information than is present in that page, so I thought I would comment.
Please note that I am using quite an old version of OpenSSL: 0.9.8g.
However, since RT issue #1618 is still open, I thought it might still be
relevant.

I have an the expiry dates in my config set to 14600 days (approx 40
years). Late last year, I issued a certificate which worked ok, but
early this year I find I get an error:

> entry 166: invalid expiry date

This appears to be due to the expiry date of the latest entry in the
"index.txt" file having rolled over to the year 2050, which is encoded
in a different way (with 2 more characters) than dates in the year 2049.
This seems to being parsed incorrectly and so the index.txt file is
being treated as invalid.

The last couple of lines from the index.txt file are as follows (user
details removed, but expiry dates retained):

V 491227142029Z   A4 unknown /C=../ST=../L=../O=../CN=../emailAddress=..
V 20500101135625Z A5 unknown /C=../ST=../L=../O=../CN=../emailAddress=..

I haven't looked into the code yet, but it seems like it should be a
relatively simple fix.

Thanks,
Daniel Shelton

-- 
Antix Labs Ltd
Atlantic House, Imperial Way, Reading, Berkshire RG2 0TD, England.

T: +44 (0)118 357 0 357
F: +44 (0)118 357 0 358
E: i...@antixlabs.com
W: http://antixlabs.com/

Antix Labs is a limited company registered in England No. 6664221.
Registered Office: 4 Bearl Farm, Stocksfield, NE43 7AJ, England.

This email is confidential and intended for the use of the recipient
only. If you have received this email in error, please inform us
immediately and then delete it. Any views expressed in this message are
those of the individual sender, except where the sender specifically
states them to be the views of any organisation or employer. Unless it
specifically states otherwise, this email does not form part of a
contract.

__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org


[openssl.org #2137] [PATCH] mingw fixups

2010-01-12 Thread Alon Bar-Lev via RT

The following is required in order to make beta4 compile using mingw (w64).

Every time there is #include  some symbols should be removed.
Also, there is no need to #include  if e_os2.h was included.

---

diff -urNp openssl-1.0.0-beta4.org/crypto/rand/rand.h 
openssl-1.0.0-beta4/crypto/rand/rand.h
--- openssl-1.0.0-beta4.org/crypto/rand/rand.h  2008-11-12 05:58:04.0 
+0200
+++ openssl-1.0.0-beta4/crypto/rand/rand.h  2010-01-11 17:13:15.796020568 
+0200
@@ -63,10 +63,6 @@
 #include 
 #include 
 
-#if defined(OPENSSL_SYS_WINDOWS)
-#include 
-#endif
-
 #ifdef  __cplusplus
 extern "C" {
 #endif
diff -urNp openssl-1.0.0-beta4.org/e_os.h openssl-1.0.0-beta4/e_os.h
--- openssl-1.0.0-beta4.org/e_os.h  2009-08-26 18:13:43.0 +0300
+++ openssl-1.0.0-beta4/e_os.h  2010-01-11 17:13:08.152360026 +0200
@@ -372,6 +372,13 @@ static unsigned int _strlen31(const char
 #define DEFAULT_HOME  "C:"
 #  endif
 
+#undef X509_NAME
+#undef X509_EXTENSIONS
+#undef X509_CERT_PAIR
+#undef PKCS7_ISSUER_AND_SERIAL
+#undef OCSP_REQUEST
+#undef OCSP_RESPONSE
+
 #else /* The non-microsoft world */
 
 #  ifdef OPENSSL_SYS_VMS

__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org