summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-11-01 20:25:28 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-11-01 20:25:28 +0000
commitd20c8107576e0435701a1efdd63a94780088c530 (patch)
treebce26e57f4848900d9658896b7825a84ef3e99b0
parent123777c5e2fa983aee34df88feff41564bc26a59 (diff)
Rename ptype and pval to parameter_type and parameter_value
ok jsing
-rw-r--r--lib/libcrypto/asn1/x_algor.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/libcrypto/asn1/x_algor.c b/lib/libcrypto/asn1/x_algor.c
index c0bc41dd344..59e2adc9282 100644
--- a/lib/libcrypto/asn1/x_algor.c
+++ b/lib/libcrypto/asn1/x_algor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x_algor.c,v 1.34 2023/11/01 20:22:24 tb Exp $ */
+/* $OpenBSD: x_algor.c,v 1.35 2023/11/01 20:25:27 tb Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2000.
*/
@@ -159,9 +159,10 @@ X509_ALGOR_set0_obj(X509_ALGOR *alg, ASN1_OBJECT *aobj)
}
static int
-X509_ALGOR_set0_parameter(X509_ALGOR *alg, int ptype, void *pval)
+X509_ALGOR_set0_parameter(X509_ALGOR *alg, int parameter_type,
+ void *parameter_value)
{
- if (ptype == V_ASN1_UNDEF) {
+ if (parameter_type == V_ASN1_UNDEF) {
ASN1_TYPE_free(alg->parameter);
alg->parameter = NULL;
@@ -173,19 +174,20 @@ X509_ALGOR_set0_parameter(X509_ALGOR *alg, int ptype, void *pval)
if (alg->parameter == NULL)
return 0;
- if (ptype != 0)
- ASN1_TYPE_set(alg->parameter, ptype, pval);
+ if (parameter_type != 0)
+ ASN1_TYPE_set(alg->parameter, parameter_type, parameter_value);
return 1;
}
int
-X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int ptype, void *pval)
+X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int parameter_type,
+ void *parameter_value)
{
if (alg == NULL)
return 0;
- if (!X509_ALGOR_set0_parameter(alg, ptype, pval))
+ if (!X509_ALGOR_set0_parameter(alg, parameter_type, parameter_value))
return 0;
if (!X509_ALGOR_set0_obj(alg, aobj))