| 28 |
28 |
| 29 #include <stdio.h> |
29 #include <stdio.h> |
| 30 #include <stdlib.h> |
30 #include <stdlib.h> |
| 31 #include <string.h> |
31 #include <string.h> |
| 32 |
32 |
| 33 #include <openssl/sha.h> |
33 #include "../util/hashing.h" |
| 34 #if defined(__sun) && defined(__SunOS_5_10) |
|
| 35 #include <sha2.h> |
|
| 36 #define SHA256_Init SHA256Init |
|
| 37 #define SHA256_Update SHA256Update |
|
| 38 #define SHA256_Final SHA256Final |
|
| 39 #endif |
|
| 40 |
|
| 41 #include "../util/atomic.h" |
34 #include "../util/atomic.h" |
| 42 #include "../util/util.h" |
35 #include "../util/util.h" |
| 43 |
36 |
| 44 #include <cx/hash_map.h> |
37 #include <cx/hash_map.h> |
| 45 |
38 |