SilcBuffer silc_key_agreement_payload_encode(char *hostname, SilcUInt16 protocol, SilcUInt16 port);
Encodes the Key Agreement payload and returns the encoded buffer. The `protocol' is 0 for TCP and 1 for UDP.