Changeset 5261 for pjproject/trunk/third_party/srtp/include/srtp_priv.h
- Timestamp:
- Mar 15, 2016 3:57:39 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/third_party/srtp/include/srtp_priv.h
r2660 r5261 46 46 #define SRTP_PRIV_H 47 47 48 #include "config.h" 48 49 #include "srtp.h" 49 50 #include "rdbx.h" 50 51 #include "rdb.h" 51 52 #include "integers.h" 53 #include "crypto.h" 54 #include "cipher.h" 55 #include "auth.h" 56 #include "aes.h" 57 #include "key.h" 58 #include "crypto_kernel.h" 59 60 #define SRTP_VER_STRING PACKAGE_STRING 61 #define SRTP_VERSION PACKAGE_VERSION 52 62 53 63 /* … … 60 70 */ 61 71 62 #ifdef _MSC_VER63 # pragma warning(push)64 # pragma warning(disable:4214) // bit field types other than int65 #endif66 67 72 #ifndef WORDS_BIGENDIAN 68 73 … … 73 78 * fully pack the bit fields. 74 79 */ 80 75 81 typedef struct { 76 82 unsigned char cc:4; /* CSRC count */ … … 93 99 unsigned char cc:4; /* CSRC count */ 94 100 unsigned char m:1; /* marker bit */ 95 unsigned pt:7; /* payload type */101 unsigned char pt:7; /* payload type */ 96 102 uint16_t seq; /* sequence number */ 97 103 uint32_t ts; /* timestamp */ … … 100 106 101 107 #endif 102 103 108 104 109 typedef struct { … … 163 168 164 169 165 #ifdef _MSC_VER166 # pragma warning( pop )167 #endif168 169 170 170 /* 171 171 * the following declarations are libSRTP internal functions … … 189 189 err_status_t 190 190 srtp_stream_init_keys(srtp_stream_t srtp, const void *key); 191 192 /* 193 * srtp_stream_init(s, p) initializes the srtp_stream_t s to 194 * use the policy at the location p 195 */ 196 err_status_t 197 srtp_stream_init(srtp_stream_t srtp, 198 const srtp_policy_t *p); 199 191 200 192 201 /* … … 220 229 key_limit_ctx_t *limit; 221 230 direction_t direction; 231 int allow_repeat_tx; 232 ekt_stream_t ekt; 233 uint8_t salt[SRTP_AEAD_SALT_LEN]; /* used with GCM mode for SRTP */ 234 uint8_t c_salt[SRTP_AEAD_SALT_LEN]; /* used with GCM mode for SRTCP */ 222 235 struct srtp_stream_ctx_t *next; /* linked list of streams */ 223 236 } srtp_stream_ctx_t; … … 231 244 srtp_stream_ctx_t *stream_list; /* linked list of streams */ 232 245 srtp_stream_ctx_t *stream_template; /* act as template for other streams */ 246 void *user_data; /* user custom data */ 233 247 } srtp_ctx_t; 234 248
Note: See TracChangeset
for help on using the changeset viewer.