18 #ifndef _ZRTPCALLBACK_H_
19 #define _ZRTPCALLBACK_H_
34 #define __EXPORT __attribute__ ((visibility("default")))
35 #define __LOCAL __attribute__ ((visibility("hidden")))
36 #elif defined _WIN32 || defined __CYGWIN__
37 #define __EXPORT __declspec(dllimport)
138 virtual int32_t sendDataZRTP(
const uint8_t* data, int32_t length) =0;
148 virtual int32_t activateTimer(int32_t time) =0;
156 virtual int32_t cancelTimer() =0;
231 virtual void srtpSecretsOn(std::string c, std::string s,
bool verified) =0;
243 virtual void handleGoClear() =0;
266 virtual void zrtpNotSuppOther() =0;
277 virtual void synchEnter() =0;
282 virtual void synchLeave() =0;
329 virtual void signSAS(uint8_t* sasHash) =0;
353 virtual bool checkSASSignature(uint8_t* sasHash) =0;
356 #endif // ZRTPCALLBACK
SrtpAlgorithms symEncAlgorithm
symmetrical cipher algorithm
Enable security for SRTP receiver.
The ZRTP info, warning, and error codes.
Use Skein as authentication algorithm.
__EXPORT AppLog & info(AppLog &sl)
Manipulator for info level.
This abstract class defines the callback functions required by GNU ZRTP.
This client is in ZRTP Initiator mode.
This structure contains pointers to the SRTP secrets and the role info.
Enable security for SRTP sender.
int32_t initKeyLen
Initiator's key length.
InfoEnrollment
Information codes for the Enrollment user callbacks.
Role role
ZRTP role of this client.
Use TwoFish as symmetrical cipher algorithm.
Role
This enum defines which role a ZRTP peer has.
int32_t respKeyLen
Responder's key length.
const uint8_t * keyInitiator
Initiator's key.
const uint8_t * saltInitiator
Initiator's salt.
int32_t respSaltLen
Responder's salt length.
const uint8_t * keyResponder
Responder's key.
SrtpAlgorithms
The algorihms that we support in SRTP and that ZRTP can negotiate.
Use AES as symmetrical cipher algorithm.
const uint8_t * saltResponder
Responder's salt.
SrtpAlgorithms authAlgorithm
SRTP authentication algorithm.
int32_t srtpAuthTagLen
SRTP authentication length.
This client is in ZRTP Responder mode.
int32_t initSaltLen
Initiator's salt length.
std::string sas
The SAS string.
Use Sha1 as authentication algorithm.
struct srtpSecrets SrtpSecret_t
This structure contains pointers to the SRTP secrets and the role info.