Revise strcmpi and strncmpi function. Increase query variable storage. Error handling on receive data over ssl