Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Side by Side Diff: srtp/include/srtp.h

Issue 2346813003: Add compatibility shims to libsrtp for v1->v2 transition (Closed)
Patch Set: Add kjellander Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « srtp/crypto/include/rdbx.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * srtp.h 2 * srtp.h
3 * 3 *
4 * interface to libsrtp 4 * interface to libsrtp
5 * 5 *
6 * David A. McGrew 6 * David A. McGrew
7 * Cisco Systems, Inc. 7 * Cisco Systems, Inc.
8 */ 8 */
9 /* 9 /*
10 * 10 *
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 #ifdef __cplusplus 49 #ifdef __cplusplus
50 extern "C" { 50 extern "C" {
51 #endif 51 #endif
52 52
53 #include <stdint.h> 53 #include <stdint.h>
54 #include "crypto.h" 54 #include "crypto.h"
55 #include "crypto_types.h" 55 #include "crypto_types.h"
56 #include "err.h" 56 #include "err.h"
57 57
58 /*
59 * Compatibility shim for v1->v2 transition.
60 */
61
62 #define srtp_crypto_policy_set_aes_cm_128_hmac_sha1_32 \
63 crypto_policy_set_aes_cm_128_hmac_sha1_32
64 #define srtp_crypto_policy_set_aes_cm_128_hmac_sha1_80 \
65 crypto_policy_set_aes_cm_128_hmac_sha1_80
66 #define srtp_crypto_policy_set_aes_gcm_128_16_auth \
67 crypto_policy_set_aes_gcm_128_16_auth
68 #define srtp_crypto_policy_set_aes_gcm_256_16_auth \
69 crypto_policy_set_aes_gcm_256_16_auth
70
71 #define srtp_ssrc_type_t ssrc_type_t
72
58 /** 73 /**
59 * @defgroup SRTP Secure RTP 74 * @defgroup SRTP Secure RTP
60 * 75 *
61 * @brief libSRTP provides functions for protecting RTP and RTCP. See 76 * @brief libSRTP provides functions for protecting RTP and RTCP. See
62 * Section @ref Overview for an introduction to the use of the library. 77 * Section @ref Overview for an introduction to the use of the library.
63 * 78 *
64 * @{ 79 * @{
65 */ 80 */
66 81
67 /* 82 /*
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1259 #define SRTCP_E_BIT 0x80000000 1274 #define SRTCP_E_BIT 0x80000000
1260 /* for byte-access */ 1275 /* for byte-access */
1261 #define SRTCP_E_BYTE_BIT 0x80 1276 #define SRTCP_E_BYTE_BIT 0x80
1262 #define SRTCP_INDEX_MASK 0x7fffffff 1277 #define SRTCP_INDEX_MASK 0x7fffffff
1263 1278
1264 #ifdef __cplusplus 1279 #ifdef __cplusplus
1265 } 1280 }
1266 #endif 1281 #endif
1267 1282
1268 #endif /* SRTP_H */ 1283 #endif /* SRTP_H */
OLDNEW
« no previous file with comments | « srtp/crypto/include/rdbx.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698