Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-crypto
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-crypto
Commits
2e4238d7
Commit
2e4238d7
authored
Sep 11, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename the key argument to pem
parent
4efa3d18
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
vmod_crypto.c
src/vmod_crypto.c
+2
-2
vmod_crypto.rst
src/vmod_crypto.rst
+6
-6
vmod_crypto.vcc
src/vmod_crypto.vcc
+4
-4
No files found.
src/vmod_crypto.c
View file @
2e4238d7
...
...
@@ -147,7 +147,7 @@ struct vmod_crypto_verifier_task {
VCL_VOID
vmod_verifier__init
(
VRT_CTX
,
struct
vmod_crypto_verifier
**
vcvp
,
const
char
*
vcl_name
,
VCL_ENUM
md_s
,
VCL_STRING
key_s
)
VCL_STRING
pem
)
{
struct
vmod_crypto_verifier
*
vcv
;
const
EVP_MD
*
md
=
md_evp
(
md_parse
(
md_s
));
...
...
@@ -189,7 +189,7 @@ vmod_verifier__init(VRT_CTX,
goto
err_digest
;
}
bio
=
BIO_new_mem_buf
(
key_s
,
-
1
);
bio
=
BIO_new_mem_buf
(
pem
,
-
1
);
if
(
bio
==
NULL
)
{
VRT_fail
(
ctx
,
"key bio failed"
);
goto
err_digest
;
...
...
src/vmod_crypto.rst
View file @
2e4238d7
...
...
@@ -18,7 +18,7 @@ SYNOPSIS
.. parsed-literal::
import crypto [from "path"]
import crypto [
as name] [
from "path"]
:ref:`vmod_crypto.verifier`
...
...
@@ -61,23 +61,23 @@ Example
.. _vmod_crypto.verifier:
new xverifier = crypto.verifier(ENUM digest, STRING
key
)
new xverifier = crypto.verifier(ENUM digest, STRING
pem
)
--------------------------------------------------------
::
new xverifier = crypto.verifier(
ENUM {md_null, md4, md5, sha1, sha224, sha256, sha384, sha512, ripemd160, rmd160, whirlpool} digest,
STRING
key
STRING
pem
)
Create an object to verify signatures created using _digest_ and
_
key
_.
_
pem
_.
The _
key
_ argument is a PEM-encoded public key specification.
The _
pem
_ argument is a PEM-encoded public key specification.
The cryptographic method to be used and the key length are
automatically determined from _
key
_. Typically supported methods
automatically determined from _
pem
_. Typically supported methods
comprise RSA and DSA.
.. _vmod_crypto.verifier.update:
...
...
src/vmod_crypto.vcc
View file @
2e4238d7
...
...
@@ -41,15 +41,15 @@ Example
$Object verifier(ENUM {md_null, md4, md5, sha1, sha224,
sha256, sha384, sha512, ripemd160, rmd160, whirlpool} digest,
STRING
key
)
STRING
pem
)
Create an object to verify signatures created using _digest_ and
_
key
_.
_
pem
_.
The _
key
_ argument is a PEM-encoded public key specification.
The _
pem
_ argument is a PEM-encoded public key specification.
The cryptographic method to be used and the key length are
automatically determined from _
key
_. Typically supported methods
automatically determined from _
pem
_. Typically supported methods
comprise RSA and DSA.
$Method BOOL .update(STRING_LIST)
...
...
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