From 46c3dca9186b38414b736a9a1d2670f6f301ea13 Mon Sep 17 00:00:00 2001 From: Matt Chapman Date: Wed, 16 Apr 2003 12:52:46 +0000 Subject: [PATCH] Update other places where LICENCE_TAG_* is used. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@365 423420c4-83ab-492f-b58f-81f9feb106b5 --- licence.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/licence.c b/licence.c index f259ec8..d320cff 100644 --- a/licence.c +++ b/licence.c @@ -72,7 +72,8 @@ licence_present(uint8 * client_random, uint8 * rsa_data, s = sec_init(sec_flags, length + 4); - out_uint16_le(s, LICENCE_TAG_PRESENT); + out_uint8(s, LICENCE_TAG_PRESENT); + out_uint8(s, 2); /* version */ out_uint16_le(s, length); out_uint32_le(s, 1); @@ -111,7 +112,8 @@ licence_send_request(uint8 * client_random, uint8 * rsa_data, char *user, char * s = sec_init(sec_flags, length + 2); - out_uint16_le(s, LICENCE_TAG_REQUEST); + out_uint8(s, LICENCE_TAG_REQUEST); + out_uint8(s, 2); /* version */ out_uint16_le(s, length); out_uint32_le(s, 1); @@ -185,7 +187,8 @@ licence_send_authresp(uint8 * token, uint8 * crypt_hwid, uint8 * signature) s = sec_init(sec_flags, length + 2); - out_uint16_le(s, LICENCE_TAG_AUTHRESP); + out_uint8(s, LICENCE_TAG_AUTHRESP); + out_uint8(s, 2); /* version */ out_uint16_le(s, length); out_uint16_le(s, 1);