diff options
author | tb <> | 2023-08-11 13:51:33 +0000 |
---|---|---|
committer | tb <> | 2023-08-11 13:51:33 +0000 |
commit | 92ddfd07bfe6dc6da0145c4b24f90be2fedb67d7 (patch) | |
tree | eb65186ae28903675c78e82308206e80fa323f88 /src/lib | |
parent | 8222278279beec35e4f7dc9221d5e85f3fc85304 (diff) | |
download | openbsd-92ddfd07bfe6dc6da0145c4b24f90be2fedb67d7.tar.gz openbsd-92ddfd07bfe6dc6da0145c4b24f90be2fedb67d7.tar.bz2 openbsd-92ddfd07bfe6dc6da0145c4b24f90be2fedb67d7.zip |
Use key/key_len in old_dsa_priv_{en,de}code()
ok jsing
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/dsa/dsa_ameth.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_ameth.c b/src/lib/libcrypto/dsa/dsa_ameth.c index 4f2cda5924..b94c3c40be 100644 --- a/src/lib/libcrypto/dsa/dsa_ameth.c +++ b/src/lib/libcrypto/dsa/dsa_ameth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsa_ameth.c,v 1.48 2023/08/11 11:47:21 tb Exp $ */ | 1 | /* $OpenBSD: dsa_ameth.c,v 1.49 2023/08/11 13:51:33 tb Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2006. | 3 | * project 2006. |
4 | */ | 4 | */ |
@@ -507,14 +507,14 @@ dsa_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) | |||
507 | } | 507 | } |
508 | 508 | ||
509 | static int | 509 | static int |
510 | old_dsa_priv_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) | 510 | old_dsa_priv_decode(EVP_PKEY *pkey, const unsigned char **key, int key_len) |
511 | { | 511 | { |
512 | DSA *dsa = NULL; | 512 | DSA *dsa = NULL; |
513 | BN_CTX *ctx = NULL; | 513 | BN_CTX *ctx = NULL; |
514 | BIGNUM *result; | 514 | BIGNUM *result; |
515 | int ret = 0; | 515 | int ret = 0; |
516 | 516 | ||
517 | if ((dsa = d2i_DSAPrivateKey(NULL, pder, derlen)) == NULL) { | 517 | if ((dsa = d2i_DSAPrivateKey(NULL, key, key_len)) == NULL) { |
518 | DSAerror(ERR_R_DSA_LIB); | 518 | DSAerror(ERR_R_DSA_LIB); |
519 | goto err; | 519 | goto err; |
520 | } | 520 | } |
@@ -581,9 +581,9 @@ old_dsa_priv_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) | |||
581 | } | 581 | } |
582 | 582 | ||
583 | static int | 583 | static int |
584 | old_dsa_priv_encode(const EVP_PKEY *pkey, unsigned char **pder) | 584 | old_dsa_priv_encode(const EVP_PKEY *pkey, unsigned char **key) |
585 | { | 585 | { |
586 | return i2d_DSAPrivateKey(pkey->pkey.dsa, pder); | 586 | return i2d_DSAPrivateKey(pkey->pkey.dsa, key); |
587 | } | 587 | } |
588 | 588 | ||
589 | static int | 589 | static int |