summaryrefslogtreecommitdiff
path: root/src/lib/libc
diff options
context:
space:
mode:
authortb <>2023-12-29 18:49:06 +0000
committertb <>2023-12-29 18:49:06 +0000
commite0a70dc9257d0343d1c5c6c1c07d70d9fba0641d (patch)
tree7d434b97827378f1f128e9387ea7919ba5df8c74 /src/lib/libc
parent541e2532eb84a03856260e1807f761fafdd982fc (diff)
downloadopenbsd-e0a70dc9257d0343d1c5c6c1c07d70d9fba0641d.tar.gz
openbsd-e0a70dc9257d0343d1c5c6c1c07d70d9fba0641d.tar.bz2
openbsd-e0a70dc9257d0343d1c5c6c1c07d70d9fba0641d.zip
eckey: adjust some variable names and unwrap function definitions
ok jsing
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/ec/ec_ameth.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/lib/libcrypto/ec/ec_ameth.c b/src/lib/libcrypto/ec/ec_ameth.c
index 660e5bffd1..c22f38b345 100644
--- a/src/lib/libcrypto/ec/ec_ameth.c
+++ b/src/lib/libcrypto/ec/ec_ameth.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_ameth.c,v 1.49 2023/12/29 18:48:25 tb Exp $ */ 1/* $OpenBSD: ec_ameth.c,v 1.50 2023/12/29 18:49:06 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 */
@@ -571,29 +571,26 @@ eckey_param_decode(EVP_PKEY *pkey, const unsigned char **param, int param_len)
571} 571}
572 572
573static int 573static int
574eckey_param_encode(const EVP_PKEY *pkey, unsigned char **pder) 574eckey_param_encode(const EVP_PKEY *pkey, unsigned char **param)
575{ 575{
576 return i2d_ECParameters(pkey->pkey.ec, pder); 576 return i2d_ECParameters(pkey->pkey.ec, param);
577} 577}
578 578
579static int 579static int
580eckey_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, 580eckey_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx)
581 ASN1_PCTX *ctx)
582{ 581{
583 return do_EC_KEY_print(bp, pkey->pkey.ec, indent, 0); 582 return do_EC_KEY_print(bp, pkey->pkey.ec, indent, 0);
584} 583}
585 584
586static int 585static int
587eckey_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, 586eckey_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx)
588 ASN1_PCTX *ctx)
589{ 587{
590 return do_EC_KEY_print(bp, pkey->pkey.ec, indent, 1); 588 return do_EC_KEY_print(bp, pkey->pkey.ec, indent, 1);
591} 589}
592 590
593 591
594static int 592static int
595eckey_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, 593eckey_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx)
596 ASN1_PCTX *ctx)
597{ 594{
598 return do_EC_KEY_print(bp, pkey->pkey.ec, indent, 2); 595 return do_EC_KEY_print(bp, pkey->pkey.ec, indent, 2);
599} 596}
@@ -619,9 +616,9 @@ old_ec_priv_decode(EVP_PKEY *pkey, const unsigned char **priv, int priv_len)
619} 616}
620 617
621static int 618static int
622old_ec_priv_encode(const EVP_PKEY *pkey, unsigned char **pder) 619old_ec_priv_encode(const EVP_PKEY *pkey, unsigned char **priv)
623{ 620{
624 return i2d_ECPrivateKey(pkey->pkey.ec, pder); 621 return i2d_ECPrivateKey(pkey->pkey.ec, priv);
625} 622}
626 623
627static int 624static int