|
@@ -19,9 +19,18 @@
|
19
|
19
|
#include <limits.h>
|
20
|
20
|
#include <stdbool.h>
|
21
|
21
|
|
|
22
|
+// Prevent warnings about openssl functions. Apple may consider 'openssl'
|
|
23
|
+// deprecated but changing perfectly working portable code just because they
|
|
24
|
+// introduced some proprietary API is not going to happen.
|
|
25
|
+#if defined(__APPLE__)
|
|
26
|
+#define __AVAILABILITY_MACROS_USES_AVAILABILITY 0
|
|
27
|
+#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_6
|
|
28
|
+#endif
|
|
29
|
+
|
22
|
30
|
#include <openssl/aes.h>
|
23
|
31
|
#include <openssl/des.h>
|
24
|
32
|
#include <openssl/md5.h>
|
|
33
|
+#include <openssl/rand.h>
|
25
|
34
|
|
26
|
35
|
#include "libfuncs/libfuncs.h"
|
27
|
36
|
#include "libtsfuncs/tsfuncs.h"
|