tls: Wrap transport functions for GnuTLS