Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
R
radsecproxy
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
Iterations
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
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
eduroam
radsecproxy
Commits
5fd15c12
Commit
5fd15c12
authored
May 06, 2013
by
Linus Nordberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Verify a single hash/hmac in the tests, not two.
parent
6146c490
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
tests/t_fticks.c
tests/t_fticks.c
+5
-6
No files found.
tests/t_fticks.c
View file @
5fd15c12
/* Copyright (C) 2011 NORDUnet A/S
* See LICENSE for information about licensing.
*/
/* Copyright (C) 2011,2013, NORDUnet A/S */
/* See LICENSE for licensing information. */
#include <stdio.h>
#include <errno.h>
...
...
@@ -11,7 +10,7 @@ static int
_check_hash
(
const
char
*
mac
,
const
char
*
key
,
const
char
*
hash
,
const
char
*
hmac
)
{
int
rv
=
0
;
uint8_t
buf
[
128
];
uint8_t
buf
[
64
+
1
];
if
(
fticks_hashmac
((
const
uint8_t
*
)
mac
,
NULL
,
sizeof
(
buf
),
buf
)
!=
0
)
return
-
ENOMEM
;
...
...
@@ -31,8 +30,8 @@ _check_hash(const char *mac, const char *key, const char *hash, const char*hmac)
#define MAC1_APPENDED "00:23:14:0a:f7:24;cruft"
#define MAC1_WEIRD "00:23:-[?xyzzy!]-14:0a:f7:24"
#define KEY1 "magic passphrase"
#define HASH1 "29c0ee9d9c41771795a11ff75fefe9f5ccaab523ad31fc4fd8e776c707ad1581
29c0ee9d9c41771795a11ff75fefe9f5ccaab523ad31fc4fd8e776c707ad15
"
#define HMAC1 "57c8cd8031142c51ac9747370f48a5aa731006729d0cdf589ba101864f35f390
57c8cd8031142c51ac9747370f48a5aa731006729d0cdf589ba101864f35f3
"
#define HASH1 "29c0ee9d9c41771795a11ff75fefe9f5ccaab523ad31fc4fd8e776c707ad1581"
#define HMAC1 "57c8cd8031142c51ac9747370f48a5aa731006729d0cdf589ba101864f35f390"
int
main
(
int
argc
,
char
*
argv
[])
...
...
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