On Tue, Jun 07, 2011 at 10:05:19AM -0500, Erwin Himawan wrote:

> Hi Victor,
> 
> If I understand these printout correctly, my compilation environment is
> mixed.  However, can you confirm?
> 
> When the code crashes, here are the print outs:
> 
> OPENSSL_VERSION_NUMBER: 9470255

    Converted to hexadecimal, this is: 0090812F, which is 0.9.8l

> SSLeay(): 268435535

    Converted to hexadecimal, this is: 1000004F, which is 1.0.0d

> When the code does not crash, here are the print outs:
> 
> OPENSSL_VERSION_NUMBER: 9470255
> 
> SSLeay(): 9470255

Here, both the headers and libraries are 0.9.8l

> Do the OPENSSL_VERSION_NUMBER and SSLeay() supposed to be the same?

Certainly on the platform where the code is built, later the run-time
can be at a higher patch level. You are linking with OpenSSL 1.0.0,
but using headers from OpenSSL 0.9.8. This won't work.

-- 
        Viktor.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to