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
D
DNS-Compliance-Testing
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
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
ISC Open Source Projects
DNS-Compliance-Testing
Commits
97948468
Commit
97948468
authored
Jul 05, 2019
by
Mark Andrews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnswkk: send 64 bit noncei in other data
parent
cad8548a
Pipeline
#17013
passed with stages
in 1 minute and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
genreport.c
genreport.c
+6
-2
No files found.
genreport.c
View file @
97948468
...
...
@@ -47,6 +47,7 @@
#include <signal.h>
#include <openssl/hmac.h>
#include <openssl/rand.h>
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
#define HMAC_CTX_new() &(_ctx), HMAC_CTX_init(&_ctx)
...
...
@@ -1854,9 +1855,12 @@ dotest(struct workitem *item, int usec) {
dp
=
cp
;
ns_put16
(
0
,
cp
);
/* error */
cp
+=
2
;
ns_put16
(
0
,
cp
);
/* other len */
ns_put16
(
8
,
cp
);
/* other len */
cp
+=
2
;
/* no other data */
if
(
RAND_bytes
(
cp
,
8
)
!=
1
)
{
/* other data */
memset
(
cp
,
0
,
8
);
}
cp
+=
8
;
if
(
!
HMAC_Update
(
hmctx
,
dp
,
cp
-
dp
))
/* error, other len */
goto
error
;
if
(
!
HMAC_Final
(
hmctx
,
item
->
mac
,
NULL
))
...
...
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