mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-05 00:00:45 -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
55ab7e1949
commit
bf7b64e6da
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user