summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-10-23 10:41:52 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-10-23 10:41:52 +0000
commit4bf48b0b3033d99054a7dbb30b09b0849c3a2f7e (patch)
tree940b72fdaa79e2a18a57070f471606d006e82eeb /lib
parent6f4c3077d639f2f2d00e83ee9854f6aef0a9921c (diff)
EC_get_builtin_curves(): the most appropriate name for a list of curves...
... is obviously r.
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/ec/ec_curve.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libcrypto/ec/ec_curve.c b/lib/libcrypto/ec/ec_curve.c
index a2c43c82bb3..3face800e43 100644
--- a/lib/libcrypto/ec/ec_curve.c
+++ b/lib/libcrypto/ec/ec_curve.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ec_curve.c,v 1.48 2024/10/20 10:45:49 tb Exp $ */
+/* $OpenBSD: ec_curve.c,v 1.49 2024/10/23 10:41:51 tb Exp $ */
/*
* Written by Nils Larsch for the OpenSSL project.
*/
@@ -2681,19 +2681,19 @@ ec_group_is_builtin_curve(const EC_GROUP *group)
}
size_t
-EC_get_builtin_curves(EC_builtin_curve *r, size_t nitems)
+EC_get_builtin_curves(EC_builtin_curve *curves, size_t nitems)
{
size_t i;
- if (r == NULL || nitems == 0)
+ if (curves == NULL || nitems == 0)
return EC_CURVE_LIST_LENGTH;
if (nitems > EC_CURVE_LIST_LENGTH)
nitems = EC_CURVE_LIST_LENGTH;
for (i = 0; i < nitems; i++) {
- r[i].nid = ec_curve_list[i].nid;
- r[i].comment = ec_curve_list[i].comment;
+ curves[i].nid = ec_curve_list[i].nid;
+ curves[i].comment = ec_curve_list[i].comment;
}
return EC_CURVE_LIST_LENGTH;