mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 08:47:17 +01:00
8 lines
271 B
C
8 lines
271 B
C
#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
|