Bayonne2 / Common C++ 2 Framework
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures
ZrtpCallback.h File Reference

Callback interface between ZRTP and the RTP stack implementation. More...

#include <string>
#include <stdint.h>
#include <libzrtpcpp/ZrtpCodes.h>
Include dependency graph for ZrtpCallback.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  srtpSecrets
 This structure contains pointers to the SRTP secrets and the role info. More...
 
class  ZrtpCallback
 This abstract class defines the callback functions required by GNU ZRTP. More...
 
#define __EXPORT
 
#define __LOCAL
 
enum  Role { Responder = 1, Initiator }
 This enum defines which role a ZRTP peer has. More...
 
enum  SrtpAlgorithms {
  None, Aes = 1, TwoFish, Sha1,
  Skein
}
 The algorihms that we support in SRTP and that ZRTP can negotiate. More...
 
enum  EnableSecurity { ForReceiver = 1, ForSender = 2 }
 
typedef struct srtpSecrets SrtpSecret_t
 This structure contains pointers to the SRTP secrets and the role info. More...
 

Detailed Description

Callback interface between ZRTP and the RTP stack implementation.

Definition in file ZrtpCallback.h.

Macro Definition Documentation

#define __EXPORT

Definition at line 40 of file ZrtpCallback.h.

#define __LOCAL

Definition at line 41 of file ZrtpCallback.h.

Typedef Documentation

typedef struct srtpSecrets SrtpSecret_t

This structure contains pointers to the SRTP secrets and the role info.

About the role and what the meaning of the role is refer to the of the enum Role. The pointers to the secrets are valid as long as the ZRtp object is active. To use these data after the ZRtp object's lifetime you may copy the data into a save place. The destructor of ZRtp clears the data.

Enumeration Type Documentation

Enumerator
ForReceiver 

Enable security for SRTP receiver.

ForSender 

Enable security for SRTP sender.

Definition at line 99 of file ZrtpCallback.h.

enum Role

This enum defines which role a ZRTP peer has.

According to the ZRTP specification the role determines which keys to use to encrypt or decrypt SRTP data.

  • The Initiator encrypts SRTP data using the keyInitiator and the saltInitiator data, the Responder uses these data to decrypt.
  • The Responder encrypts SRTP data using the keyResponder and the saltResponder data, the Initiator uses these data to decrypt.
Enumerator
Responder 

This client is in ZRTP Responder mode.

Initiator 

This client is in ZRTP Initiator mode.

Definition at line 60 of file ZrtpCallback.h.

The algorihms that we support in SRTP and that ZRTP can negotiate.

Enumerator
None 
Aes 

Use AES as symmetrical cipher algorithm.

TwoFish 

Use TwoFish as symmetrical cipher algorithm.

Sha1 

Use Sha1 as authentication algorithm.

Skein 

Use Skein as authentication algorithm.

Definition at line 66 of file ZrtpCallback.h.