Restore traditional SSL_get_session behaviour so that s_client and s_server