From 8c14c03560e44da8bb0181a6a6e8680feec9e7f5 Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Sun, 27 Oct 2024 09:38:50 +0000 Subject: d2i_ECParameters: rename ret to ec_key --- lib/libcrypto/ec/ec_asn1.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'lib') 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); -- cgit v1.2.3