22 #ifndef _ZRTPCONFIGURE_H_
23 #define _ZRTPCONFIGURE_H_
49 typedef void(*
encrypt_t)(uint8_t*, int32_t, uint8_t*, uint8_t*, int32_t);
50 typedef void(*
decrypt_t)(uint8_t*, int32_t,
const uint8_t*, uint8_t*, int32_t);
248 void insert(
const char* name);
249 void insert(
const char* name, int32_t klen,
254 std::vector <AlgorithmEnum* >
algos;
321 static const int maxNoOfAlgos = 7;
334 void setStandardConfig();
348 void setMandatoryOnly();
422 int32_t getNumConfiguredAlgos(
AlgoTypes algoType);
462 void setTrustedMitM(
bool yesNo);
470 bool isTrustedMitM();
481 void setSasSignature(
bool yesNo);
489 bool isSasSignature();
500 void setParanoidMode(
bool yesNo);
508 bool isParanoidMode();
511 void printConfiguredAlgos(
AlgoTypes algoTyp);
525 AlgorithmEnum& getAlgoAt(std::vector<AlgorithmEnum* >& a, int32_t index);
526 int32_t addAlgo(std::vector<AlgorithmEnum* >& a,
AlgorithmEnum& algo);
527 int32_t addAlgoAt(std::vector<AlgorithmEnum* >& a,
AlgorithmEnum& algo, int32_t index);
528 int32_t removeAlgo(std::vector<AlgorithmEnum* >& a,
AlgorithmEnum& algo);
529 int32_t getNumConfiguredAlgos(std::vector<AlgorithmEnum* >& a);
530 bool containsAlgo(std::vector<AlgorithmEnum* >& a,
AlgorithmEnum& algo);
531 std::vector<AlgorithmEnum* >& getEnum(
AlgoTypes algoType);
533 void printConfiguredAlgos(std::vector<AlgorithmEnum* >& a);
int getOrdinal(AlgorithmEnum &algo)
Get the ordinal number of an AlgorithmEnum.
std::vector< AlgorithmEnum * > algos
Common C++ generic string class.
AlgorithmEnum & getByOrdinal(int ord)
Return the AlgorithmEnum by its ordinal number.
The enumaration subclasses that contain the supported algorithm enumerations.
AlgorithmEnum & getByName(const char *name)
Get an AlgorithmEnum by its name.
struct ZrtpConfigure ZrtpConfigure
EnumBase provides methods to store and access algorithm enumerations of a specific algorithm type...
void insert(const char *name)
AlgoTypes getAlgoType()
Get the AlgoTypes to which this EnumBase belongs.
SrtpAlgorithms
The algorihms that we support in SRTP and that ZRTP can negotiate.
Callback interface between ZRTP and the RTP stack implementation.
int getSize()
Get the number of currently stored AlgorithmEnums.
std::list< std::string > * getAllNames()
Return all names of all currently stored AlgorithmEnums.