From: Karel Slany Date: Mon, 25 Jul 2016 09:07:22 +0000 (+0200) Subject: Removed some assignments. X-Git-Tag: v1.1.0~2^2~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=84fddf521b75ce22bd55dc798ecea33a130372a4;p=thirdparty%2Fknot-resolver.git Removed some assignments. --- diff --git a/lib/cookies/alg_sha.c b/lib/cookies/alg_sha.c index 2d50bbae7..c8389c958 100644 --- a/lib/cookies/alg_sha.c +++ b/lib/cookies/alg_sha.c @@ -73,10 +73,9 @@ static uint16_t cc_gen_hmac_sha256_64(const struct knot_cc_input *input, /* KNOT_OPT_COOKIE_CLNT <= SHA256_DIGEST_SIZE */ - cc_len = KNOT_OPT_COOKIE_CLNT; - hmac_sha256_digest(&ctx, cc_len, cc_out); + hmac_sha256_digest(&ctx, KNOT_OPT_COOKIE_CLNT, cc_out); - return cc_len; + return KNOT_OPT_COOKIE_CLNT; } #define SRVR_HMAC_SHA256_64_HASH_SIZE 8 @@ -113,10 +112,9 @@ static uint16_t sc_gen_hmac_sha256_64(const struct knot_sc_input *input, /* SRVR_HMAC_SHA256_64_HASH_SIZE < SHA256_DIGEST_SIZE */ - hash_len = SRVR_HMAC_SHA256_64_HASH_SIZE; - hmac_sha256_digest(&ctx, hash_len, hash_out); + hmac_sha256_digest(&ctx, SRVR_HMAC_SHA256_64_HASH_SIZE, hash_out); - return hash_len; + return SRVR_HMAC_SHA256_64_HASH_SIZE; } const struct knot_cc_alg knot_cc_alg_hmac_sha256_64 = { KNOT_OPT_COOKIE_CLNT, cc_gen_hmac_sha256_64 };