From 3918a2e29a9102e2e27d341d4f97baa6894f4281 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Wed, 17 Aug 2022 17:01:18 +0200 Subject: [PATCH] Renaming the named_curve parameter to curve_id to avoid shadowing. --- src/ssl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index 342db4b9d..3bdb4ebd8 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -33905,18 +33905,18 @@ void wolfSSL_get0_next_proto_negotiated(const WOLFSSL *s, const unsigned char ** #endif /* WOLFSSL_NGINX / WOLFSSL_HAPROXY */ #ifdef OPENSSL_EXTRA -int wolfSSL_CTX_curve_is_disabled(WOLFSSL_CTX* ctx, word16 named_curve) +int wolfSSL_CTX_curve_is_disabled(WOLFSSL_CTX* ctx, word16 curve_id) { - return (named_curve <= WOLFSSL_ECC_MAX && + return (curve_id <= WOLFSSL_ECC_MAX && ctx->disabledCurves && - ctx->disabledCurves & (1 << named_curve)); + ctx->disabledCurves & (1 << curve_id)); } -int wolfSSL_curve_is_disabled(WOLFSSL* ssl, word16 named_curve) +int wolfSSL_curve_is_disabled(WOLFSSL* ssl, word16 curve_id) { /* FIXME: see wolfSSL_set1_curves_list() below on why * this dependency on ssl->ctx alone is insufficient. */ - return wolfSSL_CTX_curve_is_disabled(ssl->ctx, named_curve); + return wolfSSL_CTX_curve_is_disabled(ssl->ctx, curve_id); } #endif