Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-ece
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-ece
Commits
7ec2a695
Commit
7ec2a695
authored
Sep 12, 2019
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GC some superfluous code.
parent
60bc3826
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
rfc8188.c
src/rfc8188.c
+2
-16
No files found.
src/rfc8188.c
View file @
7ec2a695
...
...
@@ -36,9 +36,7 @@
#include "rfc8188.h"
#ifndef VDEF_H_INCLUDED
# include "vdef.h"
#endif
#include "vdef.h"
#include "vas.h"
/* ch 2.2 */
...
...
@@ -63,22 +61,10 @@ mk_error(char *buf)
ERR_error_string
(
ERR_get_error
(),
NULL
));
}
/* copied from vend.h */
static
inline
void
be32enc
(
void
*
pp
,
uint32_t
u
)
{
uint8_t
*
p
=
(
uint8_t
*
)
pp
;
p
[
0
]
=
(
u
>>
24
)
&
0xff
;
p
[
1
]
=
(
u
>>
16
)
&
0xff
;
p
[
2
]
=
(
u
>>
8
)
&
0xff
;
p
[
3
]
=
u
&
0xff
;
}
void
encode_header
(
uint8_t
*
hdr
,
uint32_t
rs
,
uint8_t
idlen
,
uint8_t
*
keyid
)
{
be32enc
(
hdr
+
RS_OFF
,
rs
);
v
be32enc
(
hdr
+
RS_OFF
,
rs
);
hdr
[
IDLEN_OFF
]
=
idlen
;
memcpy
(
hdr
+
ID_OFF
,
keyid
,
idlen
);
}
...
...
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