Skip to content

Commit c1be3fb

Browse files
author
Volodymyr Snitko
committed
rcc_test: fixed compilation with certain configurations
1 parent 292bc35 commit c1be3fb

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

test/rcc_test.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@
4646
#include "config.h"
4747
#endif
4848

49+
#ifdef HAVE_NETINET_IN_H
50+
#include <netinet/in.h>
51+
#elif defined(HAVE_WINSOCK2_H)
52+
#include <winsock2.h>
53+
#endif
54+
4955
#include "cutest.h"
5056

5157
#include "srtp.h"
5258
#include "util.h"
5359

5460
#include <string.h>
5561

56-
#ifdef HAVE_NETINET_IN_H
57-
#include <netinet/in.h>
58-
#elif defined(HAVE_WINSOCK2_H)
59-
#include <winsock2.h>
60-
#endif
61-
6262
#define TEST_SSRC 0xcafebabe
6363

6464
static const uint8_t cm_master_key[16] = {
@@ -70,6 +70,7 @@ static const uint8_t cm_master_salt[14] = {
7070
0xeb, 0xb6, 0x96, 0x0b, 0x3a, 0xab, 0xe6,
7171
};
7272

73+
#ifdef GCM
7374
static const uint8_t gcm_master_key[16] = {
7475
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
7576
0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
@@ -79,6 +80,7 @@ static const uint8_t gcm_master_salt[12] = {
7980
};
8081

8182
static const uint8_t mki4[4] = { 0xde, 0xad, 0xbe, 0xef };
83+
#endif
8284

8385
static void create_cm_rcc_policy(srtp_policy_t *policy,
8486
srtp_rcc_mode_t mode,

0 commit comments

Comments
 (0)