Securing the transport layer