Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
Knot Resolver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomas Krizek
Knot Resolver
Commits
84fddf52
Commit
84fddf52
authored
Jul 25, 2016
by
Karel Slaný
Committed by
Ondřej Surý
Aug 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed some assignments.
parent
57965cf9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
lib/cookies/alg_sha.c
lib/cookies/alg_sha.c
+4
-6
No files found.
lib/cookies/alg_sha.c
View file @
84fddf52
...
...
@@ -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
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment