2.2.9.2.1.10 TSG_PACKET_AUTH

The TSG_PACKET_AUTH structure is sent by the client to the TS Gateway server when Pluggable Authentication is used. This packet includes TSG_PACKET_VERSIONCAPS, which is used for capability negotiation, and cookie, which is used for user authentication. This MUST be the first packet from the client to the server if the server has Pluggable Authentication turned on. The value of the packetId field in TSG_PACKET MUST be set to TSG_PACKET_TYPE_AUTH.

 typedef struct _TSG_PACKET_AUTH {
   TSG_PACKET_VERSIONCAPS TSGVersionCaps;
   [range(0,65536)] unsigned long cookieLen;
   [size_is(cookieLen)] byte* cookie;
 } TSG_PACKET_AUTH,
  *PTSG_PACKET_AUTH;

TSGVersionCaps: A TSG_PACKET_VERSIONCAPS structure as specified in section 2.2.9.2.1.2.

cookieLen: An unsigned long that specifies the size in bytes for the field cookie.

cookie: A byte pointer that points to the cookie data. The cookie is used for authentication.