We have found when openssl connects with another server with an older TLS implementation we get an error: SSL reported error:140773F2:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert unexpected message Compiling with OPENSSL_NO_TLSEXT defined seems to correct the problem. However when compiling the library with the "-DOPENSSL_NO_TLSEXT" option, the linker gives the following error: link /nologo /subsystem:console /opt:ref /dll /out:out32dll\ssleay32.dll /def:ms/SSLEAY32.def @C:\DOCUME~1\Rip\LOCALS~1\Temp\nm224.tmp SSLEAY32.def : error LNK2001: unresolved external symbol SSL_get_servername SSLEAY32.def : error LNK2001: unresolved external symbol SSL_get_servername_type SSLEAY32.def : error LNK2001: unresolved external symbol SSL_set_session_secret_cb SSLEAY32.def : error LNK2001: unresolved external symbol SSL_set_session_ticket_ext SSLEAY32.def : error LNK2001: unresolved external symbol SSL_set_session_ticket_ext_cb out32dll\ssleay32.lib : fatal error LNK1120: 5 unresolved externals We temporarily commented the lines in the SSLEAY32.def file for now, which allows the DLL to be built, but some of the openssl apps now do not link. A more elegant solution would be to change the code so that the functions such as SSL_get_servername still exist, but return NULL, or 0 instead when OPENSSL_NO_TLSEXT is defined.
We have found when openssl connects with another
server with an older TLS implementation we get an error:
SSL reported error:140773F2:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert unexpected message
Compiling with OPENSSL_NO_TLSEXT defined
seems to correct the problem. However when compiling the library with the "-DOPENSSL_NO_TLSEXT" option, the linker
gives the following error:
link /nologo /subsystem:console /opt:ref /dll /out:out32dll\ssleay32.dll /def:ms/SSLEAY32.def @C:\DOCUME~1\Rip\LOCALS~1\Temp\nm224.tmp
SSLEAY32.def : error LNK2001: unresolved external symbol SSL_get_servername
SSLEAY32.def : error LNK2001: unresolved external symbol SSL_get_servername_type
SSLEAY32.def : error LNK2001: unresolved external symbol SSL_set_session_secret_cb
SSLEAY32.def : error LNK2001: unresolved external symbol SSL_set_session_ticket_ext
SSLEAY32.def : error LNK2001: unresolved external symbol SSL_set_session_ticket_ext_cb
out32dll\ssleay32.lib : fatal error LNK1120: 5 unresolved externals
We temporarily
commented the lines in the SSLEAY32.def file for now, which allows the
DLL to be built, but some of the openssl apps now do not link. A more
elegant solution would be to change the code so that the functions such as
SSL_get_servername still exist, but return NULL, or 0 instead when
OPENSSL_NO_TLSEXT is defined.
