libxrdp, common: work on TLS mode