a-oRTP  5.2.0
srtp.h
1 /*
2  The oRTP library is an RTP (Realtime Transport Protocol - rfc3550) stack.
3  Copyright (C) 2001 Simon MORLAT simon.morlat@linphone.org
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_srtp_h
21 #define ortp_srtp_h
22 
23 #include <srtp2/srtp.h>
24 #include <ortp/rtpsession.h>
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 srtp_err_status_t ortp_srtp_create(srtp_t *session, const srtp_policy_t *policy);
31 srtp_err_status_t ortp_srtp_dealloc(srtp_t session);
32 srtp_err_status_t ortp_srtp_add_stream(srtp_t session, const srtp_policy_t *policy);
33 
34 int ortp_dtls_srtp_create(struct ortp_dtls_srtp **dtlsctx);
35 void ortp_dtls_srtp_dealloc(struct ortp_dtls_srtp *dtlsctx);
36 int ortp_dtls_srtp_get_sha_fingerprint(struct ortp_dtls_srtp *dtlsctx, char *fingerprint, unsigned int *size);
37 int ortp_dtls_srtp_get_sha256_fingerprint(struct ortp_dtls_srtp *dtlsctx, char *fingerprint, unsigned int *size);
38 int ortp_dtls_srtp_set_sha_remote_fingerprint(struct ortp_dtls_srtp *dtlsctx, char *rfingerprint);
39 int ortp_dtls_srtp_set_setup_param(struct ortp_dtls_srtp *dtlsctx, char *setup_param);
40 
41 #ifdef __cplusplus
42 }
43 #endif
44 
45 #endif
The RtpSession api.