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

Side by Side Diff: srtp/crypto/include/rdbx.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/err.h ('k') | srtp/include/srtp.h » ('j') | 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 * rdbx.h 2 * rdbx.h
3 * 3 *
4 * replay database with extended packet indices, using a rollover counter 4 * replay database with extended packet indices, using a rollover counter
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 * OF THE POSSIBILITY OF SUCH DAMAGE. 43 * OF THE POSSIBILITY OF SUCH DAMAGE.
44 * 44 *
45 */ 45 */
46 46
47 #ifndef RDBX_H 47 #ifndef RDBX_H
48 #define RDBX_H 48 #define RDBX_H
49 49
50 #include "datatypes.h" 50 #include "datatypes.h"
51 #include "err.h" 51 #include "err.h"
52 52
53 /**
54 * Compatibility shim for v1->v2 transition.
55 */
56
57 #define srtp_rdbx_get_packet_index rdbx_get_packet_index
58
53 /* #define ROC_TEST */ 59 /* #define ROC_TEST */
54 60
55 #ifndef ROC_TEST 61 #ifndef ROC_TEST
56 62
57 typedef uint16_t sequence_number_t; /* 16 bit sequence number */ 63 typedef uint16_t sequence_number_t; /* 16 bit sequence number */
58 typedef uint32_t rollover_counter_t; /* 32 bit rollover counter */ 64 typedef uint32_t rollover_counter_t; /* 32 bit rollover counter */
59 65
60 #else /* use small seq_num and roc datatypes for testing purposes */ 66 #else /* use small seq_num and roc datatypes for testing purposes */
61 67
62 typedef unsigned char sequence_number_t; /* 8 bit sequence number */ 68 typedef unsigned char sequence_number_t; /* 8 bit sequence number */
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 #endif /* RDBX_H */ 219 #endif /* RDBX_H */
214 220
215 221
216 222
217 223
218 224
219 225
220 226
221 227
222 228
OLDNEW
« no previous file with comments | « srtp/crypto/include/err.h ('k') | srtp/include/srtp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698