Commit 2e4238d7 authored by Nils Goroll's avatar Nils Goroll

rename the key argument to pem

parent 4efa3d18
......@@ -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;
......
......@@ -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:
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment