Hi,
 
-----------------------------------------------------------------------------
// Process an licence issue packet
static void licence_process_issue(STREAM s)
{
    -
    -
    -
    licence_issued = True;
 
     // We should save the licence here
}
-----------------------------------------------------------------------------
 
With reference to rdesktop code, I have tried to save the license. While doing the "licensing negotiation" in next connection, I send the saved license. But I get "The terminal service client has provided an invalid license. "  and "The terminal server cannot issue a client license." message from the server . Thus I am unable to do my "licensing negotiation" in next connection. Have someone resolved this issue.
 
Thanks in advance.
 
Regards,
Kamalendra.