Re: OpenSSL breaks with gcc 4.2

2006-11-09 Thread Ben Laurie
Richard Levitte - VMS Whacker wrote: In message [EMAIL PROTECTED] on Wed, 8 Nov 2006 21:59:19 -0800, David Schwartz [EMAIL PROTECTED] said: davids You are correct, but that's not the issue. The issue is this davids simple -- if you are going to call a function whose types you davids don't

Re: OpenSSL breaks with gcc 4.2

2006-11-09 Thread Ben Laurie
David Schwartz wrote: x is still just a pointer to data - so it's the same length in any case, all pointers to lvalues are the same length in C. The only issue there is whether it's aligned correctly - that's the programmers problem. Length is not the issue. There is no rule that says that

RE: OpenSSL breaks with gcc 4.2

2006-11-09 Thread Peter Waltenberg
Length is not the issue. There is no rule that says that two types must be passed the same way just because they're the same length. For example, some platforms may pass a 64-bit floating point number in a floating point register but pass a 64-bit integer in an integer register. I'm not sure

openssl x help

2006-11-09 Thread Mike Helm
Using openssl 0.9.7 (can't upgrade - can't test newer versions) openssl dgst won't list its options easily, except like this: openssl dgst -help unknown option '-help' options are -c to output the digest with separating colons -d to output debug info -hex

Re: Re: WSAEventSelect

2006-11-09 Thread kalikali
This mail is addressed to Dr Stephen N. Henson in connection with his previous post. I have never come across a report of a deadlock in that situation and several applications have reported using WSAEventSelect() in the past. There are several possible reasons... There is very,very little

Q: PKCS7_encrypt how is it encrypting?

2006-11-09 Thread Ricky Charlet
Howdy, In the PKCS7_encrypt function, the intent is to make an envelop and ecrypt the data pointed to by the parameter 'in'. But PKCS7_dataInit(), where the encryption is supposed to take place, does not operate on the parameter 'in'. And PKCS7_dataFinal is not taking care of any

Re: RE: WSAEventSelect

2006-11-09 Thread kalikali
This mail is addressed to Davis Schwartz. Well, I have asked my question on this developer mailing list and I have got answer from one of the openSSL main developers. In this answer he suggested me possible solutions, confirmed (by giving answer) that my problem is real. He did it in his FIRST

Re: OpenSSL breaks with gcc 4.2

2006-11-09 Thread Richard Salz
davids simple -- if you are going to call a function whose types you davids don't know (through a prototype), you must cast each type you davids pass to the type the function expects. End of story. OpenSSL davids does not do this. This is not valid C whether or not the type davids sizes are

Re: Q: PKCS7_encrypt how is it encrypting?

2006-11-09 Thread Dr. Stephen Henson
On Thu, Nov 09, 2006, Ricky Charlet wrote: Howdy, In the PKCS7_encrypt function, the intent is to make an envelop and ecrypt the data pointed to by the parameter 'in'. But PKCS7_dataInit(), where the encryption is supposed to take place, does not operate on the parameter 'in'. And

Re: OpenSSL breaks with gcc 4.2

2006-11-09 Thread Dr. Stephen Henson
On Thu, Nov 09, 2006, Richard Salz wrote: davids simple -- if you are going to call a function whose types you davids don't know (through a prototype), you must cast each type you davids pass to the type the function expects. End of story. OpenSSL davids does not do this. This is not

Re: 0.9.7l binaries show version as 0.9.8d in Solaris !!

2006-11-09 Thread Brad Hards
On Thursday 09 November 2006 02:04, Alaka Pathy wrote: Hi All, I recently built OpenSSL 0.9.7l binaries in a Solaris machine. As in, you compiled source you downloaded? When I check the version, I get as 0.9.8d, whereas for Windows I do get the version correctly as 0.9.7l. Is there a

Re: OpenSSL breaks with gcc 4.2

2006-11-09 Thread Stephen Sprunk
Thus spake Peter Waltenberg x is still just a pointer to data - so it's the same length in any case, all pointers to lvalues are the same length in C. The only issue there is whether it's aligned correctly - that's the programmers problem. It's not the only problem. Mixing something like

Re: OpenSSL breaks with gcc 4.2

2006-11-09 Thread Richard Salz
Incorrect. When the compiler encounters this statement, if there's no prototype for d2i() in scope, it is _required_ to act as if the prototype were: int d2i(int, int, int); This is wrong. The usual integral promotions apply -- but only to integral parameters, not to ALL of them.

Re: OpenSSL breaks with gcc 4.2

2006-11-09 Thread Ken Ballou
Stephen Sprunk wrote: Thus spake Peter Waltenberg x is still just a pointer to data - so it's the same length in any case, all pointers to lvalues are the same length in C. The only issue there is whether it's aligned correctly - that's the programmers problem. It's not the only problem.

RE: OpenSSL breaks with gcc 4.2

2006-11-09 Thread David Schwartz
davids simple -- if you are going to call a function whose types you davids don't know (through a prototype), you must cast each type you davids pass to the type the function expects. End of story. OpenSSL davids does not do this. This is not valid C whether or not the type davids sizes

Re: OpenSSL breaks with gcc 4.2

2006-11-09 Thread Dr. Stephen Henson
On Thu, Nov 09, 2006, Dr. Stephen Henson wrote: On Thu, Nov 09, 2006, Richard Salz wrote: davids simple -- if you are going to call a function whose types you davids don't know (through a prototype), you must cast each type you davids pass to the type the function expects. End of

RE: OpenSSL breaks with gcc 4.2

2006-11-09 Thread Richard Salz
As I understood it, calling a function without a prototype was precisely equivalent to declaring a prototype of the function with the exact parameter types passed (after promotion rules). Nope. Calling a function without a prototype is precisely equivalent to KR rules. If a function will

RE: OpenSSL breaks with gcc 4.2

2006-11-09 Thread David Schwartz
Once KR is included, the situation becomes a lot less clear. Also, as I read the thread on the GCC list, it looks like the situation is further complicated by their desire to avoid an internal compiler error. Also**2, I don't know what you mean by C's aliasing rules; to me that brings to

Re: OpenSSL breaks with gcc 4.2

2006-11-09 Thread Kyle Hamilton
On 11/9/06, David Schwartz [EMAIL PROTECTED] wrote: Once KR is included, the situation becomes a lot less clear. Also, as I read the thread on the GCC list, it looks like the situation is further complicated by their desire to avoid an internal compiler error. Also**2, I don't know what