summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-10-27 09:38:50 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-10-27 09:38:50 +0000
commit8c14c03560e44da8bb0181a6a6e8680feec9e7f5 (patch)
tree24ce81e085a98aa1bc267d12809d2d88d8440a21 /lib
parentaf7cdc7cebc5594ea26067889c404d83eb24f32b (diff)
d2i_ECParameters: rename ret to ec_key
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/ec/ec_asn1.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/libcrypto/ec/ec_asn1.c b/lib/libcrypto/ec/ec_asn1.c
index a5224f28c8f..4e4e9b062e2 100644
--- a/lib/libcrypto/ec/ec_asn1.c
+++ b/lib/libcrypto/ec/ec_asn1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ec_asn1.c,v 1.84 2024/10/27 09:37:28 tb Exp $ */
+/* $OpenBSD: ec_asn1.c,v 1.85 2024/10/27 09:38:49 tb Exp $ */
/*
* Written by Nils Larsch for the OpenSSL project.
*/
@@ -1283,30 +1283,30 @@ LCRYPTO_ALIAS(i2d_ECParameters);
EC_KEY *
d2i_ECParameters(EC_KEY **a, const unsigned char **in, long len)
{
- EC_KEY *ret;
+ EC_KEY *ec_key;
if (in == NULL || *in == NULL) {
ECerror(ERR_R_PASSED_NULL_PARAMETER);
return NULL;
}
if (a == NULL || *a == NULL) {
- if ((ret = EC_KEY_new()) == NULL) {
+ if ((ec_key = EC_KEY_new()) == NULL) {
ECerror(ERR_R_MALLOC_FAILURE);
return NULL;
}
} else
- ret = *a;
+ ec_key = *a;
- if (!d2i_ECPKParameters(&ret->group, in, len)) {
+ if (!d2i_ECPKParameters(&ec_key->group, in, len)) {
ECerror(ERR_R_EC_LIB);
- if (a == NULL || *a != ret)
- EC_KEY_free(ret);
+ if (a == NULL || *a != ec_key)
+ EC_KEY_free(ec_key);
return NULL;
}
if (a != NULL)
- *a = ret;
- return ret;
+ *a = ec_key;
+ return ec_key;
}
LCRYPTO_ALIAS(d2i_ECParameters);