summaryrefslogtreecommitdiffstats
path: root/libmariadb/plugins/auth/ref10/crypto_hash_sha512.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmariadb/plugins/auth/ref10/crypto_hash_sha512.h')
-rw-r--r--libmariadb/plugins/auth/ref10/crypto_hash_sha512.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libmariadb/plugins/auth/ref10/crypto_hash_sha512.h b/libmariadb/plugins/auth/ref10/crypto_hash_sha512.h
new file mode 100644
index 00000000..c023f30f
--- /dev/null
+++ b/libmariadb/plugins/auth/ref10/crypto_hash_sha512.h
@@ -0,0 +1,7 @@
+#if defined(MYSQL_CLIENT) || defined(LIBMARIADB)
+#include <ma_crypt.h>
+#define crypto_hash_sha512(DST,SRC,SLEN) ma_hash(MA_HASH_SHA512, SRC, SLEN, DST)
+#else
+#include <mysql/service_sha2.h>
+#define crypto_hash_sha512(DST,SRC,SLEN) my_sha512(DST,(char*)(SRC),SLEN)
+#endif