Ignore:
Timestamp:
Mar 15, 2016 3:57:39 AM (8 years ago)
Author:
nanang
Message:

Close #1847: Upgraded libsrtp version to 1.5.4 and added support for AES-CM-256 crypto.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/third_party/srtp/include/srtp_priv.h

    r2660 r5261  
    4646#define SRTP_PRIV_H 
    4747 
     48#include "config.h" 
    4849#include "srtp.h" 
    4950#include "rdbx.h" 
    5051#include "rdb.h" 
    5152#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 
    5262 
    5363/* 
     
    6070 */ 
    6171  
    62 #ifdef _MSC_VER 
    63 #   pragma warning(push) 
    64 #   pragma warning(disable:4214) // bit field types other than int 
    65 #endif 
    66  
    6772#ifndef WORDS_BIGENDIAN 
    6873 
     
    7378 * fully pack the bit fields. 
    7479 */ 
     80 
    7581typedef struct { 
    7682  unsigned char cc:4;   /* CSRC count             */ 
     
    9399  unsigned char cc:4;   /* CSRC count             */ 
    94100  unsigned char m:1;    /* marker bit             */ 
    95   unsigned pt:7;        /* payload type           */ 
     101  unsigned char pt:7;   /* payload type           */ 
    96102  uint16_t seq;         /* sequence number        */ 
    97103  uint32_t ts;          /* timestamp              */ 
     
    100106 
    101107#endif 
    102  
    103108 
    104109typedef struct { 
     
    163168 
    164169 
    165 #ifdef _MSC_VER 
    166 #   pragma warning( pop )  
    167 #endif 
    168  
    169  
    170170/* 
    171171 * the following declarations are libSRTP internal functions  
     
    189189err_status_t 
    190190srtp_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 */ 
     196err_status_t 
     197srtp_stream_init(srtp_stream_t srtp,  
     198                 const srtp_policy_t *p); 
     199 
    191200 
    192201/* 
     
    220229  key_limit_ctx_t *limit; 
    221230  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 */ 
    222235  struct srtp_stream_ctx_t *next;   /* linked list of streams */ 
    223236} srtp_stream_ctx_t; 
     
    231244  srtp_stream_ctx_t *stream_list;     /* linked list of streams            */ 
    232245  srtp_stream_ctx_t *stream_template; /* act as template for other streams */ 
     246  void *user_data;                    /* user custom data */ 
    233247} srtp_ctx_t; 
    234248 
Note: See TracChangeset for help on using the changeset viewer.