]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Remove useless code in calc_hmac_sha1() 5598/head
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Tue, 18 Aug 2015 15:08:07 +0000 (15:08 +0000)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Tue, 18 Aug 2015 15:08:07 +0000 (15:08 +0000)
Hex conversion from buf is not used at all.

Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
src/rgw/rgw_common.cc

index c06e5e17ef4ba56ed55ba1950d7fe6e402b04218..207cc4ec7b9220d3f0bb3e6efc3cd2c485688304 100644 (file)
@@ -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 */