Recent

Author Topic: freetds encryption  (Read 3300 times)

rgh

  • New Member
  • *
  • Posts: 49
freetds encryption
« on: April 23, 2014, 07:09:29 pm »
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
« Last Edit: April 23, 2014, 10:32:14 pm by rgh »

LacaK

  • Hero Member
  • *****
  • Posts: 691
Re: freetds encryption
« Reply #1 on: April 25, 2014, 08:19:41 pm »
Hi Richard,
I think, that forum is right  :D

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

 

TinyPortal © 2005-2018