diff options
author | tb <> | 2024-11-14 10:22:45 +0000 |
---|---|---|
committer | tb <> | 2024-11-14 10:22:45 +0000 |
commit | f5b482757682f8f52d57b4d595b2a8189114994f (patch) | |
tree | 399c49bc93c4fdb4fa37868cdf3ba991273add81 /src/lib | |
parent | b74f0dcf8b7fb0cd9209ebfa1c5ca944937db584 (diff) | |
download | openbsd-f5b482757682f8f52d57b4d595b2a8189114994f.tar.gz openbsd-f5b482757682f8f52d57b4d595b2a8189114994f.tar.bz2 openbsd-f5b482757682f8f52d57b4d595b2a8189114994f.zip |
ec_prn: use pkey rather than pk for an EC_KEY
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/ec/eck_prn.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/libcrypto/ec/eck_prn.c b/src/lib/libcrypto/ec/eck_prn.c index eadf1d92e3..1756fb267d 100644 --- a/src/lib/libcrypto/ec/eck_prn.c +++ b/src/lib/libcrypto/ec/eck_prn.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: eck_prn.c,v 1.36 2024/11/14 10:21:32 tb Exp $ */ | 1 | /* $OpenBSD: eck_prn.c,v 1.37 2024/11/14 10:22:45 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Nils Larsch for the OpenSSL project. | 3 | * Written by Nils Larsch for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -74,19 +74,19 @@ | |||
74 | int | 74 | int |
75 | EC_KEY_print(BIO *bio, const EC_KEY *ec_key, int off) | 75 | EC_KEY_print(BIO *bio, const EC_KEY *ec_key, int off) |
76 | { | 76 | { |
77 | EVP_PKEY *pk; | 77 | EVP_PKEY *pkey; |
78 | int ret = 0; | 78 | int ret = 0; |
79 | 79 | ||
80 | if ((pk = EVP_PKEY_new()) == NULL) | 80 | if ((pkey = EVP_PKEY_new()) == NULL) |
81 | goto err; | 81 | goto err; |
82 | 82 | ||
83 | if (!EVP_PKEY_set1_EC_KEY(pk, (EC_KEY *)ec_key)) | 83 | if (!EVP_PKEY_set1_EC_KEY(pkey, (EC_KEY *)ec_key)) |
84 | goto err; | 84 | goto err; |
85 | 85 | ||
86 | ret = EVP_PKEY_print_private(bio, pk, off, NULL); | 86 | ret = EVP_PKEY_print_private(bio, pkey, off, NULL); |
87 | 87 | ||
88 | err: | 88 | err: |
89 | EVP_PKEY_free(pk); | 89 | EVP_PKEY_free(pkey); |
90 | 90 | ||
91 | return ret; | 91 | return ret; |
92 | } | 92 | } |
@@ -116,19 +116,19 @@ LCRYPTO_ALIAS(EC_KEY_print_fp); | |||
116 | int | 116 | int |
117 | ECParameters_print(BIO *bio, const EC_KEY *ec_key) | 117 | ECParameters_print(BIO *bio, const EC_KEY *ec_key) |
118 | { | 118 | { |
119 | EVP_PKEY *pk; | 119 | EVP_PKEY *pkey; |
120 | int ret = 0; | 120 | int ret = 0; |
121 | 121 | ||
122 | if ((pk = EVP_PKEY_new()) == NULL) | 122 | if ((pkey = EVP_PKEY_new()) == NULL) |
123 | goto err; | 123 | goto err; |
124 | 124 | ||
125 | if (!EVP_PKEY_set1_EC_KEY(pk, (EC_KEY *)ec_key)) | 125 | if (!EVP_PKEY_set1_EC_KEY(pkey, (EC_KEY *)ec_key)) |
126 | goto err; | 126 | goto err; |
127 | 127 | ||
128 | ret = EVP_PKEY_print_params(bio, pk, 4, NULL); | 128 | ret = EVP_PKEY_print_params(bio, pkey, 4, NULL); |
129 | 129 | ||
130 | err: | 130 | err: |
131 | EVP_PKEY_free(pk); | 131 | EVP_PKEY_free(pkey); |
132 | 132 | ||
133 | return ret; | 133 | return ret; |
134 | } | 134 | } |