summaryrefslogtreecommitdiff
path: root/lib/libcrypto/dsa
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-08-11 13:51:34 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-08-11 13:51:34 +0000
commit7c002b34015a8cb48d00f4ce2ac8e0d1d3738c51 (patch)
treecfdf61171485a5b4f3c0ce672209b80c497a9d98 /lib/libcrypto/dsa
parente23f58126f3cfcb249811222c7edbf30fc46e290 (diff)
Use key/key_len in old_dsa_priv_{en,de}code()
ok jsing
Diffstat (limited to 'lib/libcrypto/dsa')
-rw-r--r--lib/libcrypto/dsa/dsa_ameth.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libcrypto/dsa/dsa_ameth.c b/lib/libcrypto/dsa/dsa_ameth.c
index 4f2cda59247..b94c3c40be3 100644
--- a/lib/libcrypto/dsa/dsa_ameth.c
+++ b/lib/libcrypto/dsa/dsa_ameth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dsa_ameth.c,v 1.48 2023/08/11 11:47:21 tb Exp $ */
+/* $OpenBSD: dsa_ameth.c,v 1.49 2023/08/11 13:51:33 tb Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2006.
*/
@@ -507,14 +507,14 @@ dsa_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx)
}
static int
-old_dsa_priv_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen)
+old_dsa_priv_decode(EVP_PKEY *pkey, const unsigned char **key, int key_len)
{
DSA *dsa = NULL;
BN_CTX *ctx = NULL;
BIGNUM *result;
int ret = 0;
- if ((dsa = d2i_DSAPrivateKey(NULL, pder, derlen)) == NULL) {
+ if ((dsa = d2i_DSAPrivateKey(NULL, key, key_len)) == NULL) {
DSAerror(ERR_R_DSA_LIB);
goto err;
}
@@ -581,9 +581,9 @@ old_dsa_priv_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen)
}
static int
-old_dsa_priv_encode(const EVP_PKEY *pkey, unsigned char **pder)
+old_dsa_priv_encode(const EVP_PKEY *pkey, unsigned char **key)
{
- return i2d_DSAPrivateKey(pkey->pkey.dsa, pder);
+ return i2d_DSAPrivateKey(pkey->pkey.dsa, key);
}
static int