diff options
author | tb <> | 2023-12-29 18:49:06 +0000 |
---|---|---|
committer | tb <> | 2023-12-29 18:49:06 +0000 |
commit | e0a70dc9257d0343d1c5c6c1c07d70d9fba0641d (patch) | |
tree | 7d434b97827378f1f128e9387ea7919ba5df8c74 /src/lib/libc | |
parent | 541e2532eb84a03856260e1807f761fafdd982fc (diff) | |
download | openbsd-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.c | 19 |
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 | ||
573 | static int | 573 | static int |
574 | eckey_param_encode(const EVP_PKEY *pkey, unsigned char **pder) | 574 | eckey_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 | ||
579 | static int | 579 | static int |
580 | eckey_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, | 580 | eckey_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 | ||
586 | static int | 585 | static int |
587 | eckey_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, | 586 | eckey_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 | ||
594 | static int | 592 | static int |
595 | eckey_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, | 593 | eckey_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 | ||
621 | static int | 618 | static int |
622 | old_ec_priv_encode(const EVP_PKEY *pkey, unsigned char **pder) | 619 | old_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 | ||
627 | static int | 624 | static int |