Skip to content

Commit

Permalink
server: Update prelogin reply
Browse files Browse the repository at this point in the history
Include MARS, allows TDS 7.2.

Signed-off-by: Frediano Ziglio <[email protected]>
  • Loading branch information
freddy77 committed Dec 7, 2024
1 parent 37ac74a commit bfe12f1
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/server/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,10 +439,16 @@ void
tds71_send_prelogin(TDSSOCKET * tds)
{
static const unsigned char prelogin[] = {
0x00, 0x00, 0x15, 0x00, 0x06, 0x01, 0x00, 0x1b,
0x00, 0x01, 0x02, 0x00, 0x1c, 0x00, 0x01, 0x03,
0x00, 0x1d, 0x00, 0x00, 0xff, 0x08, 0x00, 0x01,
0x55, 0x00, 0x00, 0x02, 0x00
0x00, 0x00, 0x1a, 0x00, 0x06,
0x01, 0x00, 0x20, 0x00, 0x01,
0x02, 0x00, 0x21, 0x00, 0x01,
0x03, 0x00, 0x22, 0x00, 0x00,
0x04, 0x00, 0x22, 0x00, 0x01,
0xff,
0x08, 0x00, 0x01, 0x55, 0x00, 0x00,
0x02,
0x00,
0x00
};

tds_put_n(tds, prelogin, sizeof(prelogin));
Expand Down

0 comments on commit bfe12f1

Please sign in to comment.