diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-10-19 20:52:04 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-10-19 20:52:04 (GMT) |
commit | b8721cb4a0e496a9e3b54f7eca515acde2b3cfda (patch) | |
tree | 818339cb30d20298b80722c806a8de58104e6825 /src/H5FDs3comms.c | |
parent | 6a2b7c03a69220ed1c2b135d9a8680c68cbbaa40 (diff) | |
download | hdf5-b8721cb4a0e496a9e3b54f7eca515acde2b3cfda.zip hdf5-b8721cb4a0e496a9e3b54f7eca515acde2b3cfda.tar.gz hdf5-b8721cb4a0e496a9e3b54f7eca515acde2b3cfda.tar.bz2 |
Correct boolean value and missing define
Diffstat (limited to 'src/H5FDs3comms.c')
-rw-r--r-- | src/H5FDs3comms.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5FDs3comms.c b/src/H5FDs3comms.c index 4a0c007..4f967d59 100644 --- a/src/H5FDs3comms.c +++ b/src/H5FDs3comms.c @@ -1855,7 +1855,7 @@ H5FD_s3comms_HMAC_SHA256(const unsigned char *key, size_t key_len, const char *m HMAC(EVP_sha256(), key, (int)key_len, (const unsigned char *)msg, msg_len, md, &md_len); - if (H5FD_s3comms_bytes_to_hex(dest, (const unsigned char *)md, (size_t)md_len, true) == FAIL) + if (H5FD_s3comms_bytes_to_hex(dest, (const unsigned char *)md, (size_t)md_len, TRUE) == FAIL) HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "could not convert to hex string."); done: @@ -2698,7 +2698,7 @@ H5FD_s3comms_tostringtosign(char *dest, const char *req, const char *now, const SHA256((const unsigned char *)req, HDstrlen(req), checksum); - if (H5FD_s3comms_bytes_to_hex(hexsum, (const unsigned char *)checksum, SHA256_DIGEST_LENGTH, true) == + if (H5FD_s3comms_bytes_to_hex(hexsum, (const unsigned char *)checksum, SHA256_DIGEST_LENGTH, TRUE) == FAIL) HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "could not create hex string"); |