[freetds] 0.64 news - logs and SSL

ZIGLIO, Frediano, VF-IT Frediano.Ziglio at vodafone.com
Tue Feb 8 09:11:04 EST 2005


I added a "debug flags" option. This option contains a set of bit to
disable/enable some type of logging.

>From tds.h

#define TDS_DBGFLAG_FUNC    0x80
#define TDS_DBGFLAG_INFO2   0x40
#define TDS_DBGFLAG_INFO1   0x20
#define TDS_DBGFLAG_NETWORK 0x10
#define TDS_DBGFLAG_WARN    0x08
#define TDS_DBGFLAG_ERROR   0x04
#define TDS_DBGFLAG_SEVERE  0x02
#define TDS_DBGFLAG_ALLLVL  0xfff
#define TDS_DBGFLAG_PID     0x1000
#define TDS_DBGFLAG_TIME    0x2000
#define TDS_DBGFLAG_SOURCE  0x4000
#define TDS_DBGFLAG_THREAD  0x8000

this option supercede "debug level" (never really used...).
The reason for 3 nibble for level came from the fact that 3 nibble = 3
hex digit = 4 octal digit.
"debug flags" can use hex/octal notation so it'easy to add a bit.
The default is 0x4fff (047777 in octal, only source informations, all
levels).

If someone wants to update docs feel free to do so...



Other news is SSL support for mssql (or in other words "force protocol
encryption" connections are now supported). I used gnutls for SSL
however current version do not support DES/RC56 needed by mssql (weak
but exportable...perhaps it's only a problem in my country, if someone
can send some network capture using all 128bit product is welcome). I
wrote a patch (attached) for gnutls. However it still to be considered
sperimental. Some error handling are missing (see src/tds/login.c) and
there is also a memory leak on first connection (only at first one).

freddy77
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vedi2.diff.gz
Type: application/x-gzip
Size: 4029 bytes
Desc: vedi2.diff.gz
Url : http://lists.ibiblio.org/pipermail/freetds/attachments/20050208/e12fe084/vedi2.diff.bin


More information about the FreeTDS mailing list