summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-11-14 10:22:46 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-11-14 10:22:46 +0000
commit44e8457954772daeafb8dccfa69423537014182f (patch)
tree45c056720d23800d1c56e47dfbd17b3eca85c764
parente77c71dec9f0a02267aa680855143ceb0d9b3dac (diff)
ec_prn: use pkey rather than pk for an EC_KEY
-rw-r--r--lib/libcrypto/ec/eck_prn.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/libcrypto/ec/eck_prn.c b/lib/libcrypto/ec/eck_prn.c
index eadf1d92e39..1756fb267d0 100644
--- a/lib/libcrypto/ec/eck_prn.c
+++ b/lib/libcrypto/ec/eck_prn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eck_prn.c,v 1.36 2024/11/14 10:21:32 tb Exp $ */
+/* $OpenBSD: eck_prn.c,v 1.37 2024/11/14 10:22:45 tb Exp $ */
/*
* Written by Nils Larsch for the OpenSSL project.
*/
@@ -74,19 +74,19 @@
int
EC_KEY_print(BIO *bio, const EC_KEY *ec_key, int off)
{
- EVP_PKEY *pk;
+ EVP_PKEY *pkey;
int ret = 0;
- if ((pk = EVP_PKEY_new()) == NULL)
+ if ((pkey = EVP_PKEY_new()) == NULL)
goto err;
- if (!EVP_PKEY_set1_EC_KEY(pk, (EC_KEY *)ec_key))
+ if (!EVP_PKEY_set1_EC_KEY(pkey, (EC_KEY *)ec_key))
goto err;
- ret = EVP_PKEY_print_private(bio, pk, off, NULL);
+ ret = EVP_PKEY_print_private(bio, pkey, off, NULL);
err:
- EVP_PKEY_free(pk);
+ EVP_PKEY_free(pkey);
return ret;
}
@@ -116,19 +116,19 @@ LCRYPTO_ALIAS(EC_KEY_print_fp);
int
ECParameters_print(BIO *bio, const EC_KEY *ec_key)
{
- EVP_PKEY *pk;
+ EVP_PKEY *pkey;
int ret = 0;
- if ((pk = EVP_PKEY_new()) == NULL)
+ if ((pkey = EVP_PKEY_new()) == NULL)
goto err;
- if (!EVP_PKEY_set1_EC_KEY(pk, (EC_KEY *)ec_key))
+ if (!EVP_PKEY_set1_EC_KEY(pkey, (EC_KEY *)ec_key))
goto err;
- ret = EVP_PKEY_print_params(bio, pk, 4, NULL);
+ ret = EVP_PKEY_print_params(bio, pkey, 4, NULL);
err:
- EVP_PKEY_free(pk);
+ EVP_PKEY_free(pkey);
return ret;
}