From: Juan A. Suarez Romero Date: Tue, 18 Aug 2015 15:08:07 +0000 (+0000) Subject: rgw: Remove useless code in calc_hmac_sha1() X-Git-Tag: v9.1.0~337^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F5598%2Fhead;p=ceph.git rgw: Remove useless code in calc_hmac_sha1() Hex conversion from buf is not used at all. Signed-off-by: Juan A. Suarez Romero --- diff --git a/src/rgw/rgw_common.cc b/src/rgw/rgw_common.cc index c06e5e17ef4b..207cc4ec7b92 100644 --- a/src/rgw/rgw_common.cc +++ b/src/rgw/rgw_common.cc @@ -419,9 +419,6 @@ void calc_hmac_sha1(const char *key, int key_len, HMACSHA1 hmac((const unsigned char *)key, key_len); hmac.Update((const unsigned char *)msg, msg_len); hmac.Final((unsigned char *)dest); - - char hex_str[(CEPH_CRYPTO_HMACSHA1_DIGESTSIZE * 2) + 1]; - buf_to_hex((unsigned char *)dest, CEPH_CRYPTO_HMACSHA1_DIGESTSIZE, hex_str); } int gen_rand_base64(CephContext *cct, char *dest, int size) /* size should be the required string size + 1 */