adapt SessionManager to tls-2.0