summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dsa
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/dsa')
-rw-r--r--src/lib/libcrypto/dsa/dsa_ameth.c10
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 b94c3c40be..529bab4d47 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.49 2023/08/11 13:51:33 tb Exp $ */ 1/* $OpenBSD: dsa_ameth.c,v 1.50 2023/08/11 13:53:45 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 */
@@ -459,12 +459,12 @@ do_dsa_print(BIO *bp, const DSA *x, int off, int ptype)
459} 459}
460 460
461static int 461static int
462dsa_param_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) 462dsa_param_decode(EVP_PKEY *pkey, const unsigned char **params, int params_len)
463{ 463{
464 DSA *dsa = NULL; 464 DSA *dsa = NULL;
465 int ret = 0; 465 int ret = 0;
466 466
467 if ((dsa = d2i_DSAparams(NULL, pder, derlen)) == NULL) { 467 if ((dsa = d2i_DSAparams(NULL, params, params_len)) == NULL) {
468 DSAerror(ERR_R_DSA_LIB); 468 DSAerror(ERR_R_DSA_LIB);
469 goto err; 469 goto err;
470 } 470 }
@@ -483,9 +483,9 @@ dsa_param_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen)
483} 483}
484 484
485static int 485static int
486dsa_param_encode(const EVP_PKEY *pkey, unsigned char **pder) 486dsa_param_encode(const EVP_PKEY *pkey, unsigned char **params)
487{ 487{
488 return i2d_DSAparams(pkey->pkey.dsa, pder); 488 return i2d_DSAparams(pkey->pkey.dsa, params);
489} 489}
490 490
491static int 491static int