oRTP 0.22.0

- Main Page
- Data Structures
- Files

- File List
- Globals

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
26 #ifdef HAVE_zrtp
27 #undef PACKAGE_NAME
28 #undef PACKAGE_STRING
29 #undef PACKAGE_TARNAME
30 #undef PACKAGE_VERSION
31 #include <srtp/srtp.h>
32 #include <libzrtpcpp/ZrtpCWrapper.h>
33 #endif
34
35
36
37 #ifdef __cplusplus
38 extern "C"{
39 #endif
40
41 typedef struct OrtpZrtpParams {
42 const char *zid_file; // File where to store secrets and other information
43 } OrtpZrtpParams;
44
45 typedef struct _OrtpZrtpContext OrtpZrtpContext ;
46
47 ORTP_PUBLIC bool_t ortp_zrtp_available();
48
49 ORTP_PUBLIC OrtpZrtpContext* ortp_zrtp_context_new(RtpSession *s, OrtpZrtpParams *params);
50 ORTP_PUBLIC OrtpZrtpContext* ortp_zrtp_multistream_new(OrtpZrtpContext* activeContext, RtpSession *s, OrtpZrtpParams *params);
51
52 ORTP_PUBLIC void ortp_zrtp_sas_verified(OrtpZrtpContext* ctx);
53 ORTP_PUBLIC void ortp_zrtp_sas_reset_verified(OrtpZrtpContext* ctx);
54
55 ORTP_PUBLIC void ortp_zrtp_context_destroy(OrtpZrtpContext *ctx);
56
57
58 #ifdef __cplusplus
59 }
60 #endif
61
62 #endif