oRTP  0.23.0
zrtp.h
1 /*
2  The oRTP library is an RTP (Realtime Transport Protocol - rfc3550) stack.
3  Copyright (C) 2011 Belledonne Communications
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library; if not, write to the Free Software
17  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  */
19 
20 #ifndef ortp_zrtp_h
21 #define ortp_zrtp_h
22 
23 #include <ortp/rtpsession.h>
24 
25 #ifdef __cplusplus
26 extern "C"{
27 #endif
28 
29 typedef struct OrtpZrtpParams {
30  const char *zid_file; // File where to store secrets and other information
31  const char *uri; /* the sip URI of correspondant */
33 
34 typedef struct _OrtpZrtpContext OrtpZrtpContext ;
35 
36 ORTP_PUBLIC bool_t ortp_zrtp_available(void);
37 
42 ORTP_PUBLIC OrtpZrtpContext* ortp_zrtp_context_new(RtpSession *s, OrtpZrtpParams *params);
43 ORTP_PUBLIC void ortp_zrtp_context_destroy(OrtpZrtpContext *ctx);
47 ORTP_PUBLIC void ortp_zrtp_reset_transmition_timer(OrtpZrtpContext* ctx, RtpSession *s);
48 
49 ORTP_PUBLIC OrtpZrtpContext* ortp_zrtp_multistream_new(OrtpZrtpContext* activeContext, RtpSession *s, OrtpZrtpParams *params);
50 
51 ORTP_PUBLIC void ortp_zrtp_sas_verified(OrtpZrtpContext* ctx);
52 ORTP_PUBLIC void ortp_zrtp_sas_reset_verified(OrtpZrtpContext* ctx);
53 
54 
55 
56 ORTP_PUBLIC int ortp_zrtp_transport_modifier_new(OrtpZrtpContext* ctx, RtpTransportModifier **rtpt, RtpTransportModifier **rtcpt );
57 ORTP_PUBLIC void ortp_zrtp_transport_modifier_destroy(RtpTransportModifier *tp);
58 
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
64 #endif
Definition: rtpsession.h:309
Definition: zrtp.h:29
The RtpSession api.
Definition: rtpsession.h:92