Fix ZRTP header padding for MSVC

This commit is contained in:
Aaro Altonen 2020-11-23 07:29:21 +02:00
parent 5248ad15b4
commit 601209e295
2 changed files with 8 additions and 8 deletions

View File

@ -20,13 +20,13 @@ namespace uvg_rtp {
/* encrypted portion starts */
uint8_t hash[32];
uint16_t unused:15;
uint16_t sig_len:9; /* signature length*/
uint8_t zeros:4;
uint8_t e:1; /* */
uint8_t v:1; /* */
uint8_t d:1; /* */
uint8_t a:1; /* */
uint32_t unused:15;
uint32_t sig_len:9; /* signature length*/
uint32_t zeros:4;
uint32_t e:1; /* */
uint32_t v:1; /* */
uint32_t d:1; /* */
uint32_t a:1; /* */
uint32_t cache_expr; /* cache expiration interval */
/* encrypted portion ends */

View File

@ -12,7 +12,7 @@ namespace uvg_rtp {
struct zrtp_dh;
PACK(struct zrtp_header {
uint8_t version:4;
uint16_t version:4;
uint16_t unused:12;
uint16_t seq;
uint32_t magic;