Function silc_ske_set_callbacks
SYNOPSIS
void silc_ske_set_callbacks(SilcSKE ske,
SilcSKEVerifyCb verify_key,
SilcSKECompletion completed,
void *context);
DESCRIPTION
Sets the callback functions for the SKE session.
The `verify_key' callback is called to verify the received public key
or certificate. The verification process is most likely asynchronous.
That is why the application must call the completion callback when the
verification process has been completed. If this SKE session context
is used to perform rekey, this callback usually is not provided as
argument since sending public key in rekey is not mandatory. Setting
this callback implies that remote end MUST send its public key.
The `completed' callback will be called once the protocol has completed,
either successfully or with an error. The status of the protocol is
delivered to application with the callback.
The `context' is passed as argument to all of the above callback
functions.
|