mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-07 00:01:49 -04:00
unit-tests: Hand out an actual shared secret in mock KE implementation
Makes key derivation a bit more realistic.
This commit is contained in:
parent
92940acc4c
commit
9c67e4c3c1
@ -50,7 +50,7 @@ METHOD(key_exchange_t, set_public_key, bool,
|
|||||||
METHOD(key_exchange_t, get_shared_secret, bool,
|
METHOD(key_exchange_t, get_shared_secret, bool,
|
||||||
private_diffie_hellman_t *this, chunk_t *secret)
|
private_diffie_hellman_t *this, chunk_t *secret)
|
||||||
{
|
{
|
||||||
*secret = chunk_empty;
|
*secret = chunk_clone(chunk_from_thing(this->method));
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user