unsigned char *auth_data;
};
/* Parses and returns Authentication Payload */
SilcAuthPayload silc_auth_payload_parse(unsigned char *data,
unsigned char *auth_data;
};
/* Parses and returns Authentication Payload */
SilcAuthPayload silc_auth_payload_parse(unsigned char *data,
SilcBuffer silc_auth_payload_encode(SilcAuthMethod method,
unsigned char *random_data,
SilcBuffer silc_auth_payload_encode(SilcAuthMethod method,
unsigned char *random_data,
/* Get the authentication data */
unsigned char *silc_auth_get_data(SilcAuthPayload payload,
/* Get the authentication data */
unsigned char *silc_auth_get_data(SilcAuthPayload payload,
- unsigned int random_len, void *id,
- SilcIdType type, unsigned int *ret_len)
+ uint32 random_len, void *id,
+ SilcIdType type, uint32 *ret_len)
`auth_data_len' is ignored. */
int silc_auth_verify(SilcAuthPayload payload, SilcAuthMethod auth_method,
`auth_data_len' is ignored. */
int silc_auth_verify(SilcAuthPayload payload, SilcAuthMethod auth_method,
SilcHash hash, void *id, SilcIdType type)
{
SILC_LOG_DEBUG(("Verifying authentication"));
SilcHash hash, void *id, SilcIdType type)
{
SILC_LOG_DEBUG(("Verifying authentication"));
void *id, SilcIdType type)
{
SilcAuthPayload auth_payload;
void *id, SilcIdType type)
{
SilcAuthPayload auth_payload;
/* Encodes the Key Agreement protocol and returns the encoded buffer */
SilcBuffer silc_key_agreement_payload_encode(char *hostname,
/* Encodes the Key Agreement protocol and returns the encoded buffer */
SilcBuffer silc_key_agreement_payload_encode(char *hostname,