diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-10-27 09:40:10 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-10-27 09:40:10 +0000 |
commit | 632d5d3e353ef6f0669456db87e2cba5e742c2b9 (patch) | |
tree | 0263678984c5ced8595545e57e46c670732dc1e6 | |
parent | 8c14c03560e44da8bb0181a6a6e8680feec9e7f5 (diff) |
d2i_ECParameters: rename a to out_ec_key
-rw-r--r-- | lib/libcrypto/ec/ec_asn1.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libcrypto/ec/ec_asn1.c b/lib/libcrypto/ec/ec_asn1.c index 4e4e9b062e2..7cfd4bdee62 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.85 2024/10/27 09:38:49 tb Exp $ */ +/* $OpenBSD: ec_asn1.c,v 1.86 2024/10/27 09:40:09 tb Exp $ */ /* * Written by Nils Larsch for the OpenSSL project. */ @@ -1281,7 +1281,7 @@ i2d_ECParameters(EC_KEY *ec_key, unsigned char **out) LCRYPTO_ALIAS(i2d_ECParameters); EC_KEY * -d2i_ECParameters(EC_KEY **a, const unsigned char **in, long len) +d2i_ECParameters(EC_KEY **out_ec_key, const unsigned char **in, long len) { EC_KEY *ec_key; @@ -1289,23 +1289,23 @@ d2i_ECParameters(EC_KEY **a, const unsigned char **in, long len) ECerror(ERR_R_PASSED_NULL_PARAMETER); return NULL; } - if (a == NULL || *a == NULL) { + if (out_ec_key == NULL || *out_ec_key == NULL) { if ((ec_key = EC_KEY_new()) == NULL) { ECerror(ERR_R_MALLOC_FAILURE); return NULL; } } else - ec_key = *a; + ec_key = *out_ec_key; if (!d2i_ECPKParameters(&ec_key->group, in, len)) { ECerror(ERR_R_EC_LIB); - if (a == NULL || *a != ec_key) + if (out_ec_key == NULL || *out_ec_key != ec_key) EC_KEY_free(ec_key); return NULL; } - if (a != NULL) - *a = ec_key; + if (out_ec_key != NULL) + *out_ec_key = ec_key; return ec_key; } LCRYPTO_ALIAS(d2i_ECParameters); |