From 389817cb57da2a8c7323765622781fa1f8eb238d Mon Sep 17 00:00:00 2001 From: akallabeth Date: Mon, 14 Nov 2022 10:33:08 +0100 Subject: [PATCH] [winpr,crypto] fixed const correctness of md4/5 --- winpr/libwinpr/crypto/md4.c | 2 +- winpr/libwinpr/crypto/md5.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/winpr/libwinpr/crypto/md4.c b/winpr/libwinpr/crypto/md4.c index c33aea334..bae63e08f 100644 --- a/winpr/libwinpr/crypto/md4.c +++ b/winpr/libwinpr/crypto/md4.c @@ -72,7 +72,7 @@ * their own translation unit avoids the problem. */ #if defined(__i386__) || defined(__x86_64__) || defined(__vax__) -#define SET(n) (*(winpr_MD4_u32plus*)&ptr[(n)*4]) +#define SET(n) (*(const winpr_MD4_u32plus*)&ptr[(n)*4]) #define GET(n) SET(n) #else #define SET(n) \ diff --git a/winpr/libwinpr/crypto/md5.c b/winpr/libwinpr/crypto/md5.c index 96e8282a3..818cdf8e6 100644 --- a/winpr/libwinpr/crypto/md5.c +++ b/winpr/libwinpr/crypto/md5.c @@ -76,7 +76,7 @@ * their own translation unit avoids the problem. */ #if defined(__i386__) || defined(__x86_64__) || defined(__vax__) -#define SET(n) (*(winpr_MD5_u32plus*)&ptr[(n)*4]) +#define SET(n) (*(const winpr_MD5_u32plus*)&ptr[(n)*4]) #define GET(n) SET(n) #else #define SET(n) \