fixed Solaris build

Sun, 17 Jan 2016 18:45:17 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 17 Jan 2016 18:45:17 +0100
changeset 183
c238e0017257
parent 182
ca07f14f7bfe
child 184
7ba3c97b31ff

fixed Solaris build

libidav/crypto.c file | annotate | diff | comparison | revisions
libidav/crypto.h file | annotate | diff | comparison | revisions
--- 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

mercurial