this->suite = this->cache->lookup(this->cache, session, id, &master);
if (this->suite)
{
- select_cipher_suite(this, &this->suite, 1, KEY_ANY);
+ this->suite = select_cipher_suite(this, &this->suite, 1, KEY_ANY);
if (this->suite)
{
this->prf->set_key(this->prf, master);
}
chunk_clear(&master);
}
+ return this->suite;
}
- return this->suite;
+ return 0;
}
METHOD(tls_crypto_t, get_session, chunk_t,