RE: 64-bit vs 32-bit systems

2003-06-05 Thread DJohnson
Title: RE: 64-bit vs 32-bit systems





Hi,
    I dont think that is the problem.  I've configured and built my 64-bit client on a 64-bit system.  My 32-bit server is our release product that has been around for about a year, so i'm pretty sure thats ok. 

Is it likely that the client and server versions are incompatible?  my server is fixed at 0.9.6c, and my client is the latest release 0.9.7b.  Is is possible that the older version is not compatible with the new?

Darren


-Original Message-
From: Gotz Babin-Ebell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 03, 2003 11:19 AM
To: [EMAIL PROTECTED]
Subject: Re: 64-bit vs 32-bit systems



Hello,


[EMAIL PROTECTED] wrote:
>   64-bit vs 32-bit systems
> 
> It looks to me like a 64-bit client cant connect to a 32-bit server.


> The ASN1 structures/headers have int's and longs scattered throughout 
> them (and probably in other parts of the openssl libraries).  In fact, 
> the 32-bit server fails to recieve a connection with the error "bad asn1 
> object header".


That are 2 different kind of shoes.


Structures and headers are not direct related to the data
on the wire..


I think you have configured on a 32 bit system
and build on a 64 bit system,
or build the library on a 32 bit system and your program
on a 64 bit system...


> My question is, how self contained is this software.  Could the longs be 
> replace by ints to keep the structures the same size on both systems?  


Why ?


You need the headers only if you build a program.
And you shouldn't link a openssl build on a 32 bit system
with a program build on a 64 bit system...


> Has this issue been discusses before?


AFAIK not.


perhaps openssl should migrate to the types defined in stding.h ?
But that comes with ISO C99, so an fallback should be supported...


Bye


Goetz


-- 
Goetz Babin-Ebell, TC TrustCenter AG, http://www.trustcenter.de
Sonninstr. 24-28, 20097 Hamburg, Germany
Tel.: +49-(0)40 80 80 26 -0,  Fax: +49-(0)40 80 80 26 -126





Re: 64-bit vs 32-bit systems

2003-06-04 Thread Götz Babin-Ebell
Hello,

[EMAIL PROTECTED] wrote:
  64-bit vs 32-bit systems

It looks to me like a 64-bit client cant connect to a 32-bit server.

The ASN1 structures/headers have int's and longs scattered throughout 
them (and probably in other parts of the openssl libraries).  In fact, 
the 32-bit server fails to recieve a connection with the error "bad asn1 
object header".
That are 2 different kind of shoes.

Structures and headers are not direct related to the data
on the wire..
I think you have configured on a 32 bit system
and build on a 64 bit system,
or build the library on a 32 bit system and your program
on a 64 bit system...
My question is, how self contained is this software.  Could the longs be 
replace by ints to keep the structures the same size on both systems?  
Why ?

You need the headers only if you build a program.
And you shouldn't link a openssl build on a 32 bit system
with a program build on a 64 bit system...
Has this issue been discusses before?
AFAIK not.

perhaps openssl should migrate to the types defined in stding.h ?
But that comes with ISO C99, so an fallback should be supported...
Bye

Goetz

--
Goetz Babin-Ebell, TC TrustCenter AG, http://www.trustcenter.de
Sonninstr. 24-28, 20097 Hamburg, Germany
Tel.: +49-(0)40 80 80 26 -0,  Fax: +49-(0)40 80 80 26 -126


smime.p7s
Description: S/MIME Cryptographic Signature


Re: 64-bit vs 32-bit systems

2003-06-04 Thread Rich Salz
It looks to me like a 64-bit client cant connect to a 32-bit server.  
nope, it works.

The ASN1 structures/headers have int's and longs scattered throughout 
them (and probably in other parts of the openssl libraries).  In fact, 
the 32-bit server fails to recieve a connection with the error "bad asn1 
object header".
The ASN1 structures are local forms that are created from wire
representations (DER).  Look at the various i2d_xxx and d2i_xxx functions.
If you're having problems, it's not because something is wrong in the
place where you're looking. :)
/r$
--
Rich Salz, Chief Security Architect
DataPower Technology http://www.datapower.com
XS40 XML Security Gatewayhttp://www.datapower.com/products/xs40.html
__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]


64-bit vs 32-bit systems

2003-06-04 Thread DJohnson
Title: 64-bit vs 32-bit systems





It looks to me like a 64-bit client cant connect to a 32-bit server.  The ASN1 structures/headers have int's and longs scattered throughout them (and probably in other parts of the openssl libraries).  In fact, the 32-bit server fails to recieve a connection with the error "bad asn1 object header".

My question is, how self contained is this software.  Could the longs be replace by ints to keep the structures the same size on both systems?  Has this issue been discusses before?