diff options
author | Kotresh HR <khiremat@redhat.com> | 2017-12-19 07:21:07 -0500 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2017-12-21 04:31:31 +0000 |
commit | 1d32720335ffd8835c4a7b3164fe9aa9028f77a5 (patch) | |
tree | 9234608444f07d385564e1e386844dadd63fd1ee /xlators/protocol | |
parent | 4a06f851dcad6bdd730f3d2e12bd8f26709f27fe (diff) |
rchecksum/fips: Replace MD5 usage to enable fips support
rchecksum uses MD5 which is not fips compliant. Hence
using sha256 for the same.
Updates: #230
Change-Id: I7fad016fcc2a9900395d0da919cf5ba996ec5278
Signed-off-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'xlators/protocol')
-rw-r--r-- | xlators/protocol/server/src/server-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/protocol/server/src/server-common.c b/xlators/protocol/server/src/server-common.c index ce3308937ca..9c38706dbcb 100644 --- a/xlators/protocol/server/src/server-common.c +++ b/xlators/protocol/server/src/server-common.c @@ -298,7 +298,7 @@ server_post_rchecksum (gfs3_rchecksum_rsp *rsp, uint32_t weak_checksum, rsp->weak_checksum = weak_checksum; rsp->strong_checksum.strong_checksum_val = (char *)strong_checksum; - rsp->strong_checksum.strong_checksum_len = MD5_DIGEST_LENGTH; + rsp->strong_checksum.strong_checksum_len = SHA256_DIGEST_LENGTH; } |