1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
--- libsrtp-1.5.2/include/rtp.h.orig 2015-03-11 15:02:12.000000000 +0100
+++ libsrtp-1.5.2/include/rtp.h 2015-08-05 20:52:03.448242500 +0200
@@ -54,6 +54,8 @@
#ifndef RTP_H
#define RTP_H
+#include "config.h"
+
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#elif defined HAVE_WINSOCK2_H
--- libsrtp-1.5.2/crypto/include/datatypes.h.orig 2015-03-11 15:02:12.000000000 +0100
+++ libsrtp-1.5.2/crypto/include/datatypes.h 2015-08-05 20:49:25.094915812 +0200
@@ -47,6 +47,7 @@
#ifndef _DATATYPES_H
#define _DATATYPES_H
+#include "config.h"
#include "integers.h" /* definitions of uint32_t, et cetera */
#include "alloc.h"
--- libsrtp-1.5.2/crypto/include/err.h.orig 2015-03-11 15:02:12.000000000 +0100
+++ libsrtp-1.5.2/crypto/include/err.h 2015-08-05 20:49:42.271581757 +0200
@@ -46,6 +46,8 @@
#ifndef ERR_H
#define ERR_H
+#include "config.h"
+
#include <stdio.h>
#include <stdarg.h>
--- libsrtp-1.5.2/crypto/include/hmac.h.orig 2015-03-11 15:02:12.000000000 +0100
+++ libsrtp-1.5.2/crypto/include/hmac.h 2015-08-05 20:50:02.894914225 +0200
@@ -46,6 +46,7 @@
#ifndef HMAC_H
#define HMAC_H
+#include "config.h"
#include "auth.h"
#include "sha1.h"
--- libsrtp-1.5.2/crypto/include/integers.h.orig 2015-03-11 15:02:12.000000000 +0100
+++ libsrtp-1.5.2/crypto/include/integers.h 2015-08-05 20:50:14.444913741 +0200
@@ -47,6 +47,7 @@
#ifndef INTEGERS_H
#define INTEGERS_H
+#include "config.h"
#ifdef SRTP_KERNEL
--- libsrtp-1.5.2/crypto/include/kernel_compat.h.orig 2015-03-11 15:02:12.000000000 +0100
+++ libsrtp-1.5.2/crypto/include/kernel_compat.h 2015-08-05 20:50:34.308246240 +0200
@@ -46,6 +46,8 @@
#ifndef KERNEL_COMPAT_H
#define KERNEL_COMPAT_H
+#include "config.h"
+
#ifdef SRTP_KERNEL_LINUX
#include <linux/kernel.h>
--- libsrtp-1.5.2/crypto/include/prng.h.orig 2015-03-11 15:02:12.000000000 +0100
+++ libsrtp-1.5.2/crypto/include/prng.h 2015-08-05 20:50:54.158245407 +0200
@@ -46,6 +46,7 @@
#ifndef PRNG_H
#define PRNG_H
+#include "config.h"
#include "rand_source.h" /* for rand_source_func_t definition */
#include "aes.h" /* for aes */
//FIXME: this is temporary until we pull in the code to use OpenSSL for RNG
--- libsrtp-1.5.2/crypto/include/sha1.h.orig 2015-08-05 20:34:49.334952564 +0200
+++ libsrtp-1.5.2/crypto/include/sha1.h 2015-08-05 20:51:23.068244194 +0200
@@ -47,9 +47,7 @@
#ifndef SHA1_H
#define SHA1_H
-#ifdef HAVE_CONFIG_H
- #include <config.h>
-#endif
+#include "config.h"
#include "err.h"
#ifdef OPENSSL
--- libsrtp-1.5.2/crypto/include/rand_source.h.orig 2015-03-11 15:02:12.000000000 +0100
+++ libsrtp-1.5.2/crypto/include/rand_source.h 2015-08-05 21:41:41.868117509 +0200
@@ -49,6 +49,10 @@
#include "err.h"
#include "datatypes.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
err_status_t
rand_source_init(void);
@@ -88,4 +92,8 @@
typedef err_status_t (*rand_source_func_t)
(void *dest, uint32_t num_octets);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* RAND_SOURCE */
|