freetds encryption lazarus / 16-Databases ---------------------------------------------------------------------- rgh · 2014-04-23 17:09 Trying to connect to an MSSQL 2000 server from a Lazarus app running on xp. The application's directory contains: dblib.dll libiconv2.dll freetds.conf project1.exe Now, if server side encryption is switched off, things seem to work ok. If I switch encryption at the server on, an error occurs, with the following message in the freetds log file: --other stuff..... login.c:1057:detected flag 3 login.c:1068:server required encryption but support is not compiled in login.c:466:login packet rejected  --other stuff..... So my question is, is there a build of the two dll files, which I downloaded from ftp://ftp.freepascal.org/fpc/contrib/windows/ that is compiled with encryption support? Or should this question be in the (as yet empty)  Free Pascal>Database forum here? Richard ---------------------------------------------------------------------- LacaK · 2014-04-25 18:19 Hi Richard, I think, that forum is right  No dblib.dll from location you mentioned is not compiled with support of SSL. You need recompile it with support of OPENSSL or GNUTLS. There are defines HAVE_OPENSSL and/or HAVE_GNUTLS (I did not do it myself, so I can not say how complicated it is) For more information see: http://www.freetds.org/userguide/config.htm