send


Description:

public string send (string? secret, ssize_t secret_len)

Send a reply to the other side of the secret exchange, optionally sending a secret.

[method@SecretExchange.receive] must have been successfully called at least once on this object. In other words this object must have received data from the other side of the secret exchange, before we can send a secret.

Parameters:

this

a SecretExchange object

secret

optionally, a secret to send to the other side

secret_len

length of secret, or -1 if null terminated

Returns:

a newly allocated string to be sent to the other side of the secret exchange