set_public_key


Description:

public bool set_public_key (string? public_key, bool accept_invalid)

Reset the public key.

Note that if the public key is valid, it will be normalized (which may or may not modify the set value).

It is a bug trying to modify a sealed WireGuardPeer instance.

Parameters:

this

the unsealed WireGuardPeer instance

public_key

the new public key or null to clear the public key.

accept_invalid

if true and public_key is not null and invalid, then do not modify the instance.

Returns:

true if the key was valid or null. Returns false for invalid keys. Depending on accept_invalid will an invalid key be set or not.




2022 vala-language.org