You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-09-11 08:30:59 +03: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
|