I have built a LDAP client using OpenSSL on Windows that successfully
connects to a LDAP server. The code has been ported to linux (just changing
socket functions) as a shared library for use with a 32 bit client.
SSL_connect to the same LDAP server that works fine in Windows fails.

OpenSSL is used as a shared library from a static library that is linked
into another shared library. This shared library is loaded by the
application. 

Application->shared library->static library->OpenSSL as a shared library.

The error returned depends on how OpenSSL is configured.

./Configure linux-generic64 shared -m32 -fPIC

SSL_ERROR_SSL.error:1408D108:SSL routines:SSL3_GET_KEY_EXCHANGE:wrong
signature length

./Configure linux-generic32 shared -m32 -fPIC

SSL_ERROR_SSL.error:14094417:SSL routines:SSL3_READ_BYTES:sslv3 alert
illegal parameter

I presume I am building OpenSSL incorrectly and would appreciate any
pointers.

John Unsworth

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

Reply via email to