--- a/libidav/crypto.c Wed Jan 13 15:31:10 2016 +0100
+++ b/libidav/crypto.c Sun Jan 17 18:45:17 2016 +0100
@@ -291,9 +291,5 @@
void dav_get_hash(SHA256_CTX *sha256, char *buf) {
-#ifdef __sun
- SHA256Final((unsigned char*)buf, sha256);
-#else
SHA256_Final((unsigned char*)buf, sha256);
-#endif
}
--- 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