--- a/libidav/crypto.h Wed Jan 13 15:31:10 2016 +0100
+++ b/libidav/crypto.h Sun Jan 17 18:45:17 2016 +0100
@@ -35,6 +35,9 @@
#ifdef __sun
#include <sha2.h>
+#define SHA256_Init SHA256Init
+#define SHA256_Update SHA256Update
+#define SHA256_Final SHA256Final
#else
#include <openssl/sha.h>
#endif