bZRTP
bZRTP is an opensource implementation of ZRTP keys exchange protocol
Loading...
Searching...
No Matches
Data Fields
bzrtpCallbacks_struct Struct Reference

All the callback functions provided by the client needed by the ZRTP engine. More...

#include <bzrtp.h>

Data Fields

int(* bzrtp_statusMessage )(void *clientData, const uint8_t messageLevel, const uint8_t messageId, const char *messageString)
 
int bzrtp_messageLevel
 
int(* bzrtp_sendData )(void *clientData, const uint8_t *packetString, uint16_t packetLength)
 
int(* bzrtp_srtpSecretsAvailable )(void *clientData, const bzrtpSrtpSecrets_t *srtpSecrets, uint8_t part)
 
int(* bzrtp_startSrtpSession )(void *clientData, const bzrtpSrtpSecrets_t *srtpSecrets, int32_t verified)
 
int(* bzrtp_contextReadyForExportedKeys )(void *clientData, int zuid, uint8_t role)
 

Detailed Description

All the callback functions provided by the client needed by the ZRTP engine.

Field Documentation

◆ bzrtp_contextReadyForExportedKeys

int(* bzrtpCallbacks_struct::bzrtp_contextReadyForExportedKeys) (void *clientData, int zuid, uint8_t role)

Tell the client that this is the time to create any exported keys, s0 is erased just after the call to this callback. Callback is given the peerZID and zuid to adress the correct node in cache and current role which is needed to set a pair of keys for IM encryption

◆ bzrtp_messageLevel

int bzrtpCallbacks_struct::bzrtp_messageLevel

Filter calls to this callback to levels inferiors to this setting (BZRTP_MESSAGE_ERROR, BZRTP_MESSAGE_WARNING, BZRTP_MESSAGE_LOG, BZRTP_MESSAGE_DEBUG )

◆ bzrtp_sendData

int(* bzrtpCallbacks_struct::bzrtp_sendData) (void *clientData, const uint8_t *packetString, uint16_t packetLength)

Send a ZRTP packet to peer. Shall return 0 on success

◆ bzrtp_srtpSecretsAvailable

int(* bzrtpCallbacks_struct::bzrtp_srtpSecretsAvailable) (void *clientData, const bzrtpSrtpSecrets_t *srtpSecrets, uint8_t part)

Send the srtp secrets to the client, for either sender, receiver or both according to the part parameter value. Client may wait for the end of ZRTP process before using it

◆ bzrtp_startSrtpSession

int(* bzrtpCallbacks_struct::bzrtp_startSrtpSession) (void *clientData, const bzrtpSrtpSecrets_t *srtpSecrets, int32_t verified)

ZRTP process ended well, client is given the SAS and informations about the crypto algo used during ZRTP negotiation. He may start his SRTP session if not done when calling srtpSecretsAvailable

◆ bzrtp_statusMessage

int(* bzrtpCallbacks_struct::bzrtp_statusMessage) (void *clientData, const uint8_t messageLevel, const uint8_t messageId, const char *messageString)

Sending messages to caller: error, warnings, logs, the messageString can be NULL or a NULL terminated string


The documentation for this struct was generated from the following file: