Changed to use shared_ptr in SecureSocketChannel.