00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef __OPAL_ZRTP_H
00039 #define __OPAL_ZRTP_H
00040
00041 #ifdef P_USE_PRAGMA
00042 #pragma interface
00043 #endif
00044
00045 #ifndef _PTLIB_H
00046 #include <ptlib.h>
00047 #endif
00048
00049 #include <opal/buildopts.h>
00050
00051 #if defined(OPAL_ZRTP)
00052
00053 #include <rtp/rtp.h>
00054 #include <opal/connection.h>
00055
00056 namespace PWLibStupidLinkerHacks {
00057 extern int libZRTPLoader;
00058 };
00059
00060 extern "C" {
00061 struct zrtp_global_ctx;
00062 };
00063
00065
00066
00067
00068
00069 class OpalZRTPSecurityMode : public OpalSecurityMode
00070 {
00071 PCLASSINFO(OpalZRTPSecurityMode, OpalSecurityMode);
00072 };
00073
00074
00076
00077
00078
00079
00080 class OpalZRTP_UDP : public SecureRTP_UDP
00081 {
00082 PCLASSINFO(OpalZRTP_UDP, SecureRTP_UDP);
00083 public:
00084 OpalZRTP_UDP(
00085 PHandleAggregator * _aggregator,
00086 unsigned id,
00087 BOOL remoteIsNAT
00088 );
00089
00090 ~OpalZRTP_UDP();
00091
00092 SendReceiveStatus OnSendData (RTP_DataFrame & frame);
00093 SendReceiveStatus OnReceiveData(RTP_DataFrame & frame);
00094 SendReceiveStatus OnSendControl(RTP_ControlFrame & frame, PINDEX & len);
00095 SendReceiveStatus OnReceiveControl(RTP_ControlFrame & frame);
00096 };
00097
00098 #endif // OPAL_ZRTP
00099
00100 #endif // __OPAL_ZRTP_H
00101