Fix missing *_BLOCK_LENGTH macro when compiling with openssl ##hash (#17530)

This commit is contained in:
Zi Fan 2020-08-27 12:12:16 +08:00 committed by GitHub
parent b2bb25f0c3
commit d0e91555c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,9 @@ typedef SHA_CTX R_SHA_CTX;
typedef SHA256_CTX R_SHA256_CTX;
typedef SHA512_CTX R_SHA384_CTX;
typedef SHA512_CTX R_SHA512_CTX;
#define SHA256_BLOCK_LENGTH SHA256_CBLOCK
#define SHA384_BLOCK_LENGTH SHA384_CBLOCK
#define SHA512_BLOCK_LENGTH SHA512_CBLOCK
#else
#define MD5_CTX R_MD5_CTX