Function silc_auth_payload_encode
SYNOPSIS
SilcBuffer silc_auth_payload_encode(SilcAuthMethod method,
const unsigned char *random_data,
uint16 random_len,
const unsigned char *auth_data,
uint16 auth_len);
DESCRIPTION
Encodes authentication payload into buffer and returns it.
The `random_data' is provided only if doing public key authentication.
The `auth_data' is the actual authentication data.