[ CCode ( array_length_pos = 0.1 , array_length_type = "gsize" ) ]
public unowned string[] get_secret ()
Returns the last secret received.
If no secret has yet been received this will return null. The string is owned by the SecretExchange object and will be valid until the next time that receive is called on this object, or the object is destroyed.
Depending on the secret passed into the other side of the secret exchange, the result may be a binary string. It does however have a null terminator, so if you're certain that it is does not contain arbitrary binary data, it can be used as a string.
this |
a SecretExchange object |
secret_len |
optionally, a location to store the length of returned secret |
the last secret received |