mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
key-exchange: Warn about costly operations in set_public_key()
This commit is contained in:
parent
895b8bae30
commit
9c9b683b7b
@ -128,6 +128,10 @@ struct key_exchange_t {
|
||||
/**
|
||||
* Sets the public key received from the peer.
|
||||
*
|
||||
* @note This operation should be relatively quick. Costly public key
|
||||
* validation operations or key derivation should be implemented in
|
||||
* get_shared_secret().
|
||||
*
|
||||
* @param value public key of peer
|
||||
* @return TRUE if other public key verified and set
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user