reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
Srtp2Helper.hxx
Go to the documentation of this file.
1#if !defined(Srtp2Helper_hxx)
2#define Srtp2Helper_hxx
3
4#if defined (USE_SRTP1)
5#include <srtp/srtp.h>
6#else // using srtp2
7#ifdef WIN32
8#include <srtp.h>
9#else
10#include <srtp2/srtp.h>
11#endif
12
13// grep 'not declared' /tmp/errs.log | cut -f5- -d: | sort -u | sed -e 's/ was not declared in this scope; did you mean//' | tr -d "'?" | while read ; do echo "#define$REPLY" ; done
14
15#define err_status_t srtp_err_status_t
16#define err_status_ok srtp_err_status_ok
17#define crypto_policy_t srtp_crypto_policy_t
18#define crypto_policy_set_aes_cm_256_hmac_sha1_80 srtp_crypto_policy_set_aes_cm_256_hmac_sha1_80
19#define crypto_policy_set_aes_cm_128_hmac_sha1_32 srtp_crypto_policy_set_aes_cm_128_hmac_sha1_32
20#define crypto_policy_set_aes_cm_128_null_auth srtp_crypto_policy_set_aes_cm_128_null_auth
21#define crypto_policy_set_null_cipher_hmac_sha1_80 srtp_crypto_policy_set_null_cipher_hmac_sha1_80
22#define crypto_policy_set_aes_cm_128_hmac_sha1_80 srtp_crypto_policy_set_aes_cm_128_hmac_sha1_80
23#define crypto_policy_set_aes_cm_256_hmac_sha1_32 srtp_crypto_policy_set_aes_cm_256_hmac_sha1_32
24#define crypto_policy_set_from_profile_for_rtp srtp_crypto_policy_set_from_profile_for_rtp
25#define crypto_policy_set_from_profile_for_rtcp srtp_crypto_policy_set_from_profile_for_rtcp
26#define ssrc_t srtp_ssrc_t
27#define err_status_algo_fail srtp_err_status_algo_fail
28#define err_status_alloc_fail srtp_err_status_alloc_fail
29#define err_status_auth_fail srtp_err_status_auth_fail
30#define err_status_bad_param srtp_err_status_bad_param
31#define err_status_cant_check srtp_err_status_cant_check
32#define err_status_cipher_fail srtp_err_status_cipher_fail
33#define err_status_dealloc_fail srtp_err_status_dealloc_fail
34#define err_status_encode_err srtp_err_status_encode_err
35#define err_status_fail srtp_err_status_fail
36#define err_status_init_fail srtp_err_status_init_fail
37#define err_status_key_expired srtp_err_status_key_expired
38#define err_status_no_ctx srtp_err_status_no_ctx
39#define err_status_nonce_bad srtp_err_status_nonce_bad
40#define err_status_no_such_op srtp_err_status_no_such_op
41#define err_status_parse_err srtp_err_status_parse_err
42#define err_status_pfkey_err srtp_err_status_pfkey_err
43#define err_status_read_fail srtp_err_status_read_fail
44#define err_status_replay_fail srtp_err_status_replay_fail
45#define err_status_replay_old srtp_err_status_replay_old
46#define err_status_semaphore_err srtp_err_status_semaphore_err
47#define err_status_signal_err srtp_err_status_signal_err
48#define err_status_socket_err srtp_err_status_socket_err
49#define err_status_terminus srtp_err_status_terminus
50#define err_status_write_fail srtp_err_status_write_fail
51
52#endif // using srtp2
53
54#endif
55
56/* ====================================================================
57 *
58 * Copyright 2020 Daniel Pocock https://danielpocock.com All rights reserved.
59 *
60 * Redistribution and use in source and binary forms, with or without
61 * modification, are permitted provided that the following conditions
62 * are met:
63 *
64 * 1. Redistributions of source code must retain the above copyright
65 * notice, this list of conditions and the following disclaimer.
66 *
67 * 2. Redistributions in binary form must reproduce the above copyright
68 * notice, this list of conditions and the following disclaimer in
69 * the documentation and/or other materials provided with the
70 * distribution.
71 *
72 * 3. Neither the name of the author(s) nor the names of any contributors
73 * may be used to endorse or promote products derived from this software
74 * without specific prior written permission.
75 *
76 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CONTRIBUTORS "AS IS" AND
77 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
78 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
79 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTORS BE LIABLE
80 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
81 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
82 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
83 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
84 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
85 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
86 * SUCH DAMAGE.
87 *
88 *
89 */