Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-blobdigest
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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-blobdigest
Commits
d9579da1
Commit
d9579da1
authored
Feb 13, 2016
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
name the enum for hash algorithms
parent
a03a76e4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
18 deletions
+18
-18
.gitignore
.gitignore
+2
-2
Makefile.am
src/Makefile.am
+8
-8
gen_enum_parse.pl
src/gen_enum_parse.pl
+6
-6
vmod_blobdigest.c
src/vmod_blobdigest.c
+2
-2
No files found.
.gitignore
View file @
d9579da1
...
...
@@ -29,5 +29,5 @@ Makefile.in
/src/vcc_if.c
/src/vcc_if.h
/src/vmod_*rst
/src/parse_
encoding
.c
/src/parse_
encoding
.h
/src/parse_
algorithm
.c
/src/parse_
algorithm
.h
src/Makefile.am
View file @
d9579da1
...
...
@@ -12,15 +12,15 @@ libvmod_blobdigest_la_SOURCES = \
nodist_libvmod_blobdigest_la_SOURCES
=
\
vcc_if.c
\
vcc_if.h
\
parse_
encoding
.h
\
parse_
encoding
.c
parse_
algorithm
.h
\
parse_
algorithm
.c
parse_
encoding.h
:
parse_encoding
.c
parse_
algorithm.h
:
parse_algorithm
.c
parse_
encoding
.c
:
gen_enum_parse.pl
@
PERL@
$(srcdir)
/gen_enum_parse.pl parse_
encoding.c parse_encoding
.h
parse_
algorithm
.c
:
gen_enum_parse.pl
@
PERL@
$(srcdir)
/gen_enum_parse.pl parse_
algorithm.c parse_algorithm
.h
vmod_blobdigest.lo
:
vcc_if.c vcc_if.h parse_
encoding
.h
vmod_blobdigest.lo
:
vcc_if.c vcc_if.h parse_
algorithm
.h
vcc_if.c
:
vcc_if.h
...
...
@@ -45,5 +45,5 @@ CLEANFILES = \
$(builddir)
/vcc_if.h
\
$(builddir)
/vmod_blobdigest.rst
\
$(builddir)
/vmod_blobdigest.man.rst
\
$(builddir)
/parse_
encoding
.h
\
$(builddir)
/parse_
encoding
.c
$(builddir)
/parse_
algorithm
.h
\
$(builddir)
/parse_
algorithm
.c
src/gen_enum_parse.pl
View file @
d9579da1
...
...
@@ -130,12 +130,12 @@ _OUT($h_out, <<'EOF');
EOF
_OUT
(
$h_out
,
"enum
encoding
{\n\t_INVALID = 0,\n\t"
.
join
(
",\n\t"
,
@vals
)
.
",\n\t__MAX_
ENCODING
\n};\n"
);
"enum
algorithm
{\n\t_INVALID = 0,\n\t"
.
join
(
",\n\t"
,
@vals
)
.
",\n\t__MAX_
ALGORITHM
\n};\n"
);
_OUT
(
$h_out
,
<<
'EOF'
);
enum
encoding
parse_encoding
(
const
char
*
);
enum
algorithm
parse_algorithm
(
const
char
*
);
EOF
...
...
@@ -149,10 +149,10 @@ _OUT($c_out, <<EOF);
EOF
_OUT
(
$c_out
,
<<
'EOF'
);
enum
encoding
parse_
encoding
(
const
char
*
m
)
{
enum
algorithm
parse_
algorithm
(
const
char
*
m
)
{
int
p
;
enum
encoding
r
;
enum
algorithm
r
;
EOF
...
...
src/vmod_blobdigest.c
View file @
d9579da1
...
...
@@ -36,7 +36,7 @@
#include "vsha256.h"
#include "vcc_if.h"
#include "parse_
encoding
.h"
#include "parse_
algorithm
.h"
#define ERR(ctx, msg) \
errmsg((ctx), "vmod blobcode error: " msg)
...
...
@@ -71,7 +71,7 @@ errmsg(VRT_CTX, const char *fmt, ...)
VCL_BLOB
vmod_hash
(
VRT_CTX
,
VCL_ENUM
hashs
,
VCL_BLOB
msg
)
{
/* enum
encoding hash = parse_encoding
(hashs); */
/* enum
algorithm hash = parse_algorithm
(hashs); */
struct
vmod_priv
*
b
;
char
*
snap
;
SHA256_CTX
hashctx
[
1
];
...
...
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