unit-tests: Hand out an actual shared secret in mock KE implementation

Makes key derivation a bit more realistic.
This commit is contained in:
Tobias Brunner 2020-04-09 18:58:44 +02:00 committed by Andreas Steffen
parent 55ab7e1949
commit bf7b64e6da

View File

@ -50,7 +50,7 @@ METHOD(key_exchange_t, set_public_key, bool,
METHOD(key_exchange_t, get_shared_secret, bool,
private_diffie_hellman_t *this, chunk_t *secret)
{
*secret = chunk_empty;
*secret = chunk_clone(chunk_from_thing(this->method));
return TRUE;
}