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
e54dcfd5
Commit
e54dcfd5
authored
Nov 07, 2016
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a typo in the examples
parent
132f5326
Pipeline
#70
skipped
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
README.rst
README.rst
+8
-8
vmod_blobdigest.vcc
src/vmod_blobdigest.vcc
+8
-8
No files found.
README.rst
View file @
e54dcfd5
...
...
@@ -126,8 +126,8 @@ Here are some examples::
if (!fooprefix.update(blobcode.decode(IDENTITY, "bar"))) {
call do_error;
}
set req.http.Foobar-Hash = blocode.encode(BASE64,
fooprefix.final());
set req.http.Foobar-Hash = blo
b
code.encode(BASE64,
fooprefix.final());
}
sub vcl_backend_response {
...
...
@@ -138,13 +138,13 @@ Here are some examples::
if (!fooprefix.update(blobcode.decode(IDENTITY, "baz"))) {
call do_error;
}
set req.http.Foobaz-Hash = blocode.encode(BASE64,
fooprefix.final());
set req.http.Foobaz-Hash = blo
b
code.encode(BASE64,
fooprefix.final());
}
sub vcl_deliver {
# Retrieve the SHA256 hash of "foo" computed in the constructor
set req.http.Foo-Hash = blocode.encode(BASE64, foohash.final());
set req.http.Foo-Hash = blo
b
code.encode(BASE64, foohash.final());
}
The ``hash()`` function computes the message digest for its argument
...
...
@@ -162,9 +162,9 @@ and returns the result. It is functionally equivalent to using a
sub vcl_recv {
# Get the SHA256 hash of "foo"
set req.http.Foo-Hash-Functional
= blocode.encode(BASE64,
blobdigest.hash(blobcode.decode(IDENTITY,
"foo")));
= blo
b
code.encode(BASE64,
blobdigest.hash(blobcode.decode(IDENTITY,
"foo")));
# Same result using the object interface
if (!sha256.update(blobcode.decode(IDENTITY, "foo"))) {
...
...
src/vmod_blobdigest.vcc
View file @
e54dcfd5
...
...
@@ -111,8 +111,8 @@ Here are some examples::
if (!fooprefix.update(blobcode.decode(IDENTITY, "bar"))) {
call do_error;
}
set req.http.Foobar-Hash = blocode.encode(BASE64,
fooprefix.final());
set req.http.Foobar-Hash = blo
b
code.encode(BASE64,
fooprefix.final());
}
sub vcl_backend_response {
...
...
@@ -123,13 +123,13 @@ Here are some examples::
if (!fooprefix.update(blobcode.decode(IDENTITY, "baz"))) {
call do_error;
}
set req.http.Foobaz-Hash = blocode.encode(BASE64,
fooprefix.final());
set req.http.Foobaz-Hash = blo
b
code.encode(BASE64,
fooprefix.final());
}
sub vcl_deliver {
# Retrieve the SHA256 hash of "foo" computed in the constructor
set req.http.Foo-Hash = blocode.encode(BASE64, foohash.final());
set req.http.Foo-Hash = blo
b
code.encode(BASE64, foohash.final());
}
The ``hash()`` function computes the message digest for its argument
...
...
@@ -147,9 +147,9 @@ and returns the result. It is functionally equivalent to using a
sub vcl_recv {
# Get the SHA256 hash of "foo"
set req.http.Foo-Hash-Functional
= blocode.encode(BASE64,
blobdigest.hash(blobcode.decode(IDENTITY,
"foo")));
= blo
b
code.encode(BASE64,
blobdigest.hash(blobcode.decode(IDENTITY,
"foo")));
# Same result using the object interface
if (!sha256.update(blobcode.decode(IDENTITY, "foo"))) {
...
...
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