From d6a7aece0826e0c115eb21912527c77596c1305e Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Mon, 6 Mar 2017 13:06:03 +0100 Subject: my_sha2 service --- mysys_ssl/my_sha.ic | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mysys_ssl/my_sha.ic') diff --git a/mysys_ssl/my_sha.ic b/mysys_ssl/my_sha.ic index 5a95c9c4682..a7ec8bad593 100644 --- a/mysys_ssl/my_sha.ic +++ b/mysys_ssl/my_sha.ic @@ -26,7 +26,7 @@ #include #include -#define HASH_SIZE 20 +#define HASH_SIZE (NUM > 1 ? NUM/8 : 20) #if defined(HAVE_YASSL) #include "sha.hpp" @@ -66,6 +66,8 @@ static void sha_result(CONTEXT *context, uchar digest[HASH_SIZE]) #define yCONTEXT(y) xCONTEXT(y) #define CONTEXT yCONTEXT(NUM) #define SHA1_CTX SHA_CTX +#define SHA224_CTX SHA256_CTX +#define SHA384_CTX SHA512_CTX #define xSHA_Init(x) SHA ## x ## _Init #define xSHA_Update(x) SHA ## x ## _Update -- cgit v1.2.1